LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 11-24-2011, 01:23 AM   #1
tensionwind
LQ Newbie
 
Registered: Nov 2011
Distribution: Ubuntu, Debian
Posts: 4

Rep: Reputation: Disabled
Question 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
 
Old 11-25-2011, 02:26 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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.

Last edited by eSelix; 11-25-2011 at 02:32 PM.
 
Old 11-26-2011, 12:32 AM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Quote:
Originally Posted by tensionwind View Post
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
 
Old 11-26-2011, 06:42 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

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


Reply

Tags
adb, android, udev


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you force your android device to connect to only one wifi channel? archieval Linux - Mobile 0 01-26-2011 01:41 AM
unable to connect my internet device with back track 4 mohammad_tmt Linux - Newbie 3 02-12-2010 11:54 AM
Fedora 10 unable to connect to internet with mi wireless device Jotako Linux - Newbie 5 01-30-2009 08:11 PM
Centrino Mobile problem: Unable to connect to access points with device child_of_dust Linux - Wireless Networking 4 03-25-2004 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration