Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

scanner stopped working

Need help with peripherals or devices?
Post Reply
Message
Author
peer
Posts: 449
Joined: 2017-03-26 10:14
Has thanked: 8 times
Been thanked: 22 times

scanner stopped working

#1 Post by peer »

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: 449
Joined: 2017-03-26 10:14
Has thanked: 8 times
Been thanked: 22 times

Re: scanner stopped working

#2 Post by peer »

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: 449
Joined: 2017-03-26 10:14
Has thanked: 8 times
Been thanked: 22 times

Re: scanner stopped working

#3 Post by peer »

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: 449
Joined: 2017-03-26 10:14
Has thanked: 8 times
Been thanked: 22 times

Re: scanner stopped working

#4 Post by peer »

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: 449
Joined: 2017-03-26 10:14
Has thanked: 8 times
Been thanked: 22 times

Re: scanner stopped working

#5 Post by peer »

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.

Post Reply