Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
use your package manager to install libusb and libmtp. to browse it like a usb thumbdrive install mtpfs
Thanks for reply
I already had libusb & libmtp i am downloading mtpfs not sure how to use it. ok now Amarok shows creative zen as a collection, but nothing under it? I have almost 2 gb's of music loaded on it. wonder why it doesn't show the files i have loaded?
Last edited by addie_goodvibes; 03-23-2009 at 01:21 AM.
This script (Kmtpmount) will automatically setup and mount your Creative Zen as a USB drive.
How do I use Kmtpmount) to mount my Zen?
is this a command line input or a file i download from MCC ( I am running Mandi KDE4?
ok below is what i get under with lsusb
Quote:
Bus 001 Device 079: ID 041e:4157 Creative Technology, Ltd.
so now how do I get the above to mount, even with mtpfs amarok doesnot load any files , the creative player does not show up in MCC local disk it does show up in hardware as below
Quote:
Media class: (Defined at Interface level)<<<< what does this indicate? is there a way I can get Linux to recognize it as a valid USB interface so i can Drag & Drop?
Identification
Vendor: Creative Technology Ltd
Description: Creative ZEN
Media class: (Defined at Interface level)<----? what does htis mean is this a value I can change?
Connection
Bus: USB
Bus PCI #: 1
PCI device #: 57
Vendor ID: 0x041e
Device ID: 0x4157
Sub vendor ID: 0x0000
Sub device ID: 0x0000
Misc
Module: unknown
is there a way to type in a command line to tell Mandi kde4 to mount my zen so I can brouse it and drag/drop files to & from? fnomad doesn't not do this neither does Amarok
Last edited by addie_goodvibes; 03-23-2009 at 02:22 AM.
I haven't heard of Kmtpmount. It may use the mtpfs & fuse packages. Make sure that the "fuse" module is loaded.
Also, check if your player is listed in either of these two files.
/usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi
/usr/share/hal/fdi/information/20thirdparty/10-usb-music-players-libmtp.fdi
On my system these are supplied by the hal and libmtp-hal packages, and the Creative Zen Vision is listed in
the second.
You may have problems with video, because the Creative Zen is very touchy about the video it accepts.
I think the videos need to be 24 fps instead of 29.97. You might want to look in the www.anythingbutipod.org website for
details on whaat videos are acceptable. Remember also, that when you see a .avi, .mp4, etc. file, that these are just containers, and the codec used for the video stream is also important.
I prefer using Amarok for my podcasts. I'll create a playlist of the day's podcasts and send the playlist to my device.
I don't care for Amarok 2.0 however and am sticking with 1.4.
I already had libusb & libmtp i am downloading mtpfs not sure how to use it. ok now Amarok shows creative zen as a collection, but nothing under it? I have almost 2 gb's of music loaded on it. wonder why it doesn't show the files i have loaded?
does
Code:
mkdir temp; mtpfs temp
not work -- if you post error messages people could help you better.
^ as suggested above you mite need fuse.
edit:
libmtp allows you to send stuff to it using commands like mtp-sendfile something.avi 109 mtp-sendtr -a dr-dre song.mp3 song.mp3
Do mp3 files in your computer collection show up? If not, you may need to install an mp3 enabled version. The stickies at the top of each forum (e.g. Fedora, SuSE, etc.) will tell you which repository to add to your package system. If you can play mp3's in amarok you are probably OK.
I have stuck with 1.4 because I use my players for podcasts & new podcasts are not highlighted in Amarok 2.0 as far as I could tell. The player shows up as a device in 1.4.
If the player in 2.0 makes up the collection, can you rescan your collection? Is the player selected as part of the collection? One thing I noticed when I tried out 2.0 is that files go right away when you select to copy them to the collection & select the device.
Using the command "mtp-files", do your songs show up? Are the mp3 or wma files. I don't believe the sansa plays other formats.
The command to send files manual to an mtp player for my version of libmtp is "mtp-sendfile filename.mp3 Music/filename.mp3". In the example given in the prior post, the number after the song is the inode of the directory. Entering "mtp-sendfile" by itself should show you the arguments your version expects. You can use "mtp-folders" to learn the names of folders and their inode numbers.
---
For mtpfs, you need the fuse module loaded.
The command "lsmod | grep fuse" will show if the fuse kernel module is loaded. If not, run "sudo /sbin/modprobe fuse".
Also check if the hald & dbusd daemons are running.
To use mtpfs is very easy. You first create a directory to use as the mount point. This directory can by in your home directory. You mount it as root. If it doesn't work, you should copy & paste the exact error message. Simply saying it doesn't work isn't much help.
Also look at /var/log/messages just after a failure, e.g.:
sudo tail /var/log/messages
Sometimes more precise information is included in the kernel's messages, and knowing the source of the message (such as the hal daemon)
can help pin down where the problem is.
---
Also run the mtp-connect command. It should print out xml information about the player. If the player doesn't connect, try unplugging it, & power cycling the player. Make sure the cable is snug. Sometimes I will have a problem with USB on my laptop. It doesn't seem supply enought power on occasion, and it doesn't matter what I plug in. When this is the case, shutting down the computer for a few minutes may help. If you plug in a pendrive & the light doesn't come on, this is a sure sign of a USB system problem, and a computer shutdown or powercycle are needed.
kmtmount is a program I'm not familiar with. The K at the front implies a kde program.
I use the libmtp-utils programs like mtp-files, mtp-connect, etc.
You would start any terminal program such as konsole, xterm, gnome-terminal. You can find it in the menu. I'd recommend adding it to the panel so you can simply click on the quick launch icon.
With kde3, you can drag the konsole icon from the menu and drop it on your panel. In kde4, right click on the icon and select to add it to the panel (or frequent programs of the menu).
If you have the terminal open, first check if the fuse module is loaded.
sudo lsmod | grep fuse
if it doesn't show up, then load it:
sudo /sbin/modprobe fuse
to mount the sansa player, and use it as a filesystem, you can use mtpfs.
First create a directory to mount it. You can do this as a normal user, so create the directory in your home directory:
mkdir ~/sansa
Then plug in the device and mount it:
mtpfs ~/sansa
Now you can use the cp command or even use a file browser. Since this isn't actually a filesystem, mtpfs is performing mtp commands to perform the commands needed to do the same thing. You won't be able to move files from one directory in sansa to another. You will have to copy them instead.
At least you will be able to browse and see if the files are present.
One of the sansa devices (the view I believe) uses the tags and copies files under the System/ directory. They will have strange names. You can use the file command to find out which are mp3 files.
You may have some there and others in the Music/ directory.
---
Did you configure the device in amarok as an mtp device?
---
P.S.
Sorry I jumped from Creative to Sansa. I had a Creative device but the screen when out. I have a Sansa View & Sansa P2 as well. Both the Sansa & Creative devices use mtp so the instructions I gave don't change. ( You can name the directory something else of course )
Last edited by jschiwal; 03-27-2009 at 11:08 AM.
Reason: Sansa <-> Creative
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.