LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2014, 06:00 AM   #1
brunotag
LQ Newbie
 
Registered: Apr 2014
Location: Rome
Distribution: Fedora
Posts: 4

Rep: Reputation: Disabled
Canon Lide 210 not working on new Fedora 20 desktop


Very strange behaviour. My scanner Canon Lide 210 works perfectly with xsane on a very old Dell desktop (2001) and on a portable toshiba portege (2007).
On my new desktop (intel i7, asus Z87M-PLUS motherboard, 32 GB of RAM)
the "Acquire preview" operation stops with message:
Failed to start scanner: invalid argument
All the 3 systems run Fedora 20.
On the new desktop the scanner works under Windows 8.1 grr..
Thank you for your help
Bruno
 
Old 04-13-2014, 05:51 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by brunotag View Post
Very strange behaviour. My scanner Canon Lide 210 works perfectly with xsane on a very old Dell desktop (2001) and on a portable toshiba portege (2007).
On my new desktop (intel i7, asus Z87M-PLUS motherboard, 32 GB of RAM)
the "Acquire preview" operation stops with message:
Failed to start scanner: invalid argument
All the 3 systems run Fedora 20.
On the new desktop the scanner works under Windows 8.1 grr..
Thank you for your help
Bruno

Today I tried my ancient Canon FB636 on a Raspberry Pi. It's not supported under Windows 7 anymore. It took me a while to get it working, my problem being permissions. This is Debian, but perhaps Fedora does it the same way. Also check http://sane-project.org.

xsane connects to the scanner via the sane daemon, saned, which accesses the scanner's device file. It has to run under root (strongly discouraged) or as a member of group scanner. If not, it will leave messages as follows in the system log:
Code:
Apr 13 12:21:01 pi saned[26731]: io/hpmud/musb.c 2066: Invalid usb_open: Permission denied
On my system, saned is started by the xinetd. The config file, /etc/xinetd.d/sane, needs to set the daemon's group, e.g.:
Code:
$ cat /etc/xinetd.d/sane

service sane-port
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        user            = saned
        group           = scanner
        wait            = no
        server          = /usr/sbin/saned
}
And this is what the scanner's device file looks like. It's owned by root:root and uses an ACL to grant write access to group scanner:

Code:
$ scanimage -L
device `canon630u:libusb:001:008' is a CANON Canoscan FB630U flatbed scanner

$ ll /dev/bus/usb/001/008
crw-rw-r-T+ 1 root root 189, 7 Apr 13 12:23 /dev/bus/usb/001/008

$ getfacl /dev/bus/usb/001/008
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/008
# owner: root
# group: root
# flags: --t
user::rw-
group::rw-
group:scanner:rw-
mask::rw-
other::r--
scanimage -L, by the way, also works only if the user belongs to scanner (or is root).
 
Old 04-13-2014, 08:00 AM   #3
brunotag
LQ Newbie
 
Registered: Apr 2014
Location: Rome
Distribution: Fedora
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Today I tried my ancient Canon FB636 on a Raspberry Pi. It's not supported under Windows 7 anymore. It took me a while to get it working, my problem being permissions. This is Debian, but perhaps Fedora does it the same way. Also check http://sane-project.org.

xsane connects to the scanner via the sane daemon, saned, which accesses the scanner's device file. It has to run under root (strongly discouraged) or as a member of group scanner. If not, it will leave messages as follows in the system log:
Code:
Apr 13 12:21:01 pi saned[26731]: io/hpmud/musb.c 2066: Invalid usb_open: Permission denied
On my system, saned is started by the xinetd. The config file, /etc/xinetd.d/sane, needs to set the daemon's group, e.g.:
Code:
$ cat /etc/xinetd.d/sane

service sane-port
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        user            = saned
        group           = scanner
        wait            = no
        server          = /usr/sbin/saned
}
And this is what the scanner's device file looks like. It's owned by root:root and uses an ACL to grant write access to group scanner:

Code:
$ scanimage -L
device `canon630u:libusb:001:008' is a CANON Canoscan FB630U flatbed scanner

$ ll /dev/bus/usb/001/008
crw-rw-r-T+ 1 root root 189, 7 Apr 13 12:23 /dev/bus/usb/001/008

$ getfacl /dev/bus/usb/001/008
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/008
# owner: root
# group: root
# flags: --t
user::rw-
group::rw-
group:scanner:rw-
mask::rw-
other::r--
scanimage -L, by the way, also works only if the user belongs to scanner (or is root).
Thank you for your reply. I suppose that Fedora goes somewhat different. In particular there is
no scanner group, unless you create it by hand. The saned daemon is intended to scan over a LAN, is not running by default and cannot be enabled by systemctl.

In the meantime, I found a workaround (not solution).
I disabled USB Intel xHCI from BIOS (I'm afraid that this disable USB 3.0)
In this way the scanner works.

scanimage -L reports:
device `genesys:libusb:002:003' is a Canon LiDE 210 flatbed scanner

ll /dev/bus/usb/002/003 reports:
crw-rw-r--+ 1 root root 189, 130 Apr 13 12:56 /dev/bus/usb/002/003

getfacl /dev/bus/usb/002/003 reports: (bruno is my login name)
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/003
# owner: root
# group: root
user::rw-
user:bruno:rw-
group::rw-
mask::rw-
other::r--

I am not satisfied of this workaround because I lose the USB 3.0 functionality, so
I will look for a true solution.

Bruno
 
Old 04-13-2014, 12:09 PM   #4
brunotag
LQ Newbie
 
Registered: Apr 2014
Location: Rome
Distribution: Fedora
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by brunotag View Post
Thank you for your reply. I suppose that Fedora goes somewhat different. In particular there is
no scanner group, unless you create it by hand. The saned daemon is intended to scan over a LAN, is not running by default and cannot be enabled by systemctl.

In the meantime, I found a workaround (not solution).
I disabled USB Intel xHCI from BIOS (I'm afraid that this disable USB 3.0)
In this way the scanner works.

scanimage -L reports:
device `genesys:libusb:002:003' is a Canon LiDE 210 flatbed scanner

ll /dev/bus/usb/002/003 reports:
crw-rw-r--+ 1 root root 189, 130 Apr 13 12:56 /dev/bus/usb/002/003

getfacl /dev/bus/usb/002/003 reports: (bruno is my login name)
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/003
# owner: root
# group: root
user::rw-
user:bruno:rw-
group::rw-
mask::rw-
other::r--

I am not satisfied of this workaround because I lose the USB 3.0 functionality, so
I will look for a true solution.

Bruno
I am convinced it is a kernel problem. I booted the 3.11.10-301.fc20 kernel (the first one of
Fedora 20) and the scanner works perfectly, even without the BIOS workaround (disable USB
Intel xHCI)
Bruno
 
Old 05-02-2014, 06:45 AM   #5
brunotag
LQ Newbie
 
Registered: Apr 2014
Location: Rome
Distribution: Fedora
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by brunotag View Post
I am convinced it is a kernel problem. I booted the 3.11.10-301.fc20 kernel (the first one of
Fedora 20) and the scanner works perfectly, even without the BIOS workaround (disable USB
Intel xHCI)
Bruno
Add-on: Under the last kernel (3.14.2-200.fc20.x86_64) the scanner works perfectly
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
canon lide 70 scanner fani Linux - Hardware 8 01-23-2010 01:57 PM
Canon CanoScan LiDE 20 adarsh Linux - Hardware 3 05-03-2007 01:11 AM
Installing driver for Canon Lide 60 with Suse dth1 Linux - Hardware 10 06-05-2006 01:19 PM
Canon LiDE 20 scanner problems pjcvdpol Linux - Hardware 0 02-03-2005 03:44 AM
New Lide 35 scanner from Canon OldSarge Linux - Hardware 3 01-11-2005 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration