I propose two commit to upstream:
1. shutdown without asking if and only if the logout mode has switched to force. https://gitlab.gnome.org/GNOME/gnome-session/-/merge_requests/46 Rejected by the maintainer, since the implementation is too aggressive, and he thinks it is an workaround.
2. add 1s debounce for handling power key event https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/180 The 1s value was provided by ODM experiment, maintainer has not reviewed yet.
Both commit can eliminate the original issue, but @khfeng found that the intel-hid wrongly handle the power button event for very long time since bionic, and he'd like to wait Intel's input.
Currently, I have no idea which approach I should go for.
I propose two commit to upstream:
1. shutdown without asking if and only if the logout mode has switched to force. /gitlab. gnome.org/ GNOME/gnome- session/ -/merge_ requests/ 46
https:/
Rejected by the maintainer, since the implementation is too aggressive, and he thinks it is an workaround.
2. add 1s debounce for handling power key event /gitlab. gnome.org/ GNOME/gnome- settings- daemon/ -/merge_ requests/ 180
https:/
The 1s value was provided by ODM experiment, maintainer has not reviewed yet.
Both commit can eliminate the original issue, but @khfeng found that the intel-hid wrongly handle the power button event for very long time since bionic, and he'd like to wait Intel's input.
Currently, I have no idea which approach I should go for.