Idle Inhibit toggle button does not reflect idle inhibition #11757
Replies: 1 comment
-
|
This is Hyprland DE, not Hyprland. Please report those issues on the forum, under the DE section.. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I found that the button seems to have the correct behavior within a "right menu session" (while it is still displayed), but not after discarding and re-opening the right menu.
On opening the right menu, the toggle will always be displayed as "inactive" (no inhibition, thus idle enabled)
Clicking it will kill
hypridlecorrectly, thus ihibiting, and show the inhibit button as active.Clicking it again will restart
hypridlethus un-hinibiting (idle enabled again) and show the inhibit button as inactive.If, however I toggle the button to inhibit (button active, hypridle killed) and leave the right menu, then open it again, its status will not have been saved and will show as button inactive (as if idle was enabled and the hypridle process was running). Clicking the button will attempt to inhibit an already inhibited (killed)
hypridle, thus do nothing.This is very confusing for the end user.
Looking at the code locally, I find that:
state/SystemState.qmlShould probably have a corresponding
getHypridleStatus()counterpartIt should probably be used in:
rightmenu/RightMenu.qmlinstead of setting it to false statically (if I understand correctly that this is how the menu is initialized when displayed)
Also, as a suggestion, maybe change the enabling command to
"pidof hypridle || hypridle", to prevent starting a second process, just in case?Beta Was this translation helpful? Give feedback.
All reactions