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

Not working in fedora 37 #103

Closed adetabrani closed 11 months ago

adetabrani commented 1 year ago

Describe the bug I've done a manual installation along with installing the required dependencies, but it doesn't work when I run it, i just get an error message when i run it 1679133197_Mar18_16:53:17

To Reproduce Steps to reproduce the behaviour:

  1. Type command 'cpupower-gui' on terminal
  2. See error

Expected behaviour The gui application should open

Setup (please complete the following information):

vagnum08 commented 1 year ago

From what I can see there is an error with D-Bus. the messaging service used to communicate between the gui and the cpu-helper.

Did you use the master branch for install or the latest tag?

adetabrani commented 1 year ago

From what I can see there is an error with D-Bus. the messaging service used to communicate between the gui and the cpu-helper.

Did you use the master branch for install or the latest tag?

it seems yes, I downloaded the package using git clone, but when I try to build using the latest package tag from here , I can't build, see the error below 1679738656_Mar25_17:04:16

vagnum08 commented 1 year ago

Sorry for the late response.

This is an issue with newer versions of meson that deprecated an option. To build version 1.0.0 you have to edit the meson.build file that is in data folder. Remove line 15 (that says 'desktop',).

When you have removed the line it will build without any issues.

Alternatively, you can build from the latest commit that has this issue fixed.

Let me know if you have any issues.

adetabrani commented 1 year ago

1684167185_May15_23:13:05

Already installed, but I still get these error logs when I try to run it

vagnum08 commented 1 year ago

You have to enable and start the cpupower-gui-helper service from systemd. This is normally done during install.

adetabrani commented 1 year ago

1684303233_May17_13:00:33

Can't start the service

vagnum08 commented 1 year ago

Does it throw an error?

adetabrani commented 1 year ago

just generates that log message

k2helix commented 1 year ago

This error keeps happening and makes cpupower-gui unusable

vagnum08 commented 1 year ago

I will try to boot fedora 37 and see what is happening.

k2helix commented 1 year ago

I will try to boot fedora 37 and see what is happening.

I was in Fedora 38, which is the latest. Just saying so that you don't have to look for an older version

christophehenry commented 12 months ago

@vagnum08 I have the same error. Here is the stacktrace:

# /usr/local/lib64/cpupower-gui/cpupower-gui-helper
Traceback (most recent call last):
  File "/usr/local/lib64/cpupower-gui/cpupower-gui-helper", line 313, in <module>
    dbus_service = CpupowerGui_DBus(loop)
                   ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib64/cpupower-gui/cpupower-gui-helper", line 58, in __init__
    bus_name = dbus.service.BusName("org.rnd2.cpupower_gui.helper", bus=self.bus)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/dbus/service.py", line 134, in __new__
    retval = bus.request_name(name, name_flags)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/dbus/bus.py", line 299, in request_name
    return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/dbus/connection.py", line 634, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Request to own name refused by policy
vagnum08 commented 12 months ago

I booted a live-usb with Fedora 38 today and I did the following:

Opened the terminal and run dnf config-manager --add-repo https://download.opensuse.org/repositories/multimedia:proaudio/Fedora_38/multimedia:proaudio.repo to add the repo from OBS (by Geekos DAW project)

Then run dnf install cpupower-gui.

After the installation, I run cpupower-gui in the same terminal and it worked.

No errors, nothing. Tried from the app icon and did the same.

I would suggest to uninstall the version you have and install the one from the repo above (as a bonus, the version on that repo is the latest from git, not 1.0.0).

Let me know if it works.

christophehenry commented 12 months ago

Works great. Thank you!