[linux] "Kon scanner niet aanzetten: fout argument" (was:HELP, zie geen scanner)

Daniel C. von Asmuth asmuth op bakunin.xs4all.nl
Wo Apr 1 10:00:45 CEST 2020


Aldus schreef harry.harmsen op gmail.com op Wed, Apr 01, 2020 at 12:19:34AM +0200:
> Op ma 30 mrt. 2020 om 18:38 schreef Daniel C. von Asmuth <
> asmuth op bakunin.xs4all.nl>:
> > Aldus schreef harry.harmsen op gmail.com op Mon, Mar 30, 2020 at 06:06:41PM
> > +0200:
> > > Op ma 30 mrt. 2020 om 17:29 schreef Daniel C. von Asmuth <
> > > asmuth op bakunin.xs4all.nl>:
> > > > Aldus schreef harry.harmsen op gmail.com op Mon, Mar 30, 2020 at
> > 04:47:39PM
> > > > +0200:
> > > > Volgende gedaan:
> > > harry op harry-MS-7708 ~ $ scanimage -d brother4:bus4:dev2 --format=tiff
> > > --mode Color --resolution 75 >test.tiff
> > > scanimage: open of device brother4:bus4:dev2 failed: Invalid argument
> > >
> > > en:
> > > harry op harry-MS-7708 ~ $ scanimage -d brother4:bus4
> > > scanimage: open of device brother4:bus4 failed: Invalid argument
> >
> > Dit betekent dat de device optie niet goed is. Welke output geeft:
> >         sane-find-scanner
> >
> > Ik las https://en.opensuse.org/SDB:Configuring_Scanners
> >
> > Daar staat zoiets als dat de syntax van het device voor USB scanners iets
> > is
> > als device 'backend-name:libusb:bus-ID:device-ID'
> >
> > Ook handig is het 'lsusb' commando.
> >
> > Nu vermoed ik dat de juiste optie iets is als -d 'brother4:libusb:4:2'
> >
> > Ook te proberen: de --test optie toevoegen aan het scanimage commando.
> 
> Even wat output:
> 
> harry op harry-MS-7708 ~ $ scanimage --test
> scanimage: rounded value of br-x from 215.9 to 215.88
> scanimage: rounded value of br-y from 355.6 to 355.567
> scanimage: scanning image of size 1680x2322 pixels at 24 bits/pixel
> scanimage: acquiring RGB frame, 8 bits/sample
> scanimage: reading one scanline, 5040 bytes... PASS
> scanimage: reading one byte... PASS
> scanimage: stepped read, 2 bytes... PASS
> scanimage: stepped read, 4 bytes... PASS
> scanimage: stepped read, 8 bytes... PASS

Dit zou betekenen dat het programma de scanner heeft gevonden zonder dat u
het heeft verteld waar de scanner te vinden is....

> harry op harry-MS-7708 ~ $ lsusb
> Bus 002 Device 004: ID 13d3:3306 IMC Networks Mediao 802.11n WLAN [Realtek
> RTL8191SU]
> Bus 002 Device 003: ID 058f:6360 Alcor Micro Corp. Multimedia Card Reader
> Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 001 Device 004: ID 05fe:0011 Chic Technology Corp. Browser Mouse
> Bus 001 Device 003: ID 04f9:02e4 Brother Industries, Ltd DCP-J752DW
> Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Dat suggereert dat de scanner verbonden is met een andere USB-poort dan de
vorige keer (bus 1 device 3)

> harry op harry-MS-7708 ~ $ sane-find-scanner
> 
>   # sane-find-scanner will now attempt to detect your scanner. If the
>   # result is different from what you expected, first make sure your
>   # scanner is powered up and properly connected to your computer.
> 
>   # No SCSI scanners found. If you expected something different, make sure
> that
>   # you have loaded a kernel SCSI driver for your SCSI adapter.
> 
> could not open USB device 0x13d3/0x3306 at 002:004: Access denied
> (insufficient permissions)

Dat kan als u het commando niet met het root account uitvoert. 

>   # You may want to run this program as root to find all devices. Once you
>   # found the scanner devices, be sure to adjust access permissions as
>   # necessary.
> 
> Groet,
> Harry


Met vriendelijke groet,



Daniel von Asmuth
--

P.S. Ik stuur dit bericht naar de lijst -- ik kan u vanaf dit adres niet
     rechtstreeks mailen.


Meer informatie over de Linux maillijst