How can I do that?
I have followed this https://help.ubuntu.com/community/HybridGraphics
but it didn’t work
I’m getting the error at boot that the /sys/kernel/debug/vgaswitcheroo/switch don’t exist
, so the problem seems to be that the /sys/kernel/debug don’t exist when the grub parameters are processed and it is created after the grub parameter processing.
So far I have made an alternative method, which works. In rc.local I granted full access to my user to /sys/kernel/debug then also to /sys/kernel/debug/vgaswitcheroo/switch and then I have made a simple script to switch the graphics to intel and putted it in ~./confif/autostart. The script is executed every time I log in to gnome. It’s working however it would be nice if it worked at boot, as is described at that help.ubuntu.com page.
The commands in rc.local are executed every time your computer boots.
So you just need to add the commands that power down the discrete adapter right before you chown the vgaswitcheroo/switch file
I turn off my radeon adapter every time I boot as well. My rc.local is very simple:
# [...] # By default this script does nothing. # turn off the discrete video adapter echo OFF > /sys/kernel/debug/vgaswitcheroo/switch exit 0
I don't bother with any other scripts, but if you do they should still work just fine. Just put the echo OFF before the chown or any of the other user scripts.
Ubuntu has hibernation turned off by default, but note that if you do turn it on this method doesn't get a chance to run when you come out of hibernation (not sleep) so both adapters will be powered up.
Answered by tsl on December 15, 2020
1 Asked on October 31, 2021 by gustavo-moreira
2 Asked on October 31, 2021 by buffoonism
0 Asked on October 31, 2021 by tomato
3 Asked on March 11, 2021 by tinygrasshopper
2 Asked on March 10, 2021 by rvillablanca
1 Asked on March 9, 2021 by nader-ahmadvand
0 Asked on March 4, 2021 by sebr
1 Asked on March 3, 2021 by kashf-ul-hudha
0 Asked on March 2, 2021 by lbo
0 Asked on March 1, 2021
1 Asked on February 28, 2021 by h3r3t1k
6 Asked on February 28, 2021 by rock_buddy
2 Asked on February 27, 2021 by abhishek-bhatia
Get help from others!