Author

Topic: [1 BTC Reward] Help with raspberry pi button board (Read 867 times)

newbie
Activity: 2
Merit: 0
September 03, 2013, 09:53:58 AM
#2
I realize this post is over 2 months old and you might have figured it out already, but I know how frustrating these things can be.  Grin

I have basically the same setup that I have been working on also. If you are wanting the buttons to affect anything while running raspbmc, instead of adding keybindings to open box (which work on a regular raspbian image), you need to update xbmc's key map.

XBMC's key map is what converts keyboard presses to useful commands. So spacebar to play pause, backspace to go back, "x" to stop, ect... If you google "xmbc keymap" the first link will explain everything.

I am not running raspbmc so I am not possitive, but I believe the keymap is located in /home/pi/.xbmc/userdata/keymaps/keyboard.xml

In the keyboard.xml file you will need to insert something like this:

  
    
        Play
        Stop
        Back
        VolumeUp
        VolumeDown
    

  




This will work assuming that your udev rule is working. If it is working the buttons will light up weather or not they send a command to your system.

I assume you are wanting to control the volume of your carpc with the buttons. If this is the case I recommend controlling the volume in an xbmc skin instead of the buttons as they are too slow and take too long to adjust the volume level. Then you can use the buttons for other useful things.

I can't post links as I am a new member, but search for "Andrei Istodorescu Car PC project(August 2013 update)". Andrei has a blog that has a welth of information and his post on Aug 2013 has an image that he compiled himself with a skin that has volume control built into it.

Hope that helps!
hero member
Activity: 576
Merit: 500
I am trying to set up a button board on my raspberry pi running raspbmc. I bought http://www.ebay.com/itm/111055228935?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649 with a touch screen that I plan on putting in my car. I cannot get the button board to work.

I installed openbox, tried to modify /etc/xdg/openbox/rc.xml to have amixer set Master 2dB- unmute in 1 of the keybinds and 2dB+ in another to turn volume up and down. This is my entire rc.xml file http://pastebin.com/pT71FpXa (the parts I modified are under just like the tutorial said).

I followed this tutorial for this: http://blog.wolfteck.com/projects/raspi/usb-button-board/

Also created the rule, /etc/udev/rules.d/99-usppt-usb-touch.rules
KERNEL=="hidraw*", ATTRS{idVendor}=="13ec", ATTRS{idProduct}=="f2f8", RUN+="/bin/sh -c 'echo 1 > /dev/%k'"

After rebooting, I hit the buttons, but nothing happens. I am sort of a noob at linux also, so this tutorial might only work in raspbian wheezy and not raspbmc, I have no clue. If anyone can tell me what to do and get this working for me, I will reward them with 1 BTC.

Here are some random pics (messy right now) if you are interested in seeing the setup Smiley http://imgur.com/a/LKz7q
Jump to: