Andrew Benton | 1 Jul 2005 14:07
Picon
Picon

Re: HotPlug and Udev Questions

Dan McGhee wrote:
> My printer, which prints "randomly" and my desire to have my new digital 
> camera work with GIMP caused me to start researching hotplug.  (BEGIN 
> OFF TOPIC  The ghoto2 Users' Manual has a great discussion of 
> permissions and configurations for usb.  END OFF TOPIC)  My research 
> ultimately lead to Section 7.4 of the LFS Manual.  In particular, 
> Section 7.4.3, "Handling Hotpluggable/Dynamic Devices, p. 244, says:
> 
> If the driver of the just plugged in device is available as a module but 
> currently unloaded, then attaching the device to the system will only 
> cause the kernel's bus driver to generate a hotplug event that notifies 
> userspace of the new device connection and it not being attached to a 
> driver.  In effect, nothing happens and the device itself is not usable 
> yet.
> 
What I do is build the kernel modules for the things I need (parallel printer, usb printer, digital camera)
into the kernel. That way the drivers are always available  and I avoid a few module loading issues. I can't
see the point of modules if you compile your own kernel. The printers are always connected so I don't think
hotplug is relevant at all. CUPS handles them. (I won't start talking about cups or I'll be here all day ;) 
As far as the kernel is concerned my digital camera is fat 32 usb flash memory just like an mp3 player, flash
memory stick, usb portable hard disk, whatever. They all end up as /dev/sda1 and I mount them with this line
in /etc/fstab

/dev/sda1 /mnt/mp3 auto defaults,user,noauto 0 0

gphoto has never done anything useful for me but YMMV
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Gmane