Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev - lp0 permanent anlegen.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
root_tux_linux
l33t
l33t


Joined: 21 Dec 2003
Posts: 966

PostPosted: Mon Dec 27, 2004 9:13 pm    Post subject: udev - lp0 permanent anlegen. Reply with quote

Hossa...


Also das Problem ist, das ich udev "neuling" bin und gern wüsste wie ich z.B. /dev/lp0 permanent anlege da es ja nach jedem Reboot wieder verschwindet.


Hat jemand ein Hinweis für mich?
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Mon Dec 27, 2004 9:26 pm    Post subject: Reply with quote

Die Links sollten eigentlich gut helfen
http://webpages.charter.net/decibelshelp/LinuxHelp_UDEVPrimer.html#udevrules
http://www.reactivated.net/udevrules.php#example-printer
Back to top
View user's profile Send private message
root_tux_linux
l33t
l33t


Joined: 21 Dec 2003
Posts: 966

PostPosted: Mon Dec 27, 2004 11:12 pm    Post subject: Reply with quote

Klappt irgendwie nicht wirklich :(
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Mon Dec 27, 2004 11:26 pm    Post subject: Reply with quote

root_tux_linux wrote:
Klappt irgendwie nicht wirklich :(

Fuer einen guten Support waere es vielleicht hilfreich wenn du sagst was du genau machst ;-)
Back to top
View user's profile Send private message
root_tux_linux
l33t
l33t


Joined: 21 Dec 2003
Posts: 966

PostPosted: Mon Dec 27, 2004 11:33 pm    Post subject: Reply with quote

Laut der Anleitung über /sys/block und /sys/class infos bekommen...

Quote:
root@gentoo dev # udevinfo -q path -n /dev/par0
device not found in database


Den Drucker find ich weder im /sys noch im /proc angeschlossen ist er aber laut dmesg und er funktioniert auch, ich kann ihn ansprechen über /dev/par0 wenn ich zuvor mit MAKEDEV par den nod erstelle.

Quote:
root@gentoo dev # dmesg | grep parport
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
parport0: Printer, HEWLETT-PACKARD DESKJET 940C


Leider wird in der Anleitung nur USB-Drucker erklärt und keinen der über LPT1 lauft.
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Tue Dec 28, 2004 12:19 am    Post subject: Reply with quote

Bei dir sind also /dev/lp0 und /dev/par0 nicht vorhanden? Bei mir sind sie schon vorhanden obwohl ich gar keinen drucker konfiguriert habe. Komisch. :?

Wenn du permanente Links setzen willst, sollte das mit der /etc/udev/links.conf moeglich sein
Code:
L xyz /dev/xxx
Back to top
View user's profile Send private message
root_tux_linux
l33t
l33t


Joined: 21 Dec 2003
Posts: 966

PostPosted: Tue Dec 28, 2004 12:29 am    Post subject: Reply with quote

sirro wrote:
Bei dir sind also /dev/lp0 und /dev/par0 nicht vorhanden? Bei mir sind sie schon vorhanden obwohl ich gar keinen drucker konfiguriert habe. Komisch. :?

Wenn du permanente Links setzen willst, sollte das mit der /etc/udev/links.conf moeglich sein
Code:
L xyz /dev/xxx


Genau fehlen beide /dev/par* und /dev/lp*


links.conf gibts nicht und links bringen ja nichts wenn die node's fehlen das ist mein problem.
Back to top
View user's profile Send private message
root_tux_linux
l33t
l33t


Joined: 21 Dec 2003
Posts: 966

PostPosted: Tue Dec 28, 2004 7:23 am    Post subject: nerv! Reply with quote

Also ich hab jetzt folgendes getan.

1.emerge udev
2.emerge hotplug
3.rc-update add hotplug boot
4.devfs=nomount in lilo.conf unter append geschrieben & neu in den MBR geschrieben
5./etc/conf.d/rc auf RC_DEVICE_TARBALL="no" gestellt
6. dann udevinfo -a -p /sys/class/printer/lp0 (Ausgabe war nur SYSFS{dev}="6:0"
7. In /etc/udev.d/rules.d/10-local.rules die vier Regel-Varianten versucht.

KERNEL="lp[0-9]*", SYSFS{dev}="6:0", NAME="k%", SYMLINK="printers/0"
KERNEL="par[0-9]*", SYSFS{dev}="6:0", NAME="k%", SYMLINK="printers/0"
KERNEL="parport[0-9]*", SYSFS{dev}="6:0", NAME="k%", SYMLINK="printers/0"
SYSFS{dev}="6:0", NAME="k%", SYMLINK="printers/0"


Wirkt beides nicht und ein parport0 an dem der Drucker laut dmesg gefunden wird gibt es nicht in /sys!

Quote:
root@gentoo root # udevinfo -a -p /sys/class/printer/lp0/

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

looking at class device '/sys/class/printer/lp0':
SYSFS{dev}="6:0"

root@gentoo root #


Quote:
root@gentoo root # find /sys -name *par*
/sys/module/floppy/sections/__obsparm
/sys/module/lp/sections/__obsparm
/sys/module/ohci_hcd/sections/__param
/sys/module/uhci_hcd/sections/__param
/sys/module/usbcore/sections/__param
/sys/module/parport_pc
/sys/module/parport_pc/sections/__obsparm
/sys/module/parport
/sys/module/sg/sections/__param
/sys/module/st/sections/__param
/sys/module/ide_cd/sections/__obsparm
/sys/bus/pci/drivers/parport_pc
root@gentoo root #


Quote:
root@gentoo root # cat /proc/sys/dev/parport/parport0/autoprobe
CLASS:PRINTER;
MODEL:DESKJET 940C;
MANUFACTURER:HEWLETT-PACKARD;
DESCRIPTION:Hewlett-Packard DeskJet 940C;
COMMAND SET:MLC,PCL,PML;
root@gentoo root # udevinfo -a -p /proc/sys/dev/parport/parport0/autoprobe
couldn't get the class device
root@gentoo root # udevinfo -a -p /proc/sys/dev/parport/parport0/
couldn't get the class device
root@gentoo root #



A) Wieso fehlen die Node's
B) Wieso gibts keine Infos über parport in /sys
C) Wer hat einen Drucker der über LPT1 lauft schon mal zum laufen gebracht?
Back to top
View user's profile Send private message
root_tux_linux
l33t
l33t


Joined: 21 Dec 2003
Posts: 966

PostPosted: Wed Dec 29, 2004 7:02 am    Post subject: Reply with quote

Soviele Foren-User und keiner hat udev und einen Drucker der über LPT1 lauft?


Hilfe?
Back to top
View user's profile Send private message
misterjack
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1655

PostPosted: Wed Dec 29, 2004 10:55 am    Post subject: Reply with quote

vielleicht hilft dir http://de.gentoo-wiki.com/HOWTO_Udev_Rules weiter
deine regeln erstellen das device /dev/printers/0 und kein /dev/lp0 oder dergleichen...
_________________
„Meine Meinung steht fest! Bitte verwirren Sie mich nicht mit Tatsachen.“
Back to top
View user's profile Send private message
root_tux_linux
l33t
l33t


Joined: 21 Dec 2003
Posts: 966

PostPosted: Wed Dec 29, 2004 11:39 am    Post subject: Reply with quote

Hilft mir leider nicht weiter...

Ist die gleiche Anleitung wie ich sie schon auf Englisch gelesen habe...

Das ein Link /dev/printers/0 erstellt wird ist mir klar, will ich auch so weil er mit devfs ja auch so heisst nur eben erstellt es keinen und infos per udevinfo über /sys findet man auch keine!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum