Active Topics

 

Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#1
Hi,

I created a first quick hack combining Wiicontrol with the zeemote libraries.
The result, "Zeecontrol", allows you to control your N900 via a Zeemote bluetooth remote control.

You can grab it from the extras-testing repository.

Let me know if you find useful key mappings or have other comments.

Edit:
You can now create your own mappings file for setting up custom key mappings which will not be overwritten on updates in "$HOME/.zeecontrol/UserMappings.py".
For a reference what is possible please see "/usr/lib/zeecontrol/KeyMappings.py".
For the settings you did not specify in your UserMappings file the defaults from KeyMappings will be taken.


Best regards

Wonko

Last edited by Wonko; 2010-05-02 at 08:57. Reason: Update description.
 

The Following 13 Users Say Thank You to Wonko For This Useful Post:
Andy1210's Avatar
Posts: 233 | Thanked: 220 times | Joined on Jan 2010 @ Hungary
#2
How can i use this? Zeemote control panel installed, and this package installed, now?

Edit: I tried start zeecontrol:

Code:
[1|root@Andy1210-N900|~]zeecontrol
Traceback (most recent call last):
  File "/usr/bin/zeecontrol", line 29, in <module>
    import dbus
ImportError: No module named dbus
__________________
Nokia N950 - PR1.3
OpenSUSE 12.2 / Windows 8

Last edited by Andy1210; 2010-04-27 at 23:54.
 

The Following User Says Thank You to Andy1210 For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#3
Thanks for your feedback!
I uploaded a new version. I hope this fixes the error you encountered.


As for how to use this:

It's best if you already have the "Zeemote Control Panel" installed and successfully connected and tested the Zeemote you want to use.
Zeecontrol _should_ pull this in as a dependency.

If you tested your Zeemote successfully you simply need to turn on bluetooth on your N900, turn on the Zeemote and start Zeecontrol.
It should make no difference in which order you do the three steps above.
Once Zeecontrol discovers bluetooth being enabled and finds your Zeemote it automatically connects.
For more info and some debug output you can run Zeecontrol from the command line, like you already did.

As a side note:
I accidently ran Zeecontrol as root. This does not work.
Zeecontrol has to be run as user.


Well, this was quite a number of "should"s but as said this is a first quick hack to show things work in general.

Last edited by Wonko; 2010-04-28 at 07:38.
 

The Following 4 Users Say Thank You to Wonko For This Useful Post:
Andy1210's Avatar
Posts: 233 | Thanked: 220 times | Joined on Jan 2010 @ Hungary
#4
the new version works well (Not works, when Bluetooth is Off)
Can you implement automatic "bluetooth on" function?
I tried in supertux, and works perfectly
__________________
Nokia N950 - PR1.3
OpenSUSE 12.2 / Windows 8

Last edited by Andy1210; 2010-04-28 at 14:32.
 
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#5
It works good. Only high cpu consumtion and slow reaction using picodrive. But a really good start.

I had a strange problem, switching the zeemote off before the shutdown of Zeecontrol. There was a continuously button press in the background and I had to restart the N900. Closing Zeecontrol before shutting off the Zeemote works good.
 
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#6
Originally Posted by Helmuth
It works good. Only high cpu consumtion and slow reaction using picodrive.
That's right, this is because of the current implementation via polling.

Originally Posted by Helmuth
I had a strange problem, switching the zeemote off before the shutdown of Zeecontrol. There was a continuously button press in the background and I had to restart the N900.
I encountered the same problem.
Here it was possible to recover from such a situation by (repeatedly) pressing <Enter> on the keyboard.

Originally Posted by Andy1210
Can you implement automatic "bluetooth on" function?
Well, my priority is at the moment to optimize the responsiveness and CPU utilization.
Feel free to hack on the code yourself.
I will merge anything which appears to be useful in the next version(s).
You can find the current "in development" code on the projects garage site: https://garage.maemo.org/projects/zeecontrol


As another note:
I uploaded the current version to the extras testing repository so you do not need to download and install Zeecontrol manually anymore.
 

The Following 2 Users Say Thank You to Wonko For This Useful Post:
Posts: 18 | Thanked: 7 times | Joined on Mar 2010 @ Eindhoven, NL
#7
Thanks Wonko! now I can finally use the Zeemote as easy as I wanted to!

I'll let you know if i find a bug.

good job!

Last edited by dave73; 2010-04-29 at 08:44.
 
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#8
Alright, a new version (0.0.2-1) is available, which uses blocking I/O instead of polling.
This version solves the issues related to polling mentioned above.
I.e. it is now much more responsive and the CPU utilization is reduced.

Thanks to Till for uploading the new libzeemote version.
 

The Following 2 Users Say Thank You to Wonko For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#9
Andy,
just for you another new version.
Zeecotrol version 0.0.3-1 en-/disables bluetooth automatically on startup/shutdown.
 

The Following 2 Users Say Thank You to Wonko For This Useful Post:
Posts: 15 | Thanked: 5 times | Joined on Mar 2010
#10
Great job!
is possible in future change the keymap without edit the configuration file? there are some problem in the standard keymap layout for the italian user...

zeecontrol makes my very joyful!!!
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:22.