You are not logged in.
Pages: 1
Scanimage doesn't detect scanner (tha used to work fine) and hangs in the process.
scanimage -L
Will just hang there without printing anything on stdout. Even
scanimage -h
will output the help message and it will seat there without exiting.
Every time I run scanimage the log will report:
Jul 09 13:38:18 laptop org_kde_powerdevil[6290]: UdevQt: unhandled device action "unbind"
Jul 09 13:38:18 laptop plasmashell[6163]: UdevQt: unhandled device action "unbind"
Running as root gives the same results.
Any suggestions?
Last edited by firewalker (2019-07-09 10:46:42)
Γίνε ρεαλιστής, μείνε ονειροπόλος ...
Offline
strace the call, see where it stalls.
Can you lspci/lsusb?
It's a usb scanner? (Since the answer is most likely yes: does it show up in lsusb and "lsusb -v"? What if you disable usb autosuspend, https://wiki.archlinux.org/index.php/Po … utosuspend & https://wiki.archlinux.org/index.php/SA … apscan_e40 )
Offline
Yes it is a usb scanner.
sane-find-scanner
detects it just fine.
It doesn't seem to be suspended. The strange thing is that scanimage will hang even if the scanner isn;t connected.
It seems it tries to do something with a network device. Strace floods stdout with:
recvfrom(14, "\0\0\204\0\0\0\0\22\0\0\0\0\rlocalhost_prl\0\0\1\0\1\0"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(5353), sin_addr=inet_addr("192.168.0.204")}, [16]) = 313
select(15, [14], NULL, NULL, {tv_sec=0, tv_usec=300000}) = 1 (in [14], left {tv_sec=0, tv_usec=199914})There is no network configuration for sane.
Γίνε ρεαλιστής, μείνε ονειροπόλος ...
Offline
5353 is mdns/avahi - what's 192.168.0.204 (any actual device) - does it have 5353 open?
Do you intentionally have mdns configured? Does it work™ outside this context?
Last edited by seth (2019-07-09 11:57:45)
Offline
It is a device in our building (don't know which one) with all ports closed. If I disconnect from our network scanimage works just fine...
Quite strange...
Γίνε ρεαλιστής, μείνε ονειροπόλος ...
Offline
Do you intentionally have mdns configured?
avahi-browse --all --ignore-local --resolve --terminateOffline
avahi-browse --all --ignore-local --resolve --terminate
Failed to create client object: Daemon not running
I have never configured anything for avahi or mdns.
OK, the device is a macbook of a colleague of mine...
Last edited by firewalker (2019-07-09 13:21:29)
Γίνε ρεαλιστής, μείνε ονειροπόλος ...
Offline
cat /etc/nsswitch.conf
systemctl status avahi-daemon.service # though should not be runningYou could drop the port in iptables (warning, it's udp) but I rather wonder why scanimage tries that itfp.
avahi/mdns/bonjour should be running on a macbook (and the port be open), did he do sth. specific to it?
Offline
The daemon is not running.
Could scanimage think that the macbook on the specific address is a remote scanner and tries to communicate with it? What could force scanimage to search for remote scanners?
Γίνε ρεαλιστής, μείνε ονειροπόλος ...
Offline
It certainly gets an answer from the macbook - I assume severing that connection will "fix" it?
However, it doesn't query port 5353 here at all… can you paste the complete strace ("strace scanimage -L 2>&1 | curl -F 'f:1=<-' ix.io")?
Offline
Pages: 1