The SPEEDFREQ_USERS variable set in /etc/conf.d/speedfreq is presumably meant to turn the "-u" option to speedfreqd on or off when this is executed in the /etc/init.d/speedfreq init script. However, the init script does not check his variable. I've included a fix below, though I'm sure a more elegant solution would be possible. Reproducible: Always Steps to Reproduce: 1. Set SPEEDFREQ_USERS="yes" in /etc/conf.d/speedfreq 2. Run /etc/init.d/speedfreq start (or restart) 3. Run "speedfreq -p <profile>" as a normal user. Actual Results: Non-root users are forbidden from changing the speed profile using the speedfreq client command. Expected Results: Non-root users should be permitted to change the speed profile using speedfreq if SPEEDFREQ_USERS="yes" is set in /etc/conf.d/speedfreq.
Created attachment 20886 [details] Fixed /etc/init.d/speedfreq This seems to fix the problem on my machine; of course, a more elegant solution may be possible.
i removed the SPEEDFREQ_USERS variable and added a SPEEDFREQ_OPTS variable the user can put whatever they want into that