You are not logged in.

#1 2011-12-23 01:52:59

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

How to make radeon graphic switching settings permanent

The wiki for the Acer TimelineX gives the following lines of code for a power-saving configuration:

#mount -t debugfs none /sys/kernel/debug
#modprobe radeon
#echo ON > /sys/kernel/debug/vgaswitcheroo/switch
#echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

This works perfectly for my purposes -- to reduce fan noise -- but how do I make these settings permanent? Is there any downside (performance-wise) to adding the debugfs to /etc/fstab? The radeon module is already loaded, so what remains to know is what to do about the echo ON / echo OFF lines. Should I put them in a startup file, or is there another way to set them by default?

Last edited by eyolf (2011-12-23 08:41:44)

Offline

#2 2011-12-23 02:07:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to make radeon graphic switching settings permanent

Please edit your thread title: "How to" is less than helpful...

https://wiki.archlinux.org/index.php/Fo … ow_to_Post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-12-23 08:42:52

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: How to make radeon graphic switching settings permanent

Very sorry. There was a longer title, but it got lost somehow in the editing process.

Offline

#4 2011-12-23 09:27:17

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to make radeon graphic switching settings permanent

Use /etc/rc.local.

Offline

#5 2011-12-23 21:02:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to make radeon graphic switching settings permanent

eyolf wrote:

Is there any downside (performance-wise) to adding the debugfs to /etc/fstab?

Have you measured it somehow?

Last edited by karol (2011-12-23 21:04:53)

Offline

#6 2011-12-23 21:48:07

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: How to make radeon graphic switching settings permanent

No, I haven't measured it. I was just wondering about the necessity of having a debug file system mounted and running just in order to stop some activity. Seems rather roundabout to me. That's also why I wondered if there is some other way to do this: as a permanent setting rather than as a command to be run at boot/login time.

Offline

#7 2011-12-23 21:49:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to make radeon graphic switching settings permanent

My idea would be to use fstab, but I honestly don't know if there's any difference.

Offline

Board footer

Powered by FluxBB