Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no acknowledgment of usb device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 582

PostPosted: Thu Mar 29, 2018 1:19 am    Post subject: no acknowledgment of usb device Reply with quote

not sure what info to provide, it's an asus z170-k motherboard, linux 4.14.6, this gentoo build is around 6 months old.

all usb activity works, printer, wireless mouse/kb, programming a logitech tv remote, thumb drives, etc. dmesg/lsusb reflect changes when plugged in/removed.

the one exception are two vape pens plugged into usb3 or usb2 ports using a micro-usb cable they came with (standard usb plug on one end, micro on the end plugged into the pens). the only reason to plug them in is to recharge their batteries yet neither causes dmesg to notice them, nothing in lsusb, it's like they're not even there. however both charge up exactly as expected every time.

I wanted to know how much current either one was drawing yet 'lsusb -vv | grep -i maxpower' shows only my kb/mouse rec'r:

MaxPower 0mA
MaxPower 98mA
MaxPower 0mA
MaxPower 0mA
MaxPower 0mA

tried doing a 'watch -n ...' on the above to get updates every 1/2 second just in case there was some kind of on/off thing going on where charging happened in bursts but that never showed a non-0 value over many minutes.

I've been looking all over and can't find why dmesg/lsusb don't show any evidence either vape pen has been plugged in, is that unexpected? if so how would I go about determining what's the matter?
Back to top
View user's profile Send private message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 582

PostPosted: Fri Mar 30, 2018 12:25 am    Post subject: Reply with quote

fwiw a standalone instance of windows 8.1 on this machine doesn't show anything either. I installed the asus asmedia driver files I found on their site, installed usbtreeview and anything other than the pens appear but neither of them does. tried ports on front and rear, usb3 and 2.

afaik there's nothing in the pens a computer could or would communicate with so maybe that's why nothing ever shows up? but even if this is basically just a battery wouldn't dmesg/lsusb at least say something like 'unknown device'? or show current being supplied to a port?
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3086
Location: Illinois, USA

PostPosted: Fri Mar 30, 2018 12:38 am    Post subject: Reply with quote

What do you get from lsmod|grep hci?
Code:
MSI ~ # lsmod| grep hci
ohci_pci               16384  0
ohci_hcd               32768  1 ohci_pci
ehci_pci               16384  0
ehci_hcd               45056  1 ehci_pci
xhci_pci               16384  0
xhci_hcd               94208  1 xhci_pci
Do you have all three? ohci,ehci, and xhci?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5845

PostPosted: Fri Mar 30, 2018 3:55 am    Post subject: Reply with quote

it might be possible that the cables provided do not have data pins, if so, then they will charge and the laptop won't see anything. i would try a different cable, but it might also be possible that the devices don't have any usb data pins either. if all you want to do is check charging current, they make usb volt/amp meters that you can plug into a usb port or charger brick, and plug your device into that.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5762

PostPosted: Fri Mar 30, 2018 4:00 am    Post subject: Reply with quote

It's probably not a real USB device, designed for dumb AC adapters with no power negotiation. I've seen things like that that just don't have data pins in the cable at all. By default the USB spec only allows 100mA, which won't charge anything meaningful.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5845

PostPosted: Fri Mar 30, 2018 4:02 am    Post subject: Reply with quote

Ant P. wrote:
It's probably not a real USB device, designed for dumb AC adapters with no power negotiation. I've seen things like that that just don't have data pins in the cable at all.


yeah, it's really 50/50 here, some of them have user-replaceable firmware, especially the ones with fancy oled displays. egos and similar ones won't though.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 582

PostPosted: Fri Mar 30, 2018 7:53 pm    Post subject: Reply with quote

I build most things into the kernel, ohci is a module but never loaded when charging either pen. /proc/config.gz shows:

Code:
CONFIG_SATA_AHCI=y
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_SATA_ACARD_AHCI is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_PCI=y
CONFIG_USB_XHCI_PLATFORM=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=y
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_OHCI_HCD_PCI=m
# CONFIG_USB_OHCI_HCD_PLATFORM is not set
CONFIG_USB_UHCI_HCD=y
# CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set

the cables each vape pen included do have four contacts on each end, afaict they're ordinary usb2 cables with a micro connector on one end. but given the situation presumably the pens are only wired for power, they're both real basic with no firmware or displays.

I'm still not clear on why lsusb doesn't show charge current, I guess because usb software or hardware first has to recognize something is plugged in and that isn't happening here? they've both been getting recharged every time I plug in so I guess I'll just be happy that part works.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Fri Mar 30, 2018 8:37 pm    Post subject: Reply with quote

https://en.wikipedia.org/wiki/USB#Power
Quote:
The limit to device power draw is stated in terms of a unit load, which is 100 mA or 150 mA for SuperSpeed devices. Low-power devices may draw at most 1 unit load, and all devices must act as low-power devices before they are configured.
I think you have your answer, low power device draw 1 unit, which is 100mA
If the device doesn't initiate transaction (no D+/-) the device remains in low power.
Back to top
View user's profile Send private message
nordic bro
Guru
Guru


Joined: 25 Oct 2003
Posts: 582

PostPosted: Sat Mar 31, 2018 9:56 pm    Post subject: Reply with quote

krinn wrote:
https://en.wikipedia.org/wiki/USB#Power
Quote:
The limit to device power draw is stated in terms of a unit load, which is 100 mA or 150 mA for SuperSpeed devices. Low-power devices may draw at most 1 unit load, and all devices must act as low-power devices before they are configured.
I think you have your answer, low power device draw 1 unit, which is 100mA
If the device doesn't initiate transaction (no D+/-) the device remains in low power.

interesting, it seems more mysterious than I originally thought :) one of the vape pens charges at 5v/500ma and when that one is plugged into usb2 it takes around 1.5 hours to recharge from 50%. the device's led changes color so I know when the battery is around half full.

its battery is 1500mah where I've read a full charge from near empty would take around 3 hours or so. that makes it seem the pen is getting 500ma from usb2. but if it takes this configuring that link mentions, and from appearance my computer doesn't even know it's been plugged in, how could it be recharging much faster than 100ma would allow for?

http://www.csgnetwork.com/batterychgcalc.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum