gamemode icon indicating copy to clipboard operation
gamemode copied to clipboard

[root] set your DBUS_SESSION_BUS_ADDRESS instead!

Open Ultrahead opened this issue 8 months ago • 3 comments

I'm trying to install and run GameMode on a Timui Smart Pro device, and everytime I try I get the following error:

Tina is Based on OpenWrt!
 ----------------------------------------------
 Tina Linux (Neptune, 5C1C9C53)
 ----------------------------------------------
root@TinaLinux:/# gamemoded -t
: Loading config
Loading config file [/etc/gamemode.ini]
Config: Value ignored [general] desiredprof=performance
: Running tests

GameMode ERROR: Could not connect to bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
ERROR: gamemode_query_status failed: Could not connect to bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead!
ERROR: is gamemode installed correctly?

My guess is that the TSP by default has no users but the root, and therefore the error arises.

Provided that the TSP does not allow creating users, and everything here runs as sudo, is there any workaround for this?

Ultrahead avatar Apr 14 '25 14:04 Ultrahead

Note: neither Xorg nor Wayland is available on the platform. Only a custom version of SDL2

Ultrahead avatar Apr 14 '25 14:04 Ultrahead

Found a way with export $(dbus-launch) and now the problem is:

GameMode ERROR: D-Bus error: Could not call method 'RegisterGame' on 'com.feralinteractive.GameMode': Failed to execute program com.feralinteractive.GameMode: No such file or directory
gamemodeauto: D-Bus error: Could not call method 'RegisterGame' on 'com.feralinteractive.GameMode': Failed to execute program com.feralinteractive.GameMode: No such file or directory
nm: 'a.out': No such file
GameMode ERROR: D-Bus error: Could not call method 'UnregisterGame' on 'com.feralinteractive.GameMode': Failed to execute program com.feralinteractive.GameMode: No such file or directory
gamemodeauto: D-Bus error: Could not call method 'UnregisterGame' on 'com.feralinteractive.GameMode': Failed to execute program com.feralinteractive.GameMode: No such file or directory

com.feralinteractive.GameMode as in an Android system? (OpenWRT/Tina is a Linux distro)

Ultrahead avatar Apr 14 '25 17:04 Ultrahead

hummm, it seems that before using gamemoderun I need to execute gamemoded

Ultrahead avatar Apr 14 '25 17:04 Ultrahead