Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1844007
  • 博文数量: 323
  • 博客积分: 5970
  • 博客等级: 大校
  • 技术积分: 2764
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-03 23:13
文章分类

全部博文(323)

文章存档

2018年(2)

2017年(11)

2016年(10)

2015年(27)

2014年(2)

2013年(30)

2012年(197)

2011年(44)

分类: LINUX

2013-06-26 21:16:53

At some moment, my USB WLAN stick stopped working, and the log was polluted by messages like:

usb 6-1: new high speed USB device using ehci_hcd and address 62
hub 6-0:1.0: unable to enumerate USB device on port 1
hub 6-0:1.0: unable to enumerate USB device on port 1

At first, I decided that the stick had broken after years of work, but out of curiousity tried to connect it to every USB port I found. It worked. The stick worked again when plugged into the keyboard, which in term was connected to the KVM.

What is funny, I did nothing, but after a few days the stick worked again correctly in its original port. I forgot about the problem. But after yet another vacations, the problem appeared again, and again disappeared in a few days.

I have no idea why.

But I finally found a solution here: [Solved] Unable to enumerate USB device (Disabling ehci_hcd). I need to disable ehci_hcd. In my case, the commands is:

# cd /sys/bus/pci/drivers/ehci_hcd
# echo -n "0000:00:1a.7" > unbind

As a side effect, I do not have USB 2.0 on this bus anymore, but it is not a problem.

24.02.2010, update

To issue the command automatically on boot, one could edit /etc/rc.local, but in my case I need to have network loaded before. The best solution (I hope) is based on advice here:

You can disable this on boot by creating a /etc/udev/rules.d/disable-ehci.rules file containing:

ACTION=="add", SUBSYSTEM=="pci", DRIVER=="ehci_hcd", \

        RUN+="/bin/sh -c 'echo -n %k > %S%p/driver/unbind'" 

This entry was posted by  on Tuesday, January 18th, 2011 at 11:19 am and is filed under linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

阅读(4201) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~