LinuxQuestions.org
Register a domain and help support LQ
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 03-26-2010, 07:35 AM   #1
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Rep: Reputation: 16
USB mouse and USB DAC can't be used simultaneously


Hi,

I have a USB mouse and a USB audio DAC.

Both work fine separately with linux.

The problem is when I try using both simultaneously. The first-plugged device will work fine, but not the second-plugged device. That is, if I plug the mouse first and the DAC second, then the mouse works and the DAC doesn't work. And conversely.

When I say that the second-plugged device doesn't work, here's what I mean: the USB device is detected by the system, but gets "reset" every 2 seconds and can't be actually used at all.

Here are some log messages. Here I'm working in the case where I have plugged the mouse first and am plugging the DAC second.
Code:
$ lsusb | egrep -i mouse\|texas
Bus 002 Device 009: ID 08bb:2704 Texas Instruments Japan 
Bus 002 Device 007: ID 046d:c526 Logitech, Inc. MX Revolution Cordless Mouse
"Texas Instruments" is my DAC. So, at the level of lsusb, all is well.

Now here is what appears in /var/log/messages.log when I plug that DAC:

Code:
$ sudo tail -f /var/log/messages.log
Mar 26 08:33:25 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:26 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:26 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:27 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:28 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:28 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:28 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:29 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:29 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:30 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:31 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:31 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:31 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:32 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:33 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:33 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:34 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:34 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Mar 26 08:33:34 kiwi kernel: usb 2-1.3: reset full speed USB device using ehci_hcd and address 9
Accordingly, in alsamixer, the DAC appears as a sound card, but when I select it, after 2 seconds alsamixer tells me that it was unplugged.

Again, if I plug the DAC first then it works and when I then plug the mouse, I get the exact same problem for the mouse!

Any help greatly appreciated

My system:
Code:
$ uname -a
Linux kiwi 2.6.33-ARCH #1 SMP PREEMPT Sat Feb 27 13:28:30 CET 2010 x86_64 Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz GenuineIntel GNU/Linux
 
Old 03-26-2010, 07:58 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,441
Blog Entries: 3

Rep: Reputation: 182Reputation: 182
could you start alsamixer and see if the device is shown if so enable it. This may under "line"
 
Old 03-26-2010, 08:23 AM   #3
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Original Poster
Rep: Reputation: 16
Yes, the DAC does show up in alsamixer (as a separate sound card)

However, when I select it (using F6 key), within 1 second alsamixer complains that it was unplugged. This matches the messages pasted above in /var/log/messages.

On the other hand, when the DAC has been plugged before the mouse, it works nicely.
 
Old 03-28-2010, 05:43 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,441
Blog Entries: 3

Rep: Reputation: 182Reputation: 182
I am curious about you BIOS some BIOS have a place were you set it for none windows.
If you do not have this option do not worry just collecting data. If you do have that option
and you are set to O/S to run Bios like windows this will cause some hardware to have IRQ
conflicts. If so please set to none O/S. This allows BIOS to handle the IRQ and let linux TRY.
I mean TRY to read them.
could you tell me which desk top environment you use as default.
KDE GNOME etc

Last edited by Drakeo; 03-28-2010 at 05:46 PM.
 
Old 03-28-2010, 10:47 PM   #5
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Original Poster
Rep: Reputation: 16
This is a Phoenix BIOS with very, very few options --- doesn't seem to have anything like what you mention. Just FYI I'm running KDE but I'd be surprised if this had an impact on my problem.
 
Old 03-29-2010, 08:27 AM   #6
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Original Poster
Rep: Reputation: 16
Problem solved, the problem was that the default USB 2.0 scheduler is stupid, the solution was to build a custom kernel with CONFIG_USB_EHCI_TT_NEWSCHED enabled.
 
Old 03-29-2010, 08:53 AM   #7
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Original Poster
Rep: Reputation: 16
Reported to the kernel devs:
https://bugzilla.kernel.org/show_bug.cgi?id=15649
 
  


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
fubar USB II DAC location? tfrei Slackware 1 08-04-2008 03:00 PM
Can I use both a USB DAC and a USB soundcard ? spiug53 Linux - General 0 03-12-2006 01:41 PM
Slack 10, laptop, touchpad and usb mouse simultaneously? kersten78 Slackware - Installation 21 09-16-2004 11:13 PM
Touchpad and USB mouse simultaneously? Pathian Linux - Hardware 0 01-07-2004 12:18 AM
USB mouse + touchpad working simultaneously stevenhasty Slackware 1 07-26-2003 07:11 AM


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

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