LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (https://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   Device unable to connect to adb; LG LU2300 (Optimus Q) Android (https://www.linuxquestions.org/questions/linux-mobile-81/device-unable-to-connect-to-adb%3B-lg-lu2300-optimus-q-android-915267/)

tensionwind 11-24-2011 01:23 AM

Device unable to connect to adb; LG LU2300 (Optimus Q) Android
 
Hi,

Please excuse my asking in this forum. The most appropriate forum on Androidquestions.org is having a problem where it is not displaying new posts. Or at least not mine.

I am having trouble connecting my LG LU2400 phone and getting it recognized by the Android Development Bridge.

lsusb recognizes the phone:
Code:

me@ubuntu:/$ lsusb
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0461:4d81 Primax Electronics, Ltd
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 009: ID 1004:618e LG Electronics, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

And according that, the idVendor is 1004 and the device ID is 618e. But from the examples I've seen so far online, the device ID doesn't seem necessary.
So I added the following line of code to /etc/udev/rules.d/51-android.rules
Code:

SUBSYSTEM=="usb", SYSFS{idVendor}=="1004",MODE"0666", OWNER="me", GROUP="me"
But I have no idea if this is the SYSFS should be ATTR or something else or if I need to/(or need to NOT) change the Mode or owner or explicitly state device ID or whatever.

All I am certain of is that when I type adb devices I get no recognition of the phone as being plugged in, so I can't access it:
Code:

me@ubuntu:/$ adb devices
List of devices attached
????????????        no permissions

Does anyone who has successfully connected a phone to a linux box have any ideas?

Thanks very much,
tensionwind

eSelix 11-25-2011 02:26 PM

Do you really have:
Code:

MODE"0666"
It should be
Code:

MODE="0666"
Check ATTR as I have that and it works. Also do not forget about restarting adb service
Code:

adb kill-server
I have that issue it did not reread permissions of device if already started.

jhwilliams 11-26-2011 12:32 AM

Quote:

Originally Posted by tensionwind (Post 4532519)
Code:

me@ubuntu:/$ adb devices
List of devices attached
????????????        no permissions

Does anyone who has successfully connected a phone to a linux box have any ideas?

Try restarting the adb server as root:

Code:

adb kill-server
sudo adb start-server


eSelix 11-26-2011 06:42 AM

Probably it will work in root account, but he make udev entry to eliminate necessity of using root to connect phone.


All times are GMT -5. The time now is 03:44 AM.