← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: Bumblebee test on PCI ID: 10de:0a75

 

can also use su -c 'echo OFF >/sys/kernel/debug/vgaswitcheroo/switch'
for running a single command

--Leo


On 07/28/2011 03:23 PM, Chloë Langley wrote:
On Thu, 28 Jul 2011 15:42:29 -0300
Joaquín Ignacio Aramendía<samsagax@xxxxxxxxx>  wrote:

VGA-switcheroo is enabled but echo OFF says Permission denied (even
with sudo).
$ cat /sys/kernel/debug/vgaswitcheroo/switch
0:+:Pwr:0000:00:02.0
1: :Pwr:0000:01:00.0
Try:
$ su - (enter password)
$ echo OFF /sys/kernel/debug/vgaswitcheroo/switch

The su command is in a way "stronger" than sudo.

Alternatively, you can try:
$ sudo -s

This will give you a root shell without using su.

And do not forget the '>' character!
$ echo OFF>/sys/kernel/debug/vgaswitcheroo/switch

_______________________________________________
Mailing list: https://launchpad.net/~hybrid-graphics-linux
Post to     : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
More help   : https://help.launchpad.net/ListHelp




References