From mboxrd@z Thu Jan 1 00:00:00 1970 From: Justin Schoeman Date: Fri, 13 Nov 2009 14:43:35 +0000 Subject: Re: can't seem to ignore a battery Message-Id: <4AFD7097.3080500@expertron.co.za> List-Id: References: <29507.1258042014@foxharp.boston.ma.us> In-Reply-To: <29507.1258042014@foxharp.boston.ma.us> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I am not subscribed to linux-hotplug, but am following this thread on the list archive. This is exactly the problem I am having with my Huawei E220 modem. (The modem has a usb cdrom device with the Windows drivers.) The cdrom emulation on the device is broken, so userland attempts to mount the device trigger a device reset. The network operators don't care, because the device works under Windows, and that is all they support. So getting the firmware fixed is not an option. The Linux kernel guys do not want to put work arounds for buggy hardware (just about every Huawei device type has broken the cdrom/scsi protocol in some obscure, but different way) into generic code. They recommend that seeing as the bug is triggered from userspace, it must be fixed in userspace. With HAL, it was a simple one-line fix, and the device was ignored by all applications, and everything worked perfectly. Doing the same in udev is proving very tricky. If you can please advise on how to block this in udev, or the correct place to add the fix in the userland apps/scripts, I would appreciate it. Thanks, Justin