vagnum08 / cpupower-gui

cpupower-gui is a graphical program that is used to change the scaling frequency limits of the cpu, similar to cpupower.
GNU General Public License v3.0
430 stars 31 forks source link

Fails to load configuration during boot #82

Open sanigerson opened 2 years ago

sanigerson commented 2 years ago

Hello, How sad to see that there is no update till 2020. I have a problem on latest rasbian os x64. When i run app and choose any predefined governor, when i restart raspberry, it starts with performance mode. Is there any solution for this?

vagnum08 commented 2 years ago

Which version do you have installed?

sanigerson commented 2 years ago

Latest official 0.7.2 for raspberry

vagnum08 commented 2 years ago

I will build a Debian package for raspbian using the latest 1.0.0 for you to install.

Sadly the latest version on the repo is quite old.

sanigerson commented 2 years ago

Oh, i'm looking forward to it :)

vagnum08 commented 2 years ago

I am assuming you are using a RPI 4, hence the x64. Correct?

sanigerson commented 2 years ago

Absoultly :)

mahmouddalho commented 2 years ago

كيفه الغاء الاشتراك في جفيت

في الخميس، ١٧ مارس ٢٠٢٢ ١١:٠٢ م sanigerson @.***> كتب:

Absoultly :)

— Reply to this email directly, view it on GitHub https://github.com/vagnum08/cpupower-gui/issues/82#issuecomment-1071329150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPPBWTVXMTFCFMTFIENZUTVAOFWBANCNFSM5Q3XGKAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

vagnum08 commented 2 years ago

@sanigerson there is a debian package for raspbian 11 on opensuse build repo

https://download.opensuse.org/repositories/home:/erigas:/cpupower-gui/Raspbian_11/all/cpupower-gui_1.0.0-1_all.deb

sanigerson commented 2 years ago

I'm sorry but still same. As you can see, program can't starts also never allows to work cpu over 600mhz

https://youtu.be/KMpEYcW999s

vagnum08 commented 2 years ago

I see.

Try executing cpupower-gui from a terminal and post the error message here.

I bet it will be a missing dependency, maybe libhandy.

sanigerson commented 2 years ago

Here you go: https://i.hizliresim.com/kvcyhye.png

vagnum08 commented 2 years ago

That's exactly what I thought.

If you install gir1.2-handy-1 it should work.

sanigerson commented 2 years ago

Can you please kindly show me the way how do i should install?

vagnum08 commented 2 years ago

You could open a terminal and install it by typing or pasting sudo apt install gir1.2-handy-1.

sanigerson commented 2 years ago

Waow! You did a magic! :) Will this version be in original repository for raspberry? Last one thing, any chance that how could i edit profiles on gui?

vagnum08 commented 2 years ago

The new version would be available when the latest package is accepted on the Debian repos.

To edit the profiles, you edit the setting as you like on the first tab and then you go to the profiles tab, type a name for the profile and then save. The profile will be added on the list.

mahmouddalho commented 2 years ago

Yes, this is what happened, but I would like help because I do not know what service the subscription will be canceled from.

في السبت، ١٩ مارس ٢٠٢٢ ٧:١٢ م vagnum08 @.***> كتب:

That's exactly what I thought.

If you install gir1.2-handy-1 it should work.

— Reply to this email directly, view it on GitHub https://github.com/vagnum08/cpupower-gui/issues/82#issuecomment-1073046543, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPPBWVZBDGJZZKR2PV24PLVAYDF7ANCNFSM5Q3XGKAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

sanigerson commented 2 years ago

Unfortunatly, it doesn't effect. Still starts up with powersave mode :(

vagnum08 commented 2 years ago

Have you set the profile on the preferences tab? cpg_preferences

sanigerson commented 2 years ago

Yep, definitly.

Here how raspberry starts:

https://i.hizliresim.com/guhcjek.png

Here's starting profile: https://i.hizliresim.com/izpplu7.png

And here's loaded profile: https://i.hizliresim.com/sska61c.png

Also, have you seen my favicons near writing? You can see them on last picture.

vagnum08 commented 2 years ago

I haven't tested on a raspberrypi yet. I will get a fresh install of the latest Raspbian 64bit OS, install the package and get it working. I will update accordingly.

sanigerson commented 2 years ago

Looking forward to it. Hope it happens very quick :) Thank you.

vagnum08 commented 2 years ago

2022-03-29-114049_2560x1080_scrot

So, in order to get to work you have to change the system-wide configuration file in /etc/cpupower_gui.conf. The settings on the GUI apply to current user session (user's systemd) and the window manager used by the pi is not exacty support by 1.0.0.

By editing the configuration file in /etc/ the change is applied at boot by the system's systemd instance, thus it works setting the governor to performance.

Hope it helps!

sanigerson commented 2 years ago

Under etc/cpupower-gui, i have no conf. file. If possible, could you please create and share it with me?

vagnum08 commented 2 years ago

It is /etc/cpupower_gui.conf. There is an underscore there instead of a hyphen. The config file is installed by the package, it should be there.

sanigerson commented 2 years ago

I am very sorry but i have limited capability on raspbian. I tried to edit conf file but couldn't manage it. I'm having permission problem. I believe you won't publish stable version for raspbian os?

vagnum08 commented 2 years ago

You have to edit the file as root. If you are not comfortable at editing from the command line do the following:

First, copy the file to your home folder, e.g.

cp /etc/cpupower_gui.conf ~/cpupower_gui.conf

Change the file with a text editor. You have to change line 14 (Profile = Balanced). For the built-in performance profile you change the line to Profile = Performance.

Last, you copy the file back as root, i.e. sudo cp ~/cpupower_gui.conf /etc/cpupower_gui.conf.

I believe you won't publish stable version for raspbian os?

I will make the next version to work on raspbian from user settings.