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

Controller Input in a game does not prevent the game window from being marked idle #9170

Closed
3 of 6 tasks
nakulsodhi opened this issue Jan 25, 2025 · 8 comments
Closed
3 of 6 tasks
Labels
bug Something isn't working

Comments

@nakulsodhi
Copy link

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Definitely a regression - something broke after update (requires bisect)

System Info and Hyprland Version

System/Version info Hyprland 0.46.2 built from branch v0.46.2-b at commit 0bd541f (version: bump to 0.46.2). Date: 2024-12-19 Tag: v0.46.2, commits: 0bd541f built against: aquamarine 0.5.1 hyprlang 0.6.0 hyprutils 0.3.3 hyprcursor 0.1.11 hyprgraphics 0.1.1

flags set:
debug

System Information:
System name: Linux
Node name: nixos
Release: 6.13.0
Version: #1-NixOS SMP PREEMPT_DYNAMIC Sun Jan 19 23:51:45 UTC 2025

GPU information:
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900 GRE/7900M] [1002:744c] (rev cc) (prog-if 00 [VGA controller])
12:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev cb) (prog-if 00 [VGA controller])

os-release: ANSI_COLOR="0;38;2;126;186;228"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="25.05.20250123.0aa4755"
CPE_NAME="cpe:/o:nixos:nixos:25.05"
DEFAULT_HOSTNAME=nixos
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
ID_LIKE=""
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 25.05 (Warbler)"
SUPPORT_URL="https://nixos.org/community.html"
VARIANT=""
VARIANT_ID=""
VENDOR_NAME=NixOS
VENDOR_URL="https://nixos.org/"
VERSION="25.05 (Warbler)"
VERSION_CODENAME=warbler
VERSION_ID="25.05"

plugins:

Description

Ever since updating Hyprland to 0.46.2 (2024-12-19), hypridle has been locking my screen while I am playing a game using a controller (only controller inputs, no mouse and keyboard
input). This has happened in multiple games (All of them steam however).
Temporarily been using a window rule to idleinhibit windows tagged "game". Tagging a window "game" is a keybind with tagwindow dispatcher.
At least one more person expressed having this issue in the Hyprland discord (hypridle-help).

How to reproduce

  1. Hyprland 0.46.2 and hypridle with the following rule:
listener {
    timeout = 300                                           # 5min
    on-timeout = loginctl lock-session            # lock screen when timeout has passed
}
  1. Play a game for 5 mins.

Attach not paste

  • I understand that all text files must be attached, and not pasted directly. If not respected, this issue will likely get closed as spam

Checklist of files to include below

  • Hyprland config - hyprctl systeminfo -c (always include)
  • Crash report (always include in case of crash)
  • Video (always include in case of a visual bug)
  • Logs (might contain useful info such as errors)

Additional info & File uploads

hyprland_config_dump.txt

@nakulsodhi nakulsodhi added the bug Something isn't working label Jan 25, 2025
@tannerellen
Copy link

I'm pretty sure this has always happened (or at least for me). That's why I added a window rule to prevent idle on any fullscreen window.

windowrulev2 = idleinhibit fullscreen, class:.*

@zakk4223
Copy link
Contributor

You can use this, which sends a variety of idle inhibit commands, and can do customs if you need to: https://github.com/foresto/joystickwake

@nonetrix
Copy link

nonetrix commented Feb 8, 2025

Same here but I've had similar experience with KDE and GNOME, seems like universal unfortunately issue which is baffling to me. Be great if Hyprland (and every other compositor more generally) was smart enough to not do that without some random script

@nakulsodhi
Copy link
Author

Update after updating to 0.47

This is not an issue for me anymore. Closing

@nonetrix
Copy link

nonetrix commented Feb 8, 2025

Well I'm on Git and it's still happening so I don't think it's fixed really

@zakk4223
Copy link
Contributor

zakk4223 commented Feb 8, 2025

This whole issue is weird/confusing because:

There was never a mechanism in hyprland to base idleness on gamepad input.
Therefore it couldn't have 'broke'
And it certainly wasn't 'fixed'.

The "random script" is the correct way to handle this

@nakulsodhi
Copy link
Author

My config never had any special idleinhibit rules. While playing video games in fullscreen or borderless windowed with a controller, hypridle wouldn't kick in unless i was AFK. Did not notice the controller causing any wake/idle behavior when not in game.

However, when I updated to 0.47, I decided to test it out again and did not experience the screen locking in the middle of me actively playing the game.

@nonetrix is this what you are experiencing too?

@zakk4223 could this behavior have something to do with Proton (whatever version of Experimental I was on)? Cuz otherwise I can't really think of any reason why I only experienced this with 0.46.2.

@metatron-the-chronicler

I experience this with Final Fantasy 7 Remake. Flydigi Vader 2 Pro controller connected via 2.5ghz dongle. Hyprland 0.47.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants