Latest LQ Deal: Latest LQ Deals
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 01-31-2006, 05:11 PM   #1
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,190

Rep: Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037
Solved -- Permission problem with Avision AV220 Scanner

I had a problem with the permissions set to the Avision AV220 scanner.

When connected, it was recognized, but owner was root:root and permissions of the device were 644.

The AV220 is only supported for sane version >= 1.0.16. When I tried to install this version, dpkg insisted on removing my old 2.4.27 kernel.

Assuming dpkg is right in such things, I installed kernel 2.6.12, but hotplugging of usb is different from 2.4.*

This is (at least partially) how it works:

When a new usb device is detected, /sbin/hotplug is called with parameter 'usb'. This script calls scripts which reside in named /etc/hotplug.d/usb/*.hotplug

The relevant script here is libsane.hotplug.

libsane.hotplug scans the sane config file which is in /etc/sane.d/hotplug/libsane.db

The latter file contains:
(a) the vendor id and product id for each supported scanner
(b) the owner:group and permissions it should assign to each newly created device.

If libsane.hotplug finds the scanned VID and PID here, it assigns the correct owner and permissions to the new device. If not, not and the owner remains root:root with 644 permissions.

(Since the correct driver is loaded, and the scanner can be operated as root, there is some more to hotplugging than what I describe here)

By adding these lines to libsane.db
# Avision AV220
0x0638 0x0a23 root:scanner 0666

the device is created correctly, and all users are able to use the scanner.

Note that I set the permissions to 666. For unknown reasons, 664 won't let me access the scanner, although I am member of the scanner group. Same thing for my other scanners on this machine.

I know a lot of people have problems with these scanner permissions, but I have not seen yet a pointer to change libsane.db.


Debian Sarge
Kernel 2.6.12
Sane 1.0.17
KDE 3.3


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
permission setting of a scanner? behmjoe Linux - Hardware 1 01-01-2006 03:53 AM
Solved Problem Second GCC-Pass(or gettext sanity check problem) hoes Linux From Scratch 0 09-04-2005 10:20 AM
'PEAR.php' (include_path=''.:/usr/local/lib/php'') SOLVED SOLVED adengua Linux - Software 0 04-02-2004 03:34 AM
problem yet not solved ritturaj Linux - Hardware 2 08-06-2003 02:26 AM
VI problem, never been solved phoeniXflame Linux - Software 10 07-28-2003 06:39 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:57 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