You are not logged in.

#1 2009-10-20 19:22:35

mechmg93
Member
From: Greece
Registered: 2007-05-23
Posts: 197

[solved]script fails when changing profile through powerdevil.

i use ondemand governor and i want to change up_threshold value.

Whenever i change profile through powerdevil up_threshold gets its default vaule of 80.

what i did was to create a script named threshold containing the lines:

#!/bin/bash 

sudo sh -c 'echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold'

i have also set through /etc/sudoers that this script is passwordless for my user.

if i run the script, it successfully changes the value. It also runs successfully if i put it in startup.

My problem is that it fails to run when i choose it to run when a profile loads through powerdevil. I am refering to the feature shown below :

gfSRA.jpg

at first i thought that this function has a problem. so i chose to run kate, and when i changed profile, kate started immediately. So i guess that there is a problem with my script.

Any ideas?

Last edited by mechmg93 (2009-10-20 20:14:30)


Mikes on AUR

Offline

#2 2009-10-20 20:05:20

mechmg93
Member
From: Greece
Registered: 2007-05-23
Posts: 197

Re: [solved]script fails when changing profile through powerdevil.

i finally solved my problem by adding as first line on the script the command:

sleep 2


Mikes on AUR

Offline

#3 2009-10-20 21:31:21

markus@sl30
Member
Registered: 2009-06-09
Posts: 18

Re: [solved]script fails when changing profile through powerdevil.

I hope someone reads this thread also its already marked as solved...
Anyway, i would like to use CPU frequency scaling, but in the powermanagement settings,
i cant shoose anything for frequency scaling.
What do i have to do to be able to set "ondemand" or "always lowest frequency"?

Wich daemons and/or modules do i have to activate to change the frequency policy?
Would be very nice if someone could help me.


Arch Linux @ Thinkpad X1 Carbon Gen 5

Offline

#4 2009-10-20 23:50:50

BlueSkyNis
Member
From: Serbia, Niš
Registered: 2009-10-08
Posts: 16

Re: [solved]script fails when changing profile through powerdevil.

Hi, have a look at (section CPU Frequency Driver):

http://wiki.archlinux.org/index.php/Cpufrequtils

Last edited by BlueSkyNis (2009-10-20 23:52:15)

Offline

#5 2009-10-22 19:30:49

markus@sl30
Member
Registered: 2009-06-09
Posts: 18

Re: [solved]script fails when changing profile through powerdevil.

Thanks so far, i thought i already tried this, but maybe it'll work this time.

If i want to change the cpu scaling policies via PowerDevil, i just need to load the Modules, not the Daemon, right?


Arch Linux @ Thinkpad X1 Carbon Gen 5

Offline

Board footer

Powered by FluxBB