Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cpufreqd + lm_sensors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dolphinaura
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2010
Posts: 145

PostPosted: Sat Jan 08, 2011 12:53 am    Post subject: cpufreqd + lm_sensors Reply with quote

Ive been having a problem with cpufreqd not looking for the correct battery (/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:01/power_supply/C136/energy_full ), which was renamed
so I emerged with the lm_sensors flag.

Now, cpufreqd gives
Code:

init_configuration       : Unknown sensors_conf=/etc/conf.d/lm_sensors: nobody handles it.

when starting.

Theirs also a problem with the AC rules, it keeps on giving

Code:

init_configuration       : [Rule] name "AC" has no options. Discarded.


also, one of the major things I was looking for, temperature-based clocking was not apparenly loaded.

cpufreqd.conf
Code:

# this is a comment
# see CPUFREQD.CONF(5) manpage for a complete reference
[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
verbosity=4
enable_remote=1
remote_group=users
[/General]

[sensors_plugin]
sensors_conf=/etc/conf.d/lm_sensors
[/sensors_plugin]

[Profile]
name=ondemand
minfreq=0%
maxfreq=100%
policy=ondemand
[/Profile]

[Profile]
name=Performance Low
minfreq=60%
maxfreq=60%
policy=powersave
[/Profile]


##
# Basic states
##
# when AC use performance mode
[Rule]
name=AC             
profile=ondemand
[/Rule]
 
# conservative mode when not AC
#[Rule]
#name=AC Off - Low Battery
#ac=off                   # (on/off)
#battery_interval=0-30
#exec_post=echo 5 > /proc/acpi/sony/brightness
#profile=Powersave Low
#[/Rule]

# conservative mode when not AC
#[Rule]
#name=AC Off - Medium Battery
#ac=off                   # (on/off)
#battery_interval=30-70
#exec_post=echo 5 > /proc/acpi/sony/brightness
#profile=On Demand Low
#[/Rule]

# stay in performance mode for the first minutes
#[Rule]
#name=AC Off - High Power
#ac=off                   # (on/off)
#battery_interval=70-100
#exec_post=echo 5 > /proc/acpi/sony/brightness
#profile=On Demand High
#[/Rule]

##
# Special Rules
##
# CPU Too hot!
[Rule]
name=CPU Too Hot
acpi_temperature=55-100
cpu_interval=50-100
profile=Performance Low
[/Rule]

# use performance mode if I'm watching a movie
# I don't care for batteries!
# But don't heat too much.
#[Rule]
#name=Movie Watcher
#programs=xine,mplayer,gmplayer,vlc,dragon
#battery_interval=0-100
#acpi_temperature=0-60
#profile=Performance High
#[/Rule]

Can I convert the acpi_temperature to the lm_sensors temperature instead?
_________________
------------------------
Dolphinaura
http://twitter.com/dolphinaura
http://dolphinaura.com
Back to top
View user's profile Send private message
dolphinaura
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2010
Posts: 145

PostPosted: Sat Jan 08, 2011 1:52 am    Post subject: Reply with quote

nvm.
Managed to do it.

for other users wishing to take a look....

For each rule, you have to add the cpu interval (not sure why it doesn't do that by default)
i.e.
Code:

cpu_interval=0-100


and for the sensors, use
Code:

sensor=Core 0:55-100

where Core 0 responds to the sensor name, and 55-100 refers to the temperature
_________________
------------------------
Dolphinaura
http://twitter.com/dolphinaura
http://dolphinaura.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum