Code: Select all
xset led on
Can anyone tell me how to get this command to run when the system starts?
I have tried putting it in /etc/rc.local
I have tried putting it in /etc/init.d/rc.local
Both have not worked.
I am using MX Linux 23.3
Code: Select all
xset led on
Thanks for the suggestion. Do you mean the autostart section in the "Session and Startup" tool? That probably would work but that tool only runs things, at the earliest, on login. I want the command to run before login, when the GUI starts and the login screen appears so that I can see the keys to type the password.fehlix wrote: Thu Sep 12, 2024 11:44 am Add an autostart entry with a delay
someting like:
sh -c 'sleep 5; xset led on'
Code: Select all
FILES
/etc/lightdm/lightdm.conf
Configuration
Code: Select all
display-setup-script=/usr/local/bin/early-bg
Code: Select all
/usr/bin/xset led on
Thanks for that insight. That helps me understand why the rc.local method did not work.BitJam wrote: Fri Sep 13, 2024 6:04 am The problem is you need xset to run after the X server has started. The /etc/rc.local file is working but it runs before the X server has started and therefore the xset command does nothing. Running xset via the display manager config and early-bg script is the correct solution and not a work-around.