[gnome-settings-daemon/gnome-3-10] power: '0' keyboard backlight is a valid value
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-10] power: '0' keyboard backlight is a valid value
- Date: Thu, 4 Sep 2014 11:16:51 +0000 (UTC)
commit da2668a26bdaad470b44acf95886937fa7d87871
Author: Bastien Nocera <hadess hadess net>
Date: Thu Sep 4 13:12:48 2014 +0200
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.
https://bugzilla.gnome.org/show_bug.cgi?id=734074
plugins/power/gsd-power-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index a45ac24..322e3a7 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2854,7 +2854,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,
manager->priv->kbd_brightness_max,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]