i am new to antergos (or rather arch) and have a problem which drives me nuts!
First of all, I have a hybrid graphic card (Intel/ATi HD 5xxx) in my HP-G62 notebook. To increase my battery life and protect my notebook from overheating i want do disable/deactivate/power off my discrete graphic card.
So, the manual way is to open my terminal and write:
sudo echo OFF \> /sys/kernel/debug/vgaswitcheroo/switch
- what perfectly works. After that, the ati card is powered off and everything’s fine.
Now i want to run a script, or whatever, to execute this simple terminal line at every startup or after the boot process. I’ve tried systemd and also the rc.local-thing, but it won’t work!
Can anyone here, give me a tutorial for “dummies” how to run a simple command line on startup on antergos? In OpenSuse, Fedora, … i just added this line to my rc.local
chown username /sys/kernel/debug/vgaswitcheroo/switch echo OFF \> /sys/kernel/debug/vgaswitcheroo/switch
Thanks for your help!
Edit: I m not focused to solve this graphic-card problem with vgaswitcheroo, if there is an easier way to deactivate this graphic card i’ll do!