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 AMD/Intel hybrid graphics. I have been using only Intel GPU when AMD Proprietary crashed X.Org. Now i'm having installed Catalyst and i've recognized higher power usage.

In both AMD/Intel and Intel only solutions i have blacklisted radeon module.

For Intel only solution my rc.local looks:

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

And for AMD/Intel hybrid solution i have different xorg.conf configured via aticonfig.

So i'd like to have rc_intel.local,rc_amd.local, xorg_intel.conf, xorg_amd.conf and switch between them via different grub menu entries.

Is it possible?

Sorry for my english

share|improve this question
up vote 1 down vote accepted

Yes, parameters passed to the kernel command line (editable in your bootloader's configs) end up on /proc/cmdline. Just parse it for your keywords.

case "$(< /proc/cmdline)" in
  *keyword*)do something;;
  *another*)do another;;
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.