linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Looking for a clue in how udev, hal, hotplug and dbus work together
@ 2005-09-13  4:50 Jim McQuillan
  2005-09-13 17:03 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jim McQuillan @ 2005-09-13  4:50 UTC (permalink / raw)
  To: linux-hotplug

Hey all,

I'm trying to get a grasp on how udev, hal, hotplug and dbus play
together in detecting devices.

I'm doing this for LTSP (Linux Terminal Server Project).  This is
Thin-clients in Linux.  We currently have the ability to plug a usb
device in, such as a mini-cruizer USB memory stick.  When the device is
inserted, we have a hotplug script written in perl, that gets the event
from the kernel, figures out what kind of device it is, loads the
appropriate kernel modules, mounts the filesystem on the device, and
then signals the server that a new device is available.  This is all
under a 2.4.26 kernel.

Now, I'm moving up to a 2.6.13 kernel, and I'd like to do things the
"right way".  That is, I'm dropping devfs, and using udev.  I'm thinking
that to use udev, then I also should be using hal and dbus.  But so far,
i've not been able to wrap my head around how it all works together.

from what I've read, it seems that I should be setting
/proc/sys/kernel/hotplug to "", and that "netlink" is now used for the
kernel to send messages to udev.  Then, udev sends messages to hald.

So, my question is, when a new USB device is plugged in, take the
'mini-cruizer' memory stick for example, at what point is the kernel
module loaded?  Does 'hald' handle that?  or do I still need "hotplug"
scripts.

Once the mini-cruizer is detected, where to I put my hooks in, to signal
the server that a new device is available?

If someone can just give me a shove in the right direction, i'm sure I
can get moving a whole lot faster than I am now.

Thanks,
Jim McQuillan
jam@Ltsp.org


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-13 17:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-13  4:50 Looking for a clue in how udev, hal, hotplug and dbus work together Jim McQuillan
2005-09-13 17:03 ` Kay Sievers
2005-09-13 17:12 ` Looking for a clue in how udev, hal, hotplug and dbus work Jim McQuillan
2005-09-13 17:27 ` Looking for a clue in how udev, hal, hotplug and dbus work together Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).