LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2005, 10:20 AM   #1
mfmdoctor
LQ Newbie
 
Registered: Sep 2005
Location: Kentucky, USA
Distribution: Mandriva and Suse
Posts: 7

Rep: Reputation: 0
Unhappy Scanner device not found in linux mandrake


I'm a newbie, but I did take time to read some of the instructions on how to make a proper post. Here it goes.

I'm running Mandriva 2005 limited on a Pentium IV desktop. Kernel 2.6.11
My scanner is an HP4200c. When I boot into the KDE desktop, I see a scanner icon that says "Kooka Hewlett-Packard 4200c". But, I can't get it to scan.

MY TROUBLESHOOTING:
A right click and look at permissions shows that it belongs to root. I've tried booting as root, but the desktop does not contain the scanner when I do and the hardware configuation wizard does not have an option to change permissions.

I tried typing "sane-find-scanner" in the terminal . It returned
found USB scanner (vendor=0x03f0, product=0x0105) at libusb:002:006
#your scanner was (probably) detected. It may or may not be supported by
#SANE. Try scanimage -L and read the backends manpage

Typed "scanimage -L" . It returned "No scanner identified".

Tried looking at some logs as directed in the hardware forum "read this first" post. Started with "dmesg" . What follows is not all of it, but it looks like it contains some problem areas


ehci_hcd 0000:00:1d.7: USB 2.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 8 ports detected
usb 4-1: USB disconnect, address 2
usb 4-1: new full speed USB device using uhci_hcd and address 3
scsi1 : SCSI emulation for USB Mass Storage devices
usb 1-1: USB disconnect, address 2
drivers/usb/class/usblp.c: usblp0: removed
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb 2-2: string descriptor 0 read error: -71
usb 2-2: string descriptor 0 read error: -71
usb 2-2: string descriptor 0 read error: -71
usb 1-1: new full speed USB device using uhci_hcd and address 3
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0D17
usb 2-1: USB disconnect, address 2
usb 2-1: new full speed USB device using uhci_hcd and address 4
usb 2-2: USB disconnect, address 3
drivers/usb/class/usblp.c: usblp1: removed
usb 2-2: new full speed USB device using uhci_hcd and address 5
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 1 proto 2 vid 0x03F0 pid 0x3802
EXT3 FS on hda5, internal journal
libata version 1.10 loaded.
ata_piix version 1.03
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0xDC00 ctl 0xD802 bmdma 0xCC00 irq 18
ata2: SATA max UDMA/133 cmd 0xD400 ctl 0xD002 bmdma 0xCC08 irq 18


Changed directory to /sbin and did an "lsusb"

[root@localhost jonathan]# cd /sbin
[root@localhost sbin]# lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 003: ID 058f:9360 Alcor Micro Corp.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 005: ID 03f0:3802 Hewlett-Packard
Bus 002 Device 004: ID 03f0:0105 Hewlett-Packard ScanJet 4200c
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 03f0:0d17 Hewlett-Packard
Bus 001 Device 001: ID 0000:0000
[root@localhost sbin]#

Please be gentle
 
Old 09-11-2005, 10:10 PM   #2
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
Hey good post - your reading has served you well -

Have you checked whether you are part of your scanner group? Should be in /etc/group
 
Old 09-12-2005, 10:22 AM   #3
mfmdoctor
LQ Newbie
 
Registered: Sep 2005
Location: Kentucky, USA
Distribution: Mandriva and Suse
Posts: 7

Original Poster
Rep: Reputation: 0
Am I in the scanner group

Thanks aikidoist72,

I don't see a group or groups subdirectory (or file) under /etc

When I access the Mandriva configuration gui and attempt to edit the groups that I am a member of, "scanner" is not an option. There is an option for "scaned" but that's it.
 
Old 09-12-2005, 11:01 AM   #4
mfmdoctor
LQ Newbie
 
Registered: Sep 2005
Location: Kentucky, USA
Distribution: Mandriva and Suse
Posts: 7

Original Poster
Rep: Reputation: 0
/etc/group

Oops,

I tried looking for the file in Konqueror. I gave it a second try in the terminal (I'm always afraid of the terminal. Don't know enough Linux/Unix commands.....I CAN'T HANDLE THE TERMINAL! )

Well, I did get to the group file using the terminal and here is what I got. Don't see any references to "scanner". Do see some comments about SANE.

[root@localhost etc]# cat group
root:x:0:
bin:x:1:
daemon:x:2:messagebus
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mem:x:8:
kmem:x:9:
wheel:x:10:
mail:x:12:
news:x:13:
uucp:x:14:
man:x:15:
floppy:x:19:
games:x:20:
tape:x:21:
cdrom:x:22:
utmp:x:24:
usb:x:43:saned,jonathan
cdwriter:x:80:saned
audio:x:81:
video:x:82:jonathan
users:x:100:jonathan
nogroup:x:65534:
rpm:x:101:
postfix:x:102:
postdrop:x:103ostfix
xgrp:x:104:xfs
ntools:x:105:
ctools:x:106:
messagebus:x:107:
haldaemon:x:16:
vcsa:x:69:
xfs:x:70:
rpc:x:71:
rpcuser:x:72:
slocate:x:108:
jonathan:x:500:
wine:x:11:jonathan
saned:x:73:jonathan
machines:x:421:
 
Old 09-12-2005, 06:51 PM   #5
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
Ok, we should be able to sort that out for you. "saned" is the sane daemon so we will want to add a scanner group to your list.

As root type

Code:
groupadd scanner
Now I will give you a little gem. If you use KDE go to K => System => More Applications => File Manager - Super User Mode you can open a file manager as the root user. This stops any need for logging in as root to do anything GUI, and allows access to everything!! Be warned - if you play with things you don't know - you can ruin your system. Just like any other O/S. On the menu bar you will see Window. Click this and then click on "Show Terminal Emulator". Adjust the frames to your liking and the click "Settings" => "Save View Profile - File Management"

Now you have a root file system with a terminal at the bottom. Very handy tool to play with your system.


Navigate to your /etc/group file and edit the scanner group by adding you name.

I would suggest also to add yourself to these groups

cdrom
audio
cdwriter
wheel
disk


Once this is done, log out and back in for the changes to take effect. Try set up your scanner again :-)

Cheers

Last edited by aikidoist72; 09-13-2005 at 06:34 PM.
 
Old 09-13-2005, 06:26 PM   #6
mfmdoctor
LQ Newbie
 
Registered: Sep 2005
Location: Kentucky, USA
Distribution: Mandriva and Suse
Posts: 7

Original Poster
Rep: Reputation: 0
Hello aikidoist72!

I really appreciate your help and advice. There may be hope for me, linux and my scanner after all.

I won't try to apply the changes today. It's my anniversary and I promised the wife that I would give no attention to my mistress (my computer). I'll let you know how it went tomorrow.
 
Old 09-13-2005, 06:44 PM   #7
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
Well at least I know my advice is being given to one very smart individual!!! Wife first - a principle that has saved me many times too
 
Old 09-14-2005, 11:57 AM   #8
mfmdoctor
LQ Newbie
 
Registered: Sep 2005
Location: Kentucky, USA
Distribution: Mandriva and Suse
Posts: 7

Original Poster
Rep: Reputation: 0
Man,

I really appreciate your help. But I am still lost. I made the changes in the /etc/group file. Added my name to the scanner group. Did a reboot. Still no success.

In the Terminal when I type sane-find-scanner, the message is the same as before. When I type scanimage -L I get a no device found message.

I've noticed that when I go to home in my gui and move to the root folder, then open up the dev folder, there is no folder for "scanner". Could that be the problem? I am really not very familiar with the linux file system, but doesn't each piece of hardware have to be listed there?

Thanks....Mate
 
Old 09-14-2005, 05:50 PM   #9
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
If you go to the sane website, it seems your scanner is unsupported at this time.

http://www.sane-project.org/sane-mfgs.html

The good news is, you can download the RPM for mandrake from here. Ahhh - This is why I love open source!!!

http://www.axel-gerber.de/uk/computer/computer.html

If you want a challenge then you can compile your own driver here. Instructions are given.

http://hp4200-backend.sourceforge.net/

Let me know if you can not compile it and I will try to step you through it.

Cheers
 
Old 09-18-2005, 01:48 PM   #10
mfmdoctor
LQ Newbie
 
Registered: Sep 2005
Location: Kentucky, USA
Distribution: Mandriva and Suse
Posts: 7

Original Poster
Rep: Reputation: 0
I really appreciate your help on this. I had actually investigated the backends previously. The Mandrake 2005 Limited has them installed already. At this point, I think I will either resign myself to scan in windows or I may consider looking for a used scanner that is easily setup.

I finally did run across a thread someplace that discussed several modifications to create a usb port for the printer and placement of shortcuts in the linux file structure but I've finally decided that I can't spend much more time on this now. I will do some more reading on device modules etc.

Thanks again, you've been very generous with your time and expertise.
 
Old 09-18-2005, 04:38 PM   #11
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,829

Rep: Reputation: 257Reputation: 257Reputation: 257
You need a sane back-end for your scanner. Curiously, the HP 4200C isn't even listed as being a HP scanner in sane's tables. They list all the HP scanners, and say whether, or not there is a back-end in sane. 4200C isn't listed as being supported, but it isn't listed as being unsupported, either. It has to be one or the other.

I think what happened is, HP released the 4200C as a slightly changed version of the 4100C. I think I remember reading this. hp is the back-end for the 4100C.

Goto "/etc/sane.d/dll.conf" and edit it so "hp" is the only uncommented line. Then goto "/etc/sane.d/hp.conf" and read, and edit it properly for use with "libusb".

Make sure you are using "libusb". When you do a "sane-find-scanner", the name it finds should be preceeded by the word "libusb".

Sane works really well with libusb. If you are not using libusb, you have to install it. Do a "rmmod usbscanner" and "sh /etc/init.d/saned stop" and install "libusb" package.

Then it will try to use the 4100C back-end instead of the 4300C back-end, with "libusb". This should work.

Don't use scanimage -L. Launch kooka from the menu, or simply by typing "kooka" at a command prompt. Do not use the desktop icon. If the system can't find kooka, do "updatedb" and "locate kooka" Then type "directory-path/kooka" Choose the scanner device. You want kooka to give the choice. There is only one choice, but it needs to be made.

Everything should work. If it doesn't, reply.
 
Old 09-18-2005, 11:31 PM   #12
mfmdoctor
LQ Newbie
 
Registered: Sep 2005
Location: Kentucky, USA
Distribution: Mandriva and Suse
Posts: 7

Original Poster
Rep: Reputation: 0
Awesome machine,

Thanks for your reply. Here is the hp4200 conf file:

# Autodetect the HP4200c
usb 0x03F0 0x0105

#
# Device filename to use for scanner access
#
# Uncomment the following line if autodetection fails
#
#/dev/usbscanner

Should I edit the last line to "/dev/libusb" or just "/libusb"?
 
  


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
NO CDROM DEVICE FOUND - error Instaling Mandrake 10.1 yuvicj Mandriva 1 11-03-2005 08:30 AM
No CDROM Device Found Mandrake 10 to3t3r Mandriva 3 02-09-2005 01:38 PM
Linux hangs on boot - no floppy device found Penseur46 Linux - Newbie 6 02-02-2005 10:50 AM
mandrake and ndiswrapper installed ok but no device found infantpenguin Linux - Wireless Networking 3 01-30-2005 01:09 PM
Mandrake 10 Install issue: No cdrom device found squidnet Mandriva 5 09-15-2004 02:40 PM


All times are GMT -5. The time now is 10:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration