N900 volume rocker switch daemon code.
Hello, I use my N900's to control my raspeberry pi media server.
I have icons on the N900 to play media/tv, change channels/tracks etc. Instead of using volume up/down icons I would really control the server 'volume' via the N900's 'rocker' volume/zoom switch. I am not sure if what I am trying to do is easily possible. Just want the code to call my shell script volume up/down in addition to what it does now. Is this possible? |
Re: N900 volume rocker switch daemon code.
un-ashamed bump
|
Re: N900 volume rocker switch daemon code.
The easiest way I can think of is a small application written in Qt.
You can map the rocker keys to code in the application and you could move the icons off the desktop into the apps MainWindow. |
Re: N900 volume rocker switch daemon code.
It is also worth to note, that volume rockers are F7/F8 keys.
|
Re: N900 volume rocker switch daemon code.
Quote:
please, please, please... |
Re: N900 volume rocker switch daemon code.
Quote:
If you provide more information on what your buttons do and how you control the pi, maybe I can help. Do you have experience with Qt? |
Re: N900 volume rocker switch daemon code.
Quote:
Here's my vol up button:- Code:
[Desktop Entry] Here's the script called on the N900:- Code:
echo /usr/local/sbin/up.sh | nc localhost 22000 >/dev/null 2>&1 Here's the script called on the Pi:- Code:
echo -n + >/home/richard/omfifo This works because I start omxplayer remotely with control piped from a fifo. Works fine, I have full control over a running instance of omxplayer without being attached or logged on to the Pi (other than by an ssh tunnel which is started automatically on network connection). Thanks to this site:-http://subupi.blogspot.co.uk/2012/10...o-control.html and this site:-http://unix.stackexchange.com/questi...ed-ssh-channel I have no experience of Qt but am keen to learn. I am an ex mainframe sysprog so my programming skills are very old:) Any help much appreciated.:):) |
Re: N900 volume rocker switch daemon code.
polite and reluctant 'bump'
|
Re: N900 volume rocker switch daemon code.
Quote:
I was looking at making an application for the task, however, I just don't have the time right now. I may get round to it eventually If you wish to try you'll need a Maemo scratchbox environment. I use a Debian VM inside my Ubuntu setup. Then look at the sources for FlopSwap and an application that uses the rocker buttons like Pierogi. You'll then need to connect the button commands to slots these slots will run your scripts. Information on setting up scratchbox can be located on TMO or http://wiki.maemo.org |
All times are GMT. The time now is 09:51. |
vBulletin® Version 3.8.8