Repository navigation
Optional laptop clamshell support with safer suspend/resume handling #3702
haruki0420
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'd like to propose optional clamshell support for laptops using these dotfiles.
The intended behavior is:
I've implemented a local version using a Hyprland Lua module and a small Python helper, called through hypridle's
before_sleep_cmdandafter_sleep_cmd.The helper temporarily enables the internal display around suspend/resume. It waits until the same active external monitor set is detected in three consecutive one-second samples before disabling the internal display again, provided the lid is still closed. If external monitors do not stabilize within 30 seconds, it keeps the internal display enabled as a fallback. It does not unlock the session.
This is intended to reduce the risk of having no usable output while external displays are being recreated during resume. I haven't established whether the underlying issue is in Hyprland, the shell, or my hardware setup, so I'm proposing this as an optional feature rather than claiming an upstream bug fix.
Before submitting a PR, I would generalize the implementation:
Would this fit the project's scope? If so, would you prefer a separate Lua module and helper, or integration with an existing component?
All reactions