Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to patch python for ioctl ? (To use WMD and a wiimote)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
LordManta
n00b
n00b


Joined: 23 Aug 2006
Posts: 18
Location: Paris

PostPosted: Fri Jan 05, 2007 7:12 pm    Post subject: How to patch python for ioctl ? (To use WMD and a wiimote) Reply with quote

Hye all,

I 'm playing with WND: a driver (written in python :lol: ) for the Wiimote. This driver doesn't work without a patch to the python binding to ioctl which raises an exception when MSB is set as it must be when using udev commands on ppc platform. I have two question :
- Is someone has used ioctl binding on ppc platform and especially with udev commands ? (probably not because bug is still here in python 2.4.4)
- How can I insert a patch during the emerge of python on ppc ?

Thanks in advance.


Last edited by LordManta on Sat Jan 06, 2007 3:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9273

PostPosted: Sat Jan 06, 2007 3:17 am    Post subject: Reply with quote

LordManta wrote:
- How can I insert a patch during the emerge of python on ppc ?
Either use ebuild to retrieve and unpack the sources then patch the sources then use ebuild to complete the merge process or create and use an overlay containing an ebuild which includes the desired patch without the additional effort involved with ebuild.
Back to top
View user's profile Send private message
LordManta
n00b
n00b


Joined: 23 Aug 2006
Posts: 18
Location: Paris

PostPosted: Sat Jan 06, 2007 2:13 pm    Post subject: Reply with quote

Thanks a lot, it works !

I used the ebuild low level procedure and now ioctl is correctly bound on ppc platform. So I can use WMD and get my Wiimote control my mouse pointer under X-Window.
For people interested by such an experiment you must have a wiimote and a bluetooth enabled system:
get the WMD driver first:
Code:
svn co https://svn.forthewiin.org/wmd/

then follow instruction in the README file or not up to date but still usable informations here:
http://www.keshi.org/moin/moin.cgi/PS3/WiiRemote[/code
The patch for ioctl can be done by hand s it is small and easy t understand if it fails to be applied automatically (depending of your version of python)
Note: You must have a kernel with uinput enabled.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum