Comment 25 for bug 1878351

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote : Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

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.