LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
LinkBack Search this Thread
Old 12-13-2006, 08:26 AM   #1
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 3,975

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
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:

Code:
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:

Code:
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:
Code:
# 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:
Code:
# Avision, Inc.| AV220 Sheetfed scanner
SYSFS{idVendor}=="0638", SYSFS{idProduct}=="0a23", MODE="666", GROUP="scanner", RUN+="/etc/hotplug.d/usb/libsane.
hotplug"
Then it worked fine again.

jlinkels

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 12:04 AM.

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