LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-08-2005, 07:07 PM   #1
Steel Shepherd
Member
 
Registered: Feb 2004
Location: Central Ohio, USA
Distribution: Mepis & Kubuntu
Posts: 61

Rep: Reputation: 15
scanner function


I have an Epson Stylus CX6600 that worked (both scanner & printer) on 2005LE and works on a Shuttle box that I upgraded to 2006.

On an adjacent Shuttle PC with a fresh install of 2006, the printer works, but it doesn't find a scanner. The mandrake scanner setup tool doesn't recognize it. I can manually tell it to use the Epson CX6600 driver, but it doesn't work.

Help?
 
Old 11-08-2005, 09:55 PM   #2
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
Hmm, that makes two of us. Real bummer as only the scanner works, the print head is fouled on my CX6600.
 
Old 11-09-2005, 08:27 AM   #3
jeanmm
LQ Newbie
 
Registered: Nov 2005
Location: France - Versailles
Distribution: Mandriva 2007
Posts: 24

Rep: Reputation: 15
Hello,

I had a problem with my HP scanner, because the USB file system was not launched.

Try lsusb to see if anything is listed.

I also discovered that udev service was not running : try "service udev status"; there is something new concerning this service, not appearing in the MCC, but directly called by /etc/rc.d/rc.sysinit ?

I modified /etc/rc.d/init.d/udev to make it look like an ordinary service (added line "# chkconfig: 2345 01 80") :

#! /bin/bash
#
# udev init script to setup /udev
#
# chkconfig: 2345 01 80

and then :

chkconfig --add udev
service udev start

I also modified /etc/rc.d/init.d/udev to include something for usbfs just after start label :

##############################################################################
case "$1" in
start)
# start usb file system if necessary
if ! grep -q /proc/bus/usb /proc/mounts;then
mount -t usbfs -o devmode=0664,devgid=43 none /proc/bus/usb
fi

Not very nice, but maybe that will help ?

If the above modifications do not help, there may be something else wrong in sane-backends ?

 
Old 11-09-2005, 06:46 PM   #4
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
Quote:
Originally posted by jeanmm

I also modified /etc/rc.d/init.d/udev to include something for usbfs just after start label :

##############################################################################
case "$1" in
start)
# start usb file system if necessary
if ! grep -q /proc/bus/usb /proc/mounts;then
mount -t usbfs -o devmode=0664,devgid=43 none /proc/bus/usb
fi



This is where I get lost in your edit of /etc/rc.d/init.d/udev. Would be interested to view a copy of your file with the edits done to try it on mine.

So far:
Found there is an actual kernel bug : http://bugzilla.kernel.org/show_bug.cgi?id=5001
Also found that this is not Mandriva specific as newer distros (Suse10.0) seem plagued by this same problem: http://lists.alioth.debian.org/piper...er/015176.html
Tried unloading usblp module and configuring the scanner - no go.
Tried using the "iscan" linux driver from Epson - no go. (I think iscan relies on hotplug, which has been abandoned for udev)
Actually been through about three hours of reading and tinkering.
Definately a challenge for someone here.
 
Old 11-09-2005, 06:51 PM   #5
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
Re: scanner function

Quote:
Originally posted by Steel Shepherd
I have an Epson Stylus CX6600 that worked (both scanner & printer) on 2005LE and works on a Shuttle box that I upgraded to 2006.

What kernel version is the 2006 upgrade (with working CX6600) using?
 
Old 11-09-2005, 07:16 PM   #6
Steel Shepherd
Member
 
Registered: Feb 2004
Location: Central Ohio, USA
Distribution: Mepis & Kubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
I'm way too much of a newbie to be able to comment on kernel bugs and such, but my scanner definitely works if I plug it into my 2006 box that was upgraded from 2005LE, but does not work on the 2006 fresh install box. Something was right in 2005LE and was preserved in the upgrade.

'lsusb' gives me 'command not found'

You know, this is the kind of thing that makes my homelife stressful. I have forced my wife to use Linux, and for the most part it goes over well enough. But when she can't print or scan, if browser plugins don't work, if the camera interface is buggy, if it freezes and the file system is corrupted on a hard reboot cuz ALT SysReq RSEIUB don't work (and windows is better at recovering from an unclean shutdown than Linux)... Then I have a stressed out wife which causes me bigger problems than battling M$ demons.
 
Old 11-09-2005, 07:22 PM   #7
Steel Shepherd
Member
 
Registered: Feb 2004
Location: Central Ohio, USA
Distribution: Mepis & Kubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
Re: Re: scanner function

Quote:
Originally posted by Lakota
What kernel version is the 2006 upgrade (with working CX6600) using?
2.6.12-12mdk

Same as the fresh install that doesn't work.
 
Old 11-09-2005, 07:31 PM   #8
Steel Shepherd
Member
 
Registered: Feb 2004
Location: Central Ohio, USA
Distribution: Mepis & Kubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
Another observation that I'd bet is related, but that I also don't know what to do about. The fresh install system does not automatically mount my USB flash drive - do not appear in /mnt.

Also, if I put a CF card in the reader on the CX6600, it doesn't appear in /mnt.

But something is happening - the drak tool finds that there is a scanner connected when I run it, it just doesn't recognize what it is.
 
Old 11-09-2005, 07:35 PM   #9
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
Re: Re: Re: scanner function

Quote:
Originally posted by Steel Shepherd
2.6.12-12mdk

Same as the fresh install that doesn't work.
Spooky!

In command line as root,
lsmod (will list your loaded modules)
rmmod usblp (will remove the module {usblp in this instance})
lsusb (will work if you are root or have super user privilage)
 
Old 11-09-2005, 07:41 PM   #10
Steel Shepherd
Member
 
Registered: Feb 2004
Location: Central Ohio, USA
Distribution: Mepis & Kubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
Re: scanner function

Quote:
Originally posted by Lakota
In command line as root,
lsmod (will list your loaded modules)
rmmod usblp (will remove the module {usblp in this instance})
lsusb (will work if you are root or have super user privilage) [/B]
lsmod as root indeed listed modules

And why do I want to rmmod usblp?

lsusb returns nothing !!
 
Old 11-09-2005, 07:46 PM   #11
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
Quote:
Originally posted by Steel Shepherd
Another observation that I'd bet is related, but that I also don't know what to do about. The fresh install system does not automatically mount my USB flash drive - do not appear in /mnt.

Also, if I put a CF card in the reader on the CX6600, it doesn't appear in /mnt.

But something is happening - the drak tool finds that there is a scanner connected when I run it, it just doesn't recognize what it is.
For me on fresh install:

Usb flash drives are automatically mounted in /mnt

Sd card inserted into reader on CX6600 does automatically apear in /mnt

drak tool finds:
Identification
Vendor: ‎EPSON

Description: ‎USB2.0 MFP(Hi-Speed)

Misc
Port: ‎libusb:005:003
 
Old 11-09-2005, 07:55 PM   #12
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
Re: Re: scanner function

Quote:
Originally posted by Steel Shepherd
lsmod as root indeed listed modules

And why do I want to rmmod usblp?

lsusb returns nothing !!
According to the kernel bug report link above, must be removed for scanner to work, but will disable the printer till it is reloaded. Did not work for me.

Code:
[don@localhost ~]$ su
Password:
[root@localhost don]# lsusb
Bus 005 Device 003: ID 04b8:0813 Seiko Epson Corp.
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046d:c218 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
[root@localhost don]# exit
exit
[don@localhost ~]$
 
Old 11-09-2005, 11:38 PM   #13
jeanmm
LQ Newbie
 
Registered: Nov 2005
Location: France - Versailles
Distribution: Mandriva 2007
Posts: 24

Rep: Reputation: 15
Hello,

If lsusb does not exist, try first :
urpmi usbutils

Then if lsusb does not show anything, try manually :
mount -t usbfs -o devmode=0664,devgid=43 none /proc/bus/usb
then power off/on the scanner and try once more lsusb; maybe that will help...
 
Old 11-21-2005, 11:21 PM   #14
Lakota
Member
 
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
Quote:
Originally posted by Steel Shepherd
I'm way too much of a newbie to be able to comment on kernel bugs and such, but my scanner definitely works if I plug it into my 2006 box that was upgraded from 2005LE, but does not work on the 2006 fresh install box. Something was right in 2005LE and was preserved in the upgrade.
Well, I can agree on that for me too. Today out of frustration I did a fresh install of 2005LE, set up everything the way I like, including my Canon ip5000 with paid turboprint driver, and my Epson CX6600 scanner using the CX6400driver (no CX 6600 printer setup as it is toast), 2nd generation ipod with gtkpod, did an upgrade to 2006 and low and behold it all still works. On my fresh installs of 2006 (did twice) first thing I dumped was kat, and it did not get installed with upgrade. Might add, first time I have done an upgrade rather than fresh install and definately impressed, have not found anything broken as of yet, doubt I will at this point. The 2006 is worth it to me as I am an impatient person and there is a noticable speed difference between 2005LE and 2006. So anyone hung up on the CX6600 can set up with 2005LE then upgrade to get it working on 2006 till someone with some know how figures out how to get it working on a fresh 2006 install.
 
Old 06-22-2007, 05:02 PM   #15
HumanPrototype
LQ Newbie
 
Registered: Dec 2005
Location: England (weather sucks)
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Getting the scanner working

I wrote a small program for Ubuntu 7.04 that gets the scanner working on that so it may be worth a try to some of you folks over here having problems.
http://fastlinecomputers.co.uk/?page=Scannit

If you want the dirty technical details read on:

1. Install SANE and the epson backend however you do this on Mandrake
2. Edit the /etc/sane.d/epson.conf file and add
Code:
usb 0x4b8 0x813
to the end of the file on a new line. (The numbers should match what is found in lsusb)
3. Edit /etc/udev/rules.d/45-libsane.rules and search for "CX-6600".
4. When you have it look carefully and you will see it reads:
Code:
# Epson CX-6400 | Epson CX-6600
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="0805", MODE="664", GROUP="scanner"
5. If you look at the idProduct you will see it is 0805 not 0813 so you need to add a new entry (we don't want to muck up the entry for the Epson CX-6400 in case you get one of those at a later date) as follows (add this directly after the previous text on a new line):
Code:
# Epson CX-6600
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="0813", MODE="664", GROUP="scanner"
6. Now check you are in the scanner group on your system and if you are not add yourself.
7. Check /etc/sane.d/dll.conf to make sure the epson backend is being loaded
8. Restart udev (/etc/init.d/udev restart on Ubuntu, don't know about Mandrake)
9. Run up kooka or xsane and see if it works...

Let me know if you use the program and how it works please, I need testers!
 
  


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
what are the Hexadecimal function and ASCII function in Perl Bassam Programming 1 06-03-2004 01:44 AM
A main can be changed by a function local without passing anything to the function? ananthbv Programming 10 05-04-2004 01:31 PM
Perl exec function in linux (and system-function) nazula Programming 1 04-19-2004 12:21 PM
can't locate module scanner > how to get scanner work? b0uncer Linux - Hardware 1 10-26-2003 06:50 AM
Epson 1260 & scanner function buttons voj Linux - Hardware 1 09-09-2003 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration