1

ArchLinux has completly replaced rc.conf with systemd. I used /etc/rc.local to modprobe radeon module and turn it off using vgaswitcheroo.

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

But, there is no rc.conf in ArchLinux anymore. How can I do it with systemd ?

1
  • You should be using /etc/modules, not your init system for this.
    – jordanm
    Dec 3, 2012 at 20:36

1 Answer 1

1

So the first thing you will do is have Arch automatically load the radeon module at boot.

To do this, add a file to the /etc/modules-load.d directory, for example:

# echo radeon > /etc/modules-load.d/radeon.conf

The second thing is to have vgaswitcheroo do its magic to switch off the disconnected graphics adapter. Arch has a systemd-vgaswitcheroo-units package which may help you accomplish this. It echoes OFF at startup, and ON at shutdown. To enable it, use:

# systemctl enable vgaswitcheroo.service

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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