Ask Your Question

How to switch Hybrid Graphics

asked 2016-09-12 07:28:06 -0500

sigrlami gravatar image

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 
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

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-09-12 08:51:30 -0500

aeperezt gravatar image

You have to blacklist the kernel module of one of your video devices, that is the only way it will run with no issue on boot. But not sure if it will allow you to switch video cards at will after the kernel module is blacklisted. To blacklisted add a file on /etc/modprobe.d a file like blacklist.conf the content of the file will be something like

blacklist i915

assuming you the kernel module to blacklist is i915.

Hope it helps or give you some ideas.

edit flag offensive delete link more


@aeperezt xrandr --listproviders give "Providers: number : 0" I think this is strange too.

sigrlami gravatar imagesigrlami ( 2016-09-12 09:17:19 -0500 )edit

what does lsmod list as video drivers ?

aeperezt gravatar imageaeperezt ( 2016-09-12 10:55:27 -0500 )edit

@aepereztvideo 40960 3 i915,dell_wmi,dell_laptop

sigrlami gravatar imagesigrlami ( 2016-09-13 03:52:56 -0500 )edit

That means that you only have one video devices i915, so there is no module for a Raedon Card you must install it if you want to use it.

aeperezt gravatar imageaeperezt ( 2016-09-13 09:55:23 -0500 )edit

Question Tools

1 follower


Asked: 2016-09-12 04:18:05 -0500

Seen: 2,658 times

Last updated: Sep 12 '16