Answers for "how to enable scroll lock on ubuntu 21.04"

1

how to enable scroll lock in ubuntu 20

xmodmap -e 'add mod3 = Scroll_Lock'
Posted by: Guest on January-28-2021
0

how to enable scroll lock on ubuntu 21.04

The Solve from Multi Steps 100% :
Step 1 :
ls /sys/class/leds/    ## input6::scrolllock  
Step 2 : ## for test 
ls '/sys/class/leds/input6::scrolllock'     ## brightness 
cat '/sys/class/leds/input6::scrolllock/brightness' 
######
The only thing which is important for us is the brightness file content.
0 means the LED is off.
1 means the LED is on
########
step 3 :
##We get the current LED state by checking the brightness file's content 0 (it's currently off):
cat '/sys/class/leds/input6::scrolllock/brightness'       

##To switch the LED on, we must set that file's content to 1:
echo 1| sudo tee '/sys/class/leds/input6::scrolllock/brightness'        


step 4 :
## To switch the LED on during every boot  ##
sudo nano /etc/rc.local   ## add tow commands in below :
#!/bin/bash                                  
echo 1| sudo tee '/sys/class/leds/input6::scrolllock/brightness'  

step 5 :
sudo chmod +x /etc/rc.local     ##for change accses file
sudo init 6                     ## for reboot
Posted by: Guest on October-06-2021

Code answers related to "how to enable scroll lock on ubuntu 21.04"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language