Skip to content

hhd-ui fails to open/load in gamemode #19

@SqueakyAlex

Description

@SqueakyAlex

System Information
Device: Legion Go
OS: CachyOS
Kernel: 7.0.9-2-cachyos-deckify-lto
gamescope: 3.16.23
gamescope-session-cachyos: 1.1.6
hhd-ui: 3.4.0
hhd: 4.1.8

Bug Description
hhd-ui fails to load in gamemode, works properly on desktop mode.
hhd seems to still be working properly, as a workaround, its possible to add hhd-ui as a non-steam game to manage settings.

Expected Behavior
Pressing and holding QAM button opens up the HHD ui

Actual Behavior
Pressing and holding QAM button does not open HHD ui

Logs

May 16 14:46:21 Haruna systemd[1]: Created slice Slice /system/hhd.
May 16 14:46:23 Haruna hhd[882]: /usr/lib/python3.14/site-packages/hhd/__main__.py:16: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
May 16 14:46:23 Haruna hhd[882]:   import pkg_resources
May 16 14:46:24 Haruna hhd[882]:    _______   _______    ______
May 16 14:46:24 Haruna hhd[882]:   /    /  ╲╲/    /  ╲╲_/      ╲╲
May 16 14:46:24 Haruna hhd[882]:  /        //        //        //
May 16 14:46:24 Haruna hhd[882]: /         /         /         /
May 16 14:46:24 Haruna hhd[882]: ╲___/____/╲___/____/╲________/
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Handheld Daemon starting...
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Trying to acquire hhd lock...
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Running under Linux distro 'arch'.
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Running autodetection...
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Found plugin providers: adjustor, aura, ayaneo, bootc, debug,
May 16 14:46:24 Haruna hhd[882]:                generic, gpd_win, legion_go, msi_claw, onexplayer, orange_pi,
May 16 14:46:24 Haruna hhd[882]:                overlay, power, powerbuttond, rgb, rog_ally
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Lenovo BIOS version: 40
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Loaded the following plugins:
May 16 14:46:24 Haruna hhd[882]:                  - adjustor: adjustor_lenovo, adjustor_init, adjustor_battery,
May 16 14:46:24 Haruna hhd[882]:                adjustor_ppd
May 16 14:46:24 Haruna hhd[882]:                  - legion_go: legion_go_controllers
May 16 14:46:24 Haruna hhd[882]:                  -  overlay: overlay
May 16 14:46:24 Haruna hhd[882]:                  -    power: power
May 16 14:46:24 Haruna hhd[882]:                  - powerbuttond: powerbuttond@'Legion Go'
May 16 14:46:24 Haruna hhd[882]:                  -      rgb: controller_rgb
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Loaded the following locales:
May 16 14:46:24 Haruna hhd[882]:                 - adjustor (20): /usr/lib/python3.14/site-packages/hhd/i18n/./
May 16 14:46:24 Haruna hhd[882]:                 - hhd (10): /usr/lib/python3.14/site-packages/hhd/i18n/./
May 16 14:46:24 Haruna hhd[882]: POWR  INFO     Found battery:
May 16 14:46:24 Haruna hhd[882]:                /sys/class/power_supply/BATT
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Reloading configuration.
May 16 14:46:24 Haruna hhd[882]: PBTN  INFO     Handheld Daemon Version: 4.1.8
May 16 14:46:24 Haruna hhd[882]: PBTN  INFO     Overlay Version:
May 16 14:46:24 Haruna hhd[882]: PBTN  INFO     No profiles found.
May 16 14:46:24 Haruna hhd[882]: PBTN  INFO     Initialization Complete!
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     AC status is: True
May 16 14:46:24 Haruna hhd[882]: ADJS  INFO     'acpi_call' modprobe output:
May 16 14:46:24 Haruna hhd[882]: ADJS  INFO     Starting ACPI Event handler.
May 16 14:46:24 Haruna hhd[882]: LLGO  INFO     Launching emulated controller.
May 16 14:46:24 Haruna hhd[882]: POWR  WARNING  Setting battery alarm to 2076975/48870000 mAh/mWh (5%)
May 16 14:46:24 Haruna hhd[882]: LLGO  INFO     Gamepadui closed. Disabling touchpad emulation.
May 16 14:46:24 Haruna hhd[882]: OVRL  INFO     Starting shortcut loop with:
May 16 14:46:24 Haruna hhd[882]:                kbd: True, touch: True, custom: False, ctrl: True, disable_touch:
May 16 14:46:24 Haruna hhd[882]:                False
May 16 14:46:24 Haruna hhd[882]: OVRL  ERROR    Failed to load SDL gamepad mappings from
May 16 14:46:24 Haruna hhd[882]:                /usr/share/sdl/gamecontrollerdb.txt:
May 16 14:46:24 Haruna hhd[882]:                [Errno 2] No such file or directory:
May 16 14:46:24 Haruna hhd[882]:                '/usr/share/sdl/gamecontrollerdb.txt'
May 16 14:46:24 Haruna hhd[882]: PBTN  INFO     Starting isa keyboard powerbutton handler for device 'Legion Go'.
May 16 14:46:24 Haruna hhd[882]: PBTN  INFO     Waiting for steam to launch.
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Reloading settings.
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Reloading settings.
May 16 14:46:24 Haruna hhd[882]: LLGO  INFO     Found device 17ef:61eb:
May 16 14:46:24 Haruna hhd[882]:                ' ': 'Legion Controller ' at b'/dev/hidraw1'
May 16 14:46:24 Haruna hhd[882]: LLGO  INFO     Starting 'Sony Interactive Entertainment DualSense Edge Wireless
May 16 14:46:24 Haruna hhd[882]:                Controller'.
May 16 14:46:24 Haruna hhd[882]: LLGO  INFO     Emulated controller launched, have fun!
May 16 14:46:24 Haruna hhd[882]: AGPU  INFO     CPU Boost toggling is supported.
May 16 14:46:24 Haruna hhd[882]: ADJL  INFO     Setting charge limit (80 %) to True.
May 16 14:46:24 Haruna hhd[882]: ADJL  INFO     Executing ACPI call:
May 16 14:46:24 Haruna hhd[882]:                '\_SB.GZFD.WMAE 0x00 0x12 b0100010301000000'
May 16 14:46:24 Haruna hhd[882]: AGPU  INFO     Launching PPD server.
May 16 14:46:24 Haruna hhd[882]: MAIN  INFO     Reloading settings.
May 16 14:46:24 Haruna hhd[882]: LEDS  INFO     Running under Linux distro 'arch'.
May 16 14:46:24 Haruna hhd[882]: ADJL  INFO     Setting tdp mode to 'balanced'.
May 16 14:46:24 Haruna hhd[882]: ADJL  INFO     Executing ACPI call:
May 16 14:46:24 Haruna hhd[882]:                '\_SB.GZFD.WMAA 0x00 0x2c 0x02'
May 16 14:46:24 Haruna hhd[882]: LEDS  INFO     Initializing RGB (repeat 1/2, interval: 10)
May 16 14:46:24 Haruna hhd[882]: LEDS  INFO     Setting RGB to mode 'solid' with color:   0,  95, 127.
May 16 14:46:26 Haruna hhd[882]: OVRL  INFO     Found new shortcut devices:
May 16 14:46:26 Haruna hhd[882]:                 - 'NVTK0603:00 0603:F001' [0603:f001] (Touchscreen[Legion GO])
May 16 14:46:26 Haruna hhd[882]: AGPU  INFO     Handling energy settings for power profile 'balanced'.
May 16 14:46:26 Haruna hhd[882]: AGPU  INFO     Setting CPU governor to 'powersave'.
May 16 14:46:26 Haruna hhd[882]: AGPU  INFO     Setting EPP mode to 'balance_power'.
May 16 14:46:26 Haruna hhd[882]: AGPU  INFO     Enabling CPU boost.
May 16 14:46:26 Haruna hhd[882]: AGPU  INFO     Setting CPU frequency scaling to [0.419 GHz, 5.135 GHz].
May 16 14:46:26 Haruna hhd[882]: AGPU  INFO     Setting GPU mode to 'auto'.
May 16 14:46:30 Haruna hhd[882]: OVRL  INFO     Attempting to launch overlay.
May 16 14:46:30 Haruna hhd[882]: OVRL  INFO     Found overlay executable '/usr/bin/hhd-ui'
May 16 14:46:30 Haruna hhd[882]: OVRL  INFO     Overlay launched.
May 16 14:46:33 Haruna hhd[882]: PBTN  INFO     Steam is running, hooking power button.
May 16 14:46:33 Haruna hhd[882]: PBTN  INFO     Captured power button 'Power Button': 'PNP0C0C/button/input0'
May 16 14:46:33 Haruna hhd[882]: PBTN  INFO     Captured hold keyboard 'AT Translated Set 2 keyboard':
May 16 14:46:33 Haruna hhd[882]:                'isa0060/serio0/input0'
May 16 14:46:33 Haruna hhd[882]: LLGO  WARNING  Caching Dualsense controller to avoid reconnection.
May 16 14:46:33 Haruna hhd[882]: LLGO  ERROR    Received the following error:
May 16 14:46:33 Haruna hhd[882]:                <class 'AssertionError'>: Gamepadui launched. Restarting
May 16 14:46:33 Haruna hhd[882]:                controller to enable touchpad emulation.
May 16 14:46:33 Haruna hhd[882]: LLGO  ERROR    Assuming controllers disconnected, restarting after 0.5s.
May 16 14:46:34 Haruna hhd[882]: LLGO  INFO     Launching emulated controller.
May 16 14:46:34 Haruna hhd[882]: LLGO  INFO     Gamepadui active. Activating touchpad emulation.
May 16 14:46:34 Haruna hhd[882]: LLGO  INFO     Found device 17ef:61eb:
May 16 14:46:34 Haruna hhd[882]:                ' ': 'Legion Controller ' at b'/dev/hidraw1'
May 16 14:46:34 Haruna hhd[882]: LLGO  WARNING  Using cached controller node for Dualsense controller.
May 16 14:46:34 Haruna hhd[882]: LLGO  INFO     Starting 'Sony Interactive Entertainment DualSense Edge Wireless
May 16 14:46:34 Haruna hhd[882]:                Controller'.
May 16 14:46:34 Haruna hhd[882]: LLGO  INFO     Opening virtual device 'Handheld Daemon Touchpad'.
May 16 14:46:34 Haruna hhd[882]: LLGO  INFO     Emulated controller launched, have fun!
May 16 14:46:34 Haruna hhd[882]: LEDS  INFO     Initializing RGB (repeat 2/2, interval: 10)
May 16 14:46:34 Haruna hhd[882]: LEDS  INFO     Setting RGB to mode 'solid' with color:   0,  95, 127.
May 16 14:46:40 Haruna hhd[882]: OVRL  ERROR    UI Window not found, exitting overlay.
May 16 14:46:40 Haruna hhd[882]: OVRL  INFO     Stopping overlay process.
May 16 14:46:42 Haruna hhd[882]: OVRL  ERROR    Overlay thread died
May 16 14:46:49 Haruna hhd[882]: OVRL  INFO     Attempting to launch overlay.
May 16 14:46:49 Haruna hhd[882]: OVRL  INFO     Found overlay executable '/usr/bin/hhd-ui'
May 16 14:46:49 Haruna hhd[882]: OVRL  INFO     Overlay launched.
May 16 14:46:59 Haruna hhd[882]: OVRL  ERROR    UI Window not found, exitting overlay.
May 16 14:46:59 Haruna hhd[882]: OVRL  INFO     Stopping overlay process.
May 16 14:47:00 Haruna hhd[882]: LLGO  INFO     QAM Pressed 1 then held.
May 16 14:47:00 Haruna hhd[882]: OVRL  INFO     Executing overlay command: 'open_qam'
May 16 14:47:00 Haruna hhd[882]: OVRL  ERROR    Overlay thread died
May 16 14:47:00 Haruna hhd[882]: OVRL  WARNING  Overlay service died, attempting to restart.
May 16 14:47:00 Haruna hhd[882]: OVRL  INFO     Attempting to launch overlay.
May 16 14:47:00 Haruna hhd[882]: OVRL  INFO     Found overlay executable '/usr/bin/hhd-ui'
May 16 14:47:00 Haruna hhd[882]: OVRL  INFO     Overlay launched.
May 16 14:47:10 Haruna hhd[882]: OVRL  ERROR    UI Window not found, exitting overlay.
May 16 14:47:10 Haruna hhd[882]: OVRL  INFO     Stopping overlay process.
May 16 14:47:14 Haruna hhd[882]: OVRL  ERROR    Overlay thread died

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions