Skip to content
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

Not launching on Hyprland #22

Open
k2helix opened this issue Jan 6, 2024 · 3 comments
Open

Not launching on Hyprland #22

k2helix opened this issue Jan 6, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@k2helix
Copy link

k2helix commented Jan 6, 2024

I installed asusctltray on Hyprland (wayland) and I'm getting this error whenever I try to open asusctltray from the command line (desktop app also does not work)

Traceback (most recent call last):
  File "/usr/lib64/python3.12/site-packages/dbus/bus.py", line 173, in activate_name_owner
    return self.get_name_owner(bus_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/dbus/bus.py", line 348, in get_name_owner
    return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/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.NameHasNoOwner: The name does not have an owner

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/asusctltray", line 690, in <module>
    TrayIcon(loop)
  File "/usr/local/bin/asusctltray", line 650, in __init__
    self.build_menu()
  File "/usr/local/bin/asusctltray", line 663, in build_menu
    PowerProfilesController().attach(self.menu)
  File "/usr/local/bin/asusctltray", line 328, in attach
    for item in self.items:
                ^^^^^^^^^^
  File "/usr/local/bin/asusctltray", line 585, in items
    for p in self.proxy.Get("net.hadess.PowerProfiles", "Profiles")
             ^^^^^^^^^^
  File "/usr/local/bin/asusctltray", line 591, in proxy
    dbus.SystemBus().get_object(
  File "/usr/lib64/python3.12/site-packages/dbus/bus.py", line 237, in get_object
    return self.ProxyObjectClass(self, bus_name, object_path,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/dbus/proxies.py", line 250, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/dbus/bus.py", line 178, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib64/python3.12/site-packages/dbus/bus.py", line 273, in start_service_by_name
    return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/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.ServiceUnknown: The name is not activatable
@Baldomo
Copy link
Owner

Baldomo commented Jan 8, 2024

The DBus API for fan profiles has been substantially changed on asusctl's side, I am already working on a fix for the latest asusctl version. It will break compatibility with old versions but oh well, I can't maintain this program for that many old API versions

@Baldomo Baldomo self-assigned this Jan 8, 2024
@Baldomo Baldomo added the bug Something isn't working label Jan 8, 2024
@Baldomo
Copy link
Owner

Baldomo commented May 17, 2024

I generally fixed the script in c8ef0ba according to the DBus API changes. However, looking at the stacktrace you posted, it may just be that you're missing power-profiles-daemon or it's not launching correctly (it must be enabled in systemd of course). Please do let me know if everything works now.

Sorry for the wait!

@k2helix
Copy link
Author

k2helix commented May 17, 2024

Hi, you're right, I don't have the power-profiles-daemon installed because I use tlp. Will let you know if it works when I get to configure Hyprland again. Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants