LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-16-2004, 02:38 AM   #1
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
usb devices not seen despite hotplug / moving hardrive from one PC to another


Hello,

I cannot get my printer epson CX3600 nor the camera
FUJI F610 to be seen under 2.6.8.1-10mdk (Mandrake 10.1 CE edition)
Both are USB devices. Hence I wonder if it a usb misconfiguration.
I installed mandrake first on an old PIII with usb 1.0 or 1.1 and then
moved the HD onto a the PC I had built (see signature)

So you do not have to read all: the mistake was to not reinstall
the OS once the HD was moved from one PC to another. It was
not sufficient to rely on the reconfiguration that madrake did when
discovering the new motherboard and graphics card. Somehow the
PC was working well but missed a few services. That is where the
problems were.


This thread is considered closed.


Now, is there any file that contains the list of drivers, that hotplug will load, namely for my PC usbhid,usblp,ehci-hcd,ohci-hcd,
or are they "detected" then loaded each boot ?
I still wonder if I could have edited any file myself since
usbcore xxxx 4 usbhid,usblp,uhci-hcd
became after reinstalling the OS
usbcore xxxx 6 usbhid,usblp,ehci-hcd,ohci-hcd.
Thanks.


I installed hotplug (from the distro). I also downloaded hotplug
(this was the same version as installed.) As far as I can tell
the usb modules are loaded.

I would appreciate help/suggestions
I am new to linux (3 weeks), so here are my homework and command lines:
(I hope somebody can spot what is wrong)

One of the key error message with the printer might be
StateMessage Unable to open USB device "usb:/dev/usb/lp1": No such device

The camera (configured as USB mass storage device) when turned on does not trigger anything in linux. I expected a folded being mounted. None of the camera software worked either. Mounting the camera device did not work.

directory /etc/rc.d/init.d contains
usb
hotplug

[root@localhost dev]# modprobe printer -v
install /sbin/modprobe usblp

Have checked the hardware and USB cable and port as I can print with Zindows. The bios usb support is enabled V1.1 and 2.0.

Added the printer as /dev/usb/lp0 or lp1
Using or not the manual mode
Tried cx3100, cx3200, cx5400, stylus C60, C80 and C84 as I've read
that the cx series may be using the same print engine
(linuxprinting.org)
The enable command and then print test page were not successful.
I also tried the cups+Gimp and Ghostscript + Gimp when available
Have vaguely tried the same with the 2.4 kernel. No success either.

[root@localhost auto_usb]# lspci -v|grep HCI
00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 10 [OHCI])
00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 10 [OHCI])
00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 20 [EHCI])

[root@localhost auto_usb]# dir /proc/bus/usb/
[root@localhost auto_usb]#
Is it normal that the directory above is empty, in contrast to below?

[root@localhost user1]# ls /sys/bus/usb/
devices/ drivers/
[root@localhost user1]# ls /sys/bus/usb/drivers/
hiddev/ hub/ usb/ usbfs/ usbhid/ usblp/
All these subdirectories are empty

Here a selection from dmesg
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
usbcore: registered new driver usblp
drivers/usb/class/ususbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
blp.c: v0.13: USB Printer Device Class driver


[root@localhost user1]# lsmod
Module Size Used by
isofs 31352 1
Intel536 1076292 0
slamr 368772 0
fglrx 205388 7
md5 3584 1
ipv6 230916 8
i810_audio 33236 0
ac97_codec 16844 1 i810_audio
soundcore 7008 1 i810_audio
ppp_async 8896 0
ppp_generic 24468 1 ppp_async
slhc 6112 1 ppp_generic
crc-ccitt 1664 1 ppp_async
af_packet 16072 0
capi 14752 0
capifs 3816 2 capi
kernelcapi 41696 1 capi
nvidia-agp 5788 1
usbhid 41088 0
floppy 55088 0
ide-cd 37280 1
cdrom 37724 1 ide-cd
loop 12520 0
nls_iso8859-1 3680 2
nls_cp850 4480 1
vfat 11008 1
fat 39776 1 vfat
supermount 34804 1
intel-agp 19584 0
agpgart 27752 3 nvidia-agp,intel-agp
usblp 10592 0
uhci-hcd 28752 0
usbcore 103172 4 usbhid,usblp,uhci-hcd
genrtc 7444 0
ext3 120680 2
jbd 49080 1 ext3


[root@localhost user1]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:110 errors:0 dropped:0 overruns:0 frame:0
TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7050 (6.8 Kb) TX bytes:7050 (6.8 Kb)


cups settings are
localhost
port 631

[root]$ cat /etc/printcap
# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file. All changes to this file
# will be lost.
EPSONStylusCX3100|EPSON Stylus CX3100:rm=localhost:rp=EPSONStylusCX3100:

[root@localhost user1]# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.1.21rc1
# Written by cupsd on Mon 15 Nov 2004 06:44:20 PM GMT
<DefaultPrinter EPSONStylusCX3100>
Info EPSON Stylus CX3100
Location
DeviceURI usb:/dev/usb/lp1
State Stopped
StateMessage Unable to open USB device "usb:/dev/usb/lp1": No such device
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

[root@localhost user1]# ls -l /dev/usb/lp1
crw------- 1 root root 180, 1 Nov 15 18:27 /dev/usb/lp1

This above disapeared since I haved edited fstab and added
"none /proc/bus/usb usbdevfs auto 0 0"
and removed in frustration
"none /proc defaults 0 0" or something like that
as whenever shuting down the PC I had an error
unmount error /proc busy (before editing fstab)
Also when starting the PC, linux displays during the boot
"checking for new hardware [failed]"
(/proc did not stay unmounted for long.)

Thanks for your help
Regards

i686 AMD Sempron(tm) 2400+ (See signature)
dual boot lilo x98

Last edited by Emmanuel_uk; 01-06-2005 at 02:31 AM.
 
Old 11-16-2004, 07:47 AM   #2
Xolo
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Mandrake, Knoppix, Coyote Linux, RedHat
Posts: 354
Blog Entries: 3

Rep: Reputation: 31
Probably an answer with some holes in it (Since i'm still learning myself), but I think your mistake lies in moving the harddrives with your installation on it to another mainboard -without- reinstalling the OS, or at least properly reinstalling the drivers. my last encounter to such a problem was when I took the harddrive of my Libretto and stuck it in a Thinkpad and installed Mandrake 9. after moving the disk back into the Libretto there was so much broken I just decided to do it all over again, but this time on the Libretto itself.
 
Old 11-18-2004, 02:36 AM   #3
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Original Poster
Rep: Reputation: 53
Hi, & thanks for your post with the right suggestion :-)

We have come to the same conclusion separately, i.e.
it is best to reinstall the OS. That worked.
(I am back to an internet connection only today)

The question now is how would I have installed the missing usb modules by hand, and how could I find out what was wrong

With Mandrake it was only a partial reinstall (it was very quick).
I think it proves how robust the OS is.
Strangely / nicely there was a USB hardware detection step
that seemed to work better than Drake, and the printer was detected
(I will post about the printer success separately in the HCL),
and it did not take long befoer the camera worked.

Somehow hotplug was in the list of services in the installation,
and I made sure it was ticked. I will post the new kernel messages soon.
One of the main change looked to be that

Code:
usbcore xxxx  4 usbhid,usblp,uhci-hcd
became 
usbcore xxxx  6 usbhid,usblp,ehci-hcd,ohci-hcd
I need to figure out how to tell if hotplug is loaded
(I mean from a command line, as opposed to the message
during the boot "loading HOTPLUG [OK]"


For information, these are now loaded

ehci-hcd 26244 0
lp 9548 0
ohci-hcd 18468 0
parport 33896 3 lp,parport_pc,ppdev
parport_pc 30976 1
ppdev 7620 0

Those directories were created

[root@localhost]# dir /proc/bus/usb/
001 002 003 devices

root@localhost]# ls /sys/bus/usb/
001/ 002/ 003/ devices

An one can notice that usbfs messages were now numerous

Code:
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
usbcore: registered new driver usblp
drivers/usb/class/ususbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
blp.c: v0.13: USB Printer Device Class driver

became

[root@localhost]# dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usb 2-1: new full speed USB device using address 2
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x080E
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
usb 2-1: usbfs: interface 1 claimed while 'sane-find-scann' sets config #1
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd sane-find-scann rqt 64 rq 4 len 64 ret -32
usb 2-1: USB disconnect, address 2
drivers/usb/class/usblp.c: usblp0: removed
usb 2-1: new full speed USB device using address 3
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 1 alt 0 proto 2 vid 0x04B8 pid 0x080E
usb 2-1: usbfs: interface 1 claimed while 'sane-find-scann' sets config #1
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd sane-find-scann rqt 64 rq 4 len 64 ret -32
usb 2-1: usbfs: interface 1 claimed while 'sane-find-scann' sets config #1
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd sane-find-scann rqt 64 rq 4 len 64 ret -32
usb 2-1: usbfs: interface 1 claimed while 'sane-find-scann' sets config #1
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd sane-find-scann rqt 64 rq 4 len 64 ret -32
usb 2-1: usbfs: interface 1 claimed while 'sane-find-scann' sets config #1
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd sane-find-scann rqt 64 rq 4 len 64 ret -32
usb 2-1: usbfs: interface 1 claimed while 'scanimage' sets config #1
usb 2-1: reset full speed USB device using address 3

Last edited by Emmanuel_uk; 11-19-2004 at 08:01 AM.
 
  


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
USB hotplug mp4-10 Linux - Hardware 2 03-08-2005 08:49 PM
Multiple USB devices with hotplug support vdemuth Slackware 2 12-06-2004 05:58 PM
Can Hotplug detect USB devices in a certain order? SAM_site Linux - General 0 07-10-2004 08:27 AM
Dual / Hotplug Pointing Devices - GPM Configuration muzicman82 Linux - Hardware 1 12-16-2003 05:52 PM
stop hotplug from detecting things connected to usb (but still noticing usb itself) TheOneAndOnlySM Linux - Hardware 5 10-18-2003 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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