Saturday, September 23, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  9] [ 0]  / answers: 1 / hits: 13087  / 2 Years ago, sun, september 26, 2021, 8:47:53

Hello i have a sony vaio vpcf236fm. I am unable to disable or control my keyboard backlight. i want to be able to disable it when im running on the battery. Please if i could get help with this id be in your debt.

More From » 12.04


Run this command and tell us if it turns it off:

$ sudo su -c "echo 0 > /sys/devices/platform/sony-laptop/kbd_backlight"

You will have to type in your password to try it. To open up a terminal, just type Ctrl-Alt-T or open it from the Unity menu.

I'm just going to go ahead and assume this command works and show a nice little script that will automagically turn the keyboard backlight on and off when you unplug the battery. If the command doesn't work....well the script'll be here for future reference then.

Run the command gksudo gedit '/etc/pm/power.d/99_kbd_backlight'. Type in your password.

Then paste the following into the gedit window:

export DISPLAY=:0.0
if on_ac_power; then
echo 1 > /sys/devices/platform/sony-laptop/kbd_backlight

echo 0 > /sys/devices/platform/sony-laptop/kbd_backlight

exit 0

Then run this command:

$ sudo chmod +x /etc/pm/power.d/99_kbd_backlight

You may need to restart your computer for this to take effect. Theoretically, this should turn your keyboard backlight on and off when you plug and unplug your charger.

Edited the script from this source:

EDIT: This may be a more "proper" answer:
Keyboard backlighting not working on a Vaio VPCSB11FX

[#31929] Monday, September 27, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 43
Total Questions: 125
Total Answers: 102

Location: Gabon
Member since Sat, Jul 25, 2020
3 Years ago