0

By default keyboard backlight doesn't work on Sony VAIO on Ubuntu 20.04

After changing the value to 1 at /sys/devices/platform/sony-laptop/kbd_backlight It works. But the value changes to old value after restarting the PC.

Is there a permanent solution to this problem

gocen
  • 21
  • Good job finding that setting. There are a few things to check. I imagine that there is a setting in the BIOS that you can set the default to on or off on the keyboard. There is a chance that in /etc/default/ there is a setting that is more persistent than the one you changed. Worst case is you write s SED script that changes the setting you mention on boot. – walttheboss Jun 11 '20 at 23:20
  • 1
  • I couldn't find a setting in the BIOS and /etc/default. – gocen Jun 12 '20 at 17:19
  • Is this any way to do this file write-protected – gocen Jun 12 '20 at 17:27
  • This commands solved the problem
    sudo modprobe -v sony-laptop
    
    sudo modprobe -v sony-laptop kbd_backlight=1
    
    echo "options sony-laptop kbd_backlight=1" | sudo tee /etc/modprobe.d/sony-laptop.conf
    
    sudo Reboot
    
    – gocen Jul 14 '20 at 13:59

1 Answers1

1

This commands solved the problem

sudo modprobe -v sony-laptop

sudo modprobe -v sony-laptop kbd_backlight=1

echo "options sony-laptop kbd_backlight=1" | sudo tee /etc/modprobe.d/sony-laptop.conf

sudo reboot

gocen
  • 21