Author Topic: X Keys For Ce-rh1 Audio Remote  (Read 3634 times)

papercrane

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://reversefold.com
X Keys For Ce-rh1 Audio Remote
« on: July 20, 2005, 03:40:31 pm »
I've successfully gotten lineakd to compile and work on my C3K and I'd like it to work for the other clamshells as well. lineakd is basically a daemon which runs in X and listens for special keypresses. When a key is pressed it will run any command you want. I've gotten it to work very well on my C3K with my CE-RH2 audio remote controlling mpd via mpc. mpd is the music player daemon and mpc is a controller for it. (I've also added other mpd clients to OE but that's beside the point.)

I'm looking for a C7/8x0 owner with a CE-RH1 audio remote to get me the X keycodes for their remote. To do this easily you need another linux machine with X installed (remember that you can always use Knoppix on, say, a Windows computer to do this). Bring up your Zaurus and get into GPE. Run "xhost" on the command line with the IP of the other Linux computer with X (ex: xhost 192.168.0.45). Go to the other linux computer and open a terminal. Set DISPLAY to go to your zaurus (ex: export DISPLAY=192.168.0.42:0.0). Now start "xev". You should see a window pop up on your zaurus. Now press each of the keys on the remote and look for the "keycode XXX" entry in the output. Note the keycode and which key it is. Post the info back here or PM it to me and I'll add support for the CE-RH1 to lineakd. I'll even help you set it up if you like.  

dbowden

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • http://
X Keys For Ce-rh1 Audio Remote
« Reply #1 on: January 18, 2006, 01:41:54 pm »
Quote
I've successfully gotten lineakd to compile and work on my C3K and I'd like it to work for the other clamshells as well. lineakd is basically a daemon which runs in X and listens for special keypresses. When a key is pressed it will run any command you want. I've gotten it to work very well on my C3K with my CE-RH2 audio remote controlling mpd via mpc. mpd is the music player daemon and mpc is a controller for it. (I've also added other mpd clients to OE but that's beside the point.)

I'm looking for a C7/8x0 owner with a CE-RH1 audio remote to get me the X keycodes for their remote. To do this easily you need another linux machine with X installed (remember that you can always use Knoppix on, say, a Windows computer to do this). Bring up your Zaurus and get into GPE. Run "xhost" on the command line with the IP of the other Linux computer with X (ex: xhost 192.168.0.45). Go to the other linux computer and open a terminal. Set DISPLAY to go to your zaurus (ex: export DISPLAY=192.168.0.42:0.0). Now start "xev". You should see a window pop up on your zaurus. Now press each of the keys on the remote and look for the "keycode XXX" entry in the output. Note the keycode and which key it is. Post the info back here or PM it to me and I'll add support for the CE-RH1 to lineakd. I'll even help you set it up if you like.   
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Hmmmm... I couldn't get the keycodes from xev within x/Qt.  I just installed it today, though so maybe I'll figure it out later.

The keycodes from [a href=\"http://www.areanine.gr.jp/~nyano/cerh1pad.html]http://www.areanine.gr.jp/~nyano/cerh1pad.html[/url] seem to match with what I'm seeing in Keyhelper (under Cacko rom) though, so they're probably right.

Here's the list as best I can make it out:
Play/Pause = 201c
Stop = 201d
FW = 201e
RW = 201f
Vol + = 2020
Vol - = 2021

Hope this helps!

David
C1000 running Cacko 1.23 (needs new video cable)
1GB SD
4GB microdrive
Modified Creative Zen Remote
C760 running pdaXrom R197