You are not logged in.

#1 2016-02-05 17:33:26

keitalbame
Member
Registered: 2015-07-20
Posts: 5

USB devices not detected without AC power

Without ac adapter, on both lts and latest kernel, none of the USB devices are detected when inserted. If they are connected on boot, they work but on disconnect and connect again, they are no longer detected. As soon as I connect AC adapter, they are detected.

This also happens with internal bluetooth because in the USB bus.

When using block devices likes pen drive or hdd, this behaviour is not seen. They work all the time.

On LTS and latest kernel, even after suspend/resume, is working ok with ac adapter.

Seems to be something related with Power Management but didn't find anything to help on the troubleshoot.

Any tips or someone can replicate this?

Laptop Dell E6400
Intel Core2Duo T9600

uname -r
4.1.17-1-lts

uname -r
4.4.1-2-ARCH
dmesg -kw

## logitech unifying usb dongle
[  336.510297] usb 5-2: new full-speed USB device number 14 using uhci_hcd
[  336.716434] logitech-djreceiver 0003:046D:C52B.0065: hiddev0,hidraw1: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.1-2/input2
[  336.844788] logitech-hidpp-device 0003:046D:4011.0066: hidraw2: USB HID v1.11 Keyboard [Logitech Wireless Touch] on usb-0000:00:1d.1-2:1
[  339.290397] usb 5-2: USB disconnect, device number 14

## vga+audio to hdmi adapter
[ 1670.541350] input: C-Media USB Headphone Set   as /devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.3/0003:0D8C:000C.007C/input/input41
[ 1670.593594] hid-generic 0003:0D8C:000C.007C: input,hidraw0: USB HID v1.00 Device [C-Media USB Headphone Set  ] on usb-0000:00:1d.1-1/input3

## bluetooth adapter
[ 1763.573263] usb 3-1: new full-speed USB device number 16 using uhci_hcd
[ 1763.748005] hub 3-1:1.0: USB hub found
[ 1763.749942] hub 3-1:1.0: 3 ports detected
[ 1764.026804] usb 3-1.1: new full-speed USB device number 17 using uhci_hcd
[ 1764.151913] input: HID 413c:8157 as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1:1.0/0003:413C:8157.007D/input/input42
[ 1764.203832] hid-generic 0003:413C:8157.007D: input,hidraw1: USB HID v1.11 Keyboard [HID 413c:8157] on usb-0000:00:1a.0-1.1/input0
[ 1764.281469] usb 3-1.2: new full-speed USB device number 18 using uhci_hcd
[ 1764.408496] input: HID 413c:8158 as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:413C:8158.007E/input/input43
[ 1764.409186] hid-generic 0003:413C:8158.007E: input,hidraw2: USB HID v1.11 Mouse [HID 413c:8158] on usb-0000:00:1a.0-1.2/input0
[ 1765.306588] usb 3-1.3: new full-speed USB device number 19 using uhci_hcd
lsusb

## logitech unifying usb dongle
Bus 006 Device 021: ID 046d:c52b Logitech, Inc. Unifying Receiver

## vga+usb audio to hdmi adapter
Bus 007 Device 024: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter

## bluetooth adapter
Bus 003 Device 023: ID 413c:8156 Dell Computer Corp. Wireless 370 Bluetooth Mini-card
Bus 003 Device 020: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)

Offline

#2 2016-11-18 17:05:39

gphilip
Member
Registered: 2011-09-01
Posts: 7

Re: USB devices not detected without AC power

I faced the same problem today, after a system upgrade and reboot. I have found a workaround for this.

Are you using TLP? If yes, there is one way to get around this problem, other than rebooting each time you need to plug in a usb drive while on battery power. Plug in your drive, and then run the following commands, waiting for a couple of seconds between the two:

$ sudo tlp ac
$ sudo tlp bat

These commands tell TLP to go to AC powered mode and back again to battery mode. This fixes the issue for me --- the usb drive is magically detected and (auto)mounted when TLP is in AC mode. This suggests that the underlying problem may be with TLP.

Hope this helps!

Offline

#3 2017-01-11 18:54:46

keitalbame
Member
Registered: 2015-07-20
Posts: 5

Re: USB devices not detected without AC power

Yes, Im using TLP

I used the USB_BLACKLIST=device_id to blacklist on them on the USB autosuspend.

File to configure is:

/etc/default/tlp

Thanks for the tip.

Last edited by keitalbame (2017-01-11 18:57:10)

Offline

Board footer

Powered by FluxBB