Bug 255132

Summary: ACPI: different function key maps to same devd notify code
Product: Base System Reporter: Dries Michiels <driesm>
Component: kernAssignee: freebsd-acpi (Nobody) <acpi>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: georg.lastname
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Dries Michiels freebsd_committer freebsd_triage 2021-04-16 20:58:32 UTC
Hi!

On my laptop, a Lenovo T490 I have observed that two function keys map to an identical notify code, this makes it hard to separately map to actions with a notify match script. The keys in question are located on F5 (brightness up), and F12 (favorites).

[/usr/local/sbin]$ cat /var/run/devd.pipe
**press brightness down (F5)**
!system=ACPI subsystem=Video type=brightness notify=14
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x11
**press favorites key (F12)**
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x11
**press brighntess down (F5)**
!system=ACPI subsystem=Video type=brightness notify=13
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x11
**press favorites key (F12)**
!system=ACPI subsystem=IBM type=\_SB_.PCI0.LPCB.EC__.HKEY notify=0x11


is there any way that I can distinguish on the key presses to map to different actions?
Comment 1 georg.lastname 2021-05-25 18:25:01 UTC
Are you using acpi_ibm module?

If you are in Xorg, some key presses might appear in xev (e.g. as XF86AudioLowerVolume). In that case hotkeys can be handled by the window manager as well.
Comment 2 Dries Michiels freebsd_committer freebsd_triage 2023-11-15 13:27:21 UTC
Bug seems harmless and feedback has timed our, close my bug report.