Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

2 votes
1 answers
4518 views
HPLIP -> HPAIO Error during device I/O
I'm running Chaos Calmer 15.05 (openwrt firmware) in a TPLINK WDR3600 and I'm trying to install SANE + HPLIP in order to get scanner over lan network. I installed sane-libs and sane-daemon + dependencies from official distribuition feed (for Chaos Calmer) and because HPLIP is not available for Chaos...
I'm running Chaos Calmer 15.05 (openwrt firmware) in a TPLINK WDR3600 and I'm trying to install SANE + HPLIP in order to get scanner over lan network. I installed sane-libs and sane-daemon + dependencies from official distribuition feed (for Chaos Calmer) and because HPLIP is not available for Chaos Calmer, I had to install HPLIP for 14.07 in third distribuition url , I don't know if the error below is because of this "version", but.... Well... Using sane-find-scanner I get scanner found out by the system, and scanimage -L returns me: > device > `hpaio:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000SS17TR2PR1a' > is a Hewlett-Packard HP_LaserJet_Professional_M1132_MFP all-in-one Although scanimage -T returns: > scanimage: open of device > hpaio:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000SS17TR2PR1a > failed: Error during device I/O Can someone help me? PS: Sane is returning me error: root@OpenWrt:~# saned -d [saned] main: starting debug mode (level 2) [saned] saned (AF-indep+IPv6) from sane-backends 1.0.25 starting up [saned] do_bindings: bind failed: Address already in use [saned] do_bindings: [1] bind failed: Address already in use [saned] do_bindings: couldn't bind an address. Exiting. [saned] FATAL ERROR; bailing out, waiting for children... [saned] bail_out: all children exited
Diego (21 rep)
Mar 29, 2016, 07:20 PM • Last activity: Jun 19, 2025, 08:09 AM
1 votes
2 answers
324 views
Frontend for libsane for manual batch scans,
Platform: Linux I have several documents that I want to batch scan without autofeed. Basically meaning that after a scan I want to "flip the page" and press a button to scan the next page, in the end getting a pdf document. Suggestions for software that will do this?
Platform: Linux I have several documents that I want to batch scan without autofeed. Basically meaning that after a scan I want to "flip the page" and press a button to scan the next page, in the end getting a pdf document. Suggestions for software that will do this?
HandyGandy (2239 rep)
Oct 12, 2010, 04:04 PM • Last activity: Jun 18, 2025, 03:48 PM
3 votes
1 answers
1893 views
Sane can't see Samsung CLX-3305W network scanner in Ubuntu 14.04LTS
I've installed a new Samsung CLX-3305W multifunction printer/scanner a couple of weeks ago on a dual boot system with W7 on one physical drive and Ubuntu 14.04 64-bit on a separate drive. The printer is connected via LAN, through a router and used as a network printer/scanner. Windows has no problem...
I've installed a new Samsung CLX-3305W multifunction printer/scanner a couple of weeks ago on a dual boot system with W7 on one physical drive and Ubuntu 14.04 64-bit on a separate drive. The printer is connected via LAN, through a router and used as a network printer/scanner. Windows has no problems printing and scanning over the network however, Ubuntu will only print and won't see/recognize the scanner. I've been prowling relevant Linux forums for advice and a solution, but to date nothing worked. Ubuntu is updated and as far as I can tell, all relevant drivers are present together with sane-utils, libsane and libsane-extras. I also have Simple Scan and Xsane installed. I can get around this problem by scanning directly to a USB memory stick or booting into Windows every time I need to scan something, but not being able to scan directly to Ubuntu is driving me silly. Could someone please help me out?
mormo (31 rep)
Jan 1, 2015, 02:12 PM • Last activity: Jun 7, 2025, 11:00 PM
1 votes
1 answers
1959 views
hplip 3.16.2: no installed HP device found (while CUPS finds it)
I was investigating further an issue already reported [here][1]. The problem is: after having upgraded the **hplip** driver to **3.16.2**, the scanner in my all-in-one printer **HP Color LaserJet Pro MFP M277dw** does not work any longer (while the printer does). Today I found other oddities that se...
I was investigating further an issue already reported here . The problem is: after having upgraded the **hplip** driver to **3.16.2**, the scanner in my all-in-one printer **HP Color LaserJet Pro MFP M277dw** does not work any longer (while the printer does). Today I found other oddities that seem specific to **hplip** rather than to **sane**, whereby this other post. I use **Ubuntu Linux 14.04 LTS**. In all that follows the device is connected and powered-on. The hplip page for that device is here . # Evidences # **a.** Moving on from the **sane** community page on Ubuntu , I followed the suggestion to run sudo hp-setup. The answer is warning: CUPSEXT could not be loaded. Please check HPLIP installation. **b.** If run hp-doctor, the welcome message is error: This distro (i.e ubuntu 14.04) is either deprecated or not yet supported. This sounds utterly odd to me, because the previous hplip did not dare to complain this far of the very same distro. The complete output of hp-doctor is available from here on Paste Ubuntu . **c.** Ever more puzzling, if I open the HP device manager, I am presented with the window enter image description here which seems a false statement to me, since the device works as a printer at the very least. If I click on Setup device... I get again the same dialogue window. And **CUPS** on localhost:631 indeed confirms that the printer is there ready to be found, nice and idle. # Questions # Is there a way to have the commands hp-setup and hp-doctor run smoothly so that I can fix the scanner issue down the line? If not, how do I downgrade the hplip driver to the previous stable version? Installing 3.16.2 has led to more havoc than joy.
XavierStuvw (1179 rep)
Jul 9, 2016, 07:35 PM • Last activity: May 29, 2025, 06:07 AM
0 votes
0 answers
57 views
How to get a stable scanner name for scanimage?
In Debian 12 *bookworm*, when we scan a page via `scanimage`, we have to specify a scanner via `--device-name='scanner name'`. However, the scanner name is not stable; it changes every couple of minutes, and if we omit the scanner name, an empty file is produced: ``` $ scanimage -L device `escl:http...
In Debian 12 *bookworm*, when we scan a page via scanimage, we have to specify a scanner via --device-name='scanner name'. However, the scanner name is not stable; it changes every couple of minutes, and if we omit the scanner name, an empty file is produced:
$ scanimage -L
device `escl:https://192.168.2.101:443 ' is a HP OfficeJet Pro 8130e series [NNNNNN] (USB) platen,adf scanner
device `escl:http://192.168.2.101:80 ' is a HP OfficeJet Pro 8130e series [NNNNNN] platen,adf scanner
device `airscan:e1:HP OfficeJet Pro 8130e series [NNNNNN]' is a eSCL HP OfficeJet Pro 8130e series [NNNNNN] ip=192.168.2.101
device `airscan:e0:HP OfficeJet Pro 8130e series [NNNNNN] (USB)' is a eSCL HP OfficeJet Pro 8130e series [NNNNNN] (USB) ip=127.0.0.1
$ scanimage --device-name='airscan:e1:HP OfficeJet Pro 8130e series [NNNNNN]' --format=png --output-file=out.png --progress --resolution 600 --mode Gray
scanimage: open of device airscan:e1:HP OfficeJet Pro 8130e series [NNNNNN] failed: Invalid argument
$ scanimage --device-name='airscan:e0:HP OfficeJet Pro 8130e series [NNNNNN]' --format=png --output-file=out.png --progress --resolution 600 --mode Gray
scanimage: open of device airscan:e0:HP OfficeJet Pro 8130e series [NNNNNN] failed: Invalid argument
$ scanimage --device-name='airscan:e1:HP OfficeJet Pro 8130e series [NNNNNN]' --format=png --output-file=out.png --progress --resolution 600 --mode Gray
scanimage: open of device airscan:e1:HP OfficeJet Pro 8130e series [NNNNNN] failed: Invalid argument
$ scanimage --format=png --output-file=out.png --progress --resolution 600 --mode Gray
scanimage: rounded value of resolution from 600 to 600
scanimage: rounded value of br-x from 215.9 to 215.9
scanimage: rounded value of br-y from 297.011 to 297.011
scanimage: sane_start: Document feeder out of documents
$ file out.png
out.png: empty
$ scanimage --device-name='escl:http://hpinnnnnn:80 ' --format=png --output-file=out.png --progress --resolution 600 --mode Gray
scanimage: rounded value of resolution from 600 to 600
scanimage: rounded value of br-x from 215.9 to 215.9
scanimage: rounded value of br-y from 297.011 to 297.011
scanimage: sane_start: Document feeder out of documents
$ file out.png
out.png: empty
$ scanimage --device-name='escl:https://hpinnnnnn:443 ' --format=png --output-file=out.png --progress --resolution 600 --mode Gray
scanimage: rounded value of resolution from 600 to 600
scanimage: rounded value of br-x from 215.9 to 215.9
scanimage: rounded value of br-y from 297.011 to 297.011
scanimage: sane_start: Document feeder out of documents
$ file out.png
out.png: empty
$ scanimage --device-name='airscan:e0:HP OfficeJet Pro 8130e series [NNNNNN]' --format=png --output-file=out.png --progress --resolution 600 --mode Gray
scanimage: open of device airscan:e0:HP OfficeJet Pro 8130e series [NNNNNN] failed: Invalid argument
$ scanimage --device-name='airscan:e1:HP OfficeJet Pro 8130e series [NNNNNN]' --format=png --output-file=out.png --progress --resolution 600 --mode Gray
scanimage: open of device airscan:e1:HP OfficeJet Pro 8130e series [NNNNNN] failed: Invalid argument
$ scanimage --device-name='airscan:e0:HP OfficeJet Pro 8130e series [NNNNNN]' --format=png --output-file=out.png --progress --resolution 600 --mode Gray
$
Above, NNNNNN stands for an identifier composed of six digits and uppercase letters, which we chose to keep anonymous, and nnnnnn is the same identifier with the uppercase letters converted to lowercase. Only the last scanning attempt was successful; all the previous attempts were a loss of our time. Scanning via the escl: or USB interfaces works even rarer or not at all, so we don't use these. Why does the device name fluctuate: sometimes we have luck with airscan:e0:… and sometimes with airscan:e1:… (and I also recall airscan:w1:… in the output of scanimage -L, though I don't remember an error-free scan with it)? How to make the airscan:… device name stable or *always* get the right device name? Any stable aliases anywhere in the file system? Notice that the IP address may also change, e.g., when the router decides so or simply reboots. What does stay constant is the presence/absence of the scanner, its identifiers, and its connections: the USB physical connection, the identifier of the Wi-Fi network (not shown here), the scanner identifier NNNNNN, and the scanner identifier nnnnnn we use to access its Web interface from a Web browser via http://hpinnnnnn or https://hpinnnnnn . Also notice that a straight, non-loopy script that parses the output of scanimage -L and then feeds the extracted scanner name into the actual scanning command scanimage --device-name='airscan:…:HP OfficeJet Pro 8130e series [NNNNNN]' --output-file=… … still leaves the possibility that between the two commands, the device name changes (yes, it *does* happen in reality). Of course, we can put the two commands into a loop and retry on failure. As this consumes time (and already scanimage -L consumes many seconds), a better approach is needed.
user743115 (1 rep)
May 18, 2025, 11:51 AM • Last activity: May 19, 2025, 03:17 AM
0 votes
1 answers
125 views
`scanimage` does recognize the width of the scan-area wrong
`scanimage` is a wonderful tool for scanning files from the terminal. However for some reason it detects the width of the scan-area wront -- i.e. too small. In order to fully scan an A4 page with ADF in portrait format (faster) with my Brother MFC-J6930DW it is required to be able to scan at least 2...
scanimage is a wonderful tool for scanning files from the terminal. However for some reason it detects the width of the scan-area wront -- i.e. too small. In order to fully scan an A4 page with ADF in portrait format (faster) with my Brother MFC-J6930DW it is required to be able to scan at least 29**7**mm hight (which in portrait mode means -l 0 ... -x 297). The entire command looks something like this scanimage \ --device 'brother4:net1;dev0' \ --source 'Automatic Document Feeder(centrally aligned,Duplex)' \ --verbose \ --progress \ --batch \ --format pdf \ --resolution=300 \ -l 0 -t 0 -x 297 -y 212 \ --batch=mydocument.pdf Problem: The indicated maximum value of -x is only 29**3**mm is to small! Here the output of: $ scanimage -d 'airscan:d 'brother4:net1;dev0' -A Output format is not set, using pnm as a default. scanimage: rounded value of br-x from 293 to 292.973 scanimage: rounded value of br-y from 416 to 415.962 All options specific to device `brother4:net1;dev0': --mode Black & White|Gray[Error Diffusion]|True Gray|24bit Color[Fast] [24bit Color[Fast]] Select the scan mode --resolution 100|150|200|300|400|600|1200|2400|4800|9600dpi Sets the resolution of the scanned image. --source FlatBed|Automatic Document Feeder(left aligned)|Automatic Document Feeder(left aligned,Duplex)|Automatic Document Feeder(centrally aligned)|Automatic Document Feeder(centrally aligned,Duplex) [Automatic Document Feeder(left aligned)] Selects the scan source (such as a document-feeder). --brightness -50..50% (in steps of 1) [inactive] Controls the brightness of the acquired image. --contrast -50..50% (in steps of 1) [inactive] Controls the contrast of the acquired image. -l 0..293mm (in steps of 0.0999908) Top-left x position of scan area. -t 0..420mm (in steps of 0.0999908) Top-left y position of scan area. -x 0..293mm (in steps of 0.0999908) [292.973] Width of scan-area. -y 0..420mm (in steps of 0.0999908) [415.962] Height of scan-area. **But 293mm seems wrong**. If I use the simple-scan GUI application. The whole area of the A4 page is scanned flawlessly, i.e. 297mm! Here some relevant output All 'devices'/'drivers' shown after installing the official Brother linux drivers. $ scanimage -L device `brother4:net1;dev0' is a Brother MFC-J6930DW MFC-J6930DW device `escl:http://192.168.xxx.xxx:80 ' is a Brother MFC-J6930DW adf,platen scanner device `airscan:e0:Brother MFC-J6930DW' is a eSCL Brother MFC-J6930DW ip=192.168.xxx.xxx Alternative driver selection shows the expected dimension (quasi 296.926mm ~= 297). $ scanimage -d 'airscan:e0:Brother MFC-J6930DW' -A Output format is not set, using pnm as a default. All options specific to device `airscan:e0:Brother MFC-J6930DW': Standard: --resolution 100|200|300|600dpi Sets the resolution of the scanned image. --mode Color|Gray [Color] Selects the scan mode (e.g., lineart, monochrome, or color). --scan-intent *unset* [*unset*] Optimize scan for Text/Photo/etc. --source Flatbed|ADF|ADF Duplex [Flatbed] Selects the scan source (such as a document-feeder). Geometry: -l 0..296.926mm Top-left x position of scan area. -t 0..431.8mm Top-left y position of scan area. -x 0..296.926mm [296.926] Width of scan-area. -y 0..431.8mm [431.8] Height of scan-area. Enhancement: --brightness -100..100% (in steps of 1) Controls the brightness of the acquired image. --contrast -100..100% (in steps of 1) Controls the contrast of the acquired image. --shadow 0..100% (in steps of 1) Selects what radiance level should be considered "black". --highlight 0..100% (in steps of 1) Selects what radiance level should be considered "white". --analog-gamma 0.0999908..4 Analog gamma-correction --negative[=(yes|no)] [no] Swap black and white --adf-justification-x [inactive] ADF width justification (left/right/center) --adf-justification-y [inactive] ADF height justification (top/bottom/center) Problem: When selecting this there is a troubeling grinding sound of the scanhead. This is similar if I select escl:http://192.168.xxx.xxx:80 . Do you have any suggestion how to access and set the actual value and enable the scannig of A4 pages?
alex (1023 rep)
Feb 14, 2025, 04:48 PM • Last activity: Feb 18, 2025, 01:57 AM
0 votes
1 answers
12 views
Samsung SCX-3205 multi function device fails to scan (with sane) after printing (with cups)
I have a very old Samsung SCX-3205 printer/copier/scanner. It scans fine and works fine. HOWEVER, when I print with CUPS, it stops scanning. "scanimage -L" tells for the first run after printing that the device is still there, but the next run it cannot find it anymore. I have done a strace, check t...
I have a very old Samsung SCX-3205 printer/copier/scanner. It scans fine and works fine. HOWEVER, when I print with CUPS, it stops scanning. "scanimage -L" tells for the first run after printing that the device is still there, but the next run it cannot find it anymore. I have done a strace, check the differences: Non-working case: ppoll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLOUT}], 3, {tv_sec=60, tv_nsec=0}, NULL, 8) = 1 ([{fd=6, revents=POLLIN}], left {tv_sec=59, tv_nsec=4341630}) ioctl(8, USBDEVFS_DISCARDURB, 0x55933dbfb0) = 0 timerfd_settime(6, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0 ppoll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLOUT}], 3, {tv_sec=60, tv_nsec=0}, NULL, 8) = 1 ([{fd=8, revents=POLLOUT}], left {tv_sec=59, tv_nsec=999980518}) ioctl(8, USBDEVFS_REAPURBNDELAY, 0x7fc9c97a50) = 0 timerfd_settime(6, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0 ioctl(8, USBDEVFS_REAPURBNDELAY, 0x7fc9c97a50) = -1 EAGAIN (Resource temporarily unavailable) ioctl(8, USBDEVFS_CLEAR_HALT, 0x7fc9c97cb4) = 0 ioctl(8, USBDEVFS_CLEAR_HALT, 0x7fc9c97eb4) = 0 ioctl(8, USBDEVFS_CLEAR_HALT, 0x7fc9c97eb4) = 0 ioctl(8, USBDEVFS_RELEASEINTERFACE, 0x7fc9c97e5c) = 0 Working case: ppoll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLOUT}], 3, {tv_sec=60, tv_nsec=0}, NULL, 8) = 1 ([{fd=8, revents=POLLOUT}], left {tv_sec=59, tv_nsec=999981204}) ioctl(8, USBDEVFS_REAPURBNDELAY, 0x7ff3d45d80) = 0 timerfd_settime(6, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0 ioctl(8, USBDEVFS_REAPURBNDELAY, 0x7ff3d45d80) = -1 EAGAIN (Resource temporarily unavailable) ioctl(8, USBDEVFS_CLEAR_HALT, 0x7ff3d461e4) = 0 ioctl(8, USBDEVFS_CLEAR_HALT, 0x7ff3d461e4) = 0 ioctl(8, USBDEVFS_RELEASEINTERFACE, 0x7ff3d4618c) = 0 So I can see there is extra ppoll ("fd=6, revents=POLLIN") in the mix for the failing case. FD is from here: timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC|TFD_NONBLOCK) = 6 I'm running a Alpine Linux 3.15.0 on Raspberry Pi 4 Model B Rev 1.1.
Janne Paalijarvi (43 rep)
Feb 2, 2025, 10:17 AM
0 votes
0 answers
61 views
Debian Bookworm - Install Canon MF443dw scanner
I have taken home from the office a Canon MF443dw multifunction printer, but I have some hard time to get the scanner working. I have tried to get it working with both sane.d and Gnome Document Scanner, but without any success. I have tried to follow this guide [SuperUser - How to use to a Canon Pix...
I have taken home from the office a Canon MF443dw multifunction printer, but I have some hard time to get the scanner working. I have tried to get it working with both sane.d and Gnome Document Scanner, but without any success. I have tried to follow this guide SuperUser - How to use to a Canon Pixma scanner in GNU/Linux using sane, and over a local network, e.g. Wi-Fi? It's connected to the same network as the computer is. I can see in Wireshark that sane.d is trying to find a scanner both on subnet broadcast, global broadcast, and on the scanners IP address i provided in **pixma.conf** but without any respons from the scanner. Just to clearify, the scanners IP is 192.168.1.174. Is MF443dw not a pixma scanner? Do i use wrong protocol (bjnp://)? Do I need to enable something on the scanner? Or is there other tricks to get it working?
BufferOverflow (353 rep)
Oct 8, 2024, 04:41 PM
4 votes
4 answers
6770 views
Brother scanner not found in xsane,
I have reinstalled Kubunutu 18.10 the previous week. After the reinstallation I cannot make my scanner work. I have a Brother DCP-9010CN scanner/printer on a network location. I installed the driver and the printer works out of the box. The scanner has been found by `brscan-skey -l`, the result of t...
I have reinstalled Kubunutu 18.10 the previous week. After the reinstallation I cannot make my scanner work. I have a Brother DCP-9010CN scanner/printer on a network location. I installed the driver and the printer works out of the box. The scanner has been found by brscan-skey -l, the result of this is: DCP-9010CN : brother3:net1;dev0 : 192.168.0.43 Active brsaneconfig3 -q results in Devices on network 0 DCP-9010CN "DCP-9010CN" I:192.168.0.43 During the installation the only error it gives is: Packet 'ia32-libs' does not have a candidate for installation Trying to find the scanner from SANE using scanimage -L and sane-find-scanner does not give any results. When I check on the scanner itself it finds my computer. But when I push from the device to my computer the computer starts the app but does not scan anything. I cannot find anything wrong in this installation. The driver install tool I used came from Brother themselves. The commands that I used for installing the drivers are: sudo su bash {untarred driver file} DCP-9010CN On all the questions of the installer I answered 'Yes'. For selecting the source of the scanner/printer I selected the IP address and gave the correct IP to it. The installed packages are: dpkg -l | grep Brother ii brother-udev-rule-type1 1.0.2 all Brother udev rule type 1 ii brscan-skey 0.2.4-1 amd64 Brother Linux scanner S-KEY tool ii brscan3 0.2.13-1 amd64 Brother Scanner Driver ii dcp9010cncupswrapper:i386 1.1.2-1 i386 Brother CUPS Inkjet Printer Definitions ii dcp9010cnlpr:i386 1.1.2-1 i386 Brother lpr Inkjet Printer Definitions dpkg --print-architecture amd64 lscpu Architectuur: x86_64 CPU-modus(sen): 32-bit, 64-bit Bytevolgorde: Little Endian CPU's: 4 Online CPU's-lijst: 0-3 Draden per kern: 1 Kernen per voet: 4 CPU-voeten: 1 NUMA-nodes: 1 Producent-ID: GenuineIntel CPU-familie: 6 Model: 60 Modelnaam: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz Stepping: 3 CPU-frequentie (MHz): 3351.143 max. CPU-frequentie (MHz): 3800,0000 min. CPU-frequentie (MHz): 800,0000 BogoMIPS: 6799.88 Virtualisatie: VT-x L1d-cache: 32K L1i-cache: 32K L2-cache: 256K L3-cache: 6144K NUMA-node0 CPU('s): 0-3 Vlaggen: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts flush_l1d
JimmyD (189 rep)
Jan 7, 2019, 05:15 PM • Last activity: Jul 4, 2023, 11:35 AM
0 votes
1 answers
1007 views
Package libsane-extras not found; is this a problem or should the instructions change?
The instructions at https://help.ubuntu.com/community/sane suggest installing `libsane-extras` as one of the packages to go along with `sane`. As of June 2023, this package is not found in a standard Ubuntu/Pop!\_OS package repository. $ sudo apt-get install libsane-extras Reading package lists... D...
The instructions at https://help.ubuntu.com/community/sane suggest installing libsane-extras as one of the packages to go along with sane. As of June 2023, this package is not found in a standard Ubuntu/Pop!\_OS package repository. $ sudo apt-get install libsane-extras Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package libsane-extras Which one is closer to the truth? * We need to install libsane-extras for sane to work, so we need to find it somewhere else. * We don't need libsane-extras any more for sane to work, so we should change the installation instructions. ...or something else?
J. B. Rainsberger (145 rep)
Jun 13, 2023, 04:39 PM • Last activity: Jun 13, 2023, 04:59 PM
1 votes
3 answers
2638 views
Segmentation fault in Simple Scan, XSane and scanimage
I've been using Simple Scan on Ubuntu 18.04.5 LTS for a couple years now, but today I'm not able to launch it anymore. It opens it window and immediately crashes. When I try to use CLI instead I'm having this message: bugchk_free(ptr=(nil))@modelinf.c(464) Abandon (core dumped) I've tried to used Xs...
I've been using Simple Scan on Ubuntu 18.04.5 LTS for a couple years now, but today I'm not able to launch it anymore. It opens it window and immediately crashes. When I try to use CLI instead I'm having this message: bugchk_free(ptr=(nil))@modelinf.c(464) Abandon (core dumped) I've tried to used Xsane or scanimage instead, but I'm having the exact same issue. Skanlite seems to work though (but it is not able to recognize my scanner). Here are my libsane packages (from dpkg -l | grep sane): ii libsane-common 1.0.27-1~experimental3ubuntu2.2 all API library for scanners -- documentation and support files ii libsane-hpaio:amd64 3.17.10+repack0-5 amd64 HP SANE backend for multi-function peripherals ii libsane1:amd64 1.0.27-1~experimental3ubuntu2.2 amd64 API library for scanners ii sane-utils 1.0.30-bionic1 amd64 API library for scanners -- utilities I've tried to upgrade those from rolfbesnch/sane-release PPA, but this doesn't seem to solve my issue. Should I try to use rolfbensch/sane-git PPA instead? Thanks,
raaaahman (11 rep)
Aug 16, 2020, 02:25 PM • Last activity: Jun 7, 2023, 03:29 AM
2 votes
1 answers
804 views
Combining pages from multiple scans into a single multipage document with xSane
Here is my use case: A multipage document is scanned and mailed in hardcopy to be signed. The last page with the signatures is signed, scanned somewhere else and then mailed back to me. I want to scan the signed page, and then replace the unsigned last page in the document with the new signed versio...
Here is my use case: A multipage document is scanned and mailed in hardcopy to be signed. The last page with the signatures is signed, scanned somewhere else and then mailed back to me. I want to scan the signed page, and then replace the unsigned last page in the document with the new signed version of that page, WITHOUT rescanning the entire document, and then using xsane's multipage document feature to save the new version But no matter what I try, XSane seems to persist its view of what the document is in some mysterious place, and even though there is a directory containing all the files properly numbered and a xsane-multipage-list file correctly listing all the files, it seems that XSane retains its view of what pages are contained in the multipage file and will not produce the pdf I expect it to. Is there some metadata preserved in the .pnm files themselves that prevents this from working? This is the xsane-multipage-list file I am using Project changed@@@@@@@@@@@@@@@@ image-0001.pnm image-0002.pnm image-0003.pnm image-0004.pnm image-0005.pnm image-0006.pnm xsane-multipage-list All of the files listed are present in the directory where this file lives. The name of this directory is the name of the XSane "project" I'm trying to save. Of course, I realize that I could avoid this hassle and just rescan the document with the page I want, but I am the sort who would rather waste time trying to understand this than "just getting the job done." What is going on here? It doesn't make sense to me. Thanks.
Steve Cohen (519 rep)
Jan 6, 2023, 05:23 PM • Last activity: Jan 6, 2023, 07:47 PM
2 votes
2 answers
166 views
xsane not permitting width wider than 8.267in
I am running Ubuntu 22.04 on a Lenovo Thinkpad with Gnome has my desktop. I have xsane 0.999 installed. My Scanner is an HP Color LaserJet MFP M476dw. With xsane I used to be able to scan widths up to slightly wider than 8.5in (the maximum that the HP can accommodate). For a year or more (I don't re...
I am running Ubuntu 22.04 on a Lenovo Thinkpad with Gnome has my desktop. I have xsane 0.999 installed. My Scanner is an HP Color LaserJet MFP M476dw. With xsane I used to be able to scan widths up to slightly wider than 8.5in (the maximum that the HP can accommodate). For a year or more (I don't remember when it started) xsane will only permit a maximum width of 8.267in. If I try to set the width larger in Standard options, it replaces the value I entered with 8.267. I cannot drag the width longer than 8.267 in the Preview window. I do not have access to the Advanced Settings window which is a known bug . With vuescan on the same computer with the same scanner I have access to the full width so I think a scanner issue can be ruled out. Further data: -
update && apt upgrade
did not solve the problem - I connected an Epson Perfection V500 and xsane gave me 8.5in of available width (and my advanced settings window is OK with that scanner too) - Another user account on my computer has the same problem with HP scanner and same success with Epson. - vuescan does **not** have the same problem but xscanimage and simple-scan both **do** have the same problem. - On a different computer, also running Ubuntu 22.04, I have exactly the same problem - I do not have any sane files anywhere in /var/log/ When I run
-L
There are two devices: > device `hpaio:/net/HP_Color_LaserJet_MFP_M476dw?ip=192.168.0.41' is a Hewlett-Packard HP_Color_LaserJet_MFP_M476dw all-in-one >device `airscan:w1:HP Color LaserJet MFP M476dw (3DBC02)' is a WSD HP Color LaserJet MFP M476dw (3DBC02) ip=192.168.0.41, 2607:f2c0:ead8:3cf7:9ead:97ff:fe5c:7d9, 2607:f2c0:ead8:3cf7::57f, fdfd:6a08:40d:0:9ead:97ff:fe5c:7d9, fdfd:6a08:40d::57f When I use the hpaio device I have access to all 8.5in but when I use the airscan device I do not. Questions: - is this a known bug with airscan? - How can I get rid of the airscan device? - how can I troubleshoot the cause of this and provide more and better diagnostic information?
brett stevens (101 rep)
Dec 3, 2022, 02:46 PM • Last activity: Dec 4, 2022, 02:04 AM
1 votes
1 answers
525 views
Resize xsane tiny window in Gnome
I am running Ubuntu 21.10 on a Lenovo Thinkpad with Gnome has my desktop. When I run xsane my "Advanced Options" window is tiny (10 pixels wide and not much more high) and I cannot seem to resize it. Thus I do not have access to its functions. When I move my mouse near edges of the window I do not g...
I am running Ubuntu 21.10 on a Lenovo Thinkpad with Gnome has my desktop. When I run xsane my "Advanced Options" window is tiny (10 pixels wide and not much more high) and I cannot seem to resize it. Thus I do not have access to its functions. When I move my mouse near edges of the window I do not get the resize pointer. When I right click on the title bar, "Maximize" and "Resize" are greyed out and unavailable. Running
sudo apt purge xsane
sudo apt install xsane
did not fix the problem. When I run
-r 'Advanced options HP Color LaserJet MFP M476dw (3DBC02):HP Color LaserJet MFP M476dw (3DBC02)' -e 0,200,300,300,300
I can move the tiny window around but I cannot affect its size. It remembers this tiny size between sessions so it is being stored in an file somewhere. In the directory
~/.sane/xsane
there are three settings files:
.rc
:
"xsane-version"
"0.999"
"xsane-mode"
1
"tmp-path"
"/tmp/"
"working-directory"
"/home/brett"
"filename"
"/media/Shared/Joelle/page0008.png"
"filetype"
".png"
"cms-function"
1
"cms-intent"
0
"cms-bpc"
0
"image-umask"
95
"directory-umask"
23
"fax-project"
"/home/brett/faxproject"
"fax-command"
"sendfax"
"fax-receiver-option"
"-d"
"fax-postscript-option"
""
"fax-normal-option"
"-l"
"fax-fine-option"
"-m"
"fax-viewer"
"ghostscript"
"fax-width"
14135902
"fax-height"
19462666
"fax-left-offset"
0
"fax-bottom-offset"
0
"fax-fine-mode"
1
"fax-ps-flatedecoded"
1
"e-mail-from"
""
"e-mail-reply-to"
""
"e-mail-smtp-server"
""
"e-mail-smtp-port"
25
"e-mail-authentication"
0
"e-mail-auth-user"
""
"e-mail-auth-pass"
""
"e-mail-pop3-server"
""
"e-mail-pop3-port"
110
"e-mail-project"
"/home/brett/emailproject"
"e-mail-filetype"
".png"
"multipage-project"
"/home/brett/tmp/temp"
"multipage-filetype"
".pdf"
"ocr-command"
"gocr"
"ocr-inputfile-option"
"-i"
"ocr-outputfile-options"
"-o"
"ocr-use-gui-pipe"
0
"ocr-gui-outfd-option"
"-x"
"ocr-progress-keyword"
""
"browser"
"/usr/bin/sensible-browser"
"jpeg-quality"
4587520
"png-compression"
458752
"tiff-zip-compression"
393216
"tiff-compression16_nr"
32773
"tiff-compression8_nr"
7
"tiff-compression1_nr"
3
"save-devprefs-at-exit"
1
"overwrite-warning"
1
"skip-existing-numbers"
1
"save-ps-flatedecoded"
1
"save-pdf-flatedecoded"
1
"save-pnm16-as-ascii"
0
"reduce-16bit-to8bit"
0
"filename-counter-step"
1
"filename-counter-len"
4
"adf-pages-max"
1
"show-range-mode"
6
"tool-tips"
1
"show-histogram"
0
"show-gamma"
1
"show-batch-scan"
0
"show-standard-options"
0
"show-advanced-options"
1
"show-resolution-list"
0
"length-unit"
1664614
"main-window-fixed"
1
"display-icm-profile"
""
"custom-proofing-icm-profile"
""
"working-color-space-icm-profile"
""
"preview-own-cmap"
0
"preview-oversampling"
98304
"preview-gamma"
65536
"preview-gamma-red"
65536
"preview-gamma-green"
65536
"preview-gamma-blue"
65536
"disable-gimp-preview-gamma"
1
"preview-gamma-input-bits"
12
"preview-pipette-range"
3
"gamma"
44348
"gamma-red"
65536
"gamma-green"
65536
"gamma-blue"
65536
"brightness"
869672
"brightness-red"
0
"brightness-green"
0
"brightness-blue"
0
"contrast"
1366627
"contrast-red"
0
"contrast-green"
0
"contrast-blue"
0
"rgb-default"
1
"negative"
0
"auto-enhance-gamma"
1
"preselect-scan-area"
1
"auto-correct-colors"
1
"gtk-update-policy"
1
"medium-nr"
0
"paper-orientation"
0
"preset-area-definitions"
17
"printernr"
0
"printerdefinitions"
1
"printer-name"
"new printer"
"printer-command"
"lp"
"printer-copy-number-option"
"-n"
"printer-lineart-resolution"
300
"printer-grayscale-resolution"
150
"printer-color-resolution"
150
"printer-width"
13316912
"printer-height"
19306193
"printer-left-offset"
229716
"printer-bottom-offset"
229716
"printer-gamma"
65536
"printer-gamma-red"
65536
"printer-gamma-green"
65536
"printer-gamma-blue"
65536
"printer-icm-profile"
""
"printer-ps-flatedecoded"
1
"printer-embed-csa"
1
"printer-embed-crd"
0
"printer-cms-bpc"
0
"preset-area-name"
"DIN A3 port."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
19462882
"preset-area-height"
27525120
"preset-area-name"
"DIN A3 land."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
27525120
"preset-area-height"
19462882
"preset-area-name"
"DIN A4 port."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
13762560
"preset-area-height"
19462882
"preset-area-name"
"DIN A4 land."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
19462882
"preset-area-height"
13762560
"preset-area-name"
"DIN A5 port."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
9732096
"preset-area-height"
13762560
"preset-area-name"
"DIN A5 land."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
13762560
"preset-area-height"
9732096
"preset-area-name"
"13cm x 18cm"
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
8519680
"preset-area-height"
11796480
"preset-area-name"
"18cm x 13cm"
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
11796480
"preset-area-height"
8519680
"preset-area-name"
"10cm x 15cm"
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
6553600
"preset-area-height"
9830400
"preset-area-name"
"15cm x 10cm"
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
9830400
"preset-area-height"
6553600
"preset-area-name"
"9cm x 13cm"
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
5898240
"preset-area-height"
8519680
"preset-area-name"
"13cm x 9cm"
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
8519680
"preset-area-height"
5898240
"preset-area-name"
"legal port."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
14149222
"preset-area-height"
23304602
"preset-area-name"
"legal land."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
23304602
"preset-area-height"
14149222
"preset-area-name"
"letter port."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
14149222
"preset-area-height"
18310758
"preset-area-name"
"letter land."
"preset-area-xoffset"
0
"preset-area-yoffset"
0
"preset-area-width"
18310758
"preset-area-height"
14149222
.mdf
:
"MEDIUM_DEFINITIONS"
11
"medium-name"
"Full color range"
"medium-shadow-gray"
0
"medium-shadow-red"
0
"medium-shadow-green"
0
"medium-shadow-blue"
0
"medium-highlight-gray"
6553600
"medium-highlight-red"
6553600
"medium-highlight-green"
6553600
"medium-highlight-blue"
6553600
"medium-gamma-gray"
65536
"medium-gamma-red"
65536
"medium-gamma-green"
65536
"medium-gamma-blue"
65536
"medium-negative"
0
"medium-name"
"Slide"
"medium-shadow-gray"
0
"medium-shadow-red"
0
"medium-shadow-green"
0
"medium-shadow-blue"
0
"medium-highlight-gray"
2621440
"medium-highlight-red"
2621440
"medium-highlight-green"
2621440
"medium-highlight-blue"
2621440
"medium-gamma-gray"
65536
"medium-gamma-red"
65536
"medium-gamma-green"
65536
"medium-gamma-blue"
65536
"medium-negative"
0
"medium-name"
"Standard negative"
"medium-shadow-gray"
0
"medium-shadow-red"
458752
"medium-shadow-green"
65536
"medium-shadow-blue"
0
"medium-highlight-gray"
4325376
"medium-highlight-red"
4325376
"medium-highlight-green"
2162688
"medium-highlight-blue"
1048576
"medium-gamma-gray"
65536
"medium-gamma-red"
65536
"medium-gamma-green"
65536
"medium-gamma-blue"
65536
"medium-negative"
1
"medium-name"
"Agfa negative"
"medium-shadow-gray"
0
"medium-shadow-red"
393216
"medium-shadow-green"
131072
"medium-shadow-blue"
0
"medium-highlight-gray"
2031616
"medium-highlight-red"
3997696
"medium-highlight-green"
1572864
"medium-highlight-blue"
851968
"medium-gamma-gray"
65536
"medium-gamma-red"
65536
"medium-gamma-green"
65536
"medium-gamma-blue"
65536
"medium-negative"
1
"medium-name"
"Agfa negative XRG 200-4"
"medium-shadow-gray"
0
"medium-shadow-red"
786432
"medium-shadow-green"
131072
"medium-shadow-blue"
104857
"medium-highlight-gray"
2293760
"medium-highlight-red"
4030464
"medium-highlight-green"
1409024
"medium-highlight-blue"
950272
"medium-gamma-gray"
65536
"medium-gamma-red"
52428
"medium-gamma-green"
43909
"medium-gamma-blue"
39321
"medium-negative"
1
"medium-name"
"Agfa negative HDC 100"
"medium-shadow-gray"
0
"medium-shadow-red"
229376
"medium-shadow-green"
65536
"medium-shadow-blue"
32768
"medium-highlight-gray"
1736704
"medium-highlight-red"
3506176
"medium-highlight-green"
1441792
"medium-highlight-blue"
1114112
"medium-gamma-gray"
65536
"medium-gamma-red"
51773
"medium-gamma-green"
42598
"medium-gamma-blue"
39321
"medium-negative"
1
"medium-name"
"Fuji negative"
"medium-shadow-gray"
0
"medium-shadow-red"
458752
"medium-shadow-green"
65536
"medium-shadow-blue"
0
"medium-highlight-gray"
2097152
"medium-highlight-red"
4194304
"medium-highlight-green"
2162688
"medium-highlight-blue"
1048576
"medium-gamma-gray"
65536
"medium-gamma-red"
65536
"medium-gamma-green"
65536
"medium-gamma-blue"
65536
"medium-negative"
1
"medium-name"
"Kodak negative"
"medium-shadow-gray"
0
"medium-shadow-red"
589824
"medium-shadow-green"
131072
"medium-shadow-blue"
0
"medium-highlight-gray"
1769472
"medium-highlight-red"
3538944
"medium-highlight-green"
1179648
"medium-highlight-blue"
786432
"medium-gamma-gray"
65536
"medium-gamma-red"
65536
"medium-gamma-green"
65536
"medium-gamma-blue"
65536
"medium-negative"
1
"medium-name"
"Konica negative"
"medium-shadow-gray"
0
"medium-shadow-red"
196608
"medium-shadow-green"
0
"medium-shadow-blue"
0
"medium-highlight-gray"
1638400
"medium-highlight-red"
2490368
"medium-highlight-green"
1376256
"medium-highlight-blue"
917504
"medium-gamma-gray"
65536
"medium-gamma-red"
65536
"medium-gamma-green"
65536
"medium-gamma-blue"
65536
"medium-negative"
1
"medium-name"
"Konica negative VX 100"
"medium-shadow-gray"
0
"medium-shadow-red"
131072
"medium-shadow-green"
0
"medium-shadow-blue"
0
"medium-highlight-gray"
1638400
"medium-highlight-red"
3014656
"medium-highlight-green"
1441792
"medium-highlight-blue"
884736
"medium-gamma-gray"
65536
"medium-gamma-red"
48496
"medium-gamma-green"
36700
"medium-gamma-blue"
34734
"medium-negative"
1
"medium-name"
"Rossmann negative HR 100"
"medium-shadow-gray"
0
"medium-shadow-red"
458752
"medium-shadow-green"
65536
"medium-shadow-blue"
104857
"medium-highlight-gray"
1736704
"medium-highlight-red"
3801088
"medium-highlight-green"
1671168
"medium-highlight-blue"
1245184
"medium-gamma-gray"
65536
"medium-gamma-red"
35389
"medium-gamma-green"
28180
"medium-gamma-blue"
26869
"medium-negative"
1
and
:HPColorLaserJetMFPM476dw(3DBC02).drc
:
"XSANE_DEVICE_RC"
"WSD:HP Color LaserJet MFP M476dw (3DBC02)"
"xsane-version"
"0.999"
"resolution"
75
"mode"
"Color"
"source"
"Flatbed"
"tl-x"
0
"tl-y"
0
"br-x"
13761367
"br-y"
19459342
"brightness"
0
"contrast"
0
"shadow"
0
"highlight"
6553600
"analog-gamma"
65536
"negative"
0
"xsane-main-window-x-position"
55
"xsane-main-window-y-position"
88
"xsane-main-window-width"
294
"xsane-main-window-height"
570
"xsane-project-window-x-position"
280
"xsane-project-window-y-position"
425
"xsane-standard-options-window-x-position"
414
"xsane-standard-options-window-y-position"
89
"xsane-advanced-options-window-x-position"
448
"xsane-advanced-options-window-y-position"
640
"xsane-histogram-window-x-position"
100
"xsane-histogram-window-y-position"
50
"xsane-gamma-window-x-position"
280
"xsane-gamma-window-y-position"
420
"xsane-batch-window-x-position"
480
"xsane-batch-window-y-position"
420
"xsane-preview-window-x-position"
940
"xsane-preview-window-y-position"
82
"xsane-preview-window-width"
600
"xsane-preview-window-height"
750
"xsane-gamma"
65536
"xsane-gamma-red"
65536
"xsane-gamma-green"
65536
"xsane-gamma-blue"
65536
"xsane-brightness"
0
"xsane-brightness-red"
0
"xsane-brightness-green"
0
"xsane-brightness-blue"
0
"xsane-contrast"
0
"xsane-contrast-red"
0
"xsane-contrast-green"
0
"xsane-contrast-blue"
0
"xsane-lineart-mode"
0
"xsane-threshold"
3276800
"xsane-threshold-min"
0
"xsane-threshold-max"
6553600
"xsane-threshold-multiplier"
65536
"xsane-threshold-offset"
0
"xsane-grayscale-scanmode"
""
"xsane-enhancement-rgb-default"
1
"xsane-negative"
0
"xsane-show-preview"
1
"xsane-enable-color-management"
0
"xsane-scanner-default-color-icm-profile"
""
"xsane-scanner-default-gray-icm-profile"
""
This third file has a number of settings that control the position and size of windows. For example I can move and resize the preview window by changing
-preview-window-x-position
,
-preview-window-y-position
,
-preview-window-width
and
-preview-window-height
. But the advanced options window only has position data and when I added line
"xsane-advanced-options-window-width"
250
it was ignored and removed from the file when I quit xsane. I still don't have an answer but I feel I have made some progress.
brett stevens (101 rep)
Nov 27, 2021, 05:32 PM • Last activity: Dec 4, 2022, 01:45 AM
0 votes
0 answers
484 views
OpticSlim 2610 Plus supported?
I need a scanner on my linux (Debian bullseye). Sane is the software stack, handling scanners. The device is visible to USB: ``` > lsusb Bus 001 Device 009: ID 07b3:1806 Plustek, Inc. USB2.0 Scanner(7M4) ``` But if I issue ``` > sudo scanimage -L No scanners were identified. If you were expecting so...
I need a scanner on my linux (Debian bullseye). Sane is the software stack, handling scanners. The device is visible to USB:
> lsusb  
Bus 001 Device 009: ID 07b3:1806 Plustek, Inc. USB2.0 Scanner(7M4)
But if I issue
> sudo scanimage -L  
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
I tried to specify the device in /etc/sane.d/plustek.conf:
> [usb] 0x07b3 0x1806  
device auto
But this does not seem to help matters. So, here the question: Am I missing something or is this product simply not supported?
BitTickler (131 rep)
Nov 16, 2022, 10:06 AM
1 votes
2 answers
3218 views
saned conflicting with saned.socket
I'm running Ubuntu 19.10 and I've successfully managed to configure an Epson network scanner in my LAN using *sane* utility. Although the scanner works fine, command `sudo systemctl status saned` shows the following ● saned.service - LSB: SANE network scanner server Loaded: loaded (/etc/init.d/saned...
I'm running Ubuntu 19.10 and I've successfully managed to configure an Epson network scanner in my LAN using *sane* utility. Although the scanner works fine, command sudo systemctl status saned shows the following ● saned.service - LSB: SANE network scanner server Loaded: loaded (/etc/init.d/saned; generated) Active: failed (Result: exit-code) since Wed 2020-03-04 09:47:47 CET; 1min 5s Docs: man:systemd-sysv-generator(8) Process: 1166 ExecStart=/etc/init.d/saned start (code=exited, status=1/FAILURE Mar 04 09:47:47 david-PC saned: * Starting SANE network scanner server sa Mar 04 09:47:47 david-PC saned: saned (AF-indep+IPv6) from sane-backends 1 Mar 04 09:47:47 david-PC saned: do_bindings: bind failed: Address alre Mar 04 09:47:47 david-PC saned: do_bindings: bind failed: Address alre Mar 04 09:47:47 david-PC saned: do_bindings: couldn't bind an address. Exi Mar 04 09:47:47 david-PC saned: FATAL ERROR; bailing out, waiting for chil Mar 04 09:47:47 david-PC saned: bail_out: all children exited Mar 04 09:47:47 david-PC systemd: saned.service: Control process exited, code Mar 04 09:47:47 david-PC systemd: saned.service: Failed with result 'exit-cod Mar 04 09:47:47 david-PC systemd: Failed to start LSB: SANE network scanner s Trying to figure out what's going wrong with sane, I run sudo netstat -tlnp which shows the following: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:1579 0.0.0.0:* LISTEN 1234/sshd tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 1009/systemd-resolv tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1067/cupsd tcp 0 0 0.0.0.0:35587 0.0.0.0:* LISTEN 1080/ecbd tcp6 0 0 :::6566 :::* LISTEN 1/init tcp6 0 0 :::1579 :::* LISTEN 1234/sshd tcp6 0 0 ::1:631 :::* LISTEN 1067/cupsd I don't understand why process *init* is using port 6566, which should be occupied by sane server. Here is the point: command systemctl -all list-sockets shows that port 6566 is used by *saned.socket* LISTEN UNIT ACTIVATES /run/acpid.socket acpid.socket acpid.service /run/apport.socket apport-forward.socket /run/avahi-daemon/socket avahi-daemon.socket avahi-daemon.service /run/cups/cups.sock cups.socket cups.service /run/dbus/system_bus_socket dbus.socket dbus.service /run/initctl systemd-initctl.socket systemd-initctl.service /run/snapd-snap.socket snapd.socket snapd.service /run/snapd.socket snapd.socket snapd.service /run/systemd/fsck.progress systemd-fsckd.socket systemd-fsckd.service /run/systemd/journal/dev-log systemd-journald-dev-log.socket systemd-journald.service /run/systemd/journal/socket systemd-journald.socket systemd-journald.service /run/systemd/journal/stdout systemd-journald.socket systemd-journald.service /run/systemd/journal/syslog syslog.socket rsyslog.service /run/udev/control systemd-udevd-control.socket systemd-udevd.service /run/uuidd/request uuidd.socket uuidd.service audit 1 systemd-journald-audit.socket systemd-journald.service kobject-uevent 1 systemd-udevd-kernel.socket systemd-udevd.service Of course, if I stop *saned.socket* and then start *saned*, the parts do the opposite, so *saned.socket* goes down and *saned* goes up. I'm not an expert of Unix systems, so I want to understand which is the difference between saned.socket and saned and find out a way to get both them working properly
dcfg (111 rep)
Mar 5, 2020, 08:37 PM • Last activity: Jun 10, 2022, 09:36 AM
4 votes
3 answers
8383 views
Brother x86 scanner driver on Raspberry Pi with QEMU and SANE
I have a Brother 7055 Printer/Scanner and a Raspberry Pi, I'm trying to turn both into a print and scan server. Unfortunately, Brother doesn't provide any ARM drivers. I run into [this][1] blog post about QEMU emulation on the Raspberry Pi and indeed I've managed to install the x86 printer drivers u...
I have a Brother 7055 Printer/Scanner and a Raspberry Pi, I'm trying to turn both into a print and scan server. Unfortunately, Brother doesn't provide any ARM drivers. I run into this blog post about QEMU emulation on the Raspberry Pi and indeed I've managed to install the x86 printer drivers using this approach, I'm sharing it via CUPS and all good. Now I'm trying to make the scanner work and the Brother software is installed without any errors but the scanner doesn't show up when I run scanimage -L The scanner is connected: dporobic@raspberrypi:~ $ lsusb Bus 001 Device 005: ID 04f9:0248 Brother Industries, Ltd DCP-7055 scanner/printer Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub But can't see the scanner: dporobic@raspberrypi:~ $ scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). sane-find-scanner does see something but can't make it work as brother uses it's own sane drivers. porobic@raspberrypi:~ $ sudo 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. # Also you need support for SCSI Generic (sg) in your operating system. # If using Linux, try "modprobe sg". found USB scanner (vendor=0x04f9, product=0x0248) at libusb:001:005 found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003 # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. # Not checking for parallel port scanners. # Most Scanners connected to the parallel port or other proprietary ports # can't be detected by this program. Debugging scanimage gives me following output, it looks like the brother4 lib can't be loaded: dporobic@raspberrypi:~ $ sudo SANE_DEBUG_DLL=255 scanimage -L [sanei_debug] Setting debug level of dll to 255. [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.24 [dll] sane_init/read_dlld: attempting to open directory `./dll.d' [dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d' [dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d' [dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/libsane-extras [dll] sane_init/read_config: reading dll.d/libsane-extras [dll] sane_init/read_dlld: done. [dll] sane_init/read_config: reading dll.conf [dll] add_backend: adding backend `brother4' [dll] sane_get_devices [dll] load: searching backend brother4' in /usr/lib/arm-linux-gnueabihf/sane:/usr/lib/sane' [dll] load: trying to load `/usr/lib/arm-linux-gnueabihf/sane/libsane-brother4.so.1' [dll] load: dlopen()ing `/usr/lib/arm-linux-gnueabihf/sane/libsane-brother4.so.1' **[dll] load: dlopen() failed (/usr/lib/arm-linux-gnueabihf/sane/libsane-brother4.so.1: cannot open shared object file: No such file or directory)** [dll] sane_get_devices: found 0 devices No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). [dll] sane_exit: exiting [dll] sane_exit: finished The lib files are there but it looks like the files can't be opened or accessed: dporobic@raspberrypi:~ $ ls -l /usr/lib/arm-linux-gnueabihf/sane/ | grep brother -rwxr-xr-x 1 root root 129696 Jan 8 11:08 libsane-brother4.so -rwxr-xr-x 1 root root 129696 Jan 8 11:08 libsane-brother4.so.1 -rwxr-xr-x 1 root root 129696 Jan 8 11:08 libsane-brother4.so.1.0.7 Maybe some dependencies of the libsane-brother4.so lib are missing but running objdump -x and looking under the dynamic section gives me following output (I'm not very familiar with objdump so I hope I'm interpreting this correctly): dporobic@raspberrypi:~ $ objdump -x /usr/lib/arm-linux-gnueabihf/sane/libsane-brother4.so | grep NEEDED NEEDED libpthread.so.0 NEEDED libnsl.so.1 NEEDED libusb-0.1.so.4 NEEDED libm.so.6 NEEDED libdl.so.2 NEEDED libc.so.6 And I seem to have those libraries on my Pi, only one of those is only available as ARM version and not as i386, all other come in both: dporobic@raspberrypi:~ $ sudo ldconfig -p | grep -E 'libpthread.so.0|libnsl.so.1|libusb-0.1.so.4|libm.so.6|libdl.so.2|libc.so.6' libusb-0.1.so.4 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libusb-0.1.so.4 libusb-0.1.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libusb-0.1.so.4 libpthread.so.0 (libc6,hard-float, OS ABI: Linux 2.6.32) => /lib/arm-linux-gnueabihf/libpthread.so.0 libpthread.so.0 (libc6, OS ABI: Linux 2.6.32) => /lib/i386-linux-gnu/libpthread.so.0 libnsl.so.1 (libc6,hard-float, OS ABI: Linux 2.6.32) => /lib/arm-linux-gnueabihf/libnsl.so.1 libnsl.so.1 (libc6, OS ABI: Linux 2.6.32) => /lib/i386-linux-gnu/libnsl.so.1 libm.so.6 (libc6,hard-float, OS ABI: Linux 2.6.32) => /lib/arm-linux-gnueabihf/libm.so.6 libm.so.6 (libc6, OS ABI: Linux 2.6.32) => /lib/i386-linux-gnu/libm.so.6 libdl.so.2 (libc6,hard-float, OS ABI: Linux 2.6.32) => /lib/arm-linux-gnueabihf/libdl.so.2 libdl.so.2 (libc6, OS ABI: Linux 2.6.32) => /lib/i386-linux-gnu/libdl.so.2 libc.so.6 (libc6,hard-float, OS ABI: Linux 2.6.32) => /lib/arm-linux-gnueabihf/libc.so.6 libc.so.6 (ELF, OS ABI: Linux 2.6.32) => /lib/i386-linux-gnu/libc.so.6 But the one lib that I need is not listed, probably that's why it can't be loaded: dporobic@raspberrypi:~ $ sudo ldconfig -p | grep libsane-brother4.so dporobic@raspberrypi:~ $ Originally the borther4 lib was located in /usr/lib/sane, I've added this path to /etc/ld.so.conf.d/libsane-brother.conf and run sudo ldconfig but I only get this libsane.so.1 lib when I check in ldconfig -v: dporobic@raspberrypi:~ $ sudo ldconfig -v 2>/dev/null | grep brother -B1 /usr/lib/sane: libsane.so.1 -> libsane-brother4.so.1.0.7 Can't make the libsane-brother.so.1 lib appear in the ld cache... **Update** It seems to be unrelated to dlconfig, on my opensuse machine where the scanner is working the libsane-brother.so.1 lib is not showing in the ldconfig cache, just like on the Pi but there the lib is loaded without any problem. dporobic@latitude:~> sudo ldconfig -v 2>/dev/null | grep -E 'sane|brother' libksane.so.0 -> libksane.so.0.2.0 libsane.so.1 -> libsane.so.1.0.24 Loading correctly, no error: dporobic@latitude:~> sudo SANE_DEBUG_DLL=255 scanimage -L [sanei_debug] Setting debug level of dll to 255. [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.24 [dll] sane_init/read_dlld: attempting to open directory `./dll.d' [dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d' [dll] sane_init/read_dlld: opendir failed: No such file or directory [dll] sane_init/read_config: reading dll.conf [dll] add_backend: adding backend `brother4' [dll] sane_get_devices [dll] load: searching backend brother4' in /usr/lib64/sane' [dll] load: trying to load `/usr/lib64/sane/libsane-brother4.so.1' **[dll] load: dlopen()ing `/usr/lib64/sane/libsane-brother4.so.1'** [dll] init: initializing backend `brother4' [dll] init: backend `brother4' is version 1.0.1 [dll] sane_get_devices: found 1 devices device `brother4:bus2;dev1' is a Brother DCP-7055 USB scanner [dll] sane_exit: exiting [dll] sane_exit: calling backend `brother4's exit function [dll] sane_exit: finished So the question is now why Sane can't open libsane-brother.so.1 lib even though it's in the correct path... Note: The same scanner directly connected to my OpenSuse machine and with same drivers installed does show up when I run scanimage -L so it must be working with sane, the onyl questionable thing here is the Pi.
Damir Porobic (151 rep)
Jan 7, 2017, 06:01 PM • Last activity: Jun 8, 2022, 05:03 PM
0 votes
1 answers
291 views
Is sane available for using scanner on RHEL 8.5 (Oopta)?
I have installed RHEL 8.5 on a system and want to use scanner with a Java application using SANE. In previous versions of RHEL 7.*x* we use SANE ports for local scanners available on localhost (127.0.0.1). But in RHEL 8.5 we are unable to use SANE. Anyhow we can use scanner with the `iscan` command....
I have installed RHEL 8.5 on a system and want to use scanner with a Java application using SANE. In previous versions of RHEL 7.*x* we use SANE ports for local scanners available on localhost (127.0.0.1). But in RHEL 8.5 we are unable to use SANE. Anyhow we can use scanner with the iscan command. But I can't find out how to enable SANE or iscan to use a scanner with a Java application.
Aqib Javed (101 rep)
May 24, 2022, 11:55 AM • Last activity: May 24, 2022, 12:02 PM
0 votes
1 answers
813 views
scanimage: unrecognized option
I want to scan a page with *scanimage* and my Brother ADS-1700W scanner. The command I came up with looks like this: scanimage -d "brother5:bus3;dev2" --mode "Black & White" --resolution 300 --AutoDescew=yes --format tiff >out.tiff This yields the following error: ``` unrecognized option '--AutoDesc...
I want to scan a page with *scanimage* and my Brother ADS-1700W scanner. The command I came up with looks like this: scanimage -d "brother5:bus3;dev2" --mode "Black & White" --resolution 300 --AutoDescew=yes --format tiff >out.tiff This yields the following error:
unrecognized option '--AutoDescew'
The AutoDescew-option seems to be supported by my scanner. I checked this by executing scanimage -h which gave me the following output:
Options specific to device `brother5:bus3;dev2':   :

     --mode 24bit Color[Fast]|Black & White|True Gray|Gray[Error Diffusion] [24bit Color[Fast]]
         Select the scan mode
     --resolution 100|150|200|300|400|600|1200dpi 
         Sets the resolution of the scanned image.
     --source Automatic Document Feeder(left aligned)|Automatic Document Feeder(center aligned)|Automatic Document Feeder(left
 aligned,Duplex)|Automatic Document Feeder(center aligned,Duplex)|Card
 Slot|Card Slot(Duplex) [Automatic Document Feeder(left aligned)]
         Selects the scan source (such as a document-feeder).
     --brightness -50..50% (in steps of 1) [inactive]
         Controls the brightness of the acquired image.
     --contrast -50..50% (in steps of 1) [inactive]
         Controls the contrast of the acquired image.
     --MultifeedDetection[=(yes|no)] [inactive]
         
     --AutoDocumentSize[=(yes|no)] [no] [advanced]
         
     --AutoDeskew[=(yes|no)] [no] [advanced]
         
     --SkipBlankPage[=(yes|no)] [inactive]
         
     --SkipBlankPageSensitivity 0..100% (in steps of 1) [inactive]
Why is that option "unrecognized"? Does it have to do with the option being marked as "advanced"? Bonus question: how would I enable the "inactive" options? E.g. SkipBlankPage? I know my scanner supports this, but I have no idea how to enable it...
Boris (103 rep)
May 12, 2022, 11:08 AM • Last activity: May 12, 2022, 11:42 AM
1 votes
0 answers
135 views
Cant find backend for new scanner
I recently bought a new printer/scanner to my raspberrypi. The old one was HP_LaserJet_M1005. It worked fined. Now I installed a new scanner, HP_LaserJet_MFP_M28-M31, and I get errors. Until now, I tested this: pi@raspberrypi:~ $ sudo sane-find-scanner -q found possible USB scanner (vendor=0x03f0 [H...
I recently bought a new printer/scanner to my raspberrypi. The old one was HP_LaserJet_M1005. It worked fined. Now I installed a new scanner, HP_LaserJet_MFP_M28-M31, and I get errors. Until now, I tested this: pi@raspberrypi:~ $ sudo sane-find-scanner -q found possible USB scanner (vendor=0x03f0 [HP], product=0xbf2a [HP LaserJet MFP M28-M31]) at libusb:001:014 found possible USB scanner (vendor=0x0424, product=0x7800) at libusb:001:007 pi@raspberrypi:~ $ scanimage -L device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC6912904' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one pi@raspberrypi:~ $ scanimage > image.jpg --format jpeg scanimage: open of device hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC6912904 failed: Error during device I/O I also tried with DEBUG enabled, the log ends like this: [hp] hp_read_config: attach usb 0x3f0 0xbf2a [hp] hp_attach_matching_devices: usb attach matching "usb 0x3f0 0xbf2a" [hp] hp_attach: "libusb:001:014" [hp] hp_get_dev: New device libusb:001:014, connect-usb, scsi-request=0 [hp] sanei_hp_device_new: libusb:001:014 [hp] hp_GetOpenDevice: device libusb:001:014 not open [hp] hp_nonscsi_open: open usb with "libusb:001:014" [hp] hp_nonscsi_open: device libusb:001:014 opened, fd=0 [hp] hp_AddOpenDevice: added device libusb:001:014 with fd=0 [hp] scsi_flush: writing 2 bytes: [hp] 0x0000 1B 45 .E [hp] scsi_flush: writing 7 bytes: [hp] 0x0000 1B 2A 73 32 35 37 45 .*s257E [hp] scsi_read: 16 bytes: [hp] 0x0000 48 54 54 50 2F 31 2E 31 20 34 30 30 20 42 61 64 HTTP/1.1 400 Bad [hp] scl_inq: malformed response: expected '257d', got 'HTTP/1.' [hp] scl_errcheck: Can't read SCL error stack: Error during device I/O [hp] hp_nonscsi_device_new: SCL reset failed [hp] scsi_close: closing fd 0 [hp] hp_nonscsi_close: closed fd=0 [hp] scsi_close: really closed [hp] hp_RemoveOpenFd: removed 0 [hp] hp_read_config: reset to default config [hp] sane_get_devices will finish with Success scanimage: open of device hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC6912904 failed: Error during device I/O [hp] sane_exit called [hp] hp_destroy: global.is_up = 0 [hp] sane_exit will finish What can I do to get the scanner to work? Regards
gorbos (11 rep)
Apr 27, 2022, 01:44 PM
Showing page 1 of 20 total questions