Re: "asus_wmi: Unknown key code 0xcf" when plugging in charger to laptop

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

 




On Thu, 31 Oct 2024, at 12:28 AM, Armin Wolf wrote:
> Am 30.10.24 um 22:44 schrieb Pau Espin Pedrol:
>
>> Hi,
>>
>> On 10/30/24 1:06 AM, Armin Wolf wrote:
>>>
>>> can you share the output of "acpidump"?
>>
>>
>> Find it here:
>> https://pespin.espeweb.net/~pespin/tmp/asus_wmi/acpidump.txt.bz2
>>
>>
>> regards,
>>
>> Pau
>>
>>
> Thank you. The event seems to be causes by this piece of AML code:
>
> 	If (ACPS ())
> 	{
> 		ACPF = One
> 		Local0 = 0x58
> 		If (ATKP)
> 		{
> 			^^^^ATKD.IANE (0xCF)
> 		}
> 	}
> 	Else
> 	{
> 		ACPF = Zero
> 		Local0 = 0x57
> 	}
>
> 	Notify (AC0, 0x80) // Status Change
> 	If (ATKP)
> 	{
> 		^^^^ATKD.IANE (Local0)
> 	}
>
> 	Sleep (0x64)
> 	PNOT ()
> 	Sleep (0x0A)
> 	NBAT (0x80)
>
> Since the event codes 0x67/0x58 are used to signal battery/ac mode, i 
> think that the 0xCF event
> might be an alias for event 0x58. Maybe we can just map it as 
> KEY_IGNORE to silence the warning?

Do we know which laptop exactly? The "gamer" laptops along with I think the ProArt ones use an MCU on USB to do keyboard I/O. Others use I2C.

Not all that relevant if all we need to do is ignore the event but there might be something additional in code already that can be used.

> Thanks,
> Armin Wolf




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

  Powered by Linux