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

Feral GameMode doesn't uninhibit #1

Closed
Anninzy opened this issue Mar 27, 2024 · 8 comments
Closed

Feral GameMode doesn't uninhibit #1

Anninzy opened this issue Mar 27, 2024 · 8 comments

Comments

@Anninzy
Copy link

Anninzy commented Mar 27, 2024

Launching a game through Lutris with Feral GameMode enabled, then closing the game keeps the machine in an inhibited state. Launching the game again causes another inhibit from GameMode to show up.

Huge thanks for releasing this utility in the first place, but it'd be super nice to have a fix for this, thanks.

inhibit-bridge: 2024/03/26 18:16:41 Running.
inhibit-bridge: 2024/03/26 18:16:41 Heartbeat checker started.
inhibit-bridge: 2024/03/26 18:16:48 Inhibit: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.122", 3770646729)
inhibit-bridge: 2024/03/26 18:16:50 Inhibit: "net.lutris.Lutris" / "Playing a game" (":1.19", 2500237754)
inhibit-bridge: 2024/03/26 18:16:51 Heartbeck checker running.
inhibit-bridge: 2024/03/26 18:16:51 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.122", 3770646729)
inhibit-bridge: 2024/03/26 18:16:51 Heartbeat checking: "net.lutris.Lutris" / "Playing a game" (":1.19", 2500237754)
inhibit-bridge: 2024/03/26 18:17:01 UnInhibit: "net.lutris.Lutris" / "Playing a game" (":1.19", 2500237754)
inhibit-bridge: 2024/03/26 18:17:01 Heartbeck checker running.
inhibit-bridge: 2024/03/26 18:17:01 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.122", 3770646729)
inhibit-bridge: 2024/03/26 18:17:11 Heartbeck checker running.
inhibit-bridge: 2024/03/26 18:17:11 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.122", 3770646729)
...
inhibit-bridge: 2024/03/26 18:22:28 Inhibit: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.140", 184707422)
inhibit-bridge: 2024/03/26 18:22:30 Inhibit: "net.lutris.Lutris" / "Playing a game" (":1.19", 335814118)
inhibit-bridge: 2024/03/26 18:22:31 Heartbeck checker running.
inhibit-bridge: 2024/03/26 18:22:31 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.122", 3770646729)
inhibit-bridge: 2024/03/26 18:22:31 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.140", 184707422)
inhibit-bridge: 2024/03/26 18:22:31 Heartbeat checking: "net.lutris.Lutris" / "Playing a game" (":1.19", 335814118)
inhibit-bridge: 2024/03/26 18:22:34 UnInhibit: "net.lutris.Lutris" / "Playing a game" (":1.19", 335814118)
inhibit-bridge: 2024/03/26 18:22:41 Heartbeck checker running.
inhibit-bridge: 2024/03/26 18:22:41 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.122", 3770646729)
inhibit-bridge: 2024/03/26 18:22:41 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.140", 184707422)
inhibit-bridge: 2024/03/26 18:22:51 Heartbeck checker running.
inhibit-bridge: 2024/03/26 18:22:51 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.122", 3770646729)
inhibit-bridge: 2024/03/26 18:22:51 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.140", 184707422)
@bdwalton
Copy link
Owner

bdwalton commented Mar 27, 2024 via email

@Anninzy
Copy link
Author

Anninzy commented Mar 27, 2024

Here's the processes running when:

Lutris started [0 inhibit]

    PID TTY      STAT   TIME COMMAND
   1337 ?        Ss     0:00 /usr/lib/systemd/systemd --user
   1339 ?        S      0:00 (sd-pam)
   1356 tty1     Ssl+   0:01 sway
   1403 tty1     S+     0:00 swaybg -o * -i /home/owner/Pictures/Background.jpg -m fill
   1419 tty1     Sl+    0:00 waybar -b bar-0
   1423 ?        Sl     0:00 /home/owner/bin/inhibit-bridge
   1427 ?        S      0:00 swayidle -w timeout 30 swaylock -f -c 000000 timeout 30 swaymsg "output * power off" resume swaymsg "output * power on" before-sleep swaylock -f -c 000000
   1435 ?        S      0:00 /usr/bin/python3 /usr/libexec/sway-systemd/assign-cgroups.py
   1438 ?        S      0:00 /usr/bin/sh /usr/libexec/sway-systemd/session.sh
   1439 ?        Ss     0:00 /usr/bin/dbus-broker-launch --scope user
   1446 ?        S      0:00 swayidle -w timeout 300 swaylock -f timeout 360 swaymsg "output * power off" resume swaymsg "output * power on" timeout 60 pgrep -xu "$USER" swaylock >/dev/null && swaymsg "output * power off" resume pgrep -xu "$USER" swaylock >/dev/null && sway
   1449 ?        Sl     0:00 /usr/libexec/lxqt-policykit-agent
   1456 ?        S      0:00 dbus-broker --log 4 --controller 10 --machine-id 33e47cfebfbb4125b7ce941872cfe531 --max-bytes 100000000000000 --max-fds 25000000000000 --max-matches 5000000000
   1477 ?        Ssl    0:00 /usr/libexec/uresourced --user
   1484 ?        Ssl    0:00 /usr/libexec/gvfsd
   1492 ?        S      0:00 catatonit -P
   1508 ?        S      0:00 swaymsg -t subscribe ["shutdown"]
   1509 ?        S<sl   0:00 /usr/bin/pipewire
   1519 ?        S<sl   0:00 /usr/bin/wireplumber
   1520 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal
   1534 ?        Ssl    0:00 /usr/libexec/at-spi-bus-launcher
   1540 ?        Ssl    0:00 /usr/libexec/xdg-document-portal
   1550 ?        S      0:00 /usr/bin/dbus-broker-launch --config-file=/usr/share/defaults/at-spi2/accessibility.conf --scope user
   1552 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
   1553 ?        S      0:00 dbus-broker --log 4 --controller 9 --machine-id 33e47cfebfbb4125b7ce941872cfe531 --max-bytes 100000000000000 --max-fds 6400000 --max-matches 5000000000
   1574 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal-gtk
   1595 ?        Ssl    0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
   1606 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal-wlr
   1637 ?        S<sl   0:00 /usr/bin/pipewire-pulse
   1662 ?        Ss     0:00 /usr/bin/conmon --api-version 1 -c 084cda39a88e88d4fcad2133af271090b5625e0519833c4fa94fd00a84efc644 -u 084cda39a88e88d4fcad2133af271090b5625e0519833c4fa94fd00a84efc644 -r /usr/bin/crun -b /home/owner/.local/share/containers/storage/overlay-conta
   1705 tty1     Sl+    0:00 Xwayland :0 -rootless -core -terminate -listenfd 30 -listenfd 32 -displayfd 126 -wm 123
   1729 ?        Ssl    0:00 /usr/bin/python3 -sPE /usr/bin/blueman-applet
   1752 ?        Ssl    0:00 /usr/libexec/geoclue-2.0/demos/agent
   1754 ?        Ssl    0:00 /usr/bin/nm-applet
   1840 ?        Sl     0:00 /usr/bin/python3 -sPE /usr/bin/blueman-tray
   1841 ?        Ss     0:00 /usr/libexec/bluetooth/obexd
   1843 ?        Sl     0:00 podman --log-level error exec --detach-keys  --env=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus --env=DISPLAY=:0 --env=LANG=en_US.UTF-8 --env=SHELL=/bin/zsh --env=TERM=foot --env=TOOLBOX_PATH=/usr/bin/toolbox --env=USER=owner --env=WAYL
   1863 ?        Ss     0:00 /usr/bin/conmon --api-version 1 -c 084cda39a88e88d4fcad2133af271090b5625e0519833c4fa94fd00a84efc644 -u 393e3ad97ff5570ce0c8dfe7656dfde237a00a4319d32b755df52aaf443c0962 -r /usr/bin/crun -b /home/owner/.local/share/containers/storage/overlay-conta
   1910 ?        Sl     0:00 foot
   1911 pts/0    Ss     0:00 /bin/zsh
   1971 ?        S      0:00 /usr/bin/bwrap --args 43 lutris
   1978 ?        Ssl    0:00 /usr/libexec/flatpak-session-helper
   1983 ?        Ss     0:00 server --sh -n /run/user/1000/.flatpak-helper/pkcs11-flatpak-1978 --provider p11-kit-trust.so pkcs11:model=p11-kit-trust?write-protected=yes
   1986 ?        S      0:00 /usr/bin/bwrap --args 43 /usr/bin/xdg-dbus-proxy --args=46
   1987 ?        Sl     0:00 /usr/bin/xdg-dbus-proxy --args=46
   1990 ?        S      0:00 /usr/bin/bwrap --args 43 lutris
   1991 ?        Sl     0:01 python3 /app/bin/lutris
   2099 pts/0    R+     0:00 ps x

Game started [2 inhibits]

    PID TTY      STAT   TIME COMMAND
   1337 ?        Ss     0:00 /usr/lib/systemd/systemd --user
   1339 ?        S      0:00 (sd-pam)
   1356 tty1     Ssl+   0:01 sway
   1403 tty1     S+     0:00 swaybg -o * -i /home/owner/Pictures/Background.jpg -m fill
   1419 tty1     Sl+    0:00 waybar -b bar-0
   1423 ?        Sl     0:00 /home/owner/bin/inhibit-bridge
   1427 ?        S      0:00 swayidle -w timeout 30 swaylock -f -c 000000 timeout 30 swaymsg "output * power off" resume swaymsg "output * power on" before-sleep swaylock -f -c 000000
   1435 ?        S      0:00 /usr/bin/python3 /usr/libexec/sway-systemd/assign-cgroups.py
   1438 ?        S      0:00 /usr/bin/sh /usr/libexec/sway-systemd/session.sh
   1439 ?        Ss     0:00 /usr/bin/dbus-broker-launch --scope user
   1446 ?        S      0:00 swayidle -w timeout 300 swaylock -f timeout 360 swaymsg "output * power off" resume swaymsg "output * power on" timeout 60 pgrep -xu "$USER" swaylock >/dev/null && swaymsg "output * power off" resume pgrep -xu "$USER" swaylock >/dev/null && sway
   1449 ?        Sl     0:00 /usr/libexec/lxqt-policykit-agent
   1456 ?        S      0:00 dbus-broker --log 4 --controller 10 --machine-id 33e47cfebfbb4125b7ce941872cfe531 --max-bytes 100000000000000 --max-fds 25000000000000 --max-matches 5000000000
   1477 ?        Ssl    0:00 /usr/libexec/uresourced --user
   1484 ?        Ssl    0:00 /usr/libexec/gvfsd
   1492 ?        S      0:00 catatonit -P
   1508 ?        S      0:00 swaymsg -t subscribe ["shutdown"]
   1509 ?        S<sl   0:00 /usr/bin/pipewire
   1519 ?        S<sl   0:00 /usr/bin/wireplumber
   1520 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal
   1534 ?        Ssl    0:00 /usr/libexec/at-spi-bus-launcher
   1540 ?        Ssl    0:00 /usr/libexec/xdg-document-portal
   1550 ?        S      0:00 /usr/bin/dbus-broker-launch --config-file=/usr/share/defaults/at-spi2/accessibility.conf --scope user
   1552 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
   1553 ?        S      0:00 dbus-broker --log 4 --controller 9 --machine-id 33e47cfebfbb4125b7ce941872cfe531 --max-bytes 100000000000000 --max-fds 6400000 --max-matches 5000000000
   1574 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal-gtk
   1595 ?        Ssl    0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
   1606 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal-wlr
   1637 ?        S<Lsl   0:00 /usr/bin/pipewire-pulse
   1662 ?        Ss     0:00 /usr/bin/conmon --api-version 1 -c 084cda39a88e88d4fcad2133af271090b5625e0519833c4fa94fd00a84efc644 -u 084cda39a88e88d4fcad2133af271090b5625e0519833c4fa94fd00a84efc644 -r /usr/bin/crun -b /home/owner/.local/share/containers/storage/overlay-conta
   1705 tty1     Sl+    0:00 Xwayland :0 -rootless -core -terminate -listenfd 30 -listenfd 32 -displayfd 126 -wm 123
   1729 ?        Ssl    0:00 /usr/bin/python3 -sPE /usr/bin/blueman-applet
   1752 ?        Ssl    0:00 /usr/libexec/geoclue-2.0/demos/agent
   1754 ?        Ssl    0:00 /usr/bin/nm-applet
   1840 ?        Sl     0:00 /usr/bin/python3 -sPE /usr/bin/blueman-tray
   1841 ?        Ss     0:00 /usr/libexec/bluetooth/obexd
   1843 ?        Sl     0:00 podman --log-level error exec --detach-keys  --env=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus --env=DISPLAY=:0 --env=LANG=en_US.UTF-8 --env=SHELL=/bin/zsh --env=TERM=foot --env=TOOLBOX_PATH=/usr/bin/toolbox --env=USER=owner --env=WAYL
   1863 ?        Ss     0:00 /usr/bin/conmon --api-version 1 -c 084cda39a88e88d4fcad2133af271090b5625e0519833c4fa94fd00a84efc644 -u 393e3ad97ff5570ce0c8dfe7656dfde237a00a4319d32b755df52aaf443c0962 -r /usr/bin/crun -b /home/owner/.local/share/containers/storage/overlay-conta
   1910 ?        Sl     0:00 foot
   1911 pts/0    Ss     0:00 /bin/zsh
   1971 ?        S      0:00 /usr/bin/bwrap --args 43 lutris
   1978 ?        Ssl    0:00 /usr/libexec/flatpak-session-helper
   1983 ?        Ss     0:00 server --sh -n /run/user/1000/.flatpak-helper/pkcs11-flatpak-1978 --provider p11-kit-trust.so pkcs11:model=p11-kit-trust?write-protected=yes
   1986 ?        S      0:00 /usr/bin/bwrap --args 43 /usr/bin/xdg-dbus-proxy --args=46
   1987 ?        Sl     0:00 /usr/bin/xdg-dbus-proxy --args=46
   1990 ?        S      0:00 /usr/bin/bwrap --args 43 lutris
   1991 ?        Sl     0:01 python3 /app/bin/lutris
   2104 ?        S      0:00 lutris-wrapper: osu!
   2106 ?        S      0:01 ./osu.AppImage
   2107 ?        Ssl    0:00 /usr/bin/gamemoded
   2119 ?        SLl    0:04 osu!
   2256 pts/0    R+     0:00 ps x

Game closed [1 inhibit]

    PID TTY      STAT   TIME COMMAND
   1337 ?        Ss     0:00 /usr/lib/systemd/systemd --user
   1339 ?        S      0:00 (sd-pam)
   1356 tty1     Ssl+   0:02 sway
   1403 tty1     S+     0:00 swaybg -o * -i /home/owner/Pictures/Background.jpg -m fill
   1419 tty1     Sl+    0:00 waybar -b bar-0
   1423 ?        Sl     0:00 /home/owner/bin/inhibit-bridge
   1427 ?        S      0:00 swayidle -w timeout 30 swaylock -f -c 000000 timeout 30 swaymsg "output * power off" resume swaymsg "output * power on" before-sleep swaylock -f -c 000000
   1435 ?        S      0:00 /usr/bin/python3 /usr/libexec/sway-systemd/assign-cgroups.py
   1438 ?        S      0:00 /usr/bin/sh /usr/libexec/sway-systemd/session.sh
   1439 ?        Ss     0:00 /usr/bin/dbus-broker-launch --scope user
   1446 ?        S      0:00 swayidle -w timeout 300 swaylock -f timeout 360 swaymsg "output * power off" resume swaymsg "output * power on" timeout 60 pgrep -xu "$USER" swaylock >/dev/null && swaymsg "output * power off" resume pgrep -xu "$USER" swaylock >/dev/null && sway
   1449 ?        Sl     0:00 /usr/libexec/lxqt-policykit-agent
   1456 ?        S      0:00 dbus-broker --log 4 --controller 10 --machine-id 33e47cfebfbb4125b7ce941872cfe531 --max-bytes 100000000000000 --max-fds 25000000000000 --max-matches 5000000000
   1477 ?        Ssl    0:00 /usr/libexec/uresourced --user
   1484 ?        Ssl    0:00 /usr/libexec/gvfsd
   1492 ?        S      0:00 catatonit -P
   1508 ?        S      0:00 swaymsg -t subscribe ["shutdown"]
   1509 ?        S<sl   0:00 /usr/bin/pipewire
   1519 ?        S<sl   0:00 /usr/bin/wireplumber
   1520 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal
   1534 ?        Ssl    0:00 /usr/libexec/at-spi-bus-launcher
   1540 ?        Ssl    0:00 /usr/libexec/xdg-document-portal
   1550 ?        S      0:00 /usr/bin/dbus-broker-launch --config-file=/usr/share/defaults/at-spi2/accessibility.conf --scope user
   1552 ?        Ssl    0:00 /usr/libexec/xdg-permission-store
   1553 ?        S      0:00 dbus-broker --log 4 --controller 9 --machine-id 33e47cfebfbb4125b7ce941872cfe531 --max-bytes 100000000000000 --max-fds 6400000 --max-matches 5000000000
   1574 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal-gtk
   1595 ?        Ssl    0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
   1606 ?        Ssl    0:00 /usr/libexec/xdg-desktop-portal-wlr
   1637 ?        S<sl   0:00 /usr/bin/pipewire-pulse
   1662 ?        Ss     0:00 /usr/bin/conmon --api-version 1 -c 084cda39a88e88d4fcad2133af271090b5625e0519833c4fa94fd00a84efc644 -u 084cda39a88e88d4fcad2133af271090b5625e0519833c4fa94fd00a84efc644 -r /usr/bin/crun -b /home/owner/.local/share/containers/storage/overlay-conta
   1705 tty1     Sl+    0:00 Xwayland :0 -rootless -core -terminate -listenfd 30 -listenfd 32 -displayfd 126 -wm 123
   1729 ?        Ssl    0:00 /usr/bin/python3 -sPE /usr/bin/blueman-applet
   1752 ?        Ssl    0:00 /usr/libexec/geoclue-2.0/demos/agent
   1754 ?        Ssl    0:00 /usr/bin/nm-applet
   1840 ?        Sl     0:00 /usr/bin/python3 -sPE /usr/bin/blueman-tray
   1841 ?        Ss     0:00 /usr/libexec/bluetooth/obexd
   1843 ?        Sl     0:00 podman --log-level error exec --detach-keys  --env=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus --env=DISPLAY=:0 --env=LANG=en_US.UTF-8 --env=SHELL=/bin/zsh --env=TERM=foot --env=TOOLBOX_PATH=/usr/bin/toolbox --env=USER=owner --env=WAYL
   1863 ?        Ss     0:00 /usr/bin/conmon --api-version 1 -c 084cda39a88e88d4fcad2133af271090b5625e0519833c4fa94fd00a84efc644 -u 393e3ad97ff5570ce0c8dfe7656dfde237a00a4319d32b755df52aaf443c0962 -r /usr/bin/crun -b /home/owner/.local/share/containers/storage/overlay-conta
   1910 ?        Sl     0:00 foot
   1911 pts/0    Ss     0:00 /bin/zsh
   1971 ?        S      0:00 /usr/bin/bwrap --args 43 lutris
   1978 ?        Ssl    0:00 /usr/libexec/flatpak-session-helper
   1983 ?        Ss     0:00 server --sh -n /run/user/1000/.flatpak-helper/pkcs11-flatpak-1978 --provider p11-kit-trust.so pkcs11:model=p11-kit-trust?write-protected=yes
   1986 ?        S      0:00 /usr/bin/bwrap --args 43 /usr/bin/xdg-dbus-proxy --args=46
   1987 ?        Sl     0:00 /usr/bin/xdg-dbus-proxy --args=46
   1990 ?        S      0:00 /usr/bin/bwrap --args 43 lutris
   1991 ?        Sl     0:02 python3 /app/bin/lutris
   2107 ?        Ssl    0:00 /usr/bin/gamemoded
   2272 pts/0    R+     0:00 ps x

@bdwalton
Copy link
Owner

bdwalton commented Mar 28, 2024 via email

@Anninzy
Copy link
Author

Anninzy commented Mar 28, 2024

The inhibit-bridge log is as follows:

(Launched game)
inhibit-bridge: 2024/03/28 17:26:22 Running.
inhibit-bridge: 2024/03/28 17:26:22 Heartbeat checker started.
inhibit-bridge: 2024/03/28 17:26:32 Heartbeck checker running.
inhibit-bridge: 2024/03/28 17:26:42 Heartbeck checker running.
inhibit-bridge: 2024/03/28 17:26:52 Heartbeck checker running.
inhibit-bridge: 2024/03/28 17:27:02 Heartbeck checker running.
inhibit-bridge: 2024/03/28 17:27:08 Inhibit: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.65", 1270565913)
inhibit-bridge: 2024/03/28 17:27:10 Inhibit: "net.lutris.Lutris" / "Playing a game" (":1.21", 2180457611)
inhibit-bridge: 2024/03/28 17:27:12 Heartbeck checker running.
inhibit-bridge: 2024/03/28 17:27:12 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.65", 1270565913)
inhibit-bridge: 2024/03/28 17:27:12 Heartbeat checking: "net.lutris.Lutris" / "Playing a game" (":1.21", 2180457611)
...
(Closed game)
inhibit-bridge: 2024/03/28 17:40:32 Heartbeck checker running.
inhibit-bridge: 2024/03/28 17:40:32 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.65", 1270565913)
inhibit-bridge: 2024/03/28 17:40:32 Heartbeat checking: "net.lutris.Lutris" / "Playing a game" (":1.21", 2180457611)
inhibit-bridge: 2024/03/28 17:40:36 UnInhibit: "net.lutris.Lutris" / "Playing a game" (":1.21", 2180457611)
inhibit-bridge: 2024/03/28 17:40:42 Heartbeck checker running.
inhibit-bridge: 2024/03/28 17:40:42 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.65", 1270565913)
...
(Relaunched game)
inhibit-bridge: 2024/03/28 17:57:51 Inhibit: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.87", 2884534756)
inhibit-bridge: 2024/03/28 17:57:52 Heartbeck checker running.
inhibit-bridge: 2024/03/28 17:57:52 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.65", 1270565913)
inhibit-bridge: 2024/03/28 17:57:52 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.87", 2884534756)
inhibit-bridge: 2024/03/28 17:57:53 Inhibit: "net.lutris.Lutris" / "Playing a game" (":1.21", 2014859877)
inhibit-bridge: 2024/03/28 17:58:02 Heartbeck checker running.
inhibit-bridge: 2024/03/28 17:58:02 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.65", 1270565913)
inhibit-bridge: 2024/03/28 17:58:02 Heartbeat checking: "com.feralinteractive.GameMode" / "GameMode Activated" (":1.87", 2884534756)
inhibit-bridge: 2024/03/28 17:58:02 Heartbeat checking: "net.lutris.Lutris" / "Playing a game" (":1.21", 2014859877)

During both (Launched game) and (Closed game)
D-Spy shows:

(Activatable: Yes, PID: 1563)
Bus Address = unix:path=/run/flatpak/bus
Name = org.freedesktop.impl.portal.desktop.gtk
Owner = :1.21
Process ID = 1563
(Activatable: No, PID: 1563)
Bus Address = unix:path=/run/flatpak/bus
Name = :1.21
Owner = :1.21
Process ID = 1563
(Activatable: No, PID: 2182)
Bus Address = unix:path=/run/flatpak/bus
Name = :1.65
Owner = :1.65
Process ID = 2182

I searched for Lutris and this showed up:

(Activatable: No, PID: 2048)
Bus Address = unix:path=/run/flatpak/bus
Name = net.lutris.Lutris
Owner = :1.60
Process ID = 2048

and this showed up when I searched for GameMode:

(Activatable: Yes, PID: 2182)
Bus Address = unix:path=/run/flatpak/bus
Name = com.feralinteractive.GameMode
Owner = :1.64
Process ID = 2182

Searching for :1.60 and :1.64 shows:

(Activatable: No, PID: 2048)
Bus Address = unix:path=/run/flatpak/bus
Name = :1.60
Owner = :1.60
Process ID = 2048
(Activatable: No, PID: 2182)
Bus Address = unix:path=/run/flatpak/bus
Name = :1.64
Owner = :1.64
Process ID = 2182

Searching for gamemoded or GameModed doesn't return anything.


During (Relaunched game)
A new process was added:

(Activatable: No, PID: 2182)
Bus Address = unix:path=/run/flatpak/bus
Name = :1.87
Owner = :1.87
Process ID = 2182

A prompt from D-Spy was shown a couple times throughout this, not sure if it affects anything:

D-Bus Connection Failed
Timeout was reached

@notpeelz
Copy link

notpeelz commented Mar 28, 2024

It's a gamemode bug. Fixed in FeralInteractive/gamemode#466

The issue you're describing is because the original code didn't call sd_bus_close(). sd_bus_unref() isn't sufficient to destroy the bus connection, as it refuses to discard pending messages/events.

@bdwalton
Copy link
Owner

bdwalton commented Mar 28, 2024 via email

@Anninzy
Copy link
Author

Anninzy commented Mar 29, 2024

@notpeelz Oh, I see, thanks for the fix.

I'm currently using the Flatpak version of Lutris, how should I update GameMode?

@notpeelz
Copy link

Try asking the gamemode devs to create a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants