]> git.pld-linux.org Git - packages/upower.git/commitdiff
- add patch not to lose polling upon unknown battery state auto/th/DeviceKit-power-007-2
authorPatryk Zawadzki <patrys@room-303.com>
Mon, 25 May 2009 09:20:03 +0000 (09:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 2

Changed files:
    DeviceKit-power-unknown-state.patch -> 1.1
    upower.spec -> 1.3

DeviceKit-power-unknown-state.patch [new file with mode: 0644]
upower.spec

diff --git a/DeviceKit-power-unknown-state.patch b/DeviceKit-power-unknown-state.patch
new file mode 100644 (file)
index 0000000..b147c6a
--- /dev/null
@@ -0,0 +1,22 @@
+From 648ca7103439e44e7f83035fa701994a408f8d01 Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard@hughsie.com>
+Date: Wed, 13 May 2009 16:46:58 +0000
+Subject: Continue to poll when power supply device is marked unknown. Might fix rh#495493
+
+---
+diff --git a/src/dkp-supply.c b/src/dkp-supply.c
+index 7a5e8e5..cb6db00 100644
+--- a/src/dkp-supply.c
++++ b/src/dkp-supply.c
+@@ -548,7 +548,8 @@ dkp_supply_refresh (DkpDevice *device)
+                * if we are charging or discharging */
+               g_object_get (device, "state", &state, NULL);
+               if (state == DKP_DEVICE_STATE_CHARGING ||
+-                  state == DKP_DEVICE_STATE_DISCHARGING)
++                  state == DKP_DEVICE_STATE_DISCHARGING ||
++                  state == DKP_DEVICE_STATE_UNKNOWN)
+                       supply->priv->poll_timer_id =
+                               g_timeout_add_seconds (DKP_SUPPLY_REFRESH_TIMEOUT,
+                                                      (GSourceFunc) dkp_supply_poll_battery, supply);
+--
+cgit v0.8.2
index 96d202fe2043fbee93203e9d3bd12e1f2e84c1c2..d1c39838d97ebd82752018b712a0556766044676 100644 (file)
@@ -2,11 +2,12 @@ Summary:      Power management service
 Summary(pl.UTF-8):     Usługa zarządzania energią
 Name:          DeviceKit-power
 Version:       007
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Libraries
 Source0:       http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
 # Source0-md5: 4b1159374f36e23fe7d920f934076269
+Patch0:                %{name}-unknown-state.patch
 BuildRequires: DeviceKit-devel >= 003
 BuildRequires: PolicyKit-devel >= 0.8
 BuildRequires: autoconf >= 2.60
@@ -58,6 +59,7 @@ Nagłówki biblioteki DeviceKit-power.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__intltoolize}
This page took 0.084857 seconds and 4 git commands to generate.