nodefourtytwo / gnome-shell-extension-cpu-freq

Change CPU frequency from gnome shell
12 stars 11 forks source link

not working in fedora 18 #8

Closed rdrms closed 6 years ago

rdrms commented 11 years ago

I have cpufreq-selector installed, but the extension will not install. It clicks on, asks for authorization, then turns itself off. This happened on Ubuntu when I didn't have cpufreq-utils installed.

bubi-luka commented 11 years ago

@ryanrms : where did you get cpufreq-selector? @nodefourtytwo : any update on fedora 18 issues?

nodefourtytwo commented 11 years ago

Sorry guys, I don't have any Fedora installed.

Try this and give the output here: which cpufreq-info which cpupower which cpufreq-selector

Also look at the error outputs of the extension in Looking Glass (Alt+F2 lg), tab extensions.

bubi-luka commented 11 years ago

$ which cpufreq-selector /usr/bin/cpufreq-selector

$ which cpupower /usr/bin/which: no cpupower in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/user/.local/bin:/home/user/bin)

$ which cpufreq-info /usr/bin/which: no cpufreq-info in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/user/.local/bin:/home/user/bin)

After clicking install on extensions.gnome.org the extension tries to install. I have it in my Looking Glass, status Disabled. There are no errors emitted by this extension shown in the LG.

nodefourtytwo commented 11 years ago

Your problem is having neither cpufreq-info nor cpupower. You should install the one recommended by your distribution.

bubi-luka commented 11 years ago

Since Fedora 18 does not have neither cpufreq-info not cpupower package available I did not know where to get them and tought cpufreq-selector should be sufficient. Now I have found that package kernel-tools contains cpupower. After installation cpu-freq installs and works as expected. Thanks for quick reply. Before closing the issue there would be nice to get some info from @ryanrms, as it is not necessary his original problem is the same as mine.

nodefourtytwo commented 11 years ago

I also leave it open so the extension does not crash and becomes more verbose if these utilities are missing.

Feanturo commented 11 years ago

Hi. With Fedora 18 and standard cpupower package, the problem with me is that it can detect the different governors, however it cannot set them. Working line commands are : cpupower frequency-set --governor [Governor] In case that could help.

nodefourtytwo commented 11 years ago

The problem with the cpupower frequency-set command line is that it requires to be root.

That's why I use the tool cpufreq-selector that has the ability to work for users, granted that you give the user the authorization with policykit.

I could not come up with a better solution yet.

gregor2005 commented 11 years ago

does anybody find the the polkit conf under fedora 18. polkit is installed but the path didn't exists also under /etc/security there are no files that look like the given example from the readme

shaggy814 commented 11 years ago

in fedora the cpufreq-selector is in the gnome-applets package. Do 'yum install gnome-applets'

gregor2005 commented 11 years ago

thx

pstarek commented 11 years ago

Hi all,

I have found a solution for policykit in Fedora 18.

Create a file /usr/share/polkit-1/rules.d/cpufreq-shell-extension.rules with this content:

polkit.addRule(function(action, subject) { if (action.id == "org.gnome.cpufreqselector" && subject.local && subject.active && subject.isInGroup ("wheel")) { return polkit.Result.YES; } });

And users in wheel group be able to change governor without need to enter password.

mikhailramalho commented 11 years ago

You can also place the rule file under /etc/polkit-1/rules.d/ and it also worked.

To add your user to the wheel group, run:

usermod -a -G wheel YYYYY

where YYYYY is your user.