OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: sandmansandine on September 12, 2005, 02:05:28 am

Title: Xmms, Jog Wheel, Sl-c1000\c3100
Post by: sandmansandine on September 12, 2005, 02:05:28 am
I would love it if i could control XMMS using the Jog Wheel for Forward/Back for the tracks, and OK and CANCEL as Play/Stop. There was a post from a while ago (Old Post (https://www.oesf.org/forums/index.php?showtopic=3249&hl=xmms)) on the board about creating a wrapper, but that never worked for me on my SL-C1000, and i followed the instructions religiously, i'm runing RC11 now.
Title: Xmms, Jog Wheel, Sl-c1000\c3100
Post by: F_Sake on September 12, 2005, 09:21:56 am
Quote
I would love it if i could control XMMS using the Jog Wheel for Forward/Back for the tracks, and OK and CANCEL as Play/Stop. There was a post from a while ago (Old Post (https://www.oesf.org/forums/index.php?showtopic=3249&hl=xmms)) on the board about creating a wrapper, but that never worked for me on my SL-C1000, and i followed the instructions religiously, i'm runing RC11 now.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=95479\"][{POST_SNAPBACK}][/a][/div]

It does work, just make sure you have clicked inside the playlist box before you close the lid. then jog up and down scrolls through the tracks and ok will play the track you wish.
Title: Xmms, Jog Wheel, Sl-c1000\c3100
Post by: sandmansandine on September 12, 2005, 10:05:56 pm
But is it posible to just use the up and down on teh jog wheel and just have it play the next track, without having to press the OK button, because scrolling through the songs with the screen off seems not only useless but pointless, i just want it to go straight on and play the next track
Title: Xmms, Jog Wheel, Sl-c1000\c3100
Post by: rgrep on September 13, 2005, 07:37:31 am
Have you tried the Screen Blanker applet?  It should come with the default install of pdaXrom.  When in blanking mode it can control XMMS with play/pause (OK), stop (Cancel) and skip tracks (jog wheel).  If it doesn't work on the Cxx00 please let me know as the key codes may be different to the Cx00 series.
Title: Xmms, Jog Wheel, Sl-c1000\c3100
Post by: danr on July 06, 2006, 11:02:32 am
Quote
But is it posible to just use the up and down on teh jog wheel and just have it play the next track, without having to press the OK button, because scrolling through the songs with the screen off seems not only useless but pointless, i just want it to go straight on and play the next track
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=95588\")

I'm resurrecting this old post because I've found a way of controlling XMMS with the jog wheel and neighbouring buttons, without the need to have XMMS focused.

Firstly I edited /etc/X11/corgi.xmodmap and modified the following lines:

Code: [Select]
keycode 131 = XF86AudioPause
keycode 132 = XF86AudioNext
keycode 133 = XF86AudioRaiseVolume
keycode 134 = XF86AudioLowerVolume

- these are the keycodes for OK, cancel, jog right and jog left on my 860 - you could check this with xev.

But I found that the jog wheel was still producing events for up and down, so I edited /usr/bin/inputconfig.py, and changed

Code: [Select]
 if (self.scrollwheeldir == "updown"):
      output += "keycode 133 = Up\n"
      output += "keycode 134 = Down\n\n"
  else:
...

to
Code: [Select]
 if (self.scrollwheeldir == "updown"):
      output += "keycode 133 = Up\n"
      output += "keycode 134 = Down\n\n"
  else:
      output += "keycode 133 = XF86AudioRaiseVolume\n"
      output += "keycode 134 = XF86AudioLowerVolume\n\n"  

and then ran the script and changed my preferences to jog wheel left/right.

Next, I compiled [a href=\"http://www.devin.com/xmms-xf86audio/]xmms-xf86audio[/url], see attached ipk, and installed it on my system.  This allows you to bind the XF86Audio events to XMMS controls.

Cheers,

Dan
Title: Xmms, Jog Wheel, Sl-c1000\c3100
Post by: sandmansandine on July 06, 2006, 08:37:52 pm
i can't seem to find the keymap file for Beta3, on an Akita, i've looked everywhere i can for now (battery dying/away from home), thank you for finally solving the problem though, that's exactly what i wanted
Title: Xmms, Jog Wheel, Sl-c1000\c3100
Post by: Meanie on July 06, 2006, 10:04:05 pm
Quote
i can't seem to find the keymap file for Beta3, on an Akita, i've looked everywhere i can for now (battery dying/away from home), thank you for finally solving the problem though, that's exactly what i wanted
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134185\"][{POST_SNAPBACK}][/a][/div]

I actually recompiled xmms with those keys supported natively in xmms itself so you don't need to remap those keys before running xmms and mapping them back.