You are not logged in.

#1 2012-06-13 14:50:11

canen
Member
From: Jamaica
Registered: 2008-11-28
Posts: 35

vgaswitcheroo, systemd and rc.local

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/switch

Any pointers?

Thank you.

Offline

#2 2012-06-13 14:57:00

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: vgaswitcheroo, systemd and rc.local

canen wrote:

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/switch

Any 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

#3 2012-06-13 17:39:59

canen
Member
From: Jamaica
Registered: 2008-11-28
Posts: 35

Re: vgaswitcheroo, systemd and rc.local

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

#4 2012-08-19 19:59:24

canen
Member
From: Jamaica
Registered: 2008-11-28
Posts: 35

Re: vgaswitcheroo, systemd and rc.local

Hate to resurrect an old thread but has anybody got this working without rc.local yet?

Offline

#5 2012-08-19 21:03:46

saf1
Member
Registered: 2011-04-04
Posts: 28

Re: vgaswitcheroo, systemd and rc.local

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

#6 2012-08-20 01:38:51

canen
Member
From: Jamaica
Registered: 2008-11-28
Posts: 35

Re: vgaswitcheroo, systemd and rc.local

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

#7 2012-08-28 14:30:56

fred-b
Member
Registered: 2012-08-28
Posts: 1

Re: vgaswitcheroo, systemd and rc.local

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 smile

Offline

#8 2012-08-28 20:51:03

canen
Member
From: Jamaica
Registered: 2008-11-28
Posts: 35

Re: vgaswitcheroo, systemd and rc.local

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

Board footer

Powered by FluxBB