• Power Hybrid Graphiccard OFF!


    Hello everyone,

    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!

  • Hello everyone,

    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!

  • A systemd unit should work but if you can’t make it work take a look at the archlinux wiki that point to some apps [https://wiki.archlinux.org/index.php/Hybrid_graphics#ATI_Dynamic_Switchable_Graphics][0]">[https://wiki.archlinux.org/index.php/Hy][1] … e_Graphics

    [0]: <a href=
    [1]: https://wiki.archlinux.org/index.php/Hy

  • @“faidoc”:17czvcjn said:

    A systemd unit should work but if you can’t make it work take a look at the archlinux wiki that point to some apps [https://wiki.archlinux.org/index.php/Hybrid_graphics#ATI_Dynamic_Switchable_Graphics][0]">[https://wiki.archlinux.org/index.php/Hy][1] … e_Graphics[/quote:17czvcjn]

    Alright, then i probably made a mistake.

    I created a /lib/systemd/system/vgaswitcheroo.service

      
    > [Unit]  
    > Description=Turns off ati  
    >   
    > [Service]  
    > ExecStart=/usr/locale/bin/vgaswitcheroo.sh  
    >   
    > [Install]  
    > WantedBy=multi-user.target  
    > 
    

    and the file /usr/bin/vgaswitcheroo.sh

      
    > !\#/bin/sh  
    >   
    > chown superuser /sys/kernel/debug/vgaswitcheroo/switch  
    > echo OFF \> /sys/kernel/debug/vgaswitchero/switch  
    >   
    > 
    

    After that, i run this command in terminal:

    systemctl enable vgaswitcheroo.service
    

    After i type in the last command i receive:

    "ln -s ‘/usr/lib/systemd/system/vgaswitcheroo.service’ ‘/etc/systemd/system/multi-user.target.wants/vgaswitcheroo.service’ "

    can you find the mistakes?

    [0]: <a href=
    [1]: https://wiki.archlinux.org/index.php/Hy

Posts 4Views 1266
Log in to reply