New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install Freezes for Additional User(s) #17
Comments
Ohh, ty for ur report. It sounds like I have to move 'cpufreqctl' to /usr/local/bin and to change that path in police file. I'll try to fix this today. |
Thanks konkor :) After you are done, I will be happy to contribute testing and documentation if needed. |
konkor :) As you know after I tried to install cpufreq for the "SECOND Debian User" the Gnome session froze. So I forced rebooting using the computer hardware button. After the reboot, when I tried to log-in back into Gnome it always freezes. So in other words I locked myself out of Gnome. D'Oh :( It didn't broke Gnome or Linux. It is just that that Gnome session always freezes. In the unlikely event that that challenge happens to you too, the following command allowed me to manually log-out the frozen Gnome session.
|
@Francewhoa: Heh, It's working now for all users. But the extension needs a version control system for the global |
Giant thank you konkor :) I'll try to test it sometime this week. I'll post the result here. |
@konkor :) My testing is in progress. I posted a suggestion for your review and consideration at 3856fb4#commitcomment-21812031 About the version number |
@konkor :) I'm done. Here are the test results. The good news is during the extension initial automated installation, all the extensions files seems to be installed properly. The permissions seems ok too. The bad news is there is no joy and no celebration yet as it's not yet working. Steps to reproduce
Using Cpufreq 9 from April 17, 2017, Debian 8 Jessie, GNOME 3.14.1 Things I tried
Screenshots |
Heh. '9. Go to https://extensions.gnome.org/local/ it also return an message: ERROR Find that screenshot to clarify. Expected result is those error messages should not be return.' |
|
I did complete uninstall and removed installed by extension files through terminal:
Now I'm going to 2nd step. REBOOTING )) See u later |
OK I downloaded latest archive from https://github.com/konkor/cpufreq/archive/master.zip.
So 'gnome-tweak-tool' is removing all executions bits. To fix this i fixed this in the terminal:
And restarted gnome-shell by pressing Alt-F2 and entering 'r' command. So extension loaded correctly. So if you are installing through the 'gnome-tweak-tool' you have to fix execution bit for |
Now I'm going to fix README file. |
@Francewhoa: I'm doing updates through gui without any uninstalling if the extension was already installed/enabled. i will try to reproduce my steps:
PS: You don't need to fix execution bit if you are installing manually or from extensions.gnome.org |
Thanks @konkor for the updated extension :) Indeed most users will install Cpufreq using extensions.gnome.org But it's wise that you added a note into the extension README file about if they install using I learned something new about I tried the updated instructions in that README file. But GNOME freezes at the step highlighted in bold below when the user enter 'r' command in 'Alt-F2' prompt. GNOME also freeze if the user log-out GNOME session then try to log-in back into GNOME. Deleting all Cpufreq file resolved that bug. Steps to reproduce
|
I also tried that other installation method using |
@konkor :) About that other install method From git source. When user run step 3 it return an error message. Steps to reproduce
It seems that
So there is no |
@konkor :) Good news. The following worked for both one GNOME user and multiple GNOME users. Awesome :) :) 💯 👍 🥇 It's inspired from your instructions method with From git source. From git source
Notice that in the updated instructions above the following two lines were remove: It seems that running the extension |
Hi @konkor :) Those suggested edit are about that comment at konkor#17 (comment) The _"Optionally, if you need to install _Cpufreq_ for an additional GNOME user(s),"_ section is for additional GNOME user(s) that do NOT have super user access. Those steps would allow them to install the extension. Feel free to adapt those suggestions to your liking
Closing per that comment. Thanks @konkor :) |
Hi there :)
I love cpufreq :) It is easy to use. Lots of features. Lightweight. It remembers your settings. More secure because its code is publicly available for review on github. Yay :)
This ticket is for reporting a bug when the user tries to install cpufreq for additional Debian user(s). When doing so the Gnome session freezes and cpufreq is unusable for those additional Debian user(s).
Steps to reproduce
Using Debian 8 Jessie, using GNOME 3.14.1, run the following command to install "cpufrequtils" package
sudo apt-get install cpufrequtils
Double check that that Debian user has full "Administrator" access. Also known as "Root". "Desktop user" access only would not work. In this example, let us call that user the "FIRST Debian User".
Using Firefox 45.8 go to https://extensions.gnome.org/extension/1082/cpufreq/
Click on the "OFF/ON" toggle button to turn ON "cpufreq" extension. By the way, on April 16, 2017 we searched which version of "cpufreq" is on extensions.gnome.org but found no result.
When prompted by extensions.gnome.org allow all permissions
The cpufreq trail icon will show into the top toolbar. Left click on it. Select "Install...".
When prompted by cpufreq Install allow all permissions. This will automatically fix those executing bit,
In the "cpufreq" tray menu, the "Install..." option is now replace by "Preferences". The settings are remembered when changing the CPU speed. So far so good. It works for the "FIRST Debian User".
Now log-out that "FIRST Debian User"
Log-in the "SECOND Debian User". Redo all the same steps as above.
When the "SECOND Debian User" go to https://extensions.gnome.org/extension/1082/cpufreq/ then click on the "OFF/ON" toggle button to turn ON "cpufreq" extension. The Gnome session freeze. The mouse is still working but everything else is frozen. This is the issue.
To fix this
Delete the "konkor.cpufreq.policy" file. Which is located at
/usr/share/polkit-1/actions/konkor.cpufreq.policy
Delete the "cpufreq@konkor" folder for the "SECOND Debian User". Which is located at
~/.local/share/gnome-shell/extensions/cpufreq@konkor
Now the user is able to log-in the "SECOND Debian User" but the "cpufreq" extension is no longer available. To change the CPU speed the user needs to log-in the "FIRST Debian User".
Expected result
The user would be able to use https://extensions.gnome.org/extension/1082/cpufreq/ to install "cpufreq" extension for both the "FIRST Debian User" and the "SECOND Debian User". And the user would be able to change the CPU speed with either the "FIRST Debian User" and the "SECOND Debian User".
Potential cause of that issue
/usr/share/polkit-1/actions/konkor.cpufreq.policy
. Within thatkonkor.cpufreq.policy
file the path seems to be hard coded to target the "FIRST Debian User". Could that be related to that issue? I mean this line that starts with:<annotate key="org.freedesktop.policykit.exe.path">/home/[FIRST-DEBIAN-USER]/.local/
Where [FIRST-DEBIAN-USER] is the "FIRST Debian User"
Cheers,
Francewhoa
The text was updated successfully, but these errors were encountered: