On 5/2/20 5:55 AM, Roger Heflin wrote:
You will want these commands:
sudo "echo ON > /sys/kernel/debug/vgaswitcheroo/switch"
sudo "echo DIS > /sys/kernel/debug/vgaswitcheroo/switch"
that will run the redirect under the sudo.
Nopes.
These commands fail with the error:
sudo: echo ON > /sys/kernel/debug/vgaswitcheroo/switch: command not found
Which makes sense since the entire string in quotes will be treated as
one single command.
Regards,
Sreyan