this post was submitted on 18 Feb 2024
1 points (100.0% liked)

Linux Gaming

14954 readers
50 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 1 year ago
MODERATORS
 

Wondering if anyone has a workaround to treat controller inputs as something that will keep the computer awake. I like to have my power settings set to timeout the screen after a short period of inactivity due to having an OLED laptop screen (minimize burn in). Problem is if I'm playing a game with a controller, it doesn't detect that as being "active" and times the screen out. Right now I just go and change the power settings every time I want to play a game with a controller, but it'd be nice if there is a proper way to recognize controller inputs as well, inputs.

From some preliminary searching it seems the problem is they likely don't present as HID devices on Linux despite doing so on w1ndows. I couldn't find a solution to that; my instincts say that would need to be fixed at the driver level but its above my pay grade.

Thanks for any tips!

OS: Nobara (Fedora) 38

Controllers tested: Xbox series X|S (wireless and wired), Gulikit King Kong 2 Pro (wireless and wired), Logitech F310 (wired)

Drivers: XOne/Xpadneo installed through Nobara welcome screen

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 7 months ago* (last edited 7 months ago) (1 children)

You could try systemd-inhibit as a prefix to any game launch command, much in the same way as gamemoderun is used.

Sidebar: this could be considered an example of the XY Problem. You should consider editing the title since the problem you're really hoping to solve is your laptop going to sleep while you play a game.

[–] [email protected] 0 points 7 months ago

While the XY problem sort of applies to this post, I think labeling it as such might be a little too dismissive, since this is one of those rare cases where OP has correctly identified the root cause of the observed issue.

(While easier workarounds do exist, the ideal solution would indeed be fixing the hardware manager's input idle detection such that it no longer ignores game controllers.)

[–] [email protected] 0 points 7 months ago

Joystickwake or gamemode ought to help here.