From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 12 Mar 2010 15:53:08 +0000 Subject: Re: Starting with udev Message-Id: List-Id: References: <20100311095534.637ab0a7@tosh-l20.laptop> In-Reply-To: <20100311095534.637ab0a7@tosh-l20.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Mar 12, 2010 at 16:39, Salvatore De Paolis wrote: > On Thu, 11 Mar 2010 10:33:49 +0100 > Kay Sievers wrote: > >> Udev runs at the system-level as root, it can not talk to your user >> session where the notification would appear. You have to subscribe to >> events from your user session, and not put system-wide rules into >> udev, to get events in your session. > Thank's it's clear now the logic under it. By the way I didn't find a lot of > documentation about it. Writing udev rules [1] doesn't help from this side. > I'll get the source and build the doc. > Otherwise do you have other useful links? This is maybe the closest to what you are looking for. Ignore all the HAL bits, that all has changed, but the model is almost the same. Look at the diagram at page 17 for the flow of events in a more complicated example: http://people.freedesktop.org/~david/talks/dynamic-device-handling-OLS-2006.pdf Less pretty diagrams, but pretty much up-to-date: http://people.freedesktop.org/~david/talks/Plumbers-2009-Sievers-Zeuthen-Replugging-The-Modern-Desktop.pdf Kay