Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Bug]: Bottles doesn't inhibit screen sleep in gnome

Open AlawamiAZ opened this issue 2 months ago • 1 comments

Describe the bug

running games using bottles, it doesn't inhibit screen sleeping/blanking.

Other launchers like steam, heroic both inhibit screen sleeping/blanking of gnome, as observed using watch -n 0.1 gnome-session-inhibit -l.

To Reproduce

  1. On gnome DE
  2. run watch -n 0.1 gnome-session-inhibit -l to observe inhibitors
  3. run any game
  4. the screen goes to sleep when not using mouse/kb, so it sleeps when using controller.

Package

Flatpak from Flathub

Distribution

Fedora 40

Debugging Information

Official Package: true
Version: '51.11'
DE/WM: gnome
Display:
    X.org: true
    X.org (port): :0
    Wayland: true
Graphics:
    vendors:
        nvidia:
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
            nvngx_path: /usr/lib/x86_64-linux-gnu/GL/nvidia-550-67/extra/nvidia/wine
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.8.7-300.fc40.x86_64
Disk:
    Total: 8339816448
    Free: 8339636224
RAM:
    MemTotal: 15.5GiB
    MemAvailable: 9.3GiB
Bottles_envs: null

Troubleshooting Logs

No response

Additional context

No response

AlawamiAZ avatar Apr 26 '24 08:04 AlawamiAZ

this isnt really bottles' job. it's more of a failure of your distribution/the linux kernel for not inhibiting sleep from gamepad input. i had this problem with other software myself, so i installed this python program to make my gamepad inputs inhibit sleep:

https://github.com/foresto/joystickwake

if Bottles inhibited system sleep that would be bad, in my opinion, because then it would indiscriminately leave the screen on forever, even if youre away from your keyboard for an extended period of time. using something like joystickwake is better, imo

billbeans avatar May 05 '24 15:05 billbeans