Package: hal-info
Version: 20080215-1
Severity: normal
Tags: patch
The Huawei E220 is a USB HSPDA/GPRS modem. It appears to the computer as
a USB CD drive, on which are drivers for Windows systems. Of course, we
need no such drivers, so the CD drive is useless and annoying as it is
mounted by GNOME whenever a user logs in.
The attached patch (taken from
<https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/105545>)
causes HAL to ignore the CD drive.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (520, 'testing'), (510, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-- no debconf information
diff -Nru foo bar
--- hal-info-20071212/fdi/preprobe/10osvendor/20-broken-usb-sticks.fdi.orig
2008-02-25 22:57:08.000000000 +0000
+++ hal-info-20071212/fdi/preprobe/10osvendor/20-broken-usb-sticks.fdi
2008-02-25 22:59:33.000000000 +0000
@@ -26,6 +26,12 @@
<merge key="storage.media_check_enabled" type="bool">false</merge>
</match>
</match>
+ <!-- Ignore the Huawei E220 USB HSDPA modem -->
+ <match key="@storage.originating_device:usb.vendor_id" int="0x12d1">
+ <match key="@storage.originating_device:usb.product_id" int="0x1003">
+ <merge key="info.ignore" type="bool">true</merge>
+ </match>
+ </match>
</match>
</device>
</deviceinfo>