Bug#725159: pu: package lm-sensors/1:3.3.2-2+deb7u1
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: pu
lm-sensors upstream has reported an hardware breakage issue with
versions 3.3.2 or older. This causes laptop to get screens with wrong
resolution or wrong gamma factor.
Upstream asked maintainers to backport to changeset, which is what is
done in the patch below. Would it be possible to upload it?
diff -Nru lm-sensors-3.3.2/debian/changelog lm-sensors-3.3.2/debian/changelog
--- lm-sensors-3.3.2/debian/changelog 2012-06-03 16:21:48.000000000 +0200
+++ lm-sensors-3.3.2/debian/changelog 2013-10-01 22:18:24.000000000 +0200
@@ -1,3 +1,10 @@
+lm-sensors (1:3.3.2-2+deb7u1) wheezy; urgency=low
+
+ * Backport patches from upstream to skip probing for EDID or graphics
+ cards, as it might causes hardware breakage (closes: #724736).
+
+ -- Aurelien Jarno <aurel32@debian.org> Wed, 02 Oct 2013 07:45:50 +0200
+
lm-sensors (1:3.3.2-2) unstable; urgency=low
* Tell user to restart kmod instead of modules-init-tools (closes:
diff -Nru lm-sensors-3.3.2/debian/patches/15-sensors-detect-skip-EDID.patch lm-sensors-3.3.2/debian/patches/15-sensors-detect-skip-EDID.patch
--- lm-sensors-3.3.2/debian/patches/15-sensors-detect-skip-EDID.patch 1970-01-01 01:00:00.000000000 +0100
+++ lm-sensors-3.3.2/debian/patches/15-sensors-detect-skip-EDID.patch 2013-10-01 22:14:54.000000000 +0200
@@ -0,0 +1,12 @@
+--- a/prog/detect/sensors-detect (revision 6039)
++++ b/prog/detect/sensors-detect (revision 6040)
+@@ -3660,6 +3660,9 @@
+ $input = <STDIN>;
+ chomp($input);
+ @not_to_scan = parse_not_to_scan(0x03, 0x77, $input);
++ } elsif (($class & 0xff00) == 0x0300) {
++ # Skip EDID addresses by default on graphics adapters
++ @not_to_scan = parse_not_to_scan(0x03, 0x77, "0x50-0x57");
+ }
+
+ open(local *FILE, "$dev_i2c$adapter_nr") or
diff -Nru lm-sensors-3.3.2/debian/patches/16-sensors-detect-skip-graphics-cards.patch lm-sensors-3.3.2/debian/patches/16-sensors-detect-skip-graphics-cards.patch
--- lm-sensors-3.3.2/debian/patches/16-sensors-detect-skip-graphics-cards.patch 1970-01-01 01:00:00.000000000 +0100
+++ lm-sensors-3.3.2/debian/patches/16-sensors-detect-skip-graphics-cards.patch 2013-10-01 22:15:45.000000000 +0200
@@ -0,0 +1,13 @@
+--- a/prog/detect/sensors-detect (revision 6083)
++++ b/prog/detect/sensors-detect (revision 6084)
+@@ -3652,8 +3652,8 @@
+ my ($funcs, $chip, $addr, $class, $default, $input, @not_to_scan);
+
+ $class = get_pci_class($i2c_adapters[$adapter_nr]->{parent});
+- if (($class & 0xff00) == 0x0400) {
+- # Do not probe adapters on PCI multimedia cards by default
++ # Do not probe adapters on multimedia and graphics cards by default
++ if (($class & 0xff00) == 0x0400 || ($class & 0xff00) == 0x0300) {
+ $default = 0;
+ } elsif ($class == 0x0c01 || $class == 0x0c05
+ || find_i2c_adapter_driver($i2c_adapters[$adapter_nr]->{name})) {
diff -Nru lm-sensors-3.3.2/debian/patches/series lm-sensors-3.3.2/debian/patches/series
--- lm-sensors-3.3.2/debian/patches/series 2012-01-27 10:53:09.000000000 +0100
+++ lm-sensors-3.3.2/debian/patches/series 2013-10-01 22:20:23.000000000 +0200
@@ -11,3 +11,5 @@
11-fancontrol-check.patch
12-sensors-detect-superio-x86.patch
14-2-digits-kernel.patch
+15-sensors-detect-skip-EDID.patch
+16-sensors-detect-skip-graphics-cards.patch
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Reply to: