You are not logged in.

#1 2008-01-28 16:00:26

trilog
Member
From: Kuusankoski, Finland
Registered: 2007-08-22
Posts: 19
Website

Cpufreq-set as non-root user [Solved]

Hello,

Is there a way set frequency with cpufreq-set as non-root user? I've set sudo so that all group wheel users can set frequency without password. And I've also done following commands:

chown root.wheel -R /sys/devices/system/cpu/cpu0/cpufreq/conservative/
chmod g=rw /sys/devices/system/cpu/cpu0/cpufreq/conservative/*

Everything working like a charm, but I can't set permissions at boot. I tired insert aforesaid commands to /etc/rc.local, but still permissions will not set.

-trilog

Last edited by trilog (2008-01-30 15:04:06)

Offline

#2 2008-01-28 16:16:22

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Cpufreq-set as non-root user [Solved]

It is strange that those commands do not work in rc.local, but couldn't you edit sudoers so that the users in wheel can execute directly cpufreq-set * ?


Mortuus in anima, curam gero cutis

Offline

#3 2008-01-29 13:40:24

trilog
Member
From: Kuusankoski, Finland
Registered: 2007-08-22
Posts: 19
Website

Re: Cpufreq-set as non-root user [Solved]

patroclo7 wrote:

It is strange that those commands do not work in rc.local, but couldn't you edit sudoers so that the users in wheel can execute directly cpufreq-set * ?

Yes.

The weird think is; If I run /etc/rc.local manually then permissions will set.

Offline

#4 2008-01-29 14:12:08

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Cpufreq-set as non-root user [Solved]

Mmm. A PATH problem? Did you try to use absolute paths for executables in /etc/rc.local?


Mortuus in anima, curam gero cutis

Offline

#5 2008-01-30 05:15:09

trilog
Member
From: Kuusankoski, Finland
Registered: 2007-08-22
Posts: 19
Website

Re: Cpufreq-set as non-root user [Solved]

Stupid me. I just added command cpufreq-set -gconservative to /etc/rc.local and now it works.


Thanks for advices.

Offline

Board footer

Powered by FluxBB