Brauche eine Lösung für mein Parallelportproblem:
Unter Windows brauche ich IRQ 5 Port 0278
Unter LINUX (IRQ 7) Port 0378
Kann man die Ports unter LINUX umbiegen bzw. gleichsetzen?
Brauche eine Lösung für mein Parallelportproblem:
Unter Windows brauche ich IRQ 5 Port 0278
Unter LINUX (IRQ 7) Port 0378
Kann man die Ports unter LINUX umbiegen bzw. gleichsetzen?
Huch! Dachte nicht, dass das so ein Problem ist!
Ist wohl doch nicht so leicht, wie?
Hallo,
mit dem Betriebssystem hat das wenig zun.
Das erledigt normalerweise das BIOS.
Viele Grüße
Eicke
ist mir schon klar, dass normalerweise das BIOS die Ports verwaltet.
Dort kann ich ja auch leicht die Ports umstellen.
Aber ich will nicht jedesmal, wenn ich unter LINUX und dann wieder unter Windows arbeite im
BIOS die Ports umstellen müssen.
Daher die Frage.
Kann man LINUX vormachen, dass es auf Port 0378 zugreift, obwohl 0278 eingestellt ist,
also so eine Art Umlenkung der Ports bewerkstelligen.
Also wenn die BIOS Recorcen frei sind kannst du evtl beim booten über die Lilo Append Zeile oder über die modules.conf dem Modul, respektive dem Kernel Parameter zum Modul übergeben. Da solltest du mal google fragen, da gibt es sicherlich irgendwas zu. Habe mal was ähnliches machen müssen mit 2 ISA Netzwerkkarten.....
Gruß Ulli
---------
Notebook: MacBookPro | Late 2012, 16 GB RAM | Software: Mac OS X 10.8.2 | Parallels mit Ubuntu 12.4 mit XFCE und Windows 8 | NetAachen DSL 6000, FritzBox Fon 7270 | mehrere DD-WRT AP's
Danke für den Tip!
Meinst du etwa so etwas: append="lp=0x278" ?
habs eben ausprobiert:
eine append-Zeile wie
append="lp=0x278" in lilo.conf brigt leider nichts...
das Programm meldet weiterhin "probing 0378..."
Im übrigen läuft ja auch mein EPSON STYLUS Color 740 wunderbar über Port 0278 (auch ohne append),
also muss ja wohl
grundsätzlich der Port erkannt worden sein, oder?
bekam gerade folgenden Tip, den ich bei nächster Gelegenheit mal teste:
Eventuell ist das das Modul pt_drv, da laut der Sane Doku die Primax
Parallelport-Scanner damit laufen. Diesem Modul kann man Parameter mitgeben z.B.
port=0x378. Ein Eintrag in der /etc/modules.conf könnte dann so aussehen:
alias char-major-40 pt_drv
pre-install pt_drv modprobe -k parport
options pt_drv lampoff=180 warmup=15 port=0x378 lOffonEnd=0 mov=0 slowIO=1
bei mir müßte es dann ja wohl port=0x278 heißen wie im BIOS eingestellt.
Kennt das jemand?
bekomm immer noch folgende Meldung:
[root@localhost root]# primax_scan
This Port does not support the EPP-Mode
Please activate EPP-Mode or
ECP-Mode with included EPP-mode!
The activated and detected Modis are:
[root@localhost root]# pxscan
pxscan version 0.41
Probing port 0378
This Port supports not the EPP-Mode
Please activate EPP-Mode or
EPP + ECP-Mode!
obwohl ich obige Zeilen in meine /modules.conf eingefügt hab nur bei der
options-Zeile natürlich port=0x278
So geht es leider auch nicht... , schade...,
aber trotzdem danke für den Tip.
Hast du den den ECP/EPP Modus im BIOS für die schnittstelle ausgewählt.... sonst kann es ja nicht gehen
Gruß Ulli
---------
Notebook: MacBookPro | Late 2012, 16 GB RAM | Software: Mac OS X 10.8.2 | Parallels mit Ubuntu 12.4 mit XFCE und Windows 8 | NetAachen DSL 6000, FritzBox Fon 7270 | mehrere DD-WRT AP's
Ich hab momentan im BIOS nur EPP ausgewählt hatte aber auch schon ECP + EPP ausprobiert,
das Ergebnis ist total das gleiche.
Ich weiß nicht wo dabei das System einen Unterschied macht.
Was bringt ECP +EPP gegenüber EPP?
na da kanns ja wohl nicht funktionieren:
Hab folgendes in der source-Datei lp.c gefunden:
/* primax_scan -- linux driver for Primax scanners
Authors:
Marco Foglia <Marco.Foglia@switzerland.org>
Thomas Schano <schano@t-online.de>
Christian Ordig <chr.ordig@gmx.net>
Copyright (C) 1999 Marco Foglia, Thomas Schano, Christian Ordig
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <asm/io.h>
#include <stdio.h>
#include <unistd.h>
#include <sched.h>
#include <sys/time.h>
#include "primax_scan.h"
#include "lp.h"
static int last_set_mode = -1; /* Mode from last epp_set_mode() */
static int port_feature;
static unsigned char port_mode;
unsigned short port = 0x378;
++++++++++++++++
Das werd ich jetzt mal auf port = 0x278 abändern neu kompilieren und sehen was rauskommt...
Du kannst die Basisaddresse des I/O Ports nicht im Treiber ändern, die Ports sind dann bereits konfiguriert. Der Treiber muss also diejenige Addresse benutzen, die durch das BIOS eingestellt worden ist, ansonsten funktioniert die Geschichte nicht.
Vielen Dank für eure Mühe und Hilfe,
hab doch glatt einen SChalter übersehen:
[robert@localhost robert]$ primax_scan --help
Usage:
-h , --help shows this message
-v [LEVEL] , --verbose=[LEVEL] increase debugging output
-P PORT , --port=PORT Hex-address of the parallel-PORT (378) /* da steht es doch !!! */ :O :O :O
-s SPEED , --speed=SPEED SPEED of the carriage {0,1,2...15}
-S RES , --Scanner=RES max. optical RESolution of the Scanner
{300,600} dpi
-V , --version display version
-p LxT , --pos=LxT position form Left x Top in inch
-d WxH , --dim=WxH Width x Heigth of scan area in
inch (max. 8.50 x 11.70)
-c C , --contrast=C Contrast {(-2000)..(1000)}
-b B , --brightness=B Brightness {(-200)..(200)}
-g G , --gamma=G Gamma {(0.2)..(5)}
-r RES , --res=RES RESolution in dpi (max. 300) see option -S
-f NAME , --file=NAME NAME for tiff-file
-C val , --Compression=val val=0 switches compression off
-l on/off , --lamp=on/off turn lamp on/off
-D , --RED only RED-channel
-E , --BLUE only BLUE-channel
-N , --GREEN only GREEN-channel
-R , --RGB 24-Bit RGB-mode (default)
-G , --GRAY 8-Bit GRAY-mode
-B , --BW 1-Bit Black-White-mode (possible with
all other modes)
leider bekomm ich aber noch folgende Fehlermeldung:
[root@localhost root]# primax_scan -P 278 -S 300
primax_scan.tif: LZW compression is not available to due to Unisys patent enforcement.
primax_scan.tif: Compression algorithm does not support random access.
Weiß jemand was ich da etentuell installieren oder ändern muss?
hab gerade folgendes entdeckt:
On Tue, Sep 03, 2002 at 09:43:59PM +0200, Siegfried Janutta wrote:
> Hallo Christian
> hallo linuxhacker-crew,
>
> please let me write german, it's not so heavy for me.
hope you at least understand the English answer ... this is an
international list ... If writing directly to me, you can of
course write in German ,-)
> 1) Welches nachstehend genannte Programm wird
> zusammen mit Primax (Parallelport) verwendet ?:
>
> Gimp - Sane - Xsane - Gocr - Clara - Kooka
Gimp: is only for Image manipulations ... like Photopaint(Tm) or Photoshop(Tm)
SANE: is a scanner framework like TWAIN under Win
XSane: is a frontend for SANE
the other stuff you mentioned is unkown to me ...
but to make it short ... nothing of these programs is needed to use your
scanner.
> 2) Welches Programm sollte ich neben
> Primax_scan-0.93beta3.tar.gz auch installieren ?:
this is the original scanner program by Marco, Thomas and me. There's
no need for any further program in order to scan with your scanner.
> Primaxd-0.5.tar.gz
is a SANE backend by Andre Herms. It's based on an earlier version of our
primax_scan ... and is a standalone project not depending on primax_scan,
but needs SANE.
> PrimaxGUI-0.99-9.tar.gz (falsche Version ?)
PrimaxGUI is a frontend for primax_scan to make scanning much easier.
it has its own version numbering. This program is recommanded for use
with primax_scan
> 3) Wird mit Primax das Modul pt-drv benötigt
> und wenn ja, wo finde ich es ?
never heard about this ... and not using it ... so I guess: no it's not
required ,-)
> 4) Bei mir ist u.a. installiert:
>
> libxml, libxml2, libxml2-devel, libtiff
the XML stuff is only needed for primaxd
libtiff is needed by primax_scan
> 6) wieselsdachsbau:~ # primax_scan -ljpeg -lz
the -ljpeg and -lz are command line parameters for the compiler/linker ...
not for finally compiled program.
To see the parameters of primax_scan type primax_scab --help
> 7) Beim Aufruf von primax_scan leuchtet die Lampe
> des Scanners und der Sannvorgang beginnt. Alsdann
> werden folgende Fehlermeldungen ausgegeben:
>
> wieselsdachsbau:~ # primax_scan
> primax_scan.tif: LZW compression is not available to due to Unisys patent enforcement.
> primax_scan.tif: Compression algorithm does not support random access.
> [. . . .]
yes. that's a problem. Newer versions of libtiff don't support LZW compression
anymore.
use primax_scan -C 0 to switch off compression.
> Nach Abschluß des Scannvorganges erlischt die Leuchte nicht.
> (Auch nicht beim Ausschalten des PC's)
primax_scan -l off
--
Christian Ordig
Germany
Lesezeichen