Re: How to resume USB hubs
On 09/03/2010 10:32 AM, Gero Putzar wrote: Thanks for your suggestion, Olaf. Unfortunately I can't shutdown the system at the moment, I think in this case changing something in the BIOS is not possible or has no effect, am I right? Or else how could I do that? Btw, I would not know what do change, anyway. I may look at the BIOS parameters when I restart the computer the next time, maybe I find something. Thanks again, Gero. Some BIOS have enable/disable usb keyboard, boot from usb and maybe something else usb related . -- Bye, Goran Dobosevic Hrvatski: www.dobosevic.com English: www.dobosevic.com/en/ Registered Linux User #503414 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c80f466.3030...@dobosevic.com
RE: How to resume USB hubs
Thanks for your suggestion, Olaf. Unfortunately I can't shutdown the system at the moment, I think in this case changing something in the BIOS is not possible or has no effect, am I right? Or else how could I do that? Btw, I would not know what do change, anyway. I may look at the BIOS parameters when I restart the computer the next time, maybe I find something. Thanks again, Gero. > -Original Message- > From: Olaf Reitmaier Veracierta [mailto:ola...@gmail.com] > Sent: Friday, 3 September 2010 12:31 PM > To: debian-user@lists.debian.org > Subject: Re: How to resume USB hubs > > What about looking or turn to defaults your bios? > > On 02/09/10 23:10, Gero Putzar wrote: > > Hi, > > > > when I tried to log in to my computer today, I realized that the usb > ports > > are not working anymore, therefore I've got no keyboard and no mouse > > anymore. Logging in via ssh, I checked that besides that everything > seems to > > be running fine. > > > > I googled around a bit and assume that the built in usb hubs (there > seem to > > be 4 or 5 of them) shut down maybe as a power saving feature. Does > anyone > > have an idea how to wake them up again? > > > > If I plug in anything into one of the usb ports the /var/log/messages > > doesn't show the usual message that the kernel recognized a new usb > device. > > > > I tried to write to the /sys/bus/usb/... files but unfortunately: > > # echo on> /sys/bus/usb/devices/1-0\:1.0/power/level > > bash: /sys/bus/usb/devices/1-0:1.0/power/level: No such file or > directory > > > > Is there a way to reset the usb hubs or to reinitialise the > corresponding > > kernel drivers or whatever deals with it? (I cannot reboot the > computer at > > the moment.) I tried: > > # modprobe usbcore > > FATAL: Module usbcore not found. > > > > ... and again without success: > > # /etc/init.d/udev restart > > > > I'm running the current Debian Lenny on a HP desktop with the > standard Gnome > > desktop. > > > > Thanks, Gero. > > > > I attached some output of how I tried to figure out the reason. Mouse > and > > keyboard were connected (via an external hub in the monitor) but that > does > > not seem to matter. > > > > # ls /sys/bus/usb/devices > > 1-0:1.0 2-0:1.0 3-0:1.0 4-0:1.0 5-0:1.0 usb1 usb2 usb3 usb4 > usb5 > > # ls -R /sys/bus/usb/devices/1-0\:1.0/ > > /sys/bus/usb/devices/1-0:1.0/: > > bAlternateSetting bInterfaceSubClass ep_81 uevent > > bInterfaceClass bNumEndpoints modalias > > usb_endpoint:usbdev1.1_ep81 > > bInterfaceNumberbus power > > bInterfaceProtocol driver subsystem > > > > /sys/bus/usb/devices/1-0:1.0/power: > > wakeup > > > > # cat /sys/bus/usb/devices/1-0\:1.0/power/wakeup > > > > # echo enable> /sys/bus/usb/devices/1-0\:1.0/power/wakeup > > bash: echo: write error: Invalid argument > > # lsusb > > Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > > Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > > Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > > Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > > > > # lsusb -v -s 1: > > > > Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > > Device Descriptor: > >bLength18 > >bDescriptorType 1 > >bcdUSB 1.10 > >bDeviceClass9 Hub > >bDeviceSubClass 0 Unused > > > >Configuration Descriptor: > > bLength 9 > > bDescriptorType 2 > > wTotalLength 25 > > bNumInterfaces 1 > > bConfigurationValue 1 > > iConfiguration 0 > > bmAttributes 0xe0 > >Self Powered > >Remote Wakeup > > MaxPower0mA > > Interface Descriptor: > >bLength 9 > >bDescriptorType 4 > >bInterfaceNumber0 > >bAlternateSetting 0 > >bNumEndpoints 1 > >bInterfaceClass 9 Hub > >bInterfaceSubClass 0 Unused > >bInterfaceProtocol 0 Full speed (or root) hub > >iInterface 0 > >Endpoint Descriptor: > > bLength 7 > > bDescriptorType 5 > > bEndpointAddress 0x81 EP
RE: How to resume USB hubs
Thank you Camaleón for your answer. I found the following suggestion to switch of the autosuspend option for usb devices somewhere: # modprobe usbcore autosuspend=-1 That's why I mentioned this module. It seems that this usbcore is something different than "ehci_hcd" and "uhci_hcd", at least in some conversations with similar topics "usbcore" and "ehci_hcd" appear both with "usbcore" having the autosuspend option. But I don't know. I did not find any information about possible options to ehci_hcd. Hah! Got it! While writing this I tried some more and now I've got my usb hubs back. Simply removed the modules and loaded them back again: # rmmod uhci_hcd # rmmod ehci_hcd # modprobe ehci_hcd # modprobe uhci_hcd (In fact I did it twice, because I read somewhere that the order matters, ehci_hcd should go first, and accidently I did it the other way around first, don't know if that matters.) So now, I know, how to get the usb hubs back again. What I still don't know is why they shut down in the first place. But I try to work that out a little later. There is still no power/autosuspend or power/level file under /sys/bus/usb/devices/... Thank you for pointing me in the right direction, Cheers, Gero. > -Original Message- > From: Camaleón [mailto:noela...@gmail.com] > Sent: Friday, 3 September 2010 2:19 PM > To: debian-user@lists.debian.org > Subject: Re: How to resume USB hubs > > On Fri, 03 Sep 2010 11:40:03 +0800, Gero Putzar wrote: > > (...) > > > Is there a way to reset the usb hubs or to reinitialise the > > corresponding kernel drivers or whatever deals with it? (I cannot > reboot > > the computer at the moment.) I tried: > > # modprobe usbcore > > FATAL: Module usbcore not found. > > (...) > > AFAIK, "ehci_hcd" and "uhci_hcd" are the kernel modules for USB stack. > > Greetings, > > -- > Camaleón > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/pan.2010.09.03.06.18...@gmail.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/000301cb4b42$6ad6fc30$4084f4...@com.au
Re: How to resume USB hubs
On Fri, 03 Sep 2010 11:40:03 +0800, Gero Putzar wrote: (...) > Is there a way to reset the usb hubs or to reinitialise the > corresponding kernel drivers or whatever deals with it? (I cannot reboot > the computer at the moment.) I tried: > # modprobe usbcore > FATAL: Module usbcore not found. (...) AFAIK, "ehci_hcd" and "uhci_hcd" are the kernel modules for USB stack. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.09.03.06.18...@gmail.com
Re: How to resume USB hubs
What about looking or turn to defaults your bios? On 02/09/10 23:10, Gero Putzar wrote: Hi, when I tried to log in to my computer today, I realized that the usb ports are not working anymore, therefore I've got no keyboard and no mouse anymore. Logging in via ssh, I checked that besides that everything seems to be running fine. I googled around a bit and assume that the built in usb hubs (there seem to be 4 or 5 of them) shut down maybe as a power saving feature. Does anyone have an idea how to wake them up again? If I plug in anything into one of the usb ports the /var/log/messages doesn't show the usual message that the kernel recognized a new usb device. I tried to write to the /sys/bus/usb/... files but unfortunately: # echo on> /sys/bus/usb/devices/1-0\:1.0/power/level bash: /sys/bus/usb/devices/1-0:1.0/power/level: No such file or directory Is there a way to reset the usb hubs or to reinitialise the corresponding kernel drivers or whatever deals with it? (I cannot reboot the computer at the moment.) I tried: # modprobe usbcore FATAL: Module usbcore not found. ... and again without success: # /etc/init.d/udev restart I'm running the current Debian Lenny on a HP desktop with the standard Gnome desktop. Thanks, Gero. I attached some output of how I tried to figure out the reason. Mouse and keyboard were connected (via an external hub in the monitor) but that does not seem to matter. # ls /sys/bus/usb/devices 1-0:1.0 2-0:1.0 3-0:1.0 4-0:1.0 5-0:1.0 usb1 usb2 usb3 usb4 usb5 # ls -R /sys/bus/usb/devices/1-0\:1.0/ /sys/bus/usb/devices/1-0:1.0/: bAlternateSetting bInterfaceSubClass ep_81 uevent bInterfaceClass bNumEndpoints modalias usb_endpoint:usbdev1.1_ep81 bInterfaceNumberbus power bInterfaceProtocol driver subsystem /sys/bus/usb/devices/1-0:1.0/power: wakeup # cat /sys/bus/usb/devices/1-0\:1.0/power/wakeup # echo enable> /sys/bus/usb/devices/1-0\:1.0/power/wakeup bash: echo: write error: Invalid argument # lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub # lsusb -v -s 1: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass9 Hub bDeviceSubClass 0 Unused Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes3 Transfer TypeInterrupt Synch Type None Usage Type Data wMaxPacketSize 0x0002 1x 2 bytes bInterval 255 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 2 wHubCharacteristic 0x000a No power switching (usb 1.0) Per-port overcurrent protection bPwrOn2PwrGood1 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable0x00 PortPwrCtrlMask0xff Hub Port Status: Port 1: .0100 power Port 2: .0100 power Device Status: 0x0003 Self Powered Remote Wakeup Enabled -- - "You don't know where your shadow will fall", Somebody.- - Ing. Olaf Reitmaier Veracierta - Personal Web Page -- http://olafrv.com -- i...@olafrv.com - -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c8079f5.5090...@gmail.com