Anno domini 2024 Thu, 28 Nov 15:25:35 -0500 E. Liddell via tde-users scripsit: > On Thu, 28 Nov 2024 13:22:30 -0600 > Darrell Anderson via tde-users <users@xxxxxxxxxxxxxxxxxx> wrote: > > > I browsed the tdeutils/kmilo code but did not find anything obvious with > > how Fn keys are mapped or detected on Thinkpads. > > If I'm reading the code correctly, it isn't detecting your key presses > per se at all. > > If you fish through the READMEs, it looks like kmilo's Thinkpad > support was at least in part carried over from an application called tpb > ( http://www.nongnu.org/tpb/ ), whose developers reverse-engineered > what the extended keys were doing by observing nvram. kmilo seems to > be using offsets and bitmasks hard-coded into the > ThinkPadMonitor::getNvramState function in kmilo/thinkpad/thinkpad.cpp > to determine what the nvram contents mean. > > I think there are instructions somewhere on the tpb site for monitoring > nvram. That seems to be what you would have to do to derive a new > set of magic numbers that work with your T580. > > It's a weird and brittle system, and to be honest, I'm surprised it works > at all on modern hardware. It's not that bad. The brightness keys are handled by ACPI, so when you have installed acpid you can just run $ acpi_listen and the you get something like: video/brightnessdown BRTDN 00000087 00000000 video/brightnessdown BRTDN 00000087 00000000 video/brightnessup BRTUP 00000086 00000000 video/brightnessup BRTUP 00000086 00000000 video/brightnessup BRTUP 00000086 00000000 ... hm ... mybe you are missing acpid? Nik > > E. Liddell > ____________________________________________________ > tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx > Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx > -- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ... ____________________________________________________ tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx