On Thu, 28 Nov 2024 13:22:30 -0600
Darrell Anderson via tde-users <users(a)trinitydesktop.org> 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.
E. Liddell