Date: Wed, 14 Oct 2009 14:38:47 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Joe Marcus Clarke <marcus@marcuscom.com> Cc: current@freebsd.org Subject: Re: Why does hal think my USB devices are fixed? Message-ID: <alpine.BSF.2.00.0910141417190.74210@wonkity.com> In-Reply-To: <1255546422.22880.136.camel@shumai.marcuscom.com> References: <alpine.BSF.2.00.0910141055410.73454@wonkity.com> <1255542419.22880.131.camel@shumai.marcuscom.com> <alpine.BSF.2.00.0910141240130.73916@wonkity.com> <1255546422.22880.136.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 14 Oct 2009, Joe Marcus Clarke wrote: > > I don't have any card readers, but as Hans pointed out, this part will > come from the SCSI subsystem. If CAM says the device is not removable, > then hal will go with that. Light sledgehammering in /usr/local/share/hal/fdi/preprobe/20thirdparty and the card reader can be made to work: First, stop hal trying to automount a card twice, once for the redundant "computer_storage" version of a disk: 10-ignore-computer_storage.fdi : <?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <!-- ignore duplicate entries for storage devices --> <match key="block.storage_device" string="/org/freedesktop/Hal/devices/computer_storage"> <merge key="info.ignore" type="bool">true</merge> </match> </device> </deviceinfo> Then set some options for the card reader: 20-check-media.fdi : <?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <!-- check for media changes in card reader --> storage.media_check_enabled <match key="freebsd.driver" string="da"> <merge key="storage.media_check_enabled" type="bool">true</merge> <merge key="storage.hotpluggable" type="bool">true</merge> </match> </device> </deviceinfo> hal still sometimes doesn't notice new cards being connected, and the card reader's USB cable has to be reconnected. But at this point, it's at least as good as it was under 7-STABLE. -Warren Block * Rapid City, South Dakota USA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0910141417190.74210>