Fix Switchable Graphics (ATI+Intel or Nvidia+Intel) on Linux
If your laptop is heating up or slowing down due to both GPUs running, this might help.
- Open terminal and enter superuser mode:
su -
- Check if both GPUs are recognized:
lspci | grep VGA- Check if
vga_switcheroois enabled:
dmesg | grep vgaNote: Closed-source drivers may disable this feature.
- Check which GPU is active:
cat /sys/kernel/debug/vgaswitcheroo/switchExample output:
0:DIS: :Pwr:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0IGD= integrated Intel GPUDIS= discrete ATI/Nvidia GPU+= GPU in usePwr= powered on
- Switch off the discrete GPU to reduce heat:
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch- Make the change permanent:
- Edit the blacklist file to prevent the discrete driver from loading:
vim /etc/modprobe.d/blacklist.confAdd one line depending on your GPU:
- ATI:
blacklist radeon- Nvidia:
blacklist nouveau- Create a script to run on boot:
vim /etc/rc.d/rc.localAdd these lines:
#!/bin/bash
echo OFF > /sys/kernel/debug/vgaswitcheroo/switchMake it executable:
chmod +x /etc/rc.d/rc.local- Reboot.
- Verify the discrete GPU is off:
cat /sys/kernel/debug/vgaswitcheroo/switchExpected output:
0:DIS: :Off:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0Now your laptop should be cooler, more responsive, and using only the integrated GPU.
