From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Smirl Date: Sat, 27 Dec 2003 21:19:55 +0000 Subject: Re: CALLOUT for dri device Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org That was easy, now it's calling my reset program. How do I tell if it is an insert or remove event? My program gets called on both. Does this work for built-in drivers? Will I get an insert event as soon as userspace is running? --- Greg KH wrote: > On Sat, Dec 27, 2003 at 09:26:50AM -0800, Jon Smirl wrote: > > Can I make a CALLOUT for a class of devices, like all DRI devices? When the > > driver is loaded I need to run a userspace program to reset the card (if > > secondary), query the monitor EDID, etc. This has to be done in userspace > since > > reseting the card is a VM86 operation. > > Don't use udev for this. Use hotplug for things like this. You can add > your dri specific scripts to /etc/hotplug.d/dri/ > > See the documentation in the /sbin/hotplug script on how to do this. > > thanks, > > greg k-h ==Jon Smirl jonsmirl@yahoo.com __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&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