udev and parallel printer
Hello,
I'm using udev-021 on a Gentoo system(pure udev, no device.tar.bz2, Linux 2.6.4). I have two problems with udev:
First, udev doesn't create /dev/lp0 for my printer. Is support for /dev/lp0 not implemented or is this my fault?
My second problem is with /dev/nvidia*. When I boot the first time after installing the nvidia kernel module (with sysfs support) a /dev/nvidia0 and a /dev/nvidiactl device is created, when I reboot again I don't get these entries. (nvidia kernel module is autoloaded via
in /etc/modules.autoload.d/kernel-2.6).
Any suggestions?
Tom Gufler
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · Thomas Gufler
Hello,
I'm using udev-021 on a Gentoo
system(pure udev, no device.tar.bz2, Linux 2.6.4). I have two problems with udev:
First, udev doesn't create/dev/lp0for my printer. Is support for/dev/lp0not implemented or is this my fault?
parallel port devices are not currently showing up in sysfs, so udev can not name them at this time, sorry.
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Greg KH
parallel port devices are not currently showing up in sysfs, so udev can not name them at this time, sorry.
???
[patrakov in ~]$ ls -l /sys/class/printer/lp0
����� 0
-r--r--r-- 1 root root 4096 2004-03-14 08:46 dev
[patrakov in ~]$ cat /sys/class/printer/lp0/dev
6:0
[patrakov in ~]$ ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 2004-01-16 09:57 /dev/lp0
This is a 2.6.4 kernel, with the lp module loaded. So it seems that the OP has a "chicken-and-egg" problem because lp is a module that cannot be inserted by hotplug scripts.
Some time ago I posted a very simple solution, and it has been ignored. So I post it once again below.
A very good approximation to the list of modules not detectable by hotplug but still providing useful devices is given by the following command:
egrep '(char|block)-major' /lib/modules/`uname -r`/modules.alias | \
awk '{print $3;}'(please put old cdroms like sbpcd, watchdogs and ieee1394 stuff into a blacklist)
We just want to probe them all either in udev initstript or as an additional .rc file in /etc/hotplug.
Signature · 12 lines
Alexander E. Patrakov ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op�k _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel