Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to switch Hybrid Graphics

I have Dell Inspiron 5559 with freshly installed Fedora 24. Hardware goes with

Video Controller:

Integrated - Intel HD Graphics 520

Discrete - AMD Radeon R5 M335

output from

$ glxinfo|egrep "OpenGL vendor|OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)

Means that integrated grahics in use. How can I switch to discrete?

Strangely lspci gives only 1 VGA compatible

00:00.0 Host bridge: Intel Corporation Skylake Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 520 (rev 07)
...
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330] (rev ff)

Update1: I found out that I can use switchheroo for changing between cards initial config looks like this

$ sudo cat /sys/kernel/debug/vgaswitcheroo/switch 
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0

then I switch to VT3 and do

$ init 3
$ echo ON > /sys/kernel/debug/vgaswitcheroo/switch
$ echo DIS > /sys/kernel/debug/vgaswitcheroo/switch
$ echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
$ init 5

the 3rd command blindly, because DIS gives blank screen and get

0:IGD: :Pwr:0000:00:02.0
1:DIS:+:DynOff:0000:01:00.0

but my screen is blinking and after reboot IGD up again. How can I store new settings and remove blinking?