2016-12-23 12:36:05

by Paul Menzel

[permalink] [raw]
Subject: Question regarding power button of Dell XPS13

Dear Linus, dear Len,


I heard that you both have a Dell XPS13. I got the “revision” 9360, and
installed Debian Stretch/testing on it with Linux 4.8.15 and Linux 4.9-rc8.

When pressing the power button the GNOME dialog, asking what to do
(restart, power off, …) doesn’t appear.

Neither `xev` nor `acpi_listen` show something, so I submitted ticket
#190871 [1], and Lv already looked at it.

Just to make sure, that it is really a Linux problem, does the power
button work for you?


Kind regards,

Paul


[1] https://bugzilla.kernel.org/show_bug.cgi?id=190871
[2]
http://changelogs.ubuntu.com/changelogs/pool/main/l/linux/linux_4.4.0-57.78/changelog


2016-12-25 22:26:58

by Linus Torvalds

[permalink] [raw]
Subject: Re: Question regarding power button of Dell XPS13

On Fri, Dec 23, 2016 at 4:36 AM, Paul Menzel <[email protected]> wrote:
>
> I heard that you both have a Dell XPS13. I got the “revision” 9360, and
> installed Debian Stretch/testing on it with Linux 4.8.15 and Linux 4.9-rc8.
>
> When pressing the power button the GNOME dialog, asking what to do (restart,
> power off, …) doesn’t appear.

Hmm. I don't recall ever seeing such a dialog. But I don't run Debian.

For me it works like all power buttons on my laptops have worked
lately - it suspends the machine.

Of course, so does just closing the lid.

The only "bug" I've seen in this area is the design bug of the XPS13
where there is no visible indication of the suspend state (ie the
traditional slowly pulsing LED showing that it's all nice and
suspended). But that seems to be intentional, if stupid. I think it's
the only real beef I have with the XPS13.

Linus

2016-12-26 15:10:22

by Ozgur Karatas

[permalink] [raw]
Subject: Re: Question regarding power button of Dell XPS13

26.12.2016, 00:27, "Linus Torvalds" <[email protected]>:
> On Fri, Dec 23, 2016 at 4:36 AM, Paul Menzel <[email protected]> wrote:
>>  I heard that you both have a Dell XPS13. I got the “revision” 9360, and
>>  installed Debian Stretch/testing on it with Linux 4.8.15 and Linux 4.9-rc8.
>>
>>  When pressing the power button the GNOME dialog, asking what to do (restart,
>>  power off, …) doesn’t appear.

Hello,

I don't think it's problem about to kernel. The problem related to GNOME .
I used last time and I modified the file "gsd-media-keys-manager.c" file and added the following lines to logind.conf file:

HandlePowerKey=poweroff
PowerKeyIgnoreInhibited=yes

This is a out of topic and XPS13 is not good, You also don't use a desktop,
Suggest Openbox :)

> Hmm. I don't recall ever seeing such a dialog. But I don't run Debian.
>
> For me it works like all power buttons on my laptops have worked
> lately - it suspends the machine.
>
> Of course, so does just closing the lid.
>
> The only "bug" I've seen in this area is the design bug of the XPS13
> where there is no visible indication of the suspend state (ie the
> traditional slowly pulsing LED showing that it's all nice and
> suspended). But that seems to be intentional, if stupid. I think it's
> the only real beef I have with the XPS13.
>
>                Linus

Regards,

Ozgur

2016-12-27 07:48:20

by Thorsten Leemhuis

[permalink] [raw]
Subject: Re: Question regarding power button of Dell XPS13

Lo! On 23.12.2016 13:36, Paul Menzel wrote:
>
> I heard that you both have a Dell XPS13. I got the “revision” 9360, and
> installed Debian Stretch/testing on it with Linux 4.8.15 and Linux 4.9-rc8.
>
> When pressing the power button the GNOME dialog, asking what to do
> (restart, power off, …) doesn’t appear.
>
> Neither `xev` nor `acpi_listen` show something, so I submitted ticket
> #190871 [1], and Lv already looked at it.
>
> Just to make sure, that it is really a Linux problem, does the power
> button work for you?

TWIMC: A power button press works fine for me on Fedora 25 Workstation
Edition (running 4.9 currently, but I think it worked with the stock
Fedora kernel, too) on my 9360. From a quick look in the bug report you
mentioned it looks a bit like you might need to enable INTEL_VBTN in
your kernel config. From the Kconfig:

This driver provides support for the Intel Virtual Button interface.
Some laptops require this driver for power button support.

HTH, Ciao, Thorsten

2016-12-28 07:08:04

by Zheng, Lv

[permalink] [raw]
Subject: RE: Question regarding power button of Dell XPS13

Hi, Paul

> From: Paul Menzel [mailto:[email protected]]
> Subject: Question regarding power button of Dell XPS13
>
> Dear Linus, dear Len,
>
>
> I heard that you both have a Dell XPS13. I got the “revision” 9360, and
> installed Debian Stretch/testing on it with Linux 4.8.15 and Linux 4.9-rc8.
>
> When pressing the power button the GNOME dialog, asking what to do
> (restart, power off, …) doesn’t appear.
>
> Neither `xev` nor `acpi_listen` show something, so I submitted ticket
> #190871 [1], and Lv already looked at it.
>
> Just to make sure, that it is really a Linux problem, does the power
> button work for you?

I'm not sure if there is no bug in drivers/acpi/button.c.
At least this driver never handles 0x02 sleep/power button notifications.
Just because there is no SCI routed to the drivers after a wakeup.

And we have quirks related to the freeze mode for 0x80 sleep/power button notifications.

I don't know if the above potential issues can cause real problems.

>
>
> Kind regards,
>
> Paul
>
>
> [1] https://bugzilla.kernel.org/show_bug.cgi?id=190871

Yes.
We are debugging it there.

Thanks
Lv

> [2]
> http://changelogs.ubuntu.com/changelogs/pool/main/l/linux/linux_4.4.0-57.78/changelog