[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-16 Thread Sebastien Bacher
Right, the debouncer doesn't seem ideal. I'm not convinced either by upstream reply that forcing shutdown on another press is by design, imho we should try to convince them that it is wrong -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-16 Thread Kai-Chuan Hsieh
gnome-session did handle those two events, and it goes to prepare_shutdown which is current result. If the original implementation of https://bugzilla.gnome.org/show_bug.cgi?id=688076 is correct, then it is expected result, and we accept it. Unless the commit of

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-16 Thread Kai-Chuan Hsieh
if gnome-session handle those two events, then it goes to prepare_shutdown which is current result. If the original implementation of https://bugzilla.gnome.org/show_bug.cgi?id=688076 is correct, then it is expected result, and we accept it. Unless the commit of

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-16 Thread Kai-Heng Feng
A debounce delay just doesn't sound right. If a user press the power button twice and the kernel dutifully reports two events, why a debounce is required when there are _actual_ two events? If there's a race between gsd and gnome-session, proper ordering should be imposed, instead of adding a

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-16 Thread Kai-Chuan Hsieh
@Sebastien I doubt that kernel fix can really solve the problem. If a use press the power button twice very quickly, it perhaps to run into the same problem. I think we still have to debounce or adjust the original commit of https://bugzilla.gnome.org/show_bug.cgi?id=688076. Recently, a lot of

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-16 Thread Sebastien Bacher
@Kai, ideally the kernel fix would resolve the issue, unsure which userspace workqround is better -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1878351 Title: System shutdown directly

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-15 Thread Kai-Chuan Hsieh
** Changed in: oem-priority Status: In Progress => Incomplete -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1878351 Title: System shutdown directly by pressing power button and

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-15 Thread Kai-Chuan Hsieh
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

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-12 Thread Sebastien Bacher
** Changed in: gnome-session (Ubuntu) Importance: Undecided => Low ** Changed in: gnome-session (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-11 Thread Sebastien Bacher
Upstream (rightly) pointed out that the issue seems rather an hardware handling one, still the software could probably handle that better and we should review the patch but any plan to fix the doubled events problem? -- You received this bug notification because you are a member of Kernel

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-09 Thread Kai-Chuan Hsieh
** Changed in: oem-priority Status: Confirmed => In Progress -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1878351 Title: System shutdown directly by pressing power button and

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-09 Thread Kai-Chuan Hsieh
Open a upstream bug for this issue. https://gitlab.gnome.org/GNOME/gnome-session/-/issues/67 ** Bug watch added: gitlab.gnome.org/GNOME/gnome-session/-/issues #67 https://gitlab.gnome.org/GNOME/gnome-session/-/issues/67 -- You received this bug notification because you are a member of Kernel

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-09 Thread Ubuntu Foundations Team Bug Bot
The attachment "Patch which verified OK on the platform has 2 key event with single press" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-09 Thread Kai-Chuan Hsieh
The shutdown is caused by the commit of https://bugzilla.gnome.org/show_bug.cgi?id=688076. gnome-session-bin handle the first shutdown request, and change to QUERY_END_SESSION_PHASE, but the second shutdown request arrive before it open the endSessionDialog, and user not yet confirm to shutdown.

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-06-09 Thread Kai-Chuan Hsieh
** Also affects: gnome-session (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1878351 Title: System shutdown directly by pressing

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-05-27 Thread Kai-Chuan Hsieh
@Balint Please try the below command: 1. $ acpi_listen => press power button output: button/power PBTN 0080 It is for getting the power button string which is PBTN 2. $ sudo acpidbg -b "notify _SB.PBTN 0x80"; sudo acpidbg -b "notify _SB.PBTN 0x80" To simulate two consecutive

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-05-27 Thread Kai-Chuan Hsieh
@Balint Please try the below command: 1. $ acpi_listen => press power button output: button/power PBTN 0080 It is for getting the power button string which is PBTN 2. $ sudo acpidbg -b "notify _SB.PBTN 0x80"; sudo acpidbg -b "notify _SB.PBTN 0x80" To simulate to consecutive power

[Kernel-packages] [Bug 1878351] Re: System shutdown directly by pressing power button and releasing immediately on Dell Vostro 5301

2020-05-26 Thread Kai-Heng Feng
** Package changed: systemd (Ubuntu) => linux (Ubuntu) -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1878351 Title: System shutdown directly by pressing power button and releasing