You are not logged in.

#1 2008-02-03 09:41:06

fettouhi
Member
Registered: 2007-05-07
Posts: 745

Mounting a MTP device in Amarok

I'm running Arch with KDEmod installed and I'm trying to set up Amarok to mount my 60 GB Creative Zen Vision which is a MTP device. I have installed libmtp and my user is a member of hal and dbus but everytime I try to connect to my Zen I get the error "can't mount mtp-device". Is there something I'm missing?

Kind Regards

André

PS. I also tried gnomad2 but I get the error "no device found at usb-bus".

Last edited by fettouhi (2008-02-03 10:05:12)

Offline

#2 2008-02-03 16:23:45

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Mounting a MTP device in Amarok

Forget hal and dbus groups. I have no idea who came up with that; they are mentioned nowhere, and most certainly not in any udev rule. You should only need to be member of the storage group.

Last edited by byte (2008-02-03 16:24:54)


1000

Offline

#3 2008-02-04 02:33:44

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Mounting a MTP device in Amarok

Last time I checked libmtp was way outdated in Arch. I needed to recompile the latest version myself.
You may give it a try.

Offline

#4 2008-02-06 06:14:26

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Mounting a MTP device in Amarok

libmtp in the repositories has caught up with the newer version now (though a newer version was released just a couple weeks ago that hasn't made it to Arch yet).  I installed it from earlier and had some issues with the default udev rules. It doesn't look like it's included in the official packages. I got the file from the source tarball, it's a file called libmtp.rules. I copied it into /etc/udev/rules.d  as it said in the source README. Initially that would only connect as root. I needed to add

GROUP="audio"

at the end of the relevant line for it to work as my regular user. I suppose a different group could work as well, just so long as your user is part of that group. Audio seemed logical to me.

If this is the issue it's probably a good idea to file a bug report to make sure the udev rules get included.

Last edited by mcmillan (2008-02-09 04:07:16)

Offline

#5 2008-02-11 05:46:01

violagirl23
Member
Registered: 2008-01-24
Posts: 184

Re: Mounting a MTP device in Amarok

I could never get my mp3 player to work with gnomad2.  I'm personally rather fond of mtpfs (it's in the AUR).  It lets me peruse my Creative Vision:M like an actual folder and put stuff in it (only limitation is I can't seem to use the mv command WITHIN The player, have to cp the file and then delete the original, and I can't cp to a file that already exists; I have to delete it first).  But overall, it works pretty nice.
So if you get libmtp working, I suggest mtpfs!  I'm not sure what your problems with libmtp are, because I got the mtpfs working under Gentoo and had no problem with it, so maybe I'll have to try it out on Arch and see what happens.
As for libmtp being out-of-date, it's actually more out-of-date on Gentoo!  The latest stable version available is 0.2.3, with 0.2.4 and 0.2.5-r1 in the tree marked as unstable.  Arch already seems to have 0.2.4-r1, further giving proof to my notion that Gentoo is getting more and more behind on things lately.

Last edited by violagirl23 (2008-02-11 05:48:48)


"You can't just ask to borrow somebody else's lampshade. It's AWKWARD!"

Offline

#6 2008-06-10 23:27:38

cautha
Member
From: Kingston, Ontario
Registered: 2008-06-02
Posts: 115
Website

Re: Mounting a MTP device in Amarok

I got the file from the source tarball, it's a file called libmtp.rules. I copied it into /etc/udev/rules.d  as it said in the source README. Initially that would only connect as root. I needed to add

GROUP="audio"

at the end of the relevant line for it to work as my regular user.

The latest sourceball I can find (0.2.6.1, which is the version I installed from AUR) doesn't have that file! sad Help?

lsusb gives me the following for the ZV+:

Bus 001 Device 003: ID 041e:4152 Creative Technology, Ltd

Harry

EDIT: After some searching, I found something in the Amarok Wiki; I opened kate as root, copied the contents into a new file, and saved it in /etc/udev/rules.d/ as "65-libmtp.rules":

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="libmtp_rules_end"

# Creative Zen VisionSpecial:Recentchanges
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="411f", SYMLINK+="libmtp-%k", MODE="666"
# Creative Portable Media Center
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4123", SYMLINK+="libmtp-%k", MODE="666"
# Creative Zen Xtra (MTP mode)
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4128", SYMLINK+="libmtp-%k", MODE="666"
# Second generation Dell DJ
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="412f", SYMLINK+="libmtp-%k", MODE="666"
# Creative Zen Micro (MTP mode)
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4130", SYMLINK+="libmtp-%k", MODE="666"
# Creative Zen Touch (MTP mode)
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4131", SYMLINK+="libmtp-%k", MODE="666"
# Dell Pocket DJ (MTP mode)
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4132", SYMLINK+="libmtp-%k", MODE="666"
# Creative Zen Sleek (MTP mode)
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4137", SYMLINK+="libmtp-%k", MODE="666"
# Creative Zen MicroPhoto
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="413c", SYMLINK+="libmtp-%k", MODE="666"
# Creative Zen Sleek Photo
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="413d", SYMLINK+="libmtp-%k", MODE="666"
# Creative Zen Vision:M
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="413e", SYMLINK+="libmtp-%k", MODE="666"
# Creative Zen V Plus
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4152", SYMLINK+="libmtp-%k", MODE="666"
# Samsung:YH-820
SYSFS{idVendor}=="04e8", SYSFS{idProduct}=="502e", SYMLINK+="libmtp-%k", MODE="666"
# Samsung YH-925
SYSFS{idVendor}=="04e8", SYSFS{idProduct}=="502f", SYMLINK+="libmtp-%k", MODE="666"
# Samsung YP-T7J
SYSFS{idVendor}=="04e8", SYSFS{idProduct}=="5047", SYMLINK+="libmtp-%k", MODE="666"
# Samsung YH-999 Portable Media Center
SYSFS{idVendor}=="04e8", SYSFS{idProduct}=="5a0f", SYMLINK+="libmtp-%k", MODE="666"
# Intel Bandon Portable Media Center
SYSFS{idVendor}=="045e", SYSFS{idProduct}=="00c9", SYMLINK+="libmtp-%k", MODE="666"
# iRiver Portable Media Center
SYSFS{idVendor}=="1006", SYSFS{idProduct}=="4002", SYMLINK+="libmtp-%k", MODE="666"
# iRiver Portable Media Center
SYSFS{idVendor}=="1006", SYSFS{idProduct}=="4003", SYMLINK+="libmtp-%k", MODE="666"
# JVC Alneo XA-HD500
SYSFS{idVendor}=="04f1", SYSFS{idProduct}=="6105", SYMLINK+="libmtp-%k", MODE="666"
# Philipps HDD6320
SYSFS{idVendor}=="0471", SYSFS{idProduct}=="01eb", SYMLINK+="libmtp-%k", MODE="666"
# Philipps HDD6320 2
SYSFS{idVendor}=="0471", SYSFS{idProduct}=="014b", SYMLINK+="libmtp-%k", MODE="666"
# Philipps HDD1630/17
SYSFS{idVendor}=="0471", SYSFS{idProduct}=="014c", SYMLINK+="libmtp-%k", MODE="666"
# SanDisk Sansa c150
SYSFS{idVendor}=="0781", SYSFS{idProduct}=="7410", SYMLINK+="libmtp-%k", MODE="666"
# SanDisk Sansa e200
SYSFS{idVendor}=="0781", SYSFS{idProduct}=="7420", SYMLINK+="libmtp-%k", MODE="666"
# SanDisk Sansa e260
SYSFS{idVendor}=="0781", SYSFS{idProduct}=="7420", SYMLINK+="libmtp-%k", MODE="666"
# iRiver T10
SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1113", SYMLINK+="libmtp-%k", MODE="666"
# iRiver T20 FM
SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1114", SYMLINK+="libmtp-%k", MODE="666"
# iRiver U10
SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1116", SYMLINK+="libmtp-%k", MODE="666"
# iRiver T10
SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1117", SYMLINK+="libmtp-%k", MODE="666"
# iRiver T20
SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1118", SYMLINK+="libmtp-%k", MODE="666"
# iRiver T30
SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1119", SYMLINK+="libmtp-%k", MODE="666"
# iRiver H10
SYSFS{idVendor}=="4102", SYSFS{idProduct}=="2101", SYMLINK+="libmtp-%k", MODE="666"
# iRiver H10
SYSFS{idVendor}=="4102", SYSFS{idProduct}=="2102", SYMLINK+="libmtp-%k", MODE="666"
# Dell DJ Itty
SYSFS{idVendor}=="413c", SYSFS{idProduct}=="4500", SYMLINK+="libmtp-%k", MODE="666"
# Toshiba Gigabeat MEGF-40
SYSFS{idVendor}=="0930", SYSFS{idProduct}=="0009", SYMLINK+="libmtp-%k", MODE="666"
# Toshiba Gigabeat
SYSFS{idVendor}=="0930", SYSFS{idProduct}=="000c", SYMLINK+="libmtp-%k", MODE="666"

LABEL="libmtp_rules_end"

Now Gnomad2 works as expected!

Last edited by cautha (2008-06-10 23:52:16)

Offline

Board footer

Powered by FluxBB