You are not logged in.
Hello,
I have Intel/AMD hybrid graphics and I am using the method outlined in the wiki to disable ATI on boot. However, I am using systemd as well and I can't seem to find a replacement that does not involve rc.local. My rc.local contains the following:
sleep 1
modprobe radeon
sleep 1
echo OFF > /sys/kernel/debug/vgaswitcheroo/switchAny pointers?
Thank you.
Offline
Hello,
I have Intel/AMD hybrid graphics and I am using the method outlined in the wiki to disable ATI on boot. However, I am using systemd as well and I can't seem to find a replacement that does not involve rc.local. My rc.local contains the following:
sleep 1 modprobe radeon sleep 1 echo OFF > /sys/kernel/debug/vgaswitcheroo/switchAny pointers?
Thank you.
load module : https://wiki.archlinux.org/index.php/Sy … uring_boot
write OFF : https://wiki.archlinux.org/index.php/Sy … rary_files
Offline
Thanks for the reply 65kid.
I know about the tmpfiles.d, in fact. I am actually using it. However, the load module will not work because of the kernel bug mentioned in the wiki page. At least I think so since I haven't actually tried it. I am blacklisting the radeon module so I can boot successfully then using rc.local to load it after boot. I think if I load it using the systemd it would still crash the kernel.
Offline
Hate to resurrect an old thread but has anybody got this working without rc.local yet?
Offline
make an UNIT '/etc/systemd/system/rc-local.service' to execute your rc.local
https://wiki.archlinux.org/index.php/Sy … s#rc.local
Last edited by saf1 (2012-08-19 21:04:08)
Offline
saf1,
I already have the unit enabled but I was hoping for a work around but that would allow me to get rid of the compatible layer.
Offline
I wrote a systemd unit file for fedora 16, but it should be reusable for arch. You can clone it from there https://github.com/fredoche/vgaswitcheroo_systemd .
I'm not very litterate about systemd though, so feel free to fork and I'll happily merge updates ![]()
Offline
fred-b,
What you have there can be accomplished using the temporary files. The issue is with the loading of the ati module since it usually cause the kernel to crash. It has to be blacklisted and then loaded using the rc.local file.
Offline