Oh, you're talking about PRIME ...
Code:
[root@devlnx ~]# cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0
[root@devlnx ~]# xrandr --listproviders
Providers: number : 3
Provider 0: id: 0x7d cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 4 associated providers: 2 name:Intel
Provider 1: id: 0x56 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 1 associated providers: 2 name:radeon
Provider 2: id: 0x56 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 1 associated providers: 2 name:radeon
[root@devlnx ~]# xrandr --setprovideroffloadsink radeon Intel
[root@devlnx ~]# DRI_PRIME=1 glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TURKS
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.0.4
OpenGL core profile shading language version string: 1.40
OpenGL core profile context flags: (none)
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.0.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
[root@devlnx ~]# cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0
[root@devlnx ~]# glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.0.4
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.0.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
So I tried running a game as simple user, with:
Code:
$ DRI_PRIME=1 playonlinux --run "Forgotten Realms: Demon Stone"
The game launcher identified the video card as AMD Radeon HD 6600 series (wtf?) but got only a black window for the game. No graphics, just sound.
demon_stone_graphic2.png
Tried Baldur's Gate, which works fine with the Intel driver but the Xserver rebooted (I was taken back to the login screen)
Regarding xcompmgr, I get an error when starting it, most probably because of some KDE features (I have no ideea which ones)
Code:
$ xcompmgr -c
Another composite manager is already running (0x180001b)
Is there any way to always use the discrete video card? In BIOS I can only disable it.