wiimote-sensivity

35 views
Skip to first unread message

al...@paranoici.org

unread,
Aug 21, 2012, 4:58:01 AM8/21/12
to python-w...@googlegroups.com
Hy,
I have seen that python-whiteboard see less infrared light than
gtk-whiteboard.
The problem seems caused by a cwiid bug.
Let's see the linuxWiimoteLib.py at line 314 at this lines there are
the code in order
to set the wiimote to the maximum sensivity.
For more info about wiimote initialization
http://wiibrew.org/wiki/Wiimote#Data_Formats
I think that python-whiteboard shall see more light patching the
variables MAX_SENSITIVITY_IR_BLOCK
in the cwiid file cwiid_internal.h.
Sincerely I think that a better idea could be to use directly the
linuxWiimoteLib.py instead of cwiid.
The latest cwiid lib was released in 2007 and it has been outdated by
the xwiimote and the wiimote kernel module.
Infact better will be use the wiimote kernel module!

Pietro Pilolli

al...@paranoici.org

unread,
Aug 21, 2012, 6:48:14 AM8/21/12
to python-w...@googlegroups.com
I have seen that the maximus sensivity has been fixed some years ago on
the cwiid git
but the package in ubuntu/debian package is not update and it does not
contains the changes.

Basically the patch described here:
https://github.com/bogado/cwiid/commit/69c758d6b8d0796f2d72a6d334be1e259fc45ab4

Then using the cwiid on git or patching cwiid with the patch above
increase to max the cwiid sensivity.

If anyone could help to inform/fix the problem in debian/ubuntu package
in order to have cwiid with max sensivity,
applying the patch or making a new cwiid package alligned to git...

Pietro Pilolli







Pere Negre

unread,
Aug 21, 2012, 7:13:08 AM8/21/12
to python-w...@googlegroups.com
Maybe you could file a bug on the ubuntu maintainers: https://bugs.launchpad.net/ubuntu/+source/cwiid/+filebug
--
Pere

al...@paranoici.org

unread,
Aug 21, 2012, 7:52:32 AM8/21/12
to python-w...@googlegroups.com
A bug is already opened.

The code is not updated because cwiid has opened a new git repo
but debian/ubuntu continue to use the old not updated svn repo

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646301

The bug has been reported in 2011 but is not fixed yet.
I propose to try to ask to python-whiteboard package mantainer to
force an action to fix the problem.

Pietro Pilolli

On 21.08.2012 13:13, Pere Negre wrote:
> Maybe you could file a bug on the ubuntu
> maintainers: https://bugs.launchpad.net/ubuntu/+source/cwiid/+filebug
> [4]
>
> On Tue, Aug 21, 2012 at 12:48 PM, <al...@paranoici.org [5]> wrote:
>
>> On 21.08.2012 10:58, al...@paranoici.org [2] wrote:
>>
>>> Hy,
>>> I have seen that python-whiteboard see less infrared light than
>>> gtk-whiteboard.
>>> The problem seems caused by a cwiid bug.
>>> Let's see the linuxWiimoteLib.py at line 314 at this lines there
>>> are
>>> the code in order
>>> to set the wiimote to the maximum sensivity.
>>> For more info about wiimote initialization
>>> http://wiibrew.org/wiki/Wiimote#Data_Formats [1]
>>> I think that python-whiteboard shall see more light patching the
>>> variables MAX_SENSITIVITY_IR_BLOCK
>>> in the cwiid file cwiid_internal.h.
>>> Sincerely I think that a better idea could be to use directly the
>>> linuxWiimoteLib.py instead of cwiid.
>>> The latest cwiid lib was released in 2007 and it has been
>>> outdated by
>>> the xwiimote and the wiimote kernel module.
>>> Infact better will be use the wiimote kernel module!
>>>
>>> Pietro Pilolli
>>
>> I have seen that the maximus sensivity has been fixed some years
>> ago on the cwiid git
>> but the package in ubuntu/debian package is not update and it does
>> not contains the changes.
>>
>> Basically the patch described here:
>>
>
> https://github.com/bogado/cwiid/commit/69c758d6b8d0796f2d72a6d334be1e259fc45ab4
>> [3]

Pere Negre

unread,
Aug 21, 2012, 11:16:39 AM8/21/12
to python-w...@googlegroups.com
I think he's already reading this newsgroup. Let's hope that he can do something about it.
--
Pere

Georges Khaznadar

unread,
Aug 21, 2012, 4:48:26 PM8/21/12
to python-w...@googlegroups.com
Pere Negre a écrit :
> I think he's already reading this newsgroup. Let's hope that he can do
> something about it.
> > ...
> > The code is not updated because cwiid has opened a new git repo

Hello, please which is the relevant URL?

I shall use this new source to update the package python-whiteboard for
debian.

Best regards, Georges.

signature.asc

Pere Negre

unread,
Aug 24, 2012, 9:10:02 AM8/24/12
to python-w...@googlegroups.com
I think that Pietro is referring to the cwiid library, not the python-whiteboard app itself.

I agree with him. cwiid is old and not very well maintained. It would be better to use another library to interface with the wii device.

As for now, I can't promise anything about it. I mean, the changes to the code are not minor if I was switching to wiimotelib. We'll see.

Pietro asks if we could do something about the cwiid library in debian/ubuntu. A bug has been filed some time ago but the maintainer has not responded.
--
Pere

al...@paranoici.org

unread,
Aug 25, 2012, 3:32:53 PM8/25/12
to python-w...@googlegroups.com
The python-whiteboard inherits the low sensivity
by the old cwiid code.
The cwiid code from the updated git solve the issue.

I have build an Ubuntu ppa with the updated cwiid code from git
(if we could deploy it in Ubuntu...)

https://launchpad.net/~alpha-paranoici/+archive/libcwiid1-git

Fast instruction to use it:

sudo add-apt-repository ppa:alpha-paranoici/libcwiid1-git

Update the repo

sudo apt-get update

Purge from system the old cwwid (the packages depending on cwiid will
be removed)

sudo apt-get remove libcwiid1

Install the updated cwiid
sudo apt-get install libcwiid1

Reinstall the packages depending on cwiid
e.g. sudo apt-get install python-whiteboard wiican wmgui

Pietro Pilolli

Georges Khaznadar

unread,
Aug 27, 2012, 7:25:11 AM8/27/12
to python-w...@googlegroups.com
al...@paranoici.org a écrit :
> The python-whiteboard inherits the low sensivity
> by the old cwiid code.
> The cwiid code from the updated git solve the issue.

hmmm. May I rephrase my earlier question?

Which is the right updated git repository?

The repository named "cwiid" in github had no change since three years.

I found another repository maintained for Fedora, which publishes
http://pkgs.fedoraproject.org/cgit/cwiid.git/snapshot/cwiid-master.tar.gz
This one has has been updated a few weeks ago.

Is the latter git URL related to the "updated git" you cited?

Best regards, Georges.

signature.asc

al...@paranoici.org

unread,
Aug 31, 2012, 11:38:01 AM8/31/12
to python-w...@googlegroups.com
Sincerly I don't know about
http://pkgs.fedoraproject.org/cgit/cwiid.git/snapshot/cwiid-master.tar.gz
I speak about by http://abstrakraft.org/cwiid/browser that it is the
official repo of http://abstrakraft.org/cwiid/

I'll see the new repository that you have announced to see the
differences

Pietro Pilolli

al...@paranoici.org

unread,
Aug 31, 2012, 11:43:31 AM8/31/12
to python-w...@googlegroups.com

I have seen that the fedora repo is equals to the
http://abstrakraft.org/cwiid/browser at least then
some patch in order to build on fedora
(see logs on http://pkgs.fedoraproject.org/cgit/cwiid.git/log/)

Then I think that it is the case to use the official
updated repo

I remember that I have done a repo with the updated cwiid on
ppa:alpha-paranoici/libcwiid1-git

Pietro Pilolli
Reply all
Reply to author
Forward
0 new messages