LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-27-2014, 06:37 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 501

Rep: Reputation: 45
Angry mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4 does not exist error


Trying to connect to a Samsung Galaxy phone in MTP mode, Konquerer or Dolphin in KDE 4.14.3 throws the following error:
Code:
mtp:udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4
Why?

Last edited by Geremia; 12-27-2014 at 07:08 PM.
 
Old 12-28-2014, 11:05 AM   #2
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Have you tried adding the udev rule?

And this is for finding out what to add
 
Old 12-28-2014, 04:01 PM   #3
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 501

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by moisespedro View Post
Have you tried adding the udev rule?

And this is for finding out what to add
Yes, I tried exactly what the ArchWiki page you link to describes, but no no avail.

Here's my exact 51-android.rules file:
Code:
# cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="0x04e8", MODE="0666"
SUBSYSTEM=="usb",ATTR{idVendor}=="0x04e8",ATTR{idProduct}=="0x6860",SYMLINK+="android_adb"
SUBSYSTEM=="usb",ATTR{idVendor}=="0x04e8",ATTR{idProduct}=="0x6860",SYMLINK+="android_fastboot"
 
Old 12-28-2014, 06:25 PM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Well, I am clueless. Did you restart udev?
 
Old 12-28-2014, 08:23 PM   #5
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 501

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by moisespedro View Post
Well, I am clueless. Did you restart udev?
yes, with
Code:
# udevadm control --reload-rules
 
Old 12-29-2014, 01:48 AM   #6
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Two suggestions. First, try without "0x" in the idVendor and idProduct attributes:

Quote:
Originally Posted by Geremia View Post
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="0x04e8", MODE="0666"
SUBSYSTEM=="usb",ATTR{idVendor}=="0x04e8",ATTR{idProduct}=="0x6860",SYMLINK+="android_adb"
SUBSYSTEM=="usb",ATTR{idVendor}=="0x04e8",ATTR{idProduct}=="0x6860",SYMLINK+="android_fastboot"
So it looks like this:
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb",ATTR{idVendor}=="04e8",ATTR{idProduct}=="6860",SYMLINK+="android_adb"
SUBSYSTEM=="usb",ATTR{idVendor}=="04e8",ATTR{idProduct}=="6860",SYMLINK+="android_fastboot"
And the udevadm line,

Quote:
Originally Posted by Geremia View Post
Code:
# udevadm control --reload-rules
According to the udevadm man page, shouldn't that be:

Code:
# udevadm control --reload
 
Old 12-29-2014, 10:05 AM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Just so you know, you can shorten the rules down to only one if you remove the idProduct section. You only need the idVendor in the rule and then the permission (if you want a udev file to cover almost all android devices, see the bottom of thi post -- this can be handy when you switch phones so you don't have to redo your udev rules).

Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
Also, have you tried mtpfs? When I ran that, I realized that a previous dependency that I upgraded had caused problems with libmtp (which mtp-detect didn't show). When I tried manually mounting my device using mtpfs, it showed that libmtp was having issues because of a dependency. Once I rebuilt libmtp with the newer system package, it worked fine.

Now when I plug in the device, kde pops up and asks if I want to open it with konqueror.

Also, what's the output of mtp-detect?
 
1 members found this post helpful.
Old 01-01-2015, 10:45 PM   #8
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 501

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by bassmadrigal View Post
Also, what's the output of mtp-detect?
Code:
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 2, dev 27
Attempting to connect device(s)
And it never actually connects to the device…
 
Old 01-01-2015, 10:48 PM   #9
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 501

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by bassmadrigal View Post
When I tried manually mounting my device using mtpfs, it showed that libmtp was having issues because of a dependency. Once I rebuilt libmtp with the newer system package, it worked fine.
I'm using libmtp version: 1.1.6.
 
Old 01-01-2015, 10:54 PM   #10
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 501

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by bassmadrigal View Post
have you tried mtpfs?
Code:
# mtpfs 
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 2, dev 31
Attempting to connect device
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: Error 02fe: PTP: Protocol error, data expected
Segmentation fault
In the meantime, I've just been using "adb usb" and "adb push".
 
  


Reply

Tags
dolphin, kde 4.14.3, konquerer, mtp, samsung



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
[SOLVED] Accessing MTP devices using Wine? rnturn Linux - Software 9 07-25-2014 07:27 PM
What is stored in /sys/devices/pci0000:00? taylorkh Linux - Newbie 6 08-21-2013 07:55 PM
[SOLVED] udev: recognize USB2, but not firefire. kaz2100 Linux - General 2 11-02-2007 06:00 PM
What is /sys/devices/pci0000:00/0000:00:00.0/resource0 a_l_a_n Linux - Software 2 09-13-2007 07:04 AM
MTP Devices in VMware jkfff Linux - Hardware 4 01-17-2007 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:35 AM.

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