hybrid-graphics-linux team mailing list archive
-
hybrid-graphics-linux team
-
Mailing list archive
-
Message #01213
Re: Asus Switcheroo vs acpi_call
> asus swicheroo: it works, the power consumption goes from 24-25W to 17W.
> Problems:
> 1) it's needed to be the root user to echo to the
> /sys/kernel/debug/vga-switcheroo/switch (sudo isn't sufficient). So how
> to start this script automatically?
I may be wrong here, but if you're doing this:
$ sudo echo 1 > /sys/kernel/debug/vga-switcheroo/switch
I've noticed similarly in the past that the echo command doesn't
actually run as root. I think it has something to do with echo being a
builtin. You could try either:
$ sudo /bin/echo 1 > /sys/kernel/debug/vga-switcheroo/switch
or putting the echo into a script and then calling the script w/ sudo.
Unfortunately I don't have anything to offer on the other issues you
mention.
--
/mike.
Follow ups
References