Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 ?

share|improve this question
    
You should be using /etc/modules, not your init system for this. –  jordanm Dec 3 '12 at 20:36
add comment

1 Answer

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
share|improve this answer
add comment

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.