Re: Laptop Brightness Keys

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

 



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.

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



[Index of Archives]     [Trinity Devel]     [KDE]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux