AnswerBun.com

HybridGraphics vga_switcheroo switch to intel at boot

Ask Ubuntu Asked by Jan on December 15, 2020

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.

Any ideas?

Thanks

One Answer

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

Add your own answers!

Related Questions

Not able to bring ad-hoc connection up

0  Asked on October 31, 2021 by tomato

       

Unable to run fsk (to solve boot problem)

1  Asked on March 10, 2021 by kevin-oleary

 

Problems with ethernet and wifi

2  Asked on March 10, 2021 by rvillablanca

         

Evolution Calendar Connection

0  Asked on March 7, 2021 by kelvinator

   

Is this a sign I got hacked?

1  Asked on March 6, 2021 by thomas-boisson

 

How I can run Zeitgeist with KDE

1  Asked on March 4, 2021 by bartosz-kuciel

   

Restart Ubuntu via keyboard

1  Asked on March 1, 2021 by mk1024

 

Video causes graphics to scramble

0  Asked on March 1, 2021 by user5647866

   

How to install a firmware update from an .exe file?

1  Asked on February 28, 2021 by h3r3t1k

       

What is the default password of user and guest in Ubuntu 12.04

6  Asked on February 28, 2021 by rock_buddy

     

Wifi not working on Realtek rtl8723be wifi adapter

2  Asked on February 27, 2021 by abhishek-bhatia

       

dpkg: error: while installing video downloader

0  Asked on February 27, 2021 by jeeva

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP