governor in your rc.local? in LMDE (solved)

Archived topics about LMDE 1 and LMDE 2
Locked
gnimmelf

governor in your rc.local? in LMDE (solved)

Post by gnimmelf »

Hi everybody
could someone please show me how to set the governor in your rc.local? (http://www.thinkwiki.org/wiki/How_to_ma ... cy_Scaling)
i found out to set it to "performance" for both of my cpu's, but it goes back to "ondemand" on reboot?
its easy on mint9 and 10 using
sudo gedit /etc/init.d/ondemand
but that doesnt work on LMDE. please describe in detail, im new to mint :D
kind regards gnimmelf
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Oscar799
Level 20
Level 20
Posts: 10398
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: governor in your rc.local? in LMDE

Post by Oscar799 »

Moved here from Newbie Questions
Image
mads

Re: governor in your rc.local? in LMDE

Post by mads »

Hi gnimmelf,
have you noticed this part in the article:

"Debian notes
Debian Etch now has rc.local (see package initscripts).
However, a better alternative for Debian, rather than modifying bootscripts, is to install the sysfsutils package. Then edit /etc/sysfs.conf (as root), where you can setup values to sysfs entries that you want to be modified automatically on boot."
gnimmelf

Re: governor in your rc.local? in LMDE

Post by gnimmelf »

mads wrote:Hi gnimmelf,
have you noticed this part in the article:

"Debian notes
Debian Etch now has rc.local (see package initscripts).
However, a better alternative for Debian, rather than modifying bootscripts, is to install the sysfsutils package. Then edit /etc/sysfs.conf (as root), where you can setup values to sysfs entries that you want to be modified automatically on boot."
yes i saw that but it seamed like a rather "big" thing, il try it, but i dont no how to "edit /etc/sysfs.conf (as root)" from scratch ( how to find the right file and edit it etc) and what values im going to put in?

kind regards gnimmelf
Elisa

Re: governor in your rc.local? in LMDE

Post by Elisa »

gnimmelf wrote:...but i dont no how to "edit /etc/sysfs.conf (as root)...
Run in terminal:
gksudo gedit /etc/sysfs.conf
gnimmelf

Re: governor in your rc.local? in LMDE

Post by gnimmelf »

Elisa wrote:
gnimmelf wrote:...but i dont no how to "edit /etc/sysfs.conf (as root)...
Run in terminal:
gksudo gedit /etc/sysfs.conf

il try it thanks :D
mads

Re: governor in your rc.local? in LMDE

Post by mads »

Try this procedure:
1- Install sysfsutils, powernowd and cpufrequtils packages (cpufrequtils is probably already installed):

Code: Select all

sudo apt-get install --reinstall cpufrequtils powernowd sysfsutils
2- Edit /etc/sysfs.conf (as root)

Code: Select all

gksudo gedit /etc/sysfs.conf
3- Add (or edit if already there) these lines to /etc/sysfs.conf:
devices/system/cpu/cpu0/cpufreq/scaling_governor = performance
devices/system/cpu/cpu1/cpufreq/scaling_governor = performance
4- Reboot. Verify the result:

Code: Select all

cpufreq-info
gnimmelf

Re: governor in your rc.local? in LMDE

Post by gnimmelf »

like this? it works! but should i have added the lines under "Examples:" instead?

# /etc/sysfs.conf - Configuration file for setting sysfs attributes.
#
# The sysfs mount directory is automatically prepended to the attribute paths.
#
# Syntax:
# attribute = value
# mode attribute = 0600 # (any valid argument for chmod)
# owner attribute = root:wheel # (any valid argument for chown)
#
# Examples:
#
# Always use the powersave CPU frequency governor
# devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave
#
# Use userspace CPU frequency governor and set initial speed
# devices/system/cpu/cpu0/cpufreq/scaling_governor = userspace
# devices/system/cpu/cpu0/cpufreq/scaling_setspeed = 600000
#
# Set permissions of suspend control file
# mode power/state = 0660
# owner power/state = root:power

devices/system/cpu/cpu0/cpufreq/scaling_governor=performance
devices/system/cpu/cpu1/cpufreq/scaling_governor=performance
mads

Re: governor in your rc.local? in LMDE

Post by mads »

Looks good but may be "...scaling_governor = performance" instead of "...scaling_governor=performance", but if it works I guess it's ok.
And please add [Solved] to the topic title if everything is ok now.
gnimmelf

Re: governor in your rc.local? in LMDE

Post by gnimmelf »

mads wrote:Looks good but may be "...scaling_governor = performance" instead of "...scaling_governor=performance", but if it works I guess it's ok.
And please add [Solved] to the topic title if everything is ok now.
Ok thanks
gnimmelf
Locked

Return to “LMDE Archive”