PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : vmware express und parport0 - scannen geht nicht



holgerw
28.02.02, 08:38
Hallo,

folgendes Problem:
SuSE 7.3
neue vmware Version 2.0.4 als rpm
Win läuft darauf ordentlich
Drucker geht

aber:

Bidirektionaler Modus geht nicht
Vorschlag von vmware, statt /dev/lp0
/dev/parport0 anzugeben, wird dann mit folgender Fehlermeldung quittiert:

parport0 in use by another program - disconnected

Habe auch schon ein chmod auf /dev/parport0 bzw. 1 losgelassen.

Ich befürchte mal, dass der cups Daemon beim Systemstart /dev/parport blockiert.

Weiß jemand eine Lösung, bei der ich nicht zugunsten der Windoofemulation mein Linux so umbiegen muss, dass da dann irgendwas nicht mehr ordentlich läuft?

Danke für jeden Tipp.

Beste Grüße,
Holger

stefan.becker
28.02.02, 18:57
deine vermutung ist richtig. beim lpd ist das genauso. ich las mal irgendwo den tip, per kill den lpd vorher zu töten. ansonsten habe ich das unter vmware gefunden:

Bidirectional Parallel Ports and Linux 2.4.x Kernels

Be sure that PC Style Hardware (CONFIG_PARPORT_PC) is loaded as a module as
mentioned at the beginning of this section on using parallel ports. If you are using a
2.4.x kernel, the modules that provide bidirectional parallel port functionality are
parport, parport_pc and ppdev.
To see if these modules are installed and running on your system, run the lsmod
command as the root user. These three modules should be included in the listing of
running modules. You can also look at the /proc/modules file for the same list.
To load the proper modules, run this command:
insmod -k <modulename>

If none of the listed parallel port modules is running, use this command:
insmod -k parport_pc

This inserts the three modules needed for a bidirectional parallel port.
If you continue to see problems, it is possible that the lp module is running. If it is, the
virtual machine cannot use the parallel port correctly. To remove the lp module, run
this command as the root user:
rmmod lp

The lp module is necessary only for unidirectional parallel ports.
You should also ensure that the line referring to the lp module in the /etc/
modules.conf or /etc/ conf.modules file is removed or commented out by
inserting a # at the beginning of the line. The name of the configuration file depends
on the Linux distribution you are using. When you reboot the host after removing this
line, the configuration file no longer starts the lp module.
To ensure that the proper modules for the bidirectional parallel port are loaded at
boot time, add this line to the /etc/modules.conf or /etc/conf.modules
file:
alias parport_lowlevel parport_pc

Linux kernels in the 2.4.x series also use a special arbitrator that allows access to the
parallel port hardware. If the parallel port is in use by the host, the guest cannot use it.
If a virtual machine is using the parallel port, the host and any users accessing the host
are not given access to the device. Workstation puts a lock on the device, and this lock
restricts access so only the virtual machine can use the port.
You can use the Devices menu to disconnect the parallel port from the virtual
machine and reconnect it.

stefan.becker
01.03.02, 00:54
ps: welchen scanner hast du ? vielleicht geht der auch mit linux.

holgerw
01.03.02, 08:30
Hallo Stefan,

zunächst einmal vielen Dank für die ausführliche Antwort. Was meinen Scanner und das Zusammenspiel mit Linux angeht, kann man das leider vergessen.
Es handelt sich um einen Parallelportscanner von LG, und zwar den Scanworks 30a.

Das (Billig)-Teil wurde vor Jahren mal inklusive Software für nur 150,- angeboten - da hatte ich allenfalls mal was von Linux gehört und war noch Win95 User.

Aber wenn schon so etwas rumsteht - für einen gelegentlichen Scan reicht es.

Das Manual von Dir muss ich mir mal genau anschauen. Wenn ich den parport bidirektional für VM zum Laufen gebracht habe, melde ich mich nochmal.

Beste Grüße,
Holger

holgerw
01.03.02, 11:23
Hallo Stefan,

nun habe ich es folgendermaßen hinbekommen:

1. In modules.conf den alias mit lp auskommentiert. alias mit parport stand schon in modules.conf

Danach lief es immer noch nicht. Hatte dann noch eine Vermutung:

2. aus boot.local die Zeile
/sbin/modprobe ppa
entfernt.

Tja, nun habe ich keine automatische Iomegazipdrive Einbindung mehr beim booten, da ich das Zip aber sehr selten nutze, macht das nix.

Nun kann ich vmware mit /dev/parport0 bidirektional starten, es kommt keine Fehlermeldung. Da werde ich dann noch ein spezielles Mountscript für mein Zip basteln, das bei Bedarf das ppa Modul lädt, es beim Unmounten wieder entlädt. Hoffentlich bekomme ich das hin. Oder wüsstest Du eine elegantere Lösung?

Immerhin: Ohne große Bastelein habe ich das Problem gelöst und nun ein deutlich kleineres, was sich hoffentlich auch noch beseitigen lässt.

Beste Grüße,
Holger