Re: [PATCH RFC 0/2] Quickstart buttons driver and Toshiba Z830

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022-09-12 00:58, Barnabás Pőcze wrote:
> 
> 2022. szeptember 11., vasárnap 21:49 keltezéssel, Arvid Norlander írta:
> 
>> [...]
>>
>> 1. Summary of standard
>> ======================
>>
>> Here is a brief high level summary of the standard for PNP0C32. See
>> https://archive.org/details/microsoft-acpi-dirapplaunch for the full
>> standard.
>>
>> PNP0C32 devices are "Direct Application Launch" buttons. The idea is that
>> they should work while the laptop is in various sleep modes (or even off).
>> The Z830 does not support waking from any sleep mode using these buttons,
>> it only supports them while it is awake.
>>
> 
> Hi
> 
> I might be way off here, but could it not be that one has to enable/allow
> the device to be able to wake the system up? Or did you test it on windows
> as well and it did not work there either?

Hi,

It does indeed not work under Windows either. In addition, the Toshiba ACPI
implementation is incomplete: the "required" _PRW method is missing. And
only about half of what would be needed to handle the wakeup button
identification is actually present in the DSDT as far as I can tell.

Furthermore, given what Toshiba uses the buttons for, waking from sleep
with them make little sense. One button is to toggle the touchpad on/off,
one is to select external display mode (mirrored, extended, ...) and one
is to toggle between normal and low power "eco mode" (it basically dims the
screen and limits the CPU speed under Windows).

I believe Toshiba for whatever reason simply decided to piggy back on this
standard for some strange reason for their buttons. This is odd as
toshiba_acpi already implements Fn key handling (which this laptop also
has). Who knows why they couldn't just hook up the physical buttons as
special keys. Because that is the only thing that sets these apart
physically: They are buttons, not keys.

Best regards,
Arvid Norlander

> 
> 
> Regards,
> Barnabás Pőcze
> 
>> Each PNP0C32 device represents a single button. Their meaning is completely
>> vendor defined. On Windows you can either:
>> * Make them launch an application when pressed (defined in the registry)
>> * Or an application can subscribe to specific Window messages to get
>> notified when they are pressed (this is how they are used by the Toshiba
>> software).
>> [...]



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux