Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 12-13-2006, 09:26 AM   #1
Senior Member
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,703

Rep: Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731
Thumbs up Solved - scanner stopped working after kernel upgrade

I have two scanners attached to my system: a Canon LIDE20 and an Avision AV220.

Both worked fine, however after upgrading my kernel from 2.6.12 to 2.6.17 the Avision stopped working. It did not show up in scanimage -L. However running scanimage -L as root showed the Avision again.

Indeed, in the /dev/bus/usb/004/012 the scanner was listed as:

crw-rw-r-- 1 root root 189, 395 2006-12-13 09:37 /dev/bus/usb/004/012
while it should have been something like:

crw-rw-rw- 1 root scanner 189, 395 2006-12-13 09:37 /dev/bus/usb/004/012
(The 666 permissions are not necessary on most systems. I have reasons to want it like this) It is essential that the device is owned by root:scanner.

Using the old kernel, this line in /etc/sane.d/hotplug/libsane.db was sufficient to get the device installed correctly:
# Avision AV220 
0x0638  0x0a23  root:scanner    0666
Since this scanner is not supported yet by the Debian distro currently installed I had added this line by hand.

Kernel 2.6.17 uses the udev mechanism for creating new devices (I think this started with kernel 2.6.14). The place where the rules are defined for creating devices is different. These rules are now found in /etc/udev/rules.d, and the sane devices are now defined in /etc/udev/libsane.rules

In this file I had to add this line:
# Avision, Inc.| AV220 Sheetfed scanner
SYSFS{idVendor}=="0638", SYSFS{idProduct}=="0a23", MODE="666", GROUP="scanner", RUN+="/etc/hotplug.d/usb/libsane.
Then it worked fine again.


Distro: Debian Etch
Kernel: 2.6.17
Scanner: Sane 1.0.14-1
Desktop: KDE 3.5


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel upgrade has stopped sound working pwc101 Slackware 5 08-25-2006 02:45 AM
audio stopped working on Etch with new kernel upgrade johnMG Debian 5 02-25-2006 04:37 PM
Kernel upgrade to 2.6.10 and mouse stopped working oxblood Slackware 13 02-04-2005 02:02 PM
2.6.9 kernel upgrade, Bluez stopped working 0pal_t0ad Linux - Hardware 1 12-11-2004 03:04 PM
vmware stopped working after a kernel upgrade bruno buys Linux - Software 2 06-21-2004 08:44 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration