LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 04-19-2005, 04:33 PM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 379

Rep: Reputation: 37
USB2 4 port hub


I've recently bought the Trust 420A 4 Port Compact USB2 Hub. On the http://www.qbik.ch/usb/devices/ there is a suggestion that it is Linux compatible.

In Slackware 10.1 when the hub is connected to my Canon N670U scanner, start Kooka, the scanner is recognised but when I try to scan nothing happens. Close Kooka down and start again the scanner is no longer recognised. Unplug the USB cable the machine crashes. In dmesg I get the following

scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.
ppdev: user-space parallel port driver
ppdev0: registered pardevice
ppdev0: unregistered pardevice
scanner.c: write_scanner(0): funky result: -32. Consult Documentataion/usb/scanner.txt.

At start up the relevant section of /var/log/messages file looks like -

Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: Intel Corp. 82801EB USB2
Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: irq 3, pci mem e0baf000
Apr 19 22:18:19 LINUX kernel: usb.c: new USB bus registered, assigned bus number 5
Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: enabled 64bit PCI DMA
Apr 19 22:18:19 LINUX kernel: ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-D
ec-29/2.4
Apr 19 22:18:19 LINUX kernel: usb.c: USB disconnect on device 00:1d.1-1 address 2
Apr 19 22:18:19 LINUX kernel: usb.c: USB disconnect on device 00:1d.1-1.4 address 3
Apr 19 22:18:19 LINUX kernel: hub.c: USB hub found
Apr 19 22:18:19 LINUX kernel: hub.c: 8 ports detected
Apr 19 22:18:19 LINUX kernel: hub.c: new USB device 00:1d.7-3, assigned address 2
Apr 19 22:18:19 LINUX kernel: hub.c: USB hub found
Apr 19 22:18:19 LINUX kernel: hub.c: 4 ports detected
Apr 19 22:18:19 LINUX kernel: hub.c: new USB device 00:1d.7-3.4, assigned address 3
Apr 19 22:18:19 LINUX kernel: usb.c: registered new driver usbscanner
Apr 19 22:18:19 LINUX kernel: scanner.c: USB scanner device (0x04a9/0x220d) now attached to scanner0
Apr 19 22:18:19 LINUX kernel: scanner.c: 0.4.16:USB Scanner Driver

lsmod looks like -

Module Size Used by Not tainted
snd-pcm-oss 37220 0 (unused)
snd-mixer-oss 12248 0 [snd-pcm-oss]
parport_pc 15044 1 (autoclean)
lp 6404 0 (autoclean)
parport 22824 1 (autoclean) [parport_pc lp]
ipt_state 536 33 (autoclean)
ipt_REJECT 3128 4 (autoclean)
ipt_limit 888 6 (autoclean)
ipt_LOG 3448 6 (autoclean)
ip_conntrack_ftp 3632 0 (unused)
ip_conntrack 18440 1 [ipt_state ip_conntrack_ftp]
iptable_filter 1676 1 (autoclean)
ip_tables 11968 5 [ipt_state ipt_REJECT ipt_limit ipt_LOG iptable_filter]
scanner 10720 0 (unused)
ehci-hcd 17516 0 (unused)
ata_piix 3784 0 (unused)
libata 27732 0 [ata_piix]
snd-intel8x0 18440 0
snd-ac97-codec 43228 0 [snd-intel8x0]
gameport 1404 0 [snd-intel8x0]
snd-pcm 56072 0 [snd-pcm-oss snd-intel8x0]
snd-timer 13316 0 [snd-pcm]
snd-page-alloc 5972 0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart 3200 0 [snd-intel8x0]
snd-rawmidi 12256 0 [snd-mpu401-uart]
snd-seq-device 3680 0 [snd-rawmidi]
snd 29668 0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart
snd-rawmidi snd-seq-device]
soundcore 3396 4 [snd]
ohci1394 23888 0 (unused)
ieee1394 41604 0 [ohci1394]
8139too 13928 1
mii 2272 0 [8139too]
crc32 2880 0 [8139too]
ide-scsi 9392 0
scsi_mod 59208 2 [ata_piix libata ide-scsi]
usb-uhci 21936 0 (unused)
usbcore 58828 1 [scanner ehci-hcd usb-uhci]
agpgart 45092 0 (unused)



lspci looks like -

00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corp. 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Bridge (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801EB/ER (ICH5/ICH5R) Ultra ATA 100 Storage Controller (rev 02)
00:1f.2 IDE interface: Intel Corp. 82801EB (ICH5) Serial ATA 150 Storage Controller (rev 02)
00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]
02:01.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
02:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:09.0 Unknown mass storage controller: CMD Technology Inc PCI0680 (rev 02)


The Scanner works perfectly if plugged directly into a usb port on the mother board. Also the scanned works perfectly plugged into the external hub using knoppix.

Originally Slackware was loading the uhci module whereas Knoppix was loading the usb-uhci module. I've changed slack to use usb-uhci module, still crashes.

Any suggestions?

Thanks in anticipation.
 
Old 04-21-2005, 02:14 PM   #2
thijser
LQ Newbie
 
Registered: Sep 2004
Location: Netherlands
Distribution: Debian, Suse, Knoppix & Ubuntu
Posts: 9

Rep: Reputation: 0
I have similar problems with this hub. I have SuSE 9.2 installed, and I recently bought a LaCie 160GB external harddisc. It works fine when it's plugged into my laptop directly, but when I put it in the Trust hub, copying big files doesn't work. dmesg outputs errors like
Buffer I/O error on device sda1, logical block 62996168
Buffer I/O error on device sda1, logical block 62996169
Buffer I/O error on device sda1, logical block 62996170

The strange thing is that on Windows XP, the device works fine even on the hub!!! That makes me think it's a problem of linux, not a hardware problem with the hub. Can anyone help out?
 
Old 04-22-2005, 04:14 AM   #3
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 379

Original Poster
Rep: Reputation: 37
It's looking increasing likely that the problem is lack of power on the hub. I got to the position whereby sometimes it would work sometimes it wouldn't - the scanner that is. I started another thread at http://lists.alioth.debian.org/piper...il/013460.html which shed some light on my scanner problem.

thijser is your hub got an external psu or is it powered solely from the USB ports?

In the specification for the hub it recommends an psu of 5v dc and 2,500ma. I've no problem with the 5v dc the 2,500ma seemed a bit high. I couldn't find a PSU that matched this specification in my local store also it seemed it was going to be trial and error to get the appropriate hollow plug for it as the specification didn't indicate the size of the plug to use. Also the nearest specification PSU was going to cost 5 times the price I originally paid for the hub!
 
Old 04-22-2005, 08:37 AM   #4
thijser
LQ Newbie
 
Registered: Sep 2004
Location: Netherlands
Distribution: Debian, Suse, Knoppix & Ubuntu
Posts: 9

Rep: Reputation: 0
I don't think power is a problem in my case. My USB HD is externally powered, and besides, it just works in windows XP (or could it be that the linux ACPI/APM implementation gives less power to the usb port than windows?).
Any other suggestions?
 
  


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
Jumpdrive problems on USB2.0 hub DJOtaku Linux - Hardware 1 04-01-2005 03:19 AM
How to... Connect drives on USB, USB2 Port the_rhino Fedora 2 02-07-2005 11:35 PM
Suse 9.1 , USB2 problems , HID , HUB mice kbd posdmr Linux - Hardware 3 07-05-2004 01:37 AM
hub.c port problems PLEASE HELP! daemonspyre Linux - Hardware 2 06-11-2004 01:04 PM
The Missing Hub Port FuzzyTheBear Linux - Networking 1 08-06-2003 12:49 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration