All of lore.kernel.org
 help / color / mirror / Atom feed
* hp-wmi: info hotkey has no keycode or scancode
@ 2024-01-20 18:58 Dennis Nezic
  2024-01-20 20:52 ` Armin Wolf
  0 siblings, 1 reply; 19+ messages in thread
From: Dennis Nezic @ 2024-01-20 18:58 UTC (permalink / raw)
  To: platform-driver-x86

Guys, the "info" illuminated touch-key (hotkey?) on my laptop "doesn't
work", showkey doesn't report any keycode or scancode. I don't see any
wmi related error messages from dmesg. All the other illuminated
"hotkeys" work fine, although confusingly evtest and "libinput
debug-events" report that they're coming through the event interface
associated with "AT Translated Set 2 keyboard" instead of "HP WMI
hotkeys", but hey, as long as I receive them I'm okay :p.

hp-wmi.c does seem to reference it:
  { KE_KEY, 0x213b,  { KEY_INFO } },

How can I go about troubleshooting this? (I'm using kernel 6.6.8)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-20 18:58 hp-wmi: info hotkey has no keycode or scancode Dennis Nezic
@ 2024-01-20 20:52 ` Armin Wolf
  2024-01-20 21:39   ` Dennis Nezic
  0 siblings, 1 reply; 19+ messages in thread
From: Armin Wolf @ 2024-01-20 20:52 UTC (permalink / raw)
  To: Dennis Nezic, platform-driver-x86

Am 20.01.24 um 19:58 schrieb Dennis Nezic:

> Guys, the "info" illuminated touch-key (hotkey?) on my laptop "doesn't
> work", showkey doesn't report any keycode or scancode. I don't see any
> wmi related error messages from dmesg. All the other illuminated
> "hotkeys" work fine, although confusingly evtest and "libinput
> debug-events" report that they're coming through the event interface
> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
> hotkeys", but hey, as long as I receive them I'm okay :p.
>
> hp-wmi.c does seem to reference it:
>    { KE_KEY, 0x213b,  { KEY_INFO } },
>
> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
>
Hello,

it can be possible that you machine does not use hp-wmi to deliver keycodes
to the operating system, but instead emulates a standard keyboard controller.

Can you check with "kacpimon" that events concerning a PNP0C14 device are being
received?

Thanks,
Armin Wolf


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-20 20:52 ` Armin Wolf
@ 2024-01-20 21:39   ` Dennis Nezic
  2024-01-21 15:16     ` Armin Wolf
  0 siblings, 1 reply; 19+ messages in thread
From: Dennis Nezic @ 2024-01-20 21:39 UTC (permalink / raw)
  To: Armin Wolf; +Cc: platform-driver-x86

On 20 Jan 21:52, Armin Wolf wrote:
> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
> 
> > Guys, the "info" illuminated touch-key (hotkey?) on my laptop "doesn't
> > work", showkey doesn't report any keycode or scancode. I don't see any
> > wmi related error messages from dmesg. All the other illuminated
> > "hotkeys" work fine, although confusingly evtest and "libinput
> > debug-events" report that they're coming through the event interface
> > associated with "AT Translated Set 2 keyboard" instead of "HP WMI
> > hotkeys", but hey, as long as I receive them I'm okay :p.
> >
> > hp-wmi.c does seem to reference it:
> >    { KE_KEY, 0x213b,  { KEY_INFO } },
> >
> > How can I go about troubleshooting this? (I'm using kernel 6.6.8)
> 
> it can be possible that your machine does not use hp-wmi to deliver keycodes
> to the operating system, but instead emulates a standard keyboard controller.
> 
> Can you check with "kacpimon" that events concerning a PNP0C14 device are being
> received?

Very possible indeed. "kacpimon" doesn't show anything when I press that
touchkey, but it does when I press all the other touchkeys. (I do get
lots of accelerometer noise.)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-20 21:39   ` Dennis Nezic
@ 2024-01-21 15:16     ` Armin Wolf
  2024-01-22  7:05       ` Dennis Nezic
  0 siblings, 1 reply; 19+ messages in thread
From: Armin Wolf @ 2024-01-21 15:16 UTC (permalink / raw)
  To: Dennis Nezic; +Cc: platform-driver-x86

Am 20.01.24 um 22:39 schrieb Dennis Nezic:

> On 20 Jan 21:52, Armin Wolf wrote:
>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
>>
>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop "doesn't
>>> work", showkey doesn't report any keycode or scancode. I don't see any
>>> wmi related error messages from dmesg. All the other illuminated
>>> "hotkeys" work fine, although confusingly evtest and "libinput
>>> debug-events" report that they're coming through the event interface
>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
>>> hotkeys", but hey, as long as I receive them I'm okay :p.
>>>
>>> hp-wmi.c does seem to reference it:
>>>     { KE_KEY, 0x213b,  { KEY_INFO } },
>>>
>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
>> it can be possible that your machine does not use hp-wmi to deliver keycodes
>> to the operating system, but instead emulates a standard keyboard controller.
>>
>> Can you check with "kacpimon" that events concerning a PNP0C14 device are being
>> received?
> Very possible indeed. "kacpimon" doesn't show anything when I press that
> touchkey, but it does when I press all the other touchkeys. (I do get
> lots of accelerometer noise.)
>
Interesting, can you please share the output of:
- "kacpimon" while you where pressing the buttons
- "acpidump"

Thanks,
Armin Wolf


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-21 15:16     ` Armin Wolf
@ 2024-01-22  7:05       ` Dennis Nezic
  2024-01-22 10:44         ` Armin Wolf
  0 siblings, 1 reply; 19+ messages in thread
From: Dennis Nezic @ 2024-01-22  7:05 UTC (permalink / raw)
  To: Armin Wolf; +Cc: platform-driver-x86

On 21 Jan 16:16, Armin Wolf wrote:
> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
> 
> > On 20 Jan 21:52, Armin Wolf wrote:
> >> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
> >>
> >>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop "doesn't
> >>> work", showkey doesn't report any keycode or scancode. I don't see any
> >>> wmi related error messages from dmesg. All the other illuminated
> >>> "hotkeys" work fine, although confusingly evtest and "libinput
> >>> debug-events" report that they're coming through the event interface
> >>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
> >>> hotkeys", but hey, as long as I receive them I'm okay :p.
> >>>
> >>> hp-wmi.c does seem to reference it:
> >>>     { KE_KEY, 0x213b,  { KEY_INFO } },
> >>>
> >>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
> >> it can be possible that your machine does not use hp-wmi to deliver keycodes
> >> to the operating system, but instead emulates a standard keyboard controller.
> >>
> >> Can you check with "kacpimon" that events concerning a PNP0C14 device are being
> >> received?
> > Very possible indeed. "kacpimon" doesn't show anything when I press that
> > touchkey, but it does when I press all the other touchkeys. (I do get
> > lots of accelerometer noise.)
> >
> Interesting, can you please share the output of:
> - "kacpimon" while you where pressing the buttons
> - "acpidump"

Actually I was finally able to detect something via kacpimon, but it was
elusive, and it's scaring me now! It wouldn't immediately show on live
stdout (the way the other touch-hotkeys, and normal keys, do), and I
even had trouble seeing it when trying to redirect stdout to a file!
Ctrl-C'ing would prematurely truncate the output, sometimes not
capturing it, even the more graceful Escape-exit wouldn't capture it
unless I waited or padded it with mouse movements. Ie. there is some
very weird delay going on, and maybe repetition, or something.

For example, I swear I only touched that info key 5 times here, and then
AFTERWARDS pressed the 'A' key twice, and then Esc. grep'ing for
'Type: 1' I was able to catch:

Input Layer:  Type: 1  Code: 28  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 30  Value: 1
Input Layer:  Type: 1  Code: 30  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 30  Value: 1
Input Layer:  Type: 1  Code: 30  Value: 0
Input Layer:  Type: 1  Code: 1  Value: 1

A more weird example, again I *swear* I first only touched that info key
*5* times, and then moved the mouse for a few seconds between 2 'A' key
presses, and finishing with Escape, but although it showed the two 'A'
key events properly, it also showed *11* "code 325" and 11 "code 330"
value1 events, out of order!?

Input Layer:  Type: 1  Code: 28  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 30  Value: 1
Input Layer:  Type: 1  Code: 30  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 30  Value: 1
Input Layer:  Type: 1  Code: 30  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 1
Input Layer:  Type: 1  Code: 330  Value: 0
Input Layer:  Type: 1  Code: 325  Value: 0
Input Layer:  Type: 1  Code: 1  Value: 1

(Thank you for your guidance btw! Will an acpidump still be necessary?)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-22  7:05       ` Dennis Nezic
@ 2024-01-22 10:44         ` Armin Wolf
       [not found]           ` <Za8xL39m1X22f2Bb@panther>
  0 siblings, 1 reply; 19+ messages in thread
From: Armin Wolf @ 2024-01-22 10:44 UTC (permalink / raw)
  To: Dennis Nezic; +Cc: platform-driver-x86

Am 22.01.24 um 08:05 schrieb Dennis Nezic:

> On 21 Jan 16:16, Armin Wolf wrote:
>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
>>
>>> On 20 Jan 21:52, Armin Wolf wrote:
>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
>>>>
>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop "doesn't
>>>>> work", showkey doesn't report any keycode or scancode. I don't see any
>>>>> wmi related error messages from dmesg. All the other illuminated
>>>>> "hotkeys" work fine, although confusingly evtest and "libinput
>>>>> debug-events" report that they're coming through the event interface
>>>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
>>>>>
>>>>> hp-wmi.c does seem to reference it:
>>>>>      { KE_KEY, 0x213b,  { KEY_INFO } },
>>>>>
>>>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
>>>> it can be possible that your machine does not use hp-wmi to deliver keycodes
>>>> to the operating system, but instead emulates a standard keyboard controller.
>>>>
>>>> Can you check with "kacpimon" that events concerning a PNP0C14 device are being
>>>> received?
>>> Very possible indeed. "kacpimon" doesn't show anything when I press that
>>> touchkey, but it does when I press all the other touchkeys. (I do get
>>> lots of accelerometer noise.)
>>>
>> Interesting, can you please share the output of:
>> - "kacpimon" while you where pressing the buttons
>> - "acpidump"
> Actually I was finally able to detect something via kacpimon, but it was
> elusive, and it's scaring me now! It wouldn't immediately show on live
> stdout (the way the other touch-hotkeys, and normal keys, do), and I
> even had trouble seeing it when trying to redirect stdout to a file!
> Ctrl-C'ing would prematurely truncate the output, sometimes not
> capturing it, even the more graceful Escape-exit wouldn't capture it
> unless I waited or padded it with mouse movements. Ie. there is some
> very weird delay going on, and maybe repetition, or something.
>
> For example, I swear I only touched that info key 5 times here, and then
> AFTERWARDS pressed the 'A' key twice, and then Esc. grep'ing for
> 'Type: 1' I was able to catch:
>
> Input Layer:  Type: 1  Code: 28  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 30  Value: 1
> Input Layer:  Type: 1  Code: 30  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 30  Value: 1
> Input Layer:  Type: 1  Code: 30  Value: 0
> Input Layer:  Type: 1  Code: 1  Value: 1
>
> A more weird example, again I *swear* I first only touched that info key
> *5* times, and then moved the mouse for a few seconds between 2 'A' key
> presses, and finishing with Escape, but although it showed the two 'A'
> key events properly, it also showed *11* "code 325" and 11 "code 330"
> value1 events, out of order!?

Those events are touchscreen events, maybe your mouse is responsible for them.

>
> Input Layer:  Type: 1  Code: 28  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 30  Value: 1
> Input Layer:  Type: 1  Code: 30  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 30  Value: 1
> Input Layer:  Type: 1  Code: 30  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 1
> Input Layer:  Type: 1  Code: 330  Value: 0
> Input Layer:  Type: 1  Code: 325  Value: 0
> Input Layer:  Type: 1  Code: 1  Value: 1
>
> (Thank you for your guidance btw! Will an acpidump still be necessary?)

I have to apologize, the events send by ACPI WMI to kacpimon do not contain a "PNP0C14" string
or the name WMI at all.

Instead they look like this:

	netlink:  9DBB5994-A997- 000000d0 00000000

Can you try to use kacpimon again but without root privileges? This way only netlink events show up.
You might also stop acpid while you are using kacpimon.

If you still cannot receive any netlink events, then i might need to take a look at your ACPI tables
via acpidump.

Thanks,
Armin Wolf


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
       [not found]             ` <Za9DQdLg2d_CnrZG@panther>
@ 2024-01-23  8:58               ` Armin Wolf
  2024-01-23 14:22                 ` Armin Wolf
  0 siblings, 1 reply; 19+ messages in thread
From: Armin Wolf @ 2024-01-23  8:58 UTC (permalink / raw)
  To: Dennis Nezic; +Cc: platform-driver-x86

Am 23.01.24 um 05:40 schrieb Dennis Nezic:

> On 22 Jan 22:23, Dennis Nezic wrote:
>> On 22 Jan 11:44, Armin Wolf wrote:
>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
>>>
>>>> On 21 Jan 16:16, Armin Wolf wrote:
>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
>>>>>
>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
>>>>>>>
>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop "doesn't
>>>>>>>> work", showkey doesn't report any keycode or scancode. I don't see any
>>>>>>>> wmi related error messages from dmesg. All the other illuminated
>>>>>>>> "hotkeys" work fine, although confusingly evtest and "libinput
>>>>>>>> debug-events" report that they're coming through the event interface
>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
>>>>>>>>
>>>>>>>> hp-wmi.c does seem to reference it:
>>>>>>>>       { KE_KEY, 0x213b,  { KEY_INFO } },
>>>>>>>>
>>>>>>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
>>>>>>> it can be possible that your machine does not use hp-wmi to deliver keycodes
>>>>>>> to the operating system, but instead emulates a standard keyboard controller.
>>>>>>>
>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14 device are being
>>>>>>> received?
>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I press that
>>>>>> touchkey, but it does when I press all the other touchkeys. (I do get
>>>>>> lots of accelerometer noise.)
>>>>>>
>>>>> Interesting, can you please share the output of:
>>>>> - "kacpimon" while you where pressing the buttons
>>>>> - "acpidump"
>>>> ...
>>>> Input Layer:  Type: 1  Code: 325  Value: 1
>>>> Input Layer:  Type: 1  Code: 330  Value: 1
>>>> Input Layer:  Type: 1  Code: 330  Value: 0
>>>> Input Layer:  Type: 1  Code: 325  Value: 0
>>> Those events are touchscreen events, maybe your mouse is responsible for them.
>> Right, of course, woops, these must have been the touchpad press events,
>> as I was moving the mouse around :P
>>
>>> Instead they look like this:
>>>
>>> 	netlink:  9DBB5994-A997- 000000d0 00000000
>> I'm definitely not seeing anything like that, just "^Input Layer: Type"'s
>>
>>> Can you try to use kacpimon again but without root privileges? This way only netlink events show up.
>>> You might also stop acpid while you are using kacpimon.
>> 0 output from/with netlink, even though kacpimon said:
>>
>> Netlink ACPI Family ID: 24
>> Netlink ACPI Multicast Group ID: 5
>> netlink opened successfully
>>
>> Remember all my other fancy hotkeys "work", but they appear as regular
>> keypress events from an "AT Translated Set 2 keyboard".
>>
>>> If you still cannot receive any netlink events, then i might need to take a look at your ACPI tables
>>> via acpidump.
>> https://dennisn.mooo.com/stuff/dump.txt
>>
>>> Thanks,
>>> Armin Wolf
>> Thank you again sir!
> I'm not sure if this is helpful,  "dmesg | grep -i wmi" ...
>
> [    0.352634] wmi_bus wmi_bus-PNP0C14:00: [Firmware Info]: A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
> [    0.352634] wmi_bus wmi_bus-PNP0C14:00: [Firmware Info]: A1799AC5-9429-4529-927E-DFE13736EEBA has zero instances
> [    0.352634] wmi_bus wmi_bus-PNP0C14:00: [Firmware Info]: A1799ACA-9429-4529-927E-DFE13736EEBA has zero instances
> [    0.352634] wmi_bus wmi_bus-PNP0C14:01: [Firmware Info]: 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
> [    0.352634] wmi_bus wmi_bus-PNP0C14:01: [Firmware Info]: 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
> [    0.352634] wmi_bus wmi_bus-PNP0C14:01: [Firmware Info]: 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
> [    2.573231] input: HP WMI hotkeys as /devices/virtual/input/input14
>
> (Btw that "info" key does get illuminated when I touch/press it, even though no codes are seen.)

These warnings in dmesg are harmless, they are informing you that some WMI devices are unavailable.

I took a look at your ACPI tables and it seems that the WMI device used by hp-wmi is indeed unused.
What is the model name of your HP notebook?

Armin Wolf


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-23  8:58               ` Armin Wolf
@ 2024-01-23 14:22                 ` Armin Wolf
  2024-01-23 15:13                   ` Dennis Nezic
  0 siblings, 1 reply; 19+ messages in thread
From: Armin Wolf @ 2024-01-23 14:22 UTC (permalink / raw)
  To: Dennis Nezic; +Cc: platform-driver-x86

Am 23.01.24 um 09:58 schrieb Armin Wolf:

> Am 23.01.24 um 05:40 schrieb Dennis Nezic:
>
>> On 22 Jan 22:23, Dennis Nezic wrote:
>>> On 22 Jan 11:44, Armin Wolf wrote:
>>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
>>>>
>>>>> On 21 Jan 16:16, Armin Wolf wrote:
>>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
>>>>>>
>>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
>>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
>>>>>>>>
>>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop
>>>>>>>>> "doesn't
>>>>>>>>> work", showkey doesn't report any keycode or scancode. I don't
>>>>>>>>> see any
>>>>>>>>> wmi related error messages from dmesg. All the other illuminated
>>>>>>>>> "hotkeys" work fine, although confusingly evtest and "libinput
>>>>>>>>> debug-events" report that they're coming through the event
>>>>>>>>> interface
>>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
>>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
>>>>>>>>>
>>>>>>>>> hp-wmi.c does seem to reference it:
>>>>>>>>>       { KE_KEY, 0x213b,  { KEY_INFO } },
>>>>>>>>>
>>>>>>>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
>>>>>>>> it can be possible that your machine does not use hp-wmi to
>>>>>>>> deliver keycodes
>>>>>>>> to the operating system, but instead emulates a standard
>>>>>>>> keyboard controller.
>>>>>>>>
>>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14
>>>>>>>> device are being
>>>>>>>> received?
>>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I
>>>>>>> press that
>>>>>>> touchkey, but it does when I press all the other touchkeys. (I
>>>>>>> do get
>>>>>>> lots of accelerometer noise.)
>>>>>>>
>>>>>> Interesting, can you please share the output of:
>>>>>> - "kacpimon" while you where pressing the buttons
>>>>>> - "acpidump"
>>>>> ...
>>>>> Input Layer:  Type: 1  Code: 325  Value: 1
>>>>> Input Layer:  Type: 1  Code: 330  Value: 1
>>>>> Input Layer:  Type: 1  Code: 330  Value: 0
>>>>> Input Layer:  Type: 1  Code: 325  Value: 0
>>>> Those events are touchscreen events, maybe your mouse is
>>>> responsible for them.
>>> Right, of course, woops, these must have been the touchpad press
>>> events,
>>> as I was moving the mouse around :P
>>>
>>>> Instead they look like this:
>>>>
>>>>     netlink:  9DBB5994-A997- 000000d0 00000000
>>> I'm definitely not seeing anything like that, just "^Input Layer:
>>> Type"'s
>>>
>>>> Can you try to use kacpimon again but without root privileges? This
>>>> way only netlink events show up.
>>>> You might also stop acpid while you are using kacpimon.
>>> 0 output from/with netlink, even though kacpimon said:
>>>
>>> Netlink ACPI Family ID: 24
>>> Netlink ACPI Multicast Group ID: 5
>>> netlink opened successfully
>>>
>>> Remember all my other fancy hotkeys "work", but they appear as regular
>>> keypress events from an "AT Translated Set 2 keyboard".
>>>
>>>> If you still cannot receive any netlink events, then i might need
>>>> to take a look at your ACPI tables
>>>> via acpidump.
>>> https://dennisn.mooo.com/stuff/dump.txt
>>>
>>>> Thanks,
>>>> Armin Wolf
>>> Thank you again sir!
>> I'm not sure if this is helpful,  "dmesg | grep -i wmi" ...
>>
>> [    0.352634] wmi_bus wmi_bus-PNP0C14:00: [Firmware Info]:
>> A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
>> [    0.352634] wmi_bus wmi_bus-PNP0C14:00: [Firmware Info]: A1799AC5-9429-4529-927E-DFE13736EEBA has zero instances
>> [    0.352634] wmi_bus wmi_bus-PNP0C14:00: [Firmware Info]: A1799ACA-9429-4529-927E-DFE13736EEBA has zero instances
>> [    0.352634] wmi_bus wmi_bus-PNP0C14:01: [Firmware Info]:
>> 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
>> [    0.352634] wmi_bus wmi_bus-PNP0C14:01: [Firmware Info]:
>> 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
>> [    0.352634] wmi_bus wmi_bus-PNP0C14:01: [Firmware Info]:
>> 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
>> [    2.573231] input: HP WMI hotkeys as /devices/virtual/input/input14
>>
>> (Btw that "info" key does get illuminated when I touch/press it, even
>> though no codes are seen.)
>
> These warnings in dmesg are harmless, they are informing you that some
> WMI devices are unavailable.
>
> I took a look at your ACPI tables and it seems that the WMI device
> used by hp-wmi is indeed unused.
> What is the model name of your HP notebook?
>
> Armin Wolf
>
>
Also i just noted that you notebook might contain a PNP0C32 quickstart button device.
Can you tell me the output of "cat /sys/bus/acpi/devices/PNP0C32\:00/status"?

Armin Wolf


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-23 14:22                 ` Armin Wolf
@ 2024-01-23 15:13                   ` Dennis Nezic
  2024-01-23 15:34                     ` Hans de Goede
  0 siblings, 1 reply; 19+ messages in thread
From: Dennis Nezic @ 2024-01-23 15:13 UTC (permalink / raw)
  To: Armin Wolf; +Cc: platform-driver-x86

On 23 Jan 15:22, Armin Wolf wrote:
> Am 23.01.24 um 09:58 schrieb Armin Wolf:
> 
> > Am 23.01.24 um 05:40 schrieb Dennis Nezic:
> >
> >> On 22 Jan 22:23, Dennis Nezic wrote:
> >>> On 22 Jan 11:44, Armin Wolf wrote:
> >>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
> >>>>
> >>>>> On 21 Jan 16:16, Armin Wolf wrote:
> >>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
> >>>>>>
> >>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
> >>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
> >>>>>>>>
> >>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop
> >>>>>>>>> "doesn't
> >>>>>>>>> work", showkey doesn't report any keycode or scancode. I don't
> >>>>>>>>> see any
> >>>>>>>>> wmi related error messages from dmesg. All the other illuminated
> >>>>>>>>> "hotkeys" work fine, although confusingly evtest and "libinput
> >>>>>>>>> debug-events" report that they're coming through the event
> >>>>>>>>> interface
> >>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
> >>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
> >>>>>>>>>
> >>>>>>>>> hp-wmi.c does seem to reference it:
> >>>>>>>>>
> >>>>>>>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
> >>>>>>>> it can be possible that your machine does not use hp-wmi to
> >>>>>>>> deliver keycodes
> >>>>>>>> to the operating system, but instead emulates a standard
> >>>>>>>> keyboard controller.
> >>>>>>>>
> >>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14
> >>>>>>>> device are being
> >>>>>>>> received?
> >>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I
> >>>>>>> press that
> >>>>>>> touchkey, but it does when I press all the other touchkeys. (I
> >>>>>>> do get
> >>>>>>> lots of accelerometer noise.)
> >>>>>>>
> >>>>>> Interesting, can you please share the output of:
> >>>>>> - "kacpimon" while you where pressing the buttons
> >>>>>> - "acpidump"
> >>>>> ...
> >>>> Those events are touchscreen events, maybe your mouse is
> >>>> responsible for them.
> >>> Right, of course, woops, these must have been the touchpad press
> >>> events,
> >>> as I was moving the mouse around :P
> >>>
> >>>> Instead they look like this:
> >>>>
> >>> I'm definitely not seeing anything like that, just "^Input Layer:
> >>> Type"'s
> >>>
> >>>> Can you try to use kacpimon again but without root privileges? This
> >>>> way only netlink events show up.
> >>>> You might also stop acpid while you are using kacpimon.
> >>> 0 output from/with netlink, even though kacpimon said:
> >>>
> >>> Netlink ACPI Family ID: 24
> >>> Netlink ACPI Multicast Group ID: 5
> >>> netlink opened successfully
> >>>
> >>> Remember all my other fancy hotkeys "work", but they appear as regular
> >>> keypress events from an "AT Translated Set 2 keyboard".
> >>>
> >>>> If you still cannot receive any netlink events, then i might need
> >>>> to take a look at your ACPI tables
> >>>> via acpidump.
> >>> https://dennisn.mooo.com/stuff/dump.txt
> >>>
> >>>> Thanks,
> >>>> Armin Wolf
> >>> Thank you again sir!
> >>
> >> A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
> >> 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
> >> 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
> >> 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
> >>
> >> (Btw that "info" key does get illuminated when I touch/press it, even
> >> though no codes are seen.)
> >
> > These warnings in dmesg are harmless, they are informing you that some
> > WMI devices are unavailable.
> >
> > I took a look at your ACPI tables and it seems that the WMI device
> > used by hp-wmi is indeed unused.
> > What is the model name of your HP notebook?

HP Compaq 8710p

> Also i just noted that your notebook might contain a PNP0C32 quickstart button device.
> Can you tell me the output of "cat /sys/bus/acpi/devices/PNP0C32\:00/status"?

15

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-23 15:13                   ` Dennis Nezic
@ 2024-01-23 15:34                     ` Hans de Goede
  2024-01-23 19:58                       ` Armin Wolf
  0 siblings, 1 reply; 19+ messages in thread
From: Hans de Goede @ 2024-01-23 15:34 UTC (permalink / raw)
  To: Dennis Nezic, Armin Wolf; +Cc: platform-driver-x86

Hi,

On 1/23/24 16:13, Dennis Nezic wrote:
> On 23 Jan 15:22, Armin Wolf wrote:
>> Am 23.01.24 um 09:58 schrieb Armin Wolf:
>>
>>> Am 23.01.24 um 05:40 schrieb Dennis Nezic:
>>>
>>>> On 22 Jan 22:23, Dennis Nezic wrote:
>>>>> On 22 Jan 11:44, Armin Wolf wrote:
>>>>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
>>>>>>
>>>>>>> On 21 Jan 16:16, Armin Wolf wrote:
>>>>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
>>>>>>>>
>>>>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
>>>>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
>>>>>>>>>>
>>>>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop
>>>>>>>>>>> "doesn't
>>>>>>>>>>> work", showkey doesn't report any keycode or scancode. I don't
>>>>>>>>>>> see any
>>>>>>>>>>> wmi related error messages from dmesg. All the other illuminated
>>>>>>>>>>> "hotkeys" work fine, although confusingly evtest and "libinput
>>>>>>>>>>> debug-events" report that they're coming through the event
>>>>>>>>>>> interface
>>>>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
>>>>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
>>>>>>>>>>>
>>>>>>>>>>> hp-wmi.c does seem to reference it:
>>>>>>>>>>>
>>>>>>>>>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
>>>>>>>>>> it can be possible that your machine does not use hp-wmi to
>>>>>>>>>> deliver keycodes
>>>>>>>>>> to the operating system, but instead emulates a standard
>>>>>>>>>> keyboard controller.
>>>>>>>>>>
>>>>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14
>>>>>>>>>> device are being
>>>>>>>>>> received?
>>>>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I
>>>>>>>>> press that
>>>>>>>>> touchkey, but it does when I press all the other touchkeys. (I
>>>>>>>>> do get
>>>>>>>>> lots of accelerometer noise.)
>>>>>>>>>
>>>>>>>> Interesting, can you please share the output of:
>>>>>>>> - "kacpimon" while you where pressing the buttons
>>>>>>>> - "acpidump"
>>>>>>> ...
>>>>>> Those events are touchscreen events, maybe your mouse is
>>>>>> responsible for them.
>>>>> Right, of course, woops, these must have been the touchpad press
>>>>> events,
>>>>> as I was moving the mouse around :P
>>>>>
>>>>>> Instead they look like this:
>>>>>>
>>>>> I'm definitely not seeing anything like that, just "^Input Layer:
>>>>> Type"'s
>>>>>
>>>>>> Can you try to use kacpimon again but without root privileges? This
>>>>>> way only netlink events show up.
>>>>>> You might also stop acpid while you are using kacpimon.
>>>>> 0 output from/with netlink, even though kacpimon said:
>>>>>
>>>>> Netlink ACPI Family ID: 24
>>>>> Netlink ACPI Multicast Group ID: 5
>>>>> netlink opened successfully
>>>>>
>>>>> Remember all my other fancy hotkeys "work", but they appear as regular
>>>>> keypress events from an "AT Translated Set 2 keyboard".
>>>>>
>>>>>> If you still cannot receive any netlink events, then i might need
>>>>>> to take a look at your ACPI tables
>>>>>> via acpidump.
>>>>> https://dennisn.mooo.com/stuff/dump.txt
>>>>>
>>>>>> Thanks,
>>>>>> Armin Wolf
>>>>> Thank you again sir!
>>>>
>>>> A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
>>>> 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
>>>> 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>> 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>>
>>>> (Btw that "info" key does get illuminated when I touch/press it, even
>>>> though no codes are seen.)
>>>
>>> These warnings in dmesg are harmless, they are informing you that some
>>> WMI devices are unavailable.
>>>
>>> I took a look at your ACPI tables and it seems that the WMI device
>>> used by hp-wmi is indeed unused.
>>> What is the model name of your HP notebook?
> 
> HP Compaq 8710p
> 
>> Also i just noted that your notebook might contain a PNP0C32 quickstart button device.
>> Can you tell me the output of "cat /sys/bus/acpi/devices/PNP0C32\:00/status"?
> 
> 15

Interesting.

There have been several attempts to add support for this
in the past. The last one being:

https://lore.kernel.org/platform-driver-x86/20220922182424.934340-1-lkml@vorpal.se/

Note that in this case this also required some vender
specific poking in toshiba_acpi to get things to work.

I see that the HP Compaq 8710p is about the same vintage
as the Toshiba Z830 on which the last attempt to do
something about the quick start buttons was done.

So this might very well explain the missing button issue.

Regards,

Hans



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-23 15:34                     ` Hans de Goede
@ 2024-01-23 19:58                       ` Armin Wolf
  2024-01-25 20:53                         ` Armin Wolf
                                           ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Armin Wolf @ 2024-01-23 19:58 UTC (permalink / raw)
  To: Hans de Goede, Dennis Nezic; +Cc: platform-driver-x86

Am 23.01.24 um 16:34 schrieb Hans de Goede:

> Hi,
>
> On 1/23/24 16:13, Dennis Nezic wrote:
>> On 23 Jan 15:22, Armin Wolf wrote:
>>> Am 23.01.24 um 09:58 schrieb Armin Wolf:
>>>
>>>> Am 23.01.24 um 05:40 schrieb Dennis Nezic:
>>>>
>>>>> On 22 Jan 22:23, Dennis Nezic wrote:
>>>>>> On 22 Jan 11:44, Armin Wolf wrote:
>>>>>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
>>>>>>>
>>>>>>>> On 21 Jan 16:16, Armin Wolf wrote:
>>>>>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
>>>>>>>>>
>>>>>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
>>>>>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
>>>>>>>>>>>
>>>>>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop
>>>>>>>>>>>> "doesn't
>>>>>>>>>>>> work", showkey doesn't report any keycode or scancode. I don't
>>>>>>>>>>>> see any
>>>>>>>>>>>> wmi related error messages from dmesg. All the other illuminated
>>>>>>>>>>>> "hotkeys" work fine, although confusingly evtest and "libinput
>>>>>>>>>>>> debug-events" report that they're coming through the event
>>>>>>>>>>>> interface
>>>>>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
>>>>>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
>>>>>>>>>>>>
>>>>>>>>>>>> hp-wmi.c does seem to reference it:
>>>>>>>>>>>>
>>>>>>>>>>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
>>>>>>>>>>> it can be possible that your machine does not use hp-wmi to
>>>>>>>>>>> deliver keycodes
>>>>>>>>>>> to the operating system, but instead emulates a standard
>>>>>>>>>>> keyboard controller.
>>>>>>>>>>>
>>>>>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14
>>>>>>>>>>> device are being
>>>>>>>>>>> received?
>>>>>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I
>>>>>>>>>> press that
>>>>>>>>>> touchkey, but it does when I press all the other touchkeys. (I
>>>>>>>>>> do get
>>>>>>>>>> lots of accelerometer noise.)
>>>>>>>>>>
>>>>>>>>> Interesting, can you please share the output of:
>>>>>>>>> - "kacpimon" while you where pressing the buttons
>>>>>>>>> - "acpidump"
>>>>>>>> ...
>>>>>>> Those events are touchscreen events, maybe your mouse is
>>>>>>> responsible for them.
>>>>>> Right, of course, woops, these must have been the touchpad press
>>>>>> events,
>>>>>> as I was moving the mouse around :P
>>>>>>
>>>>>>> Instead they look like this:
>>>>>>>
>>>>>> I'm definitely not seeing anything like that, just "^Input Layer:
>>>>>> Type"'s
>>>>>>
>>>>>>> Can you try to use kacpimon again but without root privileges? This
>>>>>>> way only netlink events show up.
>>>>>>> You might also stop acpid while you are using kacpimon.
>>>>>> 0 output from/with netlink, even though kacpimon said:
>>>>>>
>>>>>> Netlink ACPI Family ID: 24
>>>>>> Netlink ACPI Multicast Group ID: 5
>>>>>> netlink opened successfully
>>>>>>
>>>>>> Remember all my other fancy hotkeys "work", but they appear as regular
>>>>>> keypress events from an "AT Translated Set 2 keyboard".
>>>>>>
>>>>>>> If you still cannot receive any netlink events, then i might need
>>>>>>> to take a look at your ACPI tables
>>>>>>> via acpidump.
>>>>>> https://dennisn.mooo.com/stuff/dump.txt
>>>>>>
>>>>>>> Thanks,
>>>>>>> Armin Wolf
>>>>>> Thank you again sir!
>>>>> A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
>>>>> 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
>>>>> 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>>> 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>>>
>>>>> (Btw that "info" key does get illuminated when I touch/press it, even
>>>>> though no codes are seen.)
>>>> These warnings in dmesg are harmless, they are informing you that some
>>>> WMI devices are unavailable.
>>>>
>>>> I took a look at your ACPI tables and it seems that the WMI device
>>>> used by hp-wmi is indeed unused.
>>>> What is the model name of your HP notebook?
>> HP Compaq 8710p
>>
>>> Also i just noted that your notebook might contain a PNP0C32 quickstart button device.
>>> Can you tell me the output of "cat /sys/bus/acpi/devices/PNP0C32\:00/status"?
>> 15
> Interesting.
>
> There have been several attempts to add support for this
> in the past. The last one being:
>
> https://lore.kernel.org/platform-driver-x86/20220922182424.934340-1-lkml@vorpal.se/
>
> Note that in this case this also required some vender
> specific poking in toshiba_acpi to get things to work.
>
> I see that the HP Compaq 8710p is about the same vintage
> as the Toshiba Z830 on which the last attempt to do
> something about the quick start buttons was done.
>
> So this might very well explain the missing button issue.
>
> Regards,
>
> Hans
>
I can try to upstream the necessary changes. But i cannot test the changes concerning the toshiba_acpi driver.
Would it be ok if i omit those changes?

Dennis, can you check that your device runs the latest BIOS? And if this is not the case, could you do a BIOS
update and send me an updated acpidump?

The reason for this is that currently, the button device receives only system wake events, but no button press
events during runtime. Maybe this is a BIOS bug, although this could also be intentional (fancy power button).

Armin Wolf


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-23 19:58                       ` Armin Wolf
@ 2024-01-25 20:53                         ` Armin Wolf
  2024-01-29 13:00                           ` Hans de Goede
  2024-01-29 12:57                         ` Hans de Goede
                                           ` (2 subsequent siblings)
  3 siblings, 1 reply; 19+ messages in thread
From: Armin Wolf @ 2024-01-25 20:53 UTC (permalink / raw)
  To: Hans de Goede, Dennis Nezic
  Cc: platform-driver-x86, rafael, lenb, linux-acpi@vger.kernel.org

Am 23.01.24 um 20:58 schrieb Armin Wolf:

> Am 23.01.24 um 16:34 schrieb Hans de Goede:
>
>> Hi,
>>
>> On 1/23/24 16:13, Dennis Nezic wrote:
>>> On 23 Jan 15:22, Armin Wolf wrote:
>>>> Am 23.01.24 um 09:58 schrieb Armin Wolf:
>>>>
>>>>> Am 23.01.24 um 05:40 schrieb Dennis Nezic:
>>>>>
>>>>>> On 22 Jan 22:23, Dennis Nezic wrote:
>>>>>>> On 22 Jan 11:44, Armin Wolf wrote:
>>>>>>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
>>>>>>>>
>>>>>>>>> On 21 Jan 16:16, Armin Wolf wrote:
>>>>>>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
>>>>>>>>>>
>>>>>>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
>>>>>>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
>>>>>>>>>>>>
>>>>>>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop
>>>>>>>>>>>>> "doesn't
>>>>>>>>>>>>> work", showkey doesn't report any keycode or scancode. I
>>>>>>>>>>>>> don't
>>>>>>>>>>>>> see any
>>>>>>>>>>>>> wmi related error messages from dmesg. All the other
>>>>>>>>>>>>> illuminated
>>>>>>>>>>>>> "hotkeys" work fine, although confusingly evtest and
>>>>>>>>>>>>> "libinput
>>>>>>>>>>>>> debug-events" report that they're coming through the event
>>>>>>>>>>>>> interface
>>>>>>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of
>>>>>>>>>>>>> "HP WMI
>>>>>>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
>>>>>>>>>>>>>
>>>>>>>>>>>>> hp-wmi.c does seem to reference it:
>>>>>>>>>>>>>
>>>>>>>>>>>>> How can I go about troubleshooting this? (I'm using kernel
>>>>>>>>>>>>> 6.6.8)
>>>>>>>>>>>> it can be possible that your machine does not use hp-wmi to
>>>>>>>>>>>> deliver keycodes
>>>>>>>>>>>> to the operating system, but instead emulates a standard
>>>>>>>>>>>> keyboard controller.
>>>>>>>>>>>>
>>>>>>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14
>>>>>>>>>>>> device are being
>>>>>>>>>>>> received?
>>>>>>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I
>>>>>>>>>>> press that
>>>>>>>>>>> touchkey, but it does when I press all the other touchkeys. (I
>>>>>>>>>>> do get
>>>>>>>>>>> lots of accelerometer noise.)
>>>>>>>>>>>
>>>>>>>>>> Interesting, can you please share the output of:
>>>>>>>>>> - "kacpimon" while you where pressing the buttons
>>>>>>>>>> - "acpidump"
>>>>>>>>> ...
>>>>>>>> Those events are touchscreen events, maybe your mouse is
>>>>>>>> responsible for them.
>>>>>>> Right, of course, woops, these must have been the touchpad press
>>>>>>> events,
>>>>>>> as I was moving the mouse around :P
>>>>>>>
>>>>>>>> Instead they look like this:
>>>>>>>>
>>>>>>> I'm definitely not seeing anything like that, just "^Input Layer:
>>>>>>> Type"'s
>>>>>>>
>>>>>>>> Can you try to use kacpimon again but without root privileges?
>>>>>>>> This
>>>>>>>> way only netlink events show up.
>>>>>>>> You might also stop acpid while you are using kacpimon.
>>>>>>> 0 output from/with netlink, even though kacpimon said:
>>>>>>>
>>>>>>> Netlink ACPI Family ID: 24
>>>>>>> Netlink ACPI Multicast Group ID: 5
>>>>>>> netlink opened successfully
>>>>>>>
>>>>>>> Remember all my other fancy hotkeys "work", but they appear as
>>>>>>> regular
>>>>>>> keypress events from an "AT Translated Set 2 keyboard".
>>>>>>>
>>>>>>>> If you still cannot receive any netlink events, then i might need
>>>>>>>> to take a look at your ACPI tables
>>>>>>>> via acpidump.
>>>>>>> https://dennisn.mooo.com/stuff/dump.txt
>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Armin Wolf
>>>>>>> Thank you again sir!
>>>>>> A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
>>>>>> 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
>>>>>> 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>>>> 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>>>>
>>>>>> (Btw that "info" key does get illuminated when I touch/press it,
>>>>>> even
>>>>>> though no codes are seen.)
>>>>> These warnings in dmesg are harmless, they are informing you that
>>>>> some
>>>>> WMI devices are unavailable.
>>>>>
>>>>> I took a look at your ACPI tables and it seems that the WMI device
>>>>> used by hp-wmi is indeed unused.
>>>>> What is the model name of your HP notebook?
>>> HP Compaq 8710p
>>>
>>>> Also i just noted that your notebook might contain a PNP0C32
>>>> quickstart button device.
>>>> Can you tell me the output of "cat
>>>> /sys/bus/acpi/devices/PNP0C32\:00/status"?
>>> 15
>> Interesting.
>>
>> There have been several attempts to add support for this
>> in the past. The last one being:
>>
>> https://lore.kernel.org/platform-driver-x86/20220922182424.934340-1-lkml@vorpal.se/
>>
>>
>> Note that in this case this also required some vender
>> specific poking in toshiba_acpi to get things to work.
>>
>> I see that the HP Compaq 8710p is about the same vintage
>> as the Toshiba Z830 on which the last attempt to do
>> something about the quick start buttons was done.
>>
>> So this might very well explain the missing button issue.
>>
>> Regards,
>>
>> Hans
>>
> I can try to upstream the necessary changes. But i cannot test the
> changes concerning the toshiba_acpi driver.
> Would it be ok if i omit those changes?
>
> Dennis, can you check that your device runs the latest BIOS? And if
> this is not the case, could you do a BIOS
> update and send me an updated acpidump?
>
> The reason for this is that currently, the button device receives only
> system wake events, but no button press
> events during runtime. Maybe this is a BIOS bug, although this could
> also be intentional (fancy power button).
>
> Armin Wolf
>
Hi,

while modifying the quickstart button driver to use the standard pm wake infrastructure, i have run into a
little problem: how to properly hook up the platform device with the ACPI device wakeup infrastructure?

Is this possible when using a platform driver, or do i need to use a ACPI driver?

Thanks,
Armin Wolf


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-23 19:58                       ` Armin Wolf
  2024-01-25 20:53                         ` Armin Wolf
@ 2024-01-29 12:57                         ` Hans de Goede
  2024-03-26 16:47                           ` Dennis Nezic
  2024-01-30 18:18                         ` Dennis Nezic
  2024-01-30 20:20                         ` Dennis Nezic
  3 siblings, 1 reply; 19+ messages in thread
From: Hans de Goede @ 2024-01-29 12:57 UTC (permalink / raw)
  To: Armin Wolf, Dennis Nezic; +Cc: platform-driver-x86

Hi Armin,

On 1/23/24 20:58, Armin Wolf wrote:
> Am 23.01.24 um 16:34 schrieb Hans de Goede:
> 
>> Hi,
>>
>> On 1/23/24 16:13, Dennis Nezic wrote:
>>> On 23 Jan 15:22, Armin Wolf wrote:
>>>> Am 23.01.24 um 09:58 schrieb Armin Wolf:
>>>>
>>>>> Am 23.01.24 um 05:40 schrieb Dennis Nezic:
>>>>>
>>>>>> On 22 Jan 22:23, Dennis Nezic wrote:
>>>>>>> On 22 Jan 11:44, Armin Wolf wrote:
>>>>>>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
>>>>>>>>
>>>>>>>>> On 21 Jan 16:16, Armin Wolf wrote:
>>>>>>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
>>>>>>>>>>
>>>>>>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
>>>>>>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
>>>>>>>>>>>>
>>>>>>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop
>>>>>>>>>>>>> "doesn't
>>>>>>>>>>>>> work", showkey doesn't report any keycode or scancode. I don't
>>>>>>>>>>>>> see any
>>>>>>>>>>>>> wmi related error messages from dmesg. All the other illuminated
>>>>>>>>>>>>> "hotkeys" work fine, although confusingly evtest and "libinput
>>>>>>>>>>>>> debug-events" report that they're coming through the event
>>>>>>>>>>>>> interface
>>>>>>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
>>>>>>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
>>>>>>>>>>>>>
>>>>>>>>>>>>> hp-wmi.c does seem to reference it:
>>>>>>>>>>>>>
>>>>>>>>>>>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
>>>>>>>>>>>> it can be possible that your machine does not use hp-wmi to
>>>>>>>>>>>> deliver keycodes
>>>>>>>>>>>> to the operating system, but instead emulates a standard
>>>>>>>>>>>> keyboard controller.
>>>>>>>>>>>>
>>>>>>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14
>>>>>>>>>>>> device are being
>>>>>>>>>>>> received?
>>>>>>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I
>>>>>>>>>>> press that
>>>>>>>>>>> touchkey, but it does when I press all the other touchkeys. (I
>>>>>>>>>>> do get
>>>>>>>>>>> lots of accelerometer noise.)
>>>>>>>>>>>
>>>>>>>>>> Interesting, can you please share the output of:
>>>>>>>>>> - "kacpimon" while you where pressing the buttons
>>>>>>>>>> - "acpidump"
>>>>>>>>> ...
>>>>>>>> Those events are touchscreen events, maybe your mouse is
>>>>>>>> responsible for them.
>>>>>>> Right, of course, woops, these must have been the touchpad press
>>>>>>> events,
>>>>>>> as I was moving the mouse around :P
>>>>>>>
>>>>>>>> Instead they look like this:
>>>>>>>>
>>>>>>> I'm definitely not seeing anything like that, just "^Input Layer:
>>>>>>> Type"'s
>>>>>>>
>>>>>>>> Can you try to use kacpimon again but without root privileges? This
>>>>>>>> way only netlink events show up.
>>>>>>>> You might also stop acpid while you are using kacpimon.
>>>>>>> 0 output from/with netlink, even though kacpimon said:
>>>>>>>
>>>>>>> Netlink ACPI Family ID: 24
>>>>>>> Netlink ACPI Multicast Group ID: 5
>>>>>>> netlink opened successfully
>>>>>>>
>>>>>>> Remember all my other fancy hotkeys "work", but they appear as regular
>>>>>>> keypress events from an "AT Translated Set 2 keyboard".
>>>>>>>
>>>>>>>> If you still cannot receive any netlink events, then i might need
>>>>>>>> to take a look at your ACPI tables
>>>>>>>> via acpidump.
>>>>>>> https://dennisn.mooo.com/stuff/dump.txt
>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Armin Wolf
>>>>>>> Thank you again sir!
>>>>>> A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
>>>>>> 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
>>>>>> 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>>>> 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>>>>
>>>>>> (Btw that "info" key does get illuminated when I touch/press it, even
>>>>>> though no codes are seen.)
>>>>> These warnings in dmesg are harmless, they are informing you that some
>>>>> WMI devices are unavailable.
>>>>>
>>>>> I took a look at your ACPI tables and it seems that the WMI device
>>>>> used by hp-wmi is indeed unused.
>>>>> What is the model name of your HP notebook?
>>> HP Compaq 8710p
>>>
>>>> Also i just noted that your notebook might contain a PNP0C32 quickstart button device.
>>>> Can you tell me the output of "cat /sys/bus/acpi/devices/PNP0C32\:00/status"?
>>> 15
>> Interesting.
>>
>> There have been several attempts to add support for this
>> in the past. The last one being:
>>
>> https://lore.kernel.org/platform-driver-x86/20220922182424.934340-1-lkml@vorpal.se/
>>
>> Note that in this case this also required some vender
>> specific poking in toshiba_acpi to get things to work.
>>
>> I see that the HP Compaq 8710p is about the same vintage
>> as the Toshiba Z830 on which the last attempt to do
>> something about the quick start buttons was done.
>>
>> So this might very well explain the missing button issue.
>>
>> Regards,
>>
>> Hans
>>
> I can try to upstream the necessary changes.

If you can work on this that would be great.

> But i cannot test the changes concerning the toshiba_acpi driver.

I think that just compile testing them is fine.

> Would it be ok if i omit those changes?

I have a slight preference for keeping the Toshiba changes.

As discussed below these "quick start" buttons
normally are only intended to wake up the laptop
and then immediately on wakeup start a specific app
tied to the button (IIRC). But at least on the Toshiba
the toshiba_acpi driver's special "poke" of the firmware
makes the button also send events normally, so that it
can actually be used as a normal button.

IMHO the Toshiba code is helpful in documenting the need
for such a special code (maybe extend it with a comment?).

With all that said if you don't want to submit
the Toshiba part compile-tested only, then I understand
and you can omit it.

> Dennis, can you check that your device runs the latest BIOS? And if this is not the case, could you do a BIOS
> update and send me an updated acpidump?
> 
> The reason for this is that currently, the button device receives only system wake events, but no button press
> events during runtime. Maybe this is a BIOS bug, although this could also be intentional (fancy power button).

See above IIRC what was discussed last time this is
an intentional (mis)feature of these buttons. Chances
are there might be some workaround for this for HP too,
but that will likely be tricky to find.

Regards,

Hans



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-25 20:53                         ` Armin Wolf
@ 2024-01-29 13:00                           ` Hans de Goede
  0 siblings, 0 replies; 19+ messages in thread
From: Hans de Goede @ 2024-01-29 13:00 UTC (permalink / raw)
  To: Armin Wolf, Dennis Nezic
  Cc: platform-driver-x86, rafael, lenb, linux-acpi@vger.kernel.org

Hi,

On 1/25/24 21:53, Armin Wolf wrote:
> Am 23.01.24 um 20:58 schrieb Armin Wolf:
> 
>> Am 23.01.24 um 16:34 schrieb Hans de Goede:
>>
>>> Hi,
>>>
>>> On 1/23/24 16:13, Dennis Nezic wrote:
>>>> On 23 Jan 15:22, Armin Wolf wrote:
>>>>> Am 23.01.24 um 09:58 schrieb Armin Wolf:
>>>>>
>>>>>> Am 23.01.24 um 05:40 schrieb Dennis Nezic:
>>>>>>
>>>>>>> On 22 Jan 22:23, Dennis Nezic wrote:
>>>>>>>> On 22 Jan 11:44, Armin Wolf wrote:
>>>>>>>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
>>>>>>>>>
>>>>>>>>>> On 21 Jan 16:16, Armin Wolf wrote:
>>>>>>>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
>>>>>>>>>>>
>>>>>>>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
>>>>>>>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop
>>>>>>>>>>>>>> "doesn't
>>>>>>>>>>>>>> work", showkey doesn't report any keycode or scancode. I
>>>>>>>>>>>>>> don't
>>>>>>>>>>>>>> see any
>>>>>>>>>>>>>> wmi related error messages from dmesg. All the other
>>>>>>>>>>>>>> illuminated
>>>>>>>>>>>>>> "hotkeys" work fine, although confusingly evtest and
>>>>>>>>>>>>>> "libinput
>>>>>>>>>>>>>> debug-events" report that they're coming through the event
>>>>>>>>>>>>>> interface
>>>>>>>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of
>>>>>>>>>>>>>> "HP WMI
>>>>>>>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> hp-wmi.c does seem to reference it:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> How can I go about troubleshooting this? (I'm using kernel
>>>>>>>>>>>>>> 6.6.8)
>>>>>>>>>>>>> it can be possible that your machine does not use hp-wmi to
>>>>>>>>>>>>> deliver keycodes
>>>>>>>>>>>>> to the operating system, but instead emulates a standard
>>>>>>>>>>>>> keyboard controller.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14
>>>>>>>>>>>>> device are being
>>>>>>>>>>>>> received?
>>>>>>>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I
>>>>>>>>>>>> press that
>>>>>>>>>>>> touchkey, but it does when I press all the other touchkeys. (I
>>>>>>>>>>>> do get
>>>>>>>>>>>> lots of accelerometer noise.)
>>>>>>>>>>>>
>>>>>>>>>>> Interesting, can you please share the output of:
>>>>>>>>>>> - "kacpimon" while you where pressing the buttons
>>>>>>>>>>> - "acpidump"
>>>>>>>>>> ...
>>>>>>>>> Those events are touchscreen events, maybe your mouse is
>>>>>>>>> responsible for them.
>>>>>>>> Right, of course, woops, these must have been the touchpad press
>>>>>>>> events,
>>>>>>>> as I was moving the mouse around :P
>>>>>>>>
>>>>>>>>> Instead they look like this:
>>>>>>>>>
>>>>>>>> I'm definitely not seeing anything like that, just "^Input Layer:
>>>>>>>> Type"'s
>>>>>>>>
>>>>>>>>> Can you try to use kacpimon again but without root privileges?
>>>>>>>>> This
>>>>>>>>> way only netlink events show up.
>>>>>>>>> You might also stop acpid while you are using kacpimon.
>>>>>>>> 0 output from/with netlink, even though kacpimon said:
>>>>>>>>
>>>>>>>> Netlink ACPI Family ID: 24
>>>>>>>> Netlink ACPI Multicast Group ID: 5
>>>>>>>> netlink opened successfully
>>>>>>>>
>>>>>>>> Remember all my other fancy hotkeys "work", but they appear as
>>>>>>>> regular
>>>>>>>> keypress events from an "AT Translated Set 2 keyboard".
>>>>>>>>
>>>>>>>>> If you still cannot receive any netlink events, then i might need
>>>>>>>>> to take a look at your ACPI tables
>>>>>>>>> via acpidump.
>>>>>>>> https://dennisn.mooo.com/stuff/dump.txt
>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Armin Wolf
>>>>>>>> Thank you again sir!
>>>>>>> A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
>>>>>>> 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
>>>>>>> 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>>>>> 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
>>>>>>>
>>>>>>> (Btw that "info" key does get illuminated when I touch/press it,
>>>>>>> even
>>>>>>> though no codes are seen.)
>>>>>> These warnings in dmesg are harmless, they are informing you that
>>>>>> some
>>>>>> WMI devices are unavailable.
>>>>>>
>>>>>> I took a look at your ACPI tables and it seems that the WMI device
>>>>>> used by hp-wmi is indeed unused.
>>>>>> What is the model name of your HP notebook?
>>>> HP Compaq 8710p
>>>>
>>>>> Also i just noted that your notebook might contain a PNP0C32
>>>>> quickstart button device.
>>>>> Can you tell me the output of "cat
>>>>> /sys/bus/acpi/devices/PNP0C32\:00/status"?
>>>> 15
>>> Interesting.
>>>
>>> There have been several attempts to add support for this
>>> in the past. The last one being:
>>>
>>> https://lore.kernel.org/platform-driver-x86/20220922182424.934340-1-lkml@vorpal.se/
>>>
>>>
>>> Note that in this case this also required some vender
>>> specific poking in toshiba_acpi to get things to work.
>>>
>>> I see that the HP Compaq 8710p is about the same vintage
>>> as the Toshiba Z830 on which the last attempt to do
>>> something about the quick start buttons was done.
>>>
>>> So this might very well explain the missing button issue.
>>>
>>> Regards,
>>>
>>> Hans
>>>
>> I can try to upstream the necessary changes. But i cannot test the
>> changes concerning the toshiba_acpi driver.
>> Would it be ok if i omit those changes?
>>
>> Dennis, can you check that your device runs the latest BIOS? And if
>> this is not the case, could you do a BIOS
>> update and send me an updated acpidump?
>>
>> The reason for this is that currently, the button device receives only
>> system wake events, but no button press
>> events during runtime. Maybe this is a BIOS bug, although this could
>> also be intentional (fancy power button).
>>
>> Armin Wolf
>>
> Hi,
> 
> while modifying the quickstart button driver to use the standard pm wake infrastructure, i have run into a
> little problem: how to properly hook up the platform device with the ACPI device wakeup infrastructure?
> 
> Is this possible when using a platform driver, or do i need to use a ACPI driver?

I'm not sure what exactly you are looking for but I think the powerbutton
handling in: drivers/platform/x86/intel/hid.c (search for wakeup) may help ?

If that does not help can you point me to the lines of code in the old version
of the code which you are trying to adjust ?

Regards,

Hans






> 
> Thanks,
> Armin Wolf
> 


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-23 19:58                       ` Armin Wolf
  2024-01-25 20:53                         ` Armin Wolf
  2024-01-29 12:57                         ` Hans de Goede
@ 2024-01-30 18:18                         ` Dennis Nezic
  2024-01-31  4:06                           ` Dennis Nezic
  2024-01-30 20:20                         ` Dennis Nezic
  3 siblings, 1 reply; 19+ messages in thread
From: Dennis Nezic @ 2024-01-30 18:18 UTC (permalink / raw)
  To: Armin Wolf; +Cc: Hans de Goede, platform-driver-x86

On 23 Jan 20:58, Armin Wolf wrote:
> Am 23.01.24 um 16:34 schrieb Hans de Goede:
> 
> > Hi,
> >
> > On 1/23/24 16:13, Dennis Nezic wrote:
> >> On 23 Jan 15:22, Armin Wolf wrote:
> >>> Am 23.01.24 um 09:58 schrieb Armin Wolf:
> >>>
> >>>> Am 23.01.24 um 05:40 schrieb Dennis Nezic:
> >>>>
> >>>>> On 22 Jan 22:23, Dennis Nezic wrote:
> >>>>>> On 22 Jan 11:44, Armin Wolf wrote:
> >>>>>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
> >>>>>>>
> >>>>>>>> On 21 Jan 16:16, Armin Wolf wrote:
> >>>>>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
> >>>>>>>>>
> >>>>>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
> >>>>>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
> >>>>>>>>>>>
> >>>>>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop
> >>>>>>>>>>>> "doesn't
> >>>>>>>>>>>> work", showkey doesn't report any keycode or scancode. I don't
> >>>>>>>>>>>> see any
> >>>>>>>>>>>> wmi related error messages from dmesg. All the other illuminated
> >>>>>>>>>>>> "hotkeys" work fine, although confusingly evtest and "libinput
> >>>>>>>>>>>> debug-events" report that they're coming through the event
> >>>>>>>>>>>> interface
> >>>>>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
> >>>>>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
> >>>>>>>>>>>>
> >>>>>>>>>>>> hp-wmi.c does seem to reference it:
> >>>>>>>>>>>>
> >>>>>>>>>>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
> >>>>>>>>>>> it can be possible that your machine does not use hp-wmi to
> >>>>>>>>>>> deliver keycodes
> >>>>>>>>>>> to the operating system, but instead emulates a standard
> >>>>>>>>>>> keyboard controller.
> >>>>>>>>>>>
> >>>>>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14
> >>>>>>>>>>> device are being
> >>>>>>>>>>> received?
> >>>>>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I
> >>>>>>>>>> press that
> >>>>>>>>>> touchkey, but it does when I press all the other touchkeys. (I
> >>>>>>>>>> do get
> >>>>>>>>>> lots of accelerometer noise.)
> >>>>>>>>>>
> >>>>>>>>> Interesting, can you please share the output of:
> >>>>>>>>> - "kacpimon" while you where pressing the buttons
> >>>>>>>>> - "acpidump"
> >>>>>>>> ...
> >>>>>>> Those events are touchscreen events, maybe your mouse is
> >>>>>>> responsible for them.
> >>>>>> Right, of course, woops, these must have been the touchpad press
> >>>>>> events,
> >>>>>> as I was moving the mouse around :P
> >>>>>>
> >>>>>>> Instead they look like this:
> >>>>>>>
> >>>>>> I'm definitely not seeing anything like that, just "^Input Layer:
> >>>>>> Type"'s
> >>>>>>
> >>>>>>> Can you try to use kacpimon again but without root privileges? This
> >>>>>>> way only netlink events show up.
> >>>>>>> You might also stop acpid while you are using kacpimon.
> >>>>>> 0 output from/with netlink, even though kacpimon said:
> >>>>>>
> >>>>>> Netlink ACPI Family ID: 24
> >>>>>> Netlink ACPI Multicast Group ID: 5
> >>>>>> netlink opened successfully
> >>>>>>
> >>>>>> Remember all my other fancy hotkeys "work", but they appear as regular
> >>>>>> keypress events from an "AT Translated Set 2 keyboard".
> >>>>>>
> >>>>>>> If you still cannot receive any netlink events, then i might need
> >>>>>>> to take a look at your ACPI tables
> >>>>>>> via acpidump.
> >>>>>> https://dennisn.mooo.com/stuff/dump.txt
> >>>>>>
> >>>>>>> Thanks,
> >>>>>>> Armin Wolf
> >>>>>> Thank you again sir!
> >>>>> A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
> >>>>> 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
> >>>>> 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
> >>>>> 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
> >>>>>
> >>>>> (Btw that "info" key does get illuminated when I touch/press it, even
> >>>>> though no codes are seen.)
> >>>> These warnings in dmesg are harmless, they are informing you that some
> >>>> WMI devices are unavailable.
> >>>>
> >>>> I took a look at your ACPI tables and it seems that the WMI device
> >>>> used by hp-wmi is indeed unused.
> >>>> What is the model name of your HP notebook?
> >> HP Compaq 8710p
> >>
> >>> Also i just noted that your notebook might contain a PNP0C32 quickstart button device.
> >>> Can you tell me the output of "cat /sys/bus/acpi/devices/PNP0C32\:00/status"?
> >> 15
> > Interesting.
> >
> > There have been several attempts to add support for this
> > in the past. The last one being:
> >
> > https://lore.kernel.org/platform-driver-x86/20220922182424.934340-1-lkml@vorpal.se/
> >
> > Note that in this case this also required some vender
> > specific poking in toshiba_acpi to get things to work.
> >
> > I see that the HP Compaq 8710p is about the same vintage
> > as the Toshiba Z830 on which the last attempt to do
> > something about the quick start buttons was done.
> >
> > So this might very well explain the missing button issue.
> >
> > Regards,
> >
> > Hans
> >
> I can try to upstream the necessary changes. But i cannot test the changes concerning the toshiba_acpi driver.
> Would it be ok if i omit those changes?
> 
> Dennis, can you check that your device runs the latest BIOS? And if this is not the case, could you do a BIOS
> update and send me an updated acpidump?
> 
> The reason for this is that currently, the button device receives only system wake events, but no button press
> events during runtime. Maybe this is a BIOS bug, although this could also be intentional (fancy power button).

I was /finally/ able to update my BIOS slightly, only with the latest
freedos image available, one version up ... there seems to be another
newer (2011) windows-only one that I'm not able to use.

No change.

Why do all the other "quick start" buttons work - I see their key press
events, albeit not through hp-wmi? 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-23 19:58                       ` Armin Wolf
                                           ` (2 preceding siblings ...)
  2024-01-30 18:18                         ` Dennis Nezic
@ 2024-01-30 20:20                         ` Dennis Nezic
  3 siblings, 0 replies; 19+ messages in thread
From: Dennis Nezic @ 2024-01-30 20:20 UTC (permalink / raw)
  To: Armin Wolf; +Cc: Hans de Goede, platform-driver-x86

On 23 Jan 20:58, Armin Wolf wrote:
> Am 23.01.24 um 16:34 schrieb Hans de Goede:
> 
> > Hi,
> >
> > On 1/23/24 16:13, Dennis Nezic wrote:
> >> On 23 Jan 15:22, Armin Wolf wrote:
> >>> Am 23.01.24 um 09:58 schrieb Armin Wolf:
> >>>
> >>>> Am 23.01.24 um 05:40 schrieb Dennis Nezic:
> >>>>
> >>>>> On 22 Jan 22:23, Dennis Nezic wrote:
> >>>>>> On 22 Jan 11:44, Armin Wolf wrote:
> >>>>>>> Am 22.01.24 um 08:05 schrieb Dennis Nezic:
> >>>>>>>
> >>>>>>>> On 21 Jan 16:16, Armin Wolf wrote:
> >>>>>>>>> Am 20.01.24 um 22:39 schrieb Dennis Nezic:
> >>>>>>>>>
> >>>>>>>>>> On 20 Jan 21:52, Armin Wolf wrote:
> >>>>>>>>>>> Am 20.01.24 um 19:58 schrieb Dennis Nezic:
> >>>>>>>>>>>
> >>>>>>>>>>>> Guys, the "info" illuminated touch-key (hotkey?) on my laptop
> >>>>>>>>>>>> "doesn't
> >>>>>>>>>>>> work", showkey doesn't report any keycode or scancode. I don't
> >>>>>>>>>>>> see any
> >>>>>>>>>>>> wmi related error messages from dmesg. All the other illuminated
> >>>>>>>>>>>> "hotkeys" work fine, although confusingly evtest and "libinput
> >>>>>>>>>>>> debug-events" report that they're coming through the event
> >>>>>>>>>>>> interface
> >>>>>>>>>>>> associated with "AT Translated Set 2 keyboard" instead of "HP WMI
> >>>>>>>>>>>> hotkeys", but hey, as long as I receive them I'm okay :p.
> >>>>>>>>>>>>
> >>>>>>>>>>>> hp-wmi.c does seem to reference it:
> >>>>>>>>>>>>
> >>>>>>>>>>>> How can I go about troubleshooting this? (I'm using kernel 6.6.8)
> >>>>>>>>>>> it can be possible that your machine does not use hp-wmi to
> >>>>>>>>>>> deliver keycodes
> >>>>>>>>>>> to the operating system, but instead emulates a standard
> >>>>>>>>>>> keyboard controller.
> >>>>>>>>>>>
> >>>>>>>>>>> Can you check with "kacpimon" that events concerning a PNP0C14
> >>>>>>>>>>> device are being
> >>>>>>>>>>> received?
> >>>>>>>>>> Very possible indeed. "kacpimon" doesn't show anything when I
> >>>>>>>>>> press that
> >>>>>>>>>> touchkey, but it does when I press all the other touchkeys. (I
> >>>>>>>>>> do get
> >>>>>>>>>> lots of accelerometer noise.)
> >>>>>>>>>>
> >>>>>>>>> Interesting, can you please share the output of:
> >>>>>>>>> - "kacpimon" while you where pressing the buttons
> >>>>>>>>> - "acpidump"
> >>>>>>>> ...
> >>>>>>> Those events are touchscreen events, maybe your mouse is
> >>>>>>> responsible for them.
> >>>>>> Right, of course, woops, these must have been the touchpad press
> >>>>>> events,
> >>>>>> as I was moving the mouse around :P
> >>>>>>
> >>>>>>> Instead they look like this:
> >>>>>>>
> >>>>>> I'm definitely not seeing anything like that, just "^Input Layer:
> >>>>>> Type"'s
> >>>>>>
> >>>>>>> Can you try to use kacpimon again but without root privileges? This
> >>>>>>> way only netlink events show up.
> >>>>>>> You might also stop acpid while you are using kacpimon.
> >>>>>> 0 output from/with netlink, even though kacpimon said:
> >>>>>>
> >>>>>> Netlink ACPI Family ID: 24
> >>>>>> Netlink ACPI Multicast Group ID: 5
> >>>>>> netlink opened successfully
> >>>>>>
> >>>>>> Remember all my other fancy hotkeys "work", but they appear as regular
> >>>>>> keypress events from an "AT Translated Set 2 keyboard".
> >>>>>>
> >>>>>>> If you still cannot receive any netlink events, then i might need
> >>>>>>> to take a look at your ACPI tables
> >>>>>>> via acpidump.
> >>>>>> https://dennisn.mooo.com/stuff/dump.txt
> >>>>>>
> >>>>>>> Thanks,
> >>>>>>> Armin Wolf
> >>>>>> Thank you again sir!
> >>>>> A1799AC3-9429-4529-927E-DFE13736EEBA has zero instances
> >>>>> 8232DE3D-663D-4327-A8F4-E293ADB9BF05 has zero instances
> >>>>> 8F1F6436-9F42-42C8-BADC-0E9424F20C9A has zero instances
> >>>>> 8F1F6435-9F42-42C8-BADC-0E9424F20C9A has zero instances
> >>>>>
> >>>>> (Btw that "info" key does get illuminated when I touch/press it, even
> >>>>> though no codes are seen.)
> >>>> These warnings in dmesg are harmless, they are informing you that some
> >>>> WMI devices are unavailable.
> >>>>
> >>>> I took a look at your ACPI tables and it seems that the WMI device
> >>>> used by hp-wmi is indeed unused.
> >>>> What is the model name of your HP notebook?
> >> HP Compaq 8710p
> >>
> >>> Also i just noted that your notebook might contain a PNP0C32 quickstart button device.
> >>> Can you tell me the output of "cat /sys/bus/acpi/devices/PNP0C32\:00/status"?
> >> 15
> > Interesting.
> >
> > There have been several attempts to add support for this
> > in the past. The last one being:
> >
> > https://lore.kernel.org/platform-driver-x86/20220922182424.934340-1-lkml@vorpal.se/
> >
> > Note that in this case this also required some vender
> > specific poking in toshiba_acpi to get things to work.
> >
> > I see that the HP Compaq 8710p is about the same vintage
> > as the Toshiba Z830 on which the last attempt to do
> > something about the quick start buttons was done.
> >
> > So this might very well explain the missing button issue.
> >
> > Regards,
> >
> > Hans
> >
> I can try to upstream the necessary changes. But i cannot test the changes concerning the toshiba_acpi driver.
> Would it be ok if i omit those changes?
> 
> Dennis, can you check that your device runs the latest BIOS? And if this is not the case, could you do a BIOS
> update and send me an updated acpidump?
> 
> The reason for this is that currently, the button device receives only system wake events, but no button press
> events during runtime. Maybe this is a BIOS bug, although this could also be intentional (fancy power button).

Updated acpidump: https://dennisn.mooo.com/stuff/dump2.txt.gz

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
@ 2024-01-31  4:01 Dennis Nezic
  0 siblings, 0 replies; 19+ messages in thread
From: Dennis Nezic @ 2024-01-31  4:01 UTC (permalink / raw)
  To: platform-driver-x86

> > Dennis, can you check that your device runs the latest BIOS? And if
> > this is not the case, could you do a BIOS update and send me an
> > updated acpidump? 
> > 
> > The reason for this is that currently, the button device receives only
> > system wake events, but no button press events during runtime. Maybe
> > this is a BIOS bug, although this could also be intentional (fancy
> > power button).
> 
> I was /finally/ able to update my BIOS slightly, only with the latest
> freedos image available, one version up ... there seems to be another
> newer (2011) windows-only one that I'm not able to use.
>
> No change.

(I "hacked" the "latest" 2011 bios rom in, and although it reports being
a newer version and newer release date, acpidump is exactly the same.
dmidecode says it's the newer one though. No difference.)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-30 18:18                         ` Dennis Nezic
@ 2024-01-31  4:06                           ` Dennis Nezic
  0 siblings, 0 replies; 19+ messages in thread
From: Dennis Nezic @ 2024-01-31  4:06 UTC (permalink / raw)
  To: platform-driver-x86

> > Dennis, can you check that your device runs the latest BIOS? And if
> > this is not the case, could you do a BIOS update and send me an
> > updated acpidump?
> >
> > The reason for this is that currently, the button device receives only
> > system wake events, but no button press events during runtime. Maybe
> > this is a BIOS bug, although this could also be intentional (fancy
> > power button).
>
> I was /finally/ able to update my BIOS slightly, only with the latest
> freedos image available, one version up ... there seems to be another
> newer (2011) windows-only one that I'm not able to use.
>
> No change.

(I "hacked" the "latest" 2011 bios rom in, and although it reports being
a newer version and newer release date, acpidump is exactly the same.
dmidecode says it's the newer one though. No difference.)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: hp-wmi: info hotkey has no keycode or scancode
  2024-01-29 12:57                         ` Hans de Goede
@ 2024-03-26 16:47                           ` Dennis Nezic
  0 siblings, 0 replies; 19+ messages in thread
From: Dennis Nezic @ 2024-03-26 16:47 UTC (permalink / raw)
  To: Hans de Goede, Armin Wolf; +Cc: platform-driver-x86

>>>>>>> Remember all my other fancy hotkeys "work", but they appear as regular
>>>>>>> keypress events from an "AT Translated Set 2 keyboard".

>>>>>>>> If you still cannot receive any netlink events, then i might need
>>>>>>>> to take a look at your ACPI tables
>>>>>>>> via acpidump.
>>>>>>> https://dennisn.mooo.com/stuff/dump.txt

>>>>> I took a look at your ACPI tables and it seems that the WMI device
>>>>> used by hp-wmi is indeed unused.
>>>>> What is the model name of your HP notebook?
>>> HP Compaq 8710p

>>>> Also i just noted that your notebook might contain a PNP0C32 quickstart button device.
>>>> Can you tell me the output of "cat /sys/bus/acpi/devices/PNP0C32\:00/status"?
>>> 15
>> Interesting.

>> There have been several attempts to add support for this
>> in the past. The last one being:
>> https://lore.kernel.org/platform-driver-x86/20220922182424.934340-1-lkml@vorpal.se/
>>
>> Note that in this case this also required some vender
>> specific poking in toshiba_acpi to get things to work.
>>
>> I see that the HP Compaq 8710p is about the same vintage
>> as the Toshiba Z830 on which the last attempt to do
>> something about the quick start buttons was done.
>>
>> So this might very well explain the missing button issue.
>>
>> Regards,
>>
>> Hans

> As discussed below these "quick start" buttons
> normally are only intended to wake up the laptop
> and then immediately on wakeup start a specific app
> tied to the button (IIRC). But at least on the Toshiba
> the toshiba_acpi driver's special "poke" of the firmware
> makes the button also send events normally, so that it
> can actually be used as a normal button.

Can someone roughly explain what's going on? :p On my HP Compaq laptop
all those "buttons" work, except that one "info" one. How are those keys
being emulated(?) as my regular keyboard? Why would only one not work?



>> Dennis, can you check that your device runs the latest BIOS? And if
>> this is not the case, could you do a BIOS update and send me an
>> updated acpidump? The reason for this is that currently, the button
>> device receives only system wake events, but no button press events
>> during runtime. Maybe this is a BIOS bug, although this could also be
>> intentional (fancy power button).
> See above IIRC what was discussed last time this is
> an intentional (mis)feature of these buttons. Chances
> are there might be some workaround for this for HP too,
> but that will likely be tricky to find.
> 
> Regards,
> 
> Hans

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2024-03-26 16:47 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-20 18:58 hp-wmi: info hotkey has no keycode or scancode Dennis Nezic
2024-01-20 20:52 ` Armin Wolf
2024-01-20 21:39   ` Dennis Nezic
2024-01-21 15:16     ` Armin Wolf
2024-01-22  7:05       ` Dennis Nezic
2024-01-22 10:44         ` Armin Wolf
     [not found]           ` <Za8xL39m1X22f2Bb@panther>
     [not found]             ` <Za9DQdLg2d_CnrZG@panther>
2024-01-23  8:58               ` Armin Wolf
2024-01-23 14:22                 ` Armin Wolf
2024-01-23 15:13                   ` Dennis Nezic
2024-01-23 15:34                     ` Hans de Goede
2024-01-23 19:58                       ` Armin Wolf
2024-01-25 20:53                         ` Armin Wolf
2024-01-29 13:00                           ` Hans de Goede
2024-01-29 12:57                         ` Hans de Goede
2024-03-26 16:47                           ` Dennis Nezic
2024-01-30 18:18                         ` Dennis Nezic
2024-01-31  4:06                           ` Dennis Nezic
2024-01-30 20:20                         ` Dennis Nezic
  -- strict thread matches above, loose matches on Subject: below --
2024-01-31  4:01 Dennis Nezic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.