You are not logged in.

#1 2015-06-12 11:13:45

Fandekasp
Member
From: Japan
Registered: 2012-02-12
Posts: 25
Website

[SOLVED] Nexus 4 not detected by lsusb

I used to be able to detect my Nexus 4 and transfer files from arch using adb. But recently, `adb devices -l` won't list it anymore, and when running `dmesg -w`, nothing happens when I plug the usb cable to the computer. My Nexus 4 is now running Android 5.1.1, with developer option USB debugging activated as always.  The usb cable can be used for other devices, and actually charges my phone properly when connected to the computer, weird since it's not detected by dmesg/lsusb.

Any idea what could be wrong ?


ANSWER: DEFECTIVE USB CABLE

Last edited by Fandekasp (2015-06-14 01:38:55)

Offline

#2 2015-06-12 13:43:54

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: [SOLVED] Nexus 4 not detected by lsusb

Check https://wiki.archlinux.org/index.php/An … _.28ADB.29

Make sure you have android-udev package installed


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2015-06-12 13:56:31

Fandekasp
Member
From: Japan
Registered: 2012-02-12
Posts: 25
Website

Re: [SOLVED] Nexus 4 not detected by lsusb

I'm sorry, but as I said, adb was working fine for me, so obviously android-udev is installed and co (I double-checked in case).. My problem is that lsusb doesn't recognize my device anymore

Offline

#4 2015-06-12 14:47:30

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] Nexus 4 not detected by lsusb

Make sure the USB mode is correct on your device. I believe there are two or three settings for that -- just charging, storage and camera, I think.


Matt

"It is very difficult to educate the educated."

Offline

#5 2015-06-13 11:43:24

jatone
Member
Registered: 2015-06-13
Posts: 5

Re: [SOLVED] Nexus 4 not detected by lsusb

Experiencing an extremely similar issue with my Nexus 5. (Might be related)

not detected by lspci.

$ lspci -nn | grep -i usb
00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
00:14.5 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1002:4399]
00:16.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
00:16.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
02:00.0 USB controller [0c03]: Etron Technology, Inc. EJ168 USB 3.0 Host Controller [1b6f:7023] (rev 01)
06:00.0 USB controller [0c03]: Etron Technology, Inc. EJ168 USB 3.0 Host Controller [1b6f:7023] (rev 01)

not detected by lsusb:

$ lsusb
Bus 011 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 007: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 009 Device 005: ID 1532:0024 Razer USA, Ltd Razer Mamba
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 010 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

differences from the OP:
dmesg RARELY outputs that it detected the device for a extremely short period of time:

$ dmesg -Hw
[Jun13 07:19] usb 5-1: new high-speed USB device number 5 using xhci_hcd
[  +0.978438] usb 5-1: USB disconnect, device number 5

these two messages almost never appear and once they have unplugging and replugging the device do nothing (i.e they won't appear again).
It also has trouble detecting that its charging when attached to the computer. (it'll say its charging after I unplug it, or it'll never charge.)

it'll also have problems charging from a wall outlet only AFTER I plug it into the computer. restarting the phone resets this.

My current theory is attaching it to the computer is somehow messing up the nexus' usb state. But at a loss how to debug this further as the nexus device is basically a black box without rooting it. (which I can't do unless I attach it to a computer)

some extra tidbits: disabled xhci_hcd but same behaviour occurs only the kernel module used is different.

$ dmesg -Hw
[Jun13 07:54] usb 7-1: new high-speed USB device number 3 using ehci-pci
[  +0.943719] usb 7-1: USB disconnect, device number 3

Last edited by jatone (2015-06-13 11:56:35)

Offline

#6 2015-06-14 01:38:19

Fandekasp
Member
From: Japan
Registered: 2012-02-12
Posts: 25
Website

Re: [SOLVED] Nexus 4 not detected by lsusb

I figured out my problem, the cable was defective. Trying a new cable worked fine.

Offline

Board footer

Powered by FluxBB