maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Zeecontrol (https://talk.maemo.org/showthread.php?t=51209)

Wonko 2010-04-27 22:45

Zeecontrol
 
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

Andy1210 2010-04-27 23:48

Re: Zeecontrol
 
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


Wonko 2010-04-28 07:29

Re: Zeecontrol
 
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.

Andy1210 2010-04-28 14:28

Re: Zeecontrol
 
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

Helmuth 2010-04-28 19:59

Re: Zeecontrol
 
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.

Wonko 2010-04-29 06:07

Re: Zeecontrol
 
Quote:

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.

Quote:

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.

Quote:

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.

dave73 2010-04-29 07:48

Re: Zeecontrol
 
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!
:)

Wonko 2010-04-29 20:05

Re: Zeecontrol
 
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. :)

Wonko 2010-04-29 22:34

Re: Zeecontrol
 
Andy,
just for you ;) another new version.
Zeecotrol version 0.0.3-1 en-/disables bluetooth automatically on startup/shutdown.

lordboro 2010-04-30 13:34

Re: Zeecontrol
 
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!!!


All times are GMT. The time now is 06:35.

vBulletin® Version 3.8.8