Keyboard light keeps turning on after login and / or unlock

This also works for my Lenovo Thinkpad T460

No approach mentioned in this post worked for me. I added my own here:
https://askubuntu.com/a/936007/712359

Note it doesn’t requiere root privileges. Hope it helps.

On Yoga 260 and Mint 18.2 this solution works partially:

  • if the keyboard is off, it will stay off, great!n?
  • BUT if the keyboard is on, it will turn off after a screen locking/closing lid action.

Any other solution that is able to keep the state of the keyboard after a screen locking actio

Ubuntu 17.10 & MATE Desktop 1.18.0

Ran into same issue of keyboard backlight always turning on after login.

My temporary workaround is simply to run the following as your normal user (no sudo):
gsettings set org.mate.power-manager kbd-brightness-on-ac 0

also, so that it doesn’t keep turning back on after coming back from idle when on battery:
gsettings set org.mate.power-manager kbd-backlight-battery-reduce false

3 Likes

Ubuntu Mate 18.04. Had the same issue on an Asus Zenbook UX330U. The above fix solved the problem.

…but now I can’t brighten or dim my keyboard at all, using fn + f3 (which normally dims the keyboard keys), nor fn + f4 (which normally brightens up the keyboard keys). I’m shining a flashlight on my keyboard to type right now. :frowning:

Note that Manjaro Gnome gets this right: fn + f3 and fn +f4 work as they should, and it always remembers the brightness level how you left it, and no fix/hack in /etc/dbus-1/system.d/org.freedesktop.UPower.conf was ever needed.

I am indebted to you not so CrazyDesi. On my laptop (Dell Inspiron convertible 15-5578) the keyboard backlight turning on after turning off was really getting to me and one thing that was p***ing me off with Linux Mint. Normally in the typing of this message; backlights would have turned on a couple of times; didn’t happen so thank you very much.

The org.freedesktop.UPower.conf workaround worked on my Dell XPS 9380 (with Mint 19.1 MATE, which is based on Ubuntu 18.04).

The issue I was suffering was that on logon, the keyboard backlight would turn on, even if it's disabled in the BIOS.

Somebody mentioned a fix in upower; as experiment, I've upgraded the upower packages (libupower-glib3 and upower) in my system to the Ubuntu 19.04 versions, however, they didn't solve the problem, so I expect this issue not to be fixed for a long time.

The fix mentioned in https://bugs.launchpad.net/dell-sputnik/+bug/1510344 (SystemD masking) didn't work.

Asus N501VW with 19.04

I use an external monitor with the laptop lid down so if the kb light is on it gets too hot in there.

I don't see a Upower configuration file. Perhaps it is not installed.

In desperation I am running :

echo '0' > /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/brightness

as a root cron every five minutes!

Cripey!

The file is located at /usr/share/dbus-1/system.d/org.freedesktop.UPower.conf in 19.10.

4 Likes

Problem solved!
I have edited the file, and restart the computer.

sudo pluma /usr/share/dbus-1/system.d/org.freedesktop.UPower.conf

Line <allow send_destination="org.freedesktop.UPower.KbdBacklight"

Change to <deny send_destination="org.freedesktop.UPower.KbdBacklight"

Line <allow send_destination="org.freedesktop.UPower"
send_interface="org.freedesktop.UPower.KbdBacklight"/>

Change to <deny send_destination="org.freedesktop.UPower"
send_interface="org.freedesktop.UPower.KbdBacklight"/>

PS
Lenovo ThinkPad T450
Release 19.10 (Eoan Ermine) 64-bit
Kernel Linux 5.3.0-26-generic x86_64
MATE 1.22.2

5 Likes

Thanks, the proposed solution worked for my Asus Q34UAK laptop, with:
$ uname -a
Linux Mint 4.4.0-70-generic #91-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

Using the editor xed edited the file: /etc/dbus-1/system.d/org.freedesktop.UPower.con

In the second expression containing KbdBacklight
replaced 'allow' with 'deny'

The keyboard backlight is now always off

Thanks CrazyDesi

Thank You, it worked on:
Lenovo ThinkPad T440
Release 19.10 (Eoan Ermine) 64-bit
Kernel Linux 5.3.0-46-generic x86_64
MATE 1.22.2

Thank you!!
It works for me too.
Dell inspiron 5584

THANK YOU! I couldn't find it.

This worked for me. I have a ASUS Vivobook 14 M413.

Seems to be a mostly universal solution :D!

Yup, works on Dell XPS 13 (Ubuntue Mate 22.04) also. File org.freedesktop.UPower.conf is under: /usr/share/dbus-1/system.d/org.freedesktop.UPower.conf as previously stated.

1 Like

Changed the file but still not working on Idealpad 5pro, Lenovo.
Using Vera 21.1

Any suggestions?
I had to change allow to deny 2 times.

<allow send_destination="org.freedesktop.UPower"
       send_interface="org.freedesktop.DBus.Introspectable"/>

<allow send_destination="org.freedesktop.UPower"
       send_interface="org.freedesktop.DBus.Peer"/>
<allow send_destination="org.freedesktop.UPower"
       send_interface="org.freedesktop.DBus.Properties"/>
<allow send_destination="org.freedesktop.UPower.Device"
       send_interface="org.freedesktop.DBus.Properties"/>
<deny  send_destination="org.freedesktop.UPower"
       send_interface="org.freedesktop.UPower.KbdBacklight"/>
<allow send_destination="org.freedesktop.UPower.Wakeups"
       send_interface="org.freedesktop.DBus.Properties"/>
<allow send_destination="org.freedesktop.UPower"
       send_interface="org.freedesktop.UPower"/>
<allow send_destination="org.freedesktop.UPower"
       send_interface="org.freedesktop.UPower.Device"/>
<deny  send_destination="org.freedesktop.UPower"
       send_interface="org.freedesktop.UPower.KbdBacklight"/>
<allow send_destination="org.freedesktop.UPower"
   send_interface="org.freedesktop.UPower.Wakeups"/>
1 Like

Welcome @Morris to the community!

1 Like