Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have mux-less Intel/ATI hybrid graphics. I can't install fglrx driver, because of it's compatibility with Xorg. So i want to have pernamently disabled discrete VGA.

I type that command after every start-up:

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

But it's boring, so i want to have this command automatically executed at during boot.

share|improve this question
If you are interested, I wrote a script that removes unused kernel modules. Removing them not only prevents loading unwanted modules like broken drivers or unused ports like yenta-socket, but it speeds up booting too. It may not exactly be on topic though. – technosaurus Mar 14 '12 at 0:31
up vote 2 down vote accepted

There is a file boot.local in /etc/init.d. This file is used to execute local commands during start up. You can add your command to power off the discrete card to this file.

share|improve this answer
+1.Thanks. I've also blacklisted radeon, because of long udev processing and modprobed it there. – kravemir Jan 21 '12 at 16:49

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.