Author Topic: Makeing the Z a nice mp3 player  (Read 12830 times)

jgraves

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« on: April 11, 2004, 09:03:05 pm »
Ok.  So you have xmms running.  And you installed my little screen blanker utility to turn of the screen.  Now you can close the top and listen to your music.  But... Now you want to pause/play/forward/reverse... The side buttons don\'t really work!

The roller knob does a fast forward & rewind 5 seconds.  Nice, but not
very useful.  With only 4 buttons (roller forward/back, ok, cancel), I wanted
to re-map these keys whenever I run xmms.  No problem.

Make the following file:
/etc/X11/kb/xmms.xmodmap
---------------
keycode 131 = X
keycode 132 = C
keycode 133 = B
keycode 134 = Z
---------------

Create an xmms wrapper file:
/usr/bin/xmmsWrapper.sh
---------------
#!/bin/bash
xmodmap /etc/X11/kb/xmms.xmodmap
xmms
xmodmap /etc/X11/kb/corgi.xmodmap
---------------

Change the launcher to use the wrapper file.
Edit:
/usr/share/applications/xmms.desktop
Change line:
Exec=xmms
to
Exec=xmmsWrapper.sh

Restart X (Is there a better way to tell matchbox to re-read?)

That\'s it.

Now, when you run xmms, you can turn off the screen and
close it.  Now they keys are mapped to:
OK = Play
Cancel = Pause
Dial Forward = Next song
Dial Backward = Prev song

Note: the xmms app must be \"active\" when you close the Z
This is the default after you launch it, but if you are messing
around with something else, be sure to click on xmms before
closing the lid.

Have fun.

-John
C760 - My $700 mp3 player!  

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« Reply #1 on: April 11, 2004, 11:38:37 pm »
You\'ve just answered what I was about to ask! :-)

How about mapping the dial to volume +/-
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

jgraves

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« Reply #2 on: April 12, 2004, 12:17:53 am »
I thought about that.  My headphones have a volume, so I didn\'t
see a real need (for me).  Plus, I don\'t think it would be trivial.
I don\'t see any xmms shortcuts for volume.  So, the keys would
need to be mapped to execute some command line app to adjust
the volume.  I don\'t even know how to adjust the volume from
the shell.  Anyone know?

-John

Reaper

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Makeing the Z a nice mp3 player
« Reply #3 on: April 12, 2004, 01:15:39 am »
I suppose that Z remote control support would be Really Nice Thing (Qtopia Music player does have it, after all).
[/list]

newkirk

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://myzaur.us
Makeing the Z a nice mp3 player
« Reply #4 on: April 12, 2004, 01:41:41 am »
Quote
I don\'t see any xmms shortcuts for volume.  So, the keys would
need to be mapped to execute some command line app to adjust
the volume.  I don\'t even know how to adjust the volume from
the shell.  Anyone know?

Haven\'t reinstalled xmms on the 860 since reflashing to the new release ROM, but on my 5600 I\'ve always used the cursor ring - left/right are skip track, and up/down are volume.

Try mapping to the up/down cursor keys.

j
newkirk @ myzaur.us
pdaxrom @ newkirk.us
SL-5600, SL-C860
Socket & Ambicom WiFis
Billionton bluetooth
Lexar 256mb CF & SD

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« Reply #5 on: April 12, 2004, 02:22:35 am »
keycode 131 = X
 keycode 132 = C
 keycode 133 = Up
 keycode 134 = Down
 
But if the Volume applet is running, this don\'t work. When run from xterm you can see it\'s because /dev/mixer is busy, shame. But it\'s a solution, I prefer volume control via the dial.

Got the idea from this thread
http://www.zaurususergroup.com/index.php?n...iewtopic&t=3230

Thanks for the pointers jgraves, newkirk

;-)
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

jgraves

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« Reply #6 on: April 12, 2004, 10:50:21 am »
Great stuff.  Thanks for the up/down tips.

I think the idea of mapping different functions to the external
buttons for different apps will come in handy in the future.

-John

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« Reply #7 on: June 20, 2004, 01:56:30 am »
I've just got the Audio Remote Control (CE-RH1) working in pdaXrom, follow the initial instructions above.

The file /etc/X11/kb/xmms.xmodmap should read:

keycode 104 = Up
keycode 105 = Down
keycode 106 = B
keycode 107 = Z
keycode 108 = C
keycode 109 = X

You will need the main window of XMMS active, you will find that Play on the remote will play but not pause as in Qtopia, the Stop button acts as a pause/resume.
« Last Edit: June 23, 2004, 01:57:03 am by padishah_emperor »
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

Reaper

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Makeing the Z a nice mp3 player
« Reply #8 on: June 23, 2004, 12:34:51 pm »
Thanks a lot!   But forward/rewind buttons don't work fully, they just change songs, but don't scroll through it. Any workarounds?
« Last Edit: June 23, 2004, 12:51:08 pm by Reaper »

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« Reply #9 on: June 23, 2004, 02:44:27 pm »
Are you sure the main window of XMMS is the active window? Not the equaliser or playlist. Let me know, it should work.

Remember to execute the xmmsWrapper.sh as detailed above.

You are welcome to send me a private message if you want to go through it in more detail.
« Last Edit: June 23, 2004, 02:57:22 pm by padishah_emperor »
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

bastichelaar

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • http://www.xerys.nl
Makeing the Z a nice mp3 player
« Reply #10 on: June 24, 2004, 12:10:31 pm »
Why doesn't my XMMS work? I installed it, but it won't play any file... It looks like it plays, and I do hear some clicks, but it doesn't play smoothly...
Visit my website...
--------------------------
C860
 - 512 MB SD Kingston
 - 256 MB PQI 40x
 - Socket BT rev. G
 - Asus wlan
--------------------------
RUNNING FLUXBOX!

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« Reply #11 on: June 24, 2004, 08:53:21 pm »
Quote
Why doesn't my XMMS work? I installed it, but it won't play any file... It looks like it plays, and I do hear some clicks, but it doesn't play smoothly...
Sounds to me like something isn't installed. I'll help if I can, list all the appropriate xmms packages you downloaded and installed, you may have missed something.
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

amrein

  • Sr. Member
  • ****
  • Posts: 345
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« Reply #12 on: June 24, 2004, 09:17:43 pm »
Just 2 cents...

Be carefull everyone in this thread. A few fools think that the Zaurus is not to be think like a multimedia PDA but like a old vt100 terminal. Be careful...  

MP3, Video, PIM, Synchronisation.... all this are bad for vt100 terminal.

Bad boys !

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Makeing the Z a nice mp3 player
« Reply #13 on: June 24, 2004, 09:53:26 pm »


no

er..

no... sorry I don't get it... another dig at someone?
« Last Edit: July 01, 2004, 04:20:57 am by padishah_emperor »
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

Reaper

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Makeing the Z a nice mp3 player
« Reply #14 on: June 27, 2004, 12:19:42 pm »
Emperor, no need to worry about the absence of song scrolling. I'm content with my remote control as it is, because I reflashed my Z to X11 ROM in November and since that time I haven't been able to use it. But now these days are over, thanks!