-2

I just got a new Lenovo Thinkpad E14 Gen 3, and my OCD wants the backlit keyboard on all the time. There is NO setting to keep the light on at all times (not even in the BIOS), and the keystroke to turn it on is 'Fn + Space'.

At first, I thought I'd write a quick python script using pynput and add it to the startup sequence. Then, I realized how scan codes work, and how the Fn key has no unique scan code-- it simply modifies other scan codes when pressed in parallel with another key.

At this point, I think this is just a really interesting problem, and I'm very intrigued to see how this could be done. Somehow, I need to discover the scan code for the keystroke 'Fn (down) + Space (down)' and both back up. Is it possible to write a script which could do this? Could I write a bash or C script to print out scan codes, and then compile and execute those scan codes on startup? I'm not sure how to do this, and I know any solution will teach me something fun about how computers work.

Seth Bowers
  • 31
  • 1
  • 6
  • I think you need to show your c and python code in order for anyone to be able to tell you what you did wrong. – Ted Lyngmo Aug 26 '23 at 00:36
  • There is probably a registry entry for that; I don't think my first inclination would be to hack this. – Neil Aug 26 '23 at 01:32

0 Answers0