On Tue, Feb 13, 2007 at 11:20:06AM +0100, Juergen Lueters wrote: > info.product = 'HL-DT-ST DVDRAM GSA-4080N' (string)
Thanks, let's include this as another example in the fdi file. Updated patch attached, NMU replaced on gluck with this new version. Cheers, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/
diff -u hal-0.5.8.1/debian/README.Debian hal-0.5.8.1/debian/README.Debian --- hal-0.5.8.1/debian/README.Debian +++ hal-0.5.8.1/debian/README.Debian @@ -13 +13,13 @@ - -- Sjoerd Simons <[EMAIL PROTECTED]> + + Some CD and DVD drives, such as the GDR8162B model found in some Dell + laptops, do not correctly handle media status inquiries and incorrectly + spin up the drive when they should not. Since hal regularly polls CD + drives for media changes, this results in increased power consumption and + mechanical wear and tear on such drives, which remain spinning constantly + while hal is running. + + If you have a CD/DVD drive exhibiting this problem, you can copy + /usr/share/doc/hal/examples/no-cd-media-check.fdi to /etc/hal/fdi/policy/ to + disable media checks for your drive. This file disables media checks for + all CD drives on the system, and also includes an example config for + disabling media checks only on a specific drive. diff -u hal-0.5.8.1/debian/changelog hal-0.5.8.1/debian/changelog --- hal-0.5.8.1/debian/changelog +++ hal-0.5.8.1/debian/changelog @@ -1,3 +1,13 @@ +hal (0.5.8.1-6.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for RC bugfix. + * Provide /usr/share/doc/hal/examples/no-cd-media-check.fdi as an example + for disabling CD ROM media checks, and document this in README.Debian, as + a workaround for CD drives with broken firmware. Closes: #370186. + + -- Steve Langasek <[EMAIL PROTECTED]> Mon, 12 Feb 2007 16:42:29 -0800 + hal (0.5.8.1-6) unstable; urgency=low * debian/patches/19_sonypi_support.patch only in patch2: unchanged: --- hal-0.5.8.1.orig/debian/hal.examples +++ hal-0.5.8.1/debian/hal.examples @@ -0,0 +1 @@ +debian/no-cd-media-check.fdi only in patch2: unchanged: --- hal-0.5.8.1.orig/debian/no-cd-media-check.fdi +++ hal-0.5.8.1/debian/no-cd-media-check.fdi @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> + +<!-- + An example fdi config that disables media checks on CD devices, to work + around certain hardware bugs described in Debian bug #370186 +--> +<deviceinfo version="0.2"> + +<!-- + The following disables the use of hald-addon-storage for all CD/DVD devices + on the system. +--> + <device> + <match key="storage.cdrom.cdr" bool="true"> + <merge key="info.addons" type="strlist"></merge> + </match> + </device> + +<!-- + The following disables the use of hald-addon-storage for specific CD + devices, by name. You can find the name of your particular CD device + using the 'lshal' command. +--> + <device> + <match key="info.product" string="HL-DT-STDVD-ROM GDR8162B"> + <merge key="info.addons" type="strlist"></merge> + </match> + </device> + <device> + <match key="info.product" string="HL-DT-ST DVDRAM GSA-4080N"> + <merge key="info.addons" type="strlist"></merge> + </match> + </device> + +</deviceinfo> +