Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can not use echo DIS > /sys/kernel/debug/vgaswitcheroo/switch to switch to discrete ATI card. After I run the command, cat /sys/kernel/debug/vgaswitcheroo/switch still gives:

1:DIS: :Pwr:0000:01:00.0

I use Ubuntu 11.10 amd64 arch in Lenovo Thinkpad W500. What is the matter?

share|improve this question
I've updated to 14.04 and now it works. – BornToCode Apr 22 '14 at 2:42

First, you need to run the command as root.

Second , you can not re-direct output when using sudo.

So ..


sudo bash -c 'echo DIS > /sys/kernel/debug/vgaswitcheroo/switch'

2) Use tee

echo 'DIS' | sudo tee /sys/kernel/debug/vgaswitcheroo/switch
share|improve this answer
Of course, I do it using root user. – waterloo2005 Jan 28 '12 at 6:37

Your change works, but it is most likely a delayed one. To make the change you should logout and re-login. This is because the change is applied after you exit X.

When Ubuntu was using Gnome desktop manager there was the gnome-session-logout command, which would do that for you. I am uncertain how to logout and re-login with Unity, which you most likely have.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.