Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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;;
esac
share|improve this answer

Your Answer

 
discard

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.