This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Samsung YP Z5 support

Tags: None
(comma "," separated)
dannyboy2k
Registered Member
Posts
1
Karma
0

Samsung YP Z5 support

Sat Feb 03, 2007 10:16 am
How can I get my Samsung YP Z5 to work with Amarok?

I'm using Ubuntu (Gnome), I have the HAL and DBUS daemons. Also got libmpt2 files, looked in the rules bit and there was nothing for YP Z5, plenty of other Samsung devices but no Z5.

Please can somebody help me sort out my music?!!  :confused:
stokedfish
Karma
0

Re: Samsung YP Z5 support

Sat Feb 03, 2007 10:33 am
As far as I know Samsung YP devices don't work with linux...

(well, mine doesn't)

I could be wrong though...good luck!
jacopods
Registered Member
Posts
3
Karma
0

Re: Samsung YP Z5 support

Sat Apr 21, 2007 6:07 am
Well. it kinda works! You can even upgrade your firmware under linux!  :biggrin: Just forget about mtp...
no, just kidding, mine does work as a generic device but does not as mtp.. but I hadn't played with it so much, I've never used mtp and I'm happy this way.

J
Thundercloud
Registered Member
Posts
7
Karma
0

Re: Samsung YP Z5 support

Mon Apr 23, 2007 12:35 am
Z5 works like a charm under linux. I should know, I have one! When you connect it, it should just show up as a mountable partition (ie: /dev/sda1). If not, it's more than likely that it's connecting under the MTP interface for some lameass reason. If that's the case, hold down the back key whilst you plug it in, and that forces a UMS connection.

When it's connected as UMS, remember to update the firmware to the latest, that has a "UMS Only" option in the system menu which means you'll encounter no problems. Then you can just use it as a generic audio device under linux.

I've attached a script I engineered to work with the Z5 back when I got it. Have a look through it, it's not very well commented. A combination of bash and ruby. Save it as "albumcopy" and not "albumcopy.txt". Assuming you put it in like ~/scripts/, put this as your disconnect command:

"~/scripts/albumcopy &"

And it should work. It relies on you running KDE mind, as well as using pmount/pumount and having a working eject. Any problems let me know. I'll probably submit this to the script archive one day, when I can be bothered to rework it :D

Last edited by Anonymous on Mon Apr 23, 2007 12:37 am, edited 1 time in total.
congyiwu
Registered Member
Posts
7
Karma
0

Re: Samsung YP Z5 support

Wed Jun 06, 2007 10:36 pm
I just bought a samsung z5 and I couldn't figure out how to automatically sync album art... I was about to write my own little script, until I found this thread...  Thanks for the script! (maybe you could post it on the official scripts page so others could use it for their mass storage enabled mp3 players too).
Bendemann
Registered Member
Posts
11
Karma
0
OS

Re: Samsung YP Z5 support

Thu Jan 17, 2008 4:00 pm
Somehow I don't get it.

What do I have exactly to do and what do I have to install? I'm running Kubuntu 7.10. File "albumcopy" is located in /home/username/.kde/share/apps/amarok/scripts/ and is also executable. Pmount is installed.

But I always get the message "Command after disconnect failed" (bad german translation).
congyiwu
Registered Member
Posts
7
Karma
0

Re: Samsung YP Z5 support

Thu Jan 17, 2008 6:37 pm
If you set the disconnect command to "~/scripts/albumcopy &", then it will look in /home/username/scripts/ NOT /home/username/.kde/share/apps/amarok/scripts/.  Either make a scripts folder in your home directory and put the script there, or set the disconnect command to "~/.kde/share/apps/amarok/scripts/albumcopy &"

By the way, /home/username/.kde/share/apps/amarok/scripts/ is meant for scripts that integrate with the Amarok script manager in the tools menu.  The albumcopy script isn't used through the script manager, so it doesn't need to be in /home/username/.kde/share/apps/amarok/scripts/
Bendemann
Registered Member
Posts
11
Karma
0
OS

Re: Samsung YP Z5 support

Thu Jan 17, 2008 6:46 pm
That's clear. By the way, the first error message being told by me is wrong. I ran "~/folder/albumcopy &" in the console, the output has been this:

Code: Select all
[1] 11744
bendemann@rechenknecht:~$ [: 8: ==: unexpected operator
Aufruf: grep [OPTION]... MUSTER [DATEI]...
»grep --help« gibt Ihnen mehr Informationen.
cd: 16: can't cd to /Music
ls: /Music/Office: No such file or directory
[: 36: ==: unexpected operator
ls: /Music/Images: No such file or directory
[: 36: ==: unexpected operator
ls: /Music/Downloads: No such file or directory
[: 36: ==: unexpected operator
ls: /Music/Videos: No such file or directory
ls: /Music/Desktop/*: No such file or directory
[: 36: ==: unexpected operator
ls: /Music/Downloads/albumcopy: No such file or directory
[: 36: ==: unexpected operator
ls: /Music/Downloads/albumcopy~: No such file or directory
[: 36: ==: unexpected operator
Usage:

pumount [options] <device>
  Umount <device> from a directory below /media/ if policy requirements
  are met (see pumount(1) for details). The mount point directory is removed
  afterwards.

Options:
  -l, --lazy   : umount lazily, see umount(8)
  --luks-force : luksClose devices pmount didn't open
  -d, --debug  : enable debug output (very verbose)
  -h, --help   : print help message and exit successfuly
  --version    : print version number and exit successfully
congyiwu
Registered Member
Posts
7
Karma
0

Re: Samsung YP Z5 support

Thu Jan 17, 2008 7:02 pm
Looks like a syntax error...  This is a wild guess, but maybe your using dash as the default shell in kubuntu instead of bash.  I think I heard that dash was the default ubuntu shell at one point in time.

see https://wiki.ubuntu.com/DashAsBinSh

try echo $SHELL, or ls -l /bin/sh and if it's set to dash, change /bin/sh in the script to /bin/bash
Bendemann
Registered Member
Posts
11
Karma
0
OS

Re: Samsung YP Z5 support

Thu Jan 17, 2008 7:21 pm
Okay, now there are no syntax errors, but I'm getting only numbers like

Code: Select all
[1] 12334


or

Code: Select all
[2] 12330
[1]   Done                    ~/scripts/albumcopy
congyiwu
Registered Member
Posts
7
Karma
0

Re: Samsung YP Z5 support

Thu Jan 17, 2008 9:23 pm
[1] 12334 means a new the script is running in the background as a new job with job id 1, and pid 12334.
[1]  Done                    ~/scripts/albumcopy means the script finished running in the background.

Assuming you have amarok runnning, it should be displaying popups within amarok.  It's exiting immediately b/c you didn't pass it the device node of your mp3 player (dev/sda1, dev/sdb, etc...).  instead of "~/scripts/albumcopy  &", use "~/scripts/albumcopy  %d &" in amarok and "~/scripts/albumcopy  /dev/sdX" in the command line.  I made the same mistake first time I tried the script too.
Bendemann
Registered Member
Posts
11
Karma
0
OS

Re: Samsung YP Z5 support

Thu Jan 17, 2008 9:35 pm
That's it.

Thank you. Merci. Danke schön.
congyiwu
Registered Member
Posts
7
Karma
0

Re: Samsung YP Z5 support

Thu Jan 17, 2008 11:48 pm
sweet.
Thundercloud
Registered Member
Posts
7
Karma
0

Re: Samsung YP Z5 support

Fri Jan 18, 2008 12:10 am
And suddenly I feel like a complete retard for not giving detailed instructions :D

Bear in mind that script can be adapted to any device, all you need is the same sort of file structure (ie: Artist/Album/number - song.ext), and you can adapt it to whatever needs you need.

I adapted it to the Cowon D2 when I got it.

Perhaps once amarok 2 gets closer to release, i'll rewrite the whole thing in ruby or something. :P
Bendemann
Registered Member
Posts
11
Karma
0
OS

Re: Samsung YP Z5 support

Sat Jan 19, 2008 8:16 pm
About 5% of the album covers weren't copied to the playerm, and I have absolut no idea why????

I tried everything. Other filenames, vfat-support, ascii-support, other images, access-rights, user-rights.

I always get the message, that everything is fine and everything is copied.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]