Hi guys,
I need help to create a scrip. The background is that I need it to change hybrid (or switchable) graphics with vgaswitchroo. So far the best option I found is to add the command:in the file /etc/rc.local. The commands turn off the discrete card.Code:echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
My script that I want is to be executable and when I excecute it and in the /etc/rc.local the command that is on the line 17 is echo OFF > /sys/kernel/debug/vgaswitcheroo/switch, it changes to echo DIS > /sys/kernel/debug/vgaswitcheroo/switch, that should turn off the integrated. And if the same procedure but the other way around if the command and in the line 17 is echo DIS > /sys/kernel/debug/vgaswitcheroo/switch, change it to echo OFF > /sys/kernel/debug/vgaswitcheroo/switch. Does anybody know how to program a script like I need?
Thank you.
Bookmarks