scanner stopped working

Getting your soundcard to work, using Debian on non-i386 hardware, etc

scanner stopped working

Postby peer » 2020-09-15 07:34

os: debian kde testing
scanner: canon lide 25
my scanner does work properly with simple-scan in kernel 5.7.0.3
But is does not work anymore in kernel 5.8.0.1
When I go back to kernel 5.7.0.3 it works again
The scanner is found by simple scan (and scanimage -L) but when I want to make a scan the program hangs and after that the scanner is no longer found.

strange: the last update showed dependency problems with virtualbox 6.1.14. Synaptic removed virtualbox before performing the update. After that I could not reinstall virtualbox 6.1 but installing virtualbox 6.0.8 worked.
And now simple-scan also seems to work in kernel 5.8.0.1!!!!!!!!!!!!
peer
 
Posts: 135
Joined: 2017-03-26 10:14

Re: scanner stopped working

Postby peer » 2020-09-15 09:13

follow up:
remove virtualbox completely. Virtualbox has it own problems
tested scanner in windows on same pc: works ok
now problem exist in both kernels (5.7.0.3 and 5.8.0.1)
in terminal:
Code: Select all
peer@debian:~$ scanimage -L
device `plustek:libusb:001:005' is a Canon CanoScan LiDE25 flatbed scanner
peer@debian:~$ 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).

The first time 'scaninage -L' recognizes the scanner correctly. The scond time 'scanimage -L' could not identify any scanners
peer
 
Posts: 135
Joined: 2017-03-26 10:14

Re: scanner stopped working

Postby peer » 2020-09-24 12:32

update: the scanner does work sometimes. But most of the time it does not work.
When I enter the command "scanimage -L" the scanner is found but when I repeat the command directly no scanners were found.
Code: Select all
peer@debian:~$ scanimage -L
device `plustek:libusb:001:005' is a Canon CanoScan LiDE25 flatbed scanner
peer@debian:~$ scanimage -V
scanimage (sane-backends) 1.0.27; backend version 1.0.27

The problem also occurs when I enter the command as root.

I think it is very strange that the scanner is found correctly at first but after that the scanner information is disappeared.
Does someone has an idea where to look???
peer
 
Posts: 135
Joined: 2017-03-26 10:14

Re: scanner stopped working

Postby peer » 2020-10-14 12:08

at last I found a temperarely solution.
The plustek scanners need a lock directory: /var/lock/sane.
After creating this map (mkdir -m777 /var/lock/sane) my scanner does work again. After reboot I have to create the map again because the /var/lock/ map is cleaned at shutdown (or boot)

I found the answer on the debian bug reporting page: https://bugs.debian.org/cgi-bin/bugrepo ... bug=971584
peer
 
Posts: 135
Joined: 2017-03-26 10:14

Re: scanner stopped working

Postby peer » 2020-10-27 08:38

The temporarily solution to create the map /var/lock/sane at boot did work for a few weeks.
Now I have the following situation:
"sane-find-scanner" does find my scanner
"scanimage -L" does not give any output. The command just hangs.
Then I run devuan in virtualbox. After stopping devuan and closing virtualbox "scanimage -L "does work and I am able to perform a scan with simple-scan.

What is going on????????

I was thinking of a usb problem so I added a line to my script that I run at boot. A few years back there was a problem with usb 3 which could be solved with an environment variable. So I added this variable SANE_USB_WORKAROUND:
Code: Select all
#!/bin/bash
#create map
if [ ! -d "/var/lock/sane" ]; then
    mkdir -m777 /var/lock/sane
fi
#create usb-variable
export SANE_USB_WORKAROUND=1

And after reboot my scanner works again. I hope it will continue to work in the future.
peer
 
Posts: 135
Joined: 2017-03-26 10:14


Return to Hardware

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable