* Using udevstart as hotplug program.
@ 2005-06-16 9:12 Nori, Soma Sekhar
2005-06-16 18:38 ` Greg KH
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nori, Soma Sekhar @ 2005-06-16 9:12 UTC (permalink / raw)
To: linux-hotplug
Hi,
I am running a 2.6.10 kernel (from kernel.org)
I am trying to use udevstart (version 055) as the hotplug program
for USB plug and unplug events.
I compiled the kernel with CONFIG_HOTPLUG=y and CONFIG_KOBJECT_UEVENT=y
Also, before connecting any USB devices I do:
echo "/sbin/udevstart" > /proc/sys/kernel/hotplug
But, after connecting a USB mouse, /dev/usb/hiddev0 does not get created
automatically. But, if I run udevstart manually, the device node does
get created.
I guess /sbin/udevstart is not getting called by the hotplug subsystem.
From what I understand, any program given in /proc/sys/kernel/hotplug
should get called whenever a USB plug/unplug occurs.
I know that the USB subsystem is working correctly since I can
cat /dev/usb/hiddev0 and see the mouse movements getting dumped.
(So the device must have enumerated correctly)
Note that I do not have /sbin/hotplug on my filesystem. But I guess its
not
necessary to have it.
What am I missing here? Is there any USB specific configuration for
generating
hotplug events? I could'nt find any such config though. Please let me
know.
Thanks,
Sekhar Nori
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&opÌk
_______________________________________________
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
* Re: Using udevstart as hotplug program.
2005-06-16 9:12 Using udevstart as hotplug program Nori, Soma Sekhar
@ 2005-06-16 18:38 ` Greg KH
2005-06-17 11:16 ` Nori, Soma Sekhar
2005-06-17 19:24 ` David Brownell
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2005-06-16 18:38 UTC (permalink / raw)
To: linux-hotplug
On Thu, Jun 16, 2005 at 02:30:37PM +0530, Nori, Soma Sekhar wrote:
>
> Hi,
>
> I am running a 2.6.10 kernel (from kernel.org)
>
> I am trying to use udevstart (version 055) as the hotplug program
> for USB plug and unplug events.
Why udevstart? That program can't handle netlink or hotplug events.
It's only supposed to be used at boot time.
I think you mean 'udevsend' :)
thanks,
greg k-h
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=click
_______________________________________________
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
* RE: Using udevstart as hotplug program.
2005-06-16 9:12 Using udevstart as hotplug program Nori, Soma Sekhar
2005-06-16 18:38 ` Greg KH
@ 2005-06-17 11:16 ` Nori, Soma Sekhar
2005-06-17 19:24 ` David Brownell
2 siblings, 0 replies; 4+ messages in thread
From: Nori, Soma Sekhar @ 2005-06-17 11:16 UTC (permalink / raw)
To: linux-hotplug
> > I am trying to use udevstart (version 055) as the hotplug program
> > for USB plug and unplug events.
>
> Why udevstart? That program can't handle netlink or hotplug events.
> It's only supposed to be used at boot time.
I am trying to have my fs in ~400K and as I already had the udevstart on
my fs
I was trying to piggyback to save space..
>
> I think you mean 'udevsend' :)
I installed all the udev binaries and scripts by doing:
make; make install
Here are my observations:
When using udevstart/udevsend as the hotplug program:
1) The device node does not get created when the mouse is plugged in for
the first time. The node gets created after I unplug the mouse. The
device
node gets created if I plugin two mouses (mice) using a hub.
2) After the initial laziness in creating the node, node is created (and
is also destroyed in case of udevsend) after each connect and
disconnect.
When using udev as the hotplug program:
1) The device nodes get created the first time I plug in the mouse and
gets removed as I unplug it. Everything is hunky-dory!
I enabled the debug in lib/kobject_uevent.c and saw that kobject_hotplug
is calling call_usermodehelper (thrice) for each plug and unplug event.
What can be going wrong in case of udevsend? Where should I start
debugging from?
I still do not have /sbin/hotplug on my fs. Is it necessary to have if
using udev?
Thanks,
Sekhar Nori.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&opÌk
_______________________________________________
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
* Re: Using udevstart as hotplug program.
2005-06-16 9:12 Using udevstart as hotplug program Nori, Soma Sekhar
2005-06-16 18:38 ` Greg KH
2005-06-17 11:16 ` Nori, Soma Sekhar
@ 2005-06-17 19:24 ` David Brownell
2 siblings, 0 replies; 4+ messages in thread
From: David Brownell @ 2005-06-17 19:24 UTC (permalink / raw)
To: linux-hotplug
On Friday 17 June 2005 4:04 am, Nori, Soma Sekhar wrote:
>
> I still do not have /sbin/hotplug on my fs. Is it necessary to have if
> using udev?
Something will need to "modprobe -q $MODALIAS", unless your kernel has
all drivers statically linked, and /sbin/hotplug is the usual place for it.
- Dave
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=click
_______________________________________________
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-06-17 19:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-16 9:12 Using udevstart as hotplug program Nori, Soma Sekhar
2005-06-16 18:38 ` Greg KH
2005-06-17 11:16 ` Nori, Soma Sekhar
2005-06-17 19:24 ` David Brownell
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).