Already posted in Community, but got locked and moved, and got lost, sorry.

Here's the issue:

I'm using Ubuntu in a Sony Vaio SVF15A17CLB, which has a backlit keyboard, but it's not turned on by the System by default, so, every time I want to turn it on I have to manually change the value in: /sys/devices/platform/sony-laptop/kbd_backlight from -1 to 1 with sudo vi

But that resets every time I restart the computer.

Is it a setting somewhere else handling that? Can I make it permanent?

  • Have you tried adding an echo 1 >> /sys/devices/platform/sony-laptop/kbd_backlight line to /etc/rc.local (above exit 0). – dsstorefile1 May 1 '18 at 23:00
  • That looks like the answer. But now I have the problem that I don't have a rc.local file – Mauricio Machado May 2 '18 at 13:16
  • Just added the file and boom! like a charm. Thanks! One detail, though, changed the >> operator to a >, since I want to write, not append. – Mauricio Machado May 2 '18 at 13:44
  • You're welcome! I'm glad things worked out for you. – dsstorefile1 May 2 '18 at 19:11
  • 1
    Thank you very much for the way the question was posed, helped me with my VAIO too!! – Ruggi Jan 9 at 1:43

protected by Community Jun 22 at 8:27

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Browse other questions tagged or ask your own question.