Commit c311de72 authored by Bastien Nocera's avatar Bastien Nocera

power: '0' keyboard backlight is a valid value

It's not the screen where you can't see anything if the backlight isn't
on, it's a keyboard.

Make sure to only reset the keyboard backlight to the maximum when
there's an error reading that value.
parent c6000118
......@@ -1892,7 +1892,7 @@ power_keyboard_proxy_ready_cb (GObject *source_object,
/* set brightness to max if not currently set so is something
* sensible */
if (manager->priv->kbd_brightness_now <= 0) {
if (manager->priv->kbd_brightness_now < 0) {
gboolean ret;
ret = upower_kbd_set_brightness (manager,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment