PDA

View Full Version : [XFCE] Auto mounting card reader


xhhj
May 24th, 2011, 10:01
Hello FreeBSD users!

I am running FreeBSD on a Dell XPS M1530 and XFCE can detect, mount USB storage devices and display their icons on the desktop just fine, however it can not mount my integrated card reader when I insert a card. How do I fix this? I should also add that I have loaded all the necessary modules and can mount the card reader manually through the mount command.

Thank you in advance.

wblock@
May 24th, 2011, 12:48
The card reader shows up as a device like /dev/da0 regardless of whether there's a card in it, and nothing is polling it to check for new cards. The low-tech way is to force a re-read by writing to the device, or at least opening it for a write.
true > /dev/da0
which looks wrong, but isn't. true doesn't produce any output, so nothing is actually written to the card, but the GEOM system "retastes" it.

xhhj
May 24th, 2011, 14:39
But new devices are appearing in /dev/ when I insert a card. They're called /dev/mmcsd0 and /dev/mmcsd0s1. Is there something in xfce that I can set to poll for these devices?

wblock@
May 24th, 2011, 15:32
What version of xfce? 4.6 still uses HAL. 4.8 does not, and there's no easy substitute in FreeBSD.

xhhj
May 24th, 2011, 15:42
I'm using XFCE version 4.6.2

wblock@
May 24th, 2011, 16:24
HAL can be configured to poll devices, but beyond that I don't know the details.