Package: release.debian.org
Severity: normal
Tags: buster
User: release.debian....@packages.debian.org
Usertags: pu

Hi,

let's fix AC power detection in brightd. #934140

The fix was backported from sid and the updated package is already
uploaded.


Andreas
diff -Nru brightd-0.4.1/debian/changelog brightd-0.4.1/debian/changelog
--- brightd-0.4.1/debian/changelog      2018-09-05 14:48:36.000000000 +0200
+++ brightd-0.4.1/debian/changelog      2020-01-13 17:40:37.000000000 +0100
@@ -1,3 +1,13 @@
+brightd (0.4.1-2+deb10u1) buster; urgency=medium
+
+  * Non-maintainer upload.
+
+  [ Andrej Shadura ]
+  * Actually compare the value read out of /sys/class/power_supply/AC/online 
with '0'
+    (Closes: #934140)
+
+ -- Andreas Beckmann <a...@debian.org>  Mon, 13 Jan 2020 17:40:37 +0100
+
 brightd (0.4.1-2) unstable; urgency=medium
 
   * Refresh the patch.
diff -Nru 
brightd-0.4.1/debian/patches/0002-Don-t-use-deprecated-proc-acpi-for-AC-detection.patch
 
brightd-0.4.1/debian/patches/0002-Don-t-use-deprecated-proc-acpi-for-AC-detection.patch
--- 
brightd-0.4.1/debian/patches/0002-Don-t-use-deprecated-proc-acpi-for-AC-detection.patch
     2018-09-05 14:48:36.000000000 +0200
+++ 
brightd-0.4.1/debian/patches/0002-Don-t-use-deprecated-proc-acpi-for-AC-detection.patch
     2020-01-13 17:40:37.000000000 +0100
@@ -32,7 +32,7 @@
        fclose(ac);
  
 -      return strstr(line, "on-line") != NULL;
-+      return ac_state;
++      return ac_state != '0';
  } /*}}}*/
  
  /*

Reply via email to