Thanks, i just bought a new keyboard. Way cheaper than spending more hours trying to make the backlight work on my old one. Now i only need to figure out the corect setting for numlock on, as it gets turned on and off during starting the PC and logging in ,
I am using KDE Plasma 6 Wayland in Tuxedo OS. So far this is what I have found.
Need to install a command called brightnessctl
sudo apt install brightnessctl
Next find what your scroll lock is called in /sys/class/leds/
Go to that directory and look for a sub-directory with scrolllock in its name.
In my case it is input3::scrolllock
Check what the max brightness setting for your keyboard backlight is with:
brightnessctl -d input3::scrolllock m
The command to turn on the keyboard backlight is then:
sudo brightnessctl -d input3::scrolllock s 1
To make it turn on the LEDs at the login screen, make a script to execute the command and make the display manager run it. The display manager for KDE is usually SDDM so go read up on how to make it run a script at session start.
Thanks a lot. this is Best Guideline I Ever received on this Issue.
What I said above is not the solution. I have not found a way to get the script or command to run at the login screen in SDDM because SDDM does not run scripts as root under Wayland. brightnessctl needs to be run as root or with sudo to work. If you find out how to do it let me know as I have the same problem.
Also, besides using brightnessctl, another method is
echo 1 > /sys/class/leds/input3::scrolllock/brightness
But it has the same problem - needs sudo to run and SDDM will not run it at the login screen under Wayland.