WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Accelerometer driven mouse movement
Goto page Previous  1, 2
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote
View previous topic :: View next topic  
Author Message
Serfaksan



Joined: 30 May 2007
Posts: 9

Digg It
PostPosted: Wed May 30, 2007 8:51 am    Post subject: Re: same error but followed all the steps on wiki,

wtruong wrote:
hi im running ubuntu fiesty 64 bit, I'm getting the same errors as the guy above and i was wondering how to fix it. I've done the patching and the modprobing and the dependency installing but i still get that error

Code:
zgerrz@edgy:~$ python Desktop/wmd-0.1.2/WMD.py
Traceback (most recent call last):
  File "Desktop/wmd-0.1.2/WMD.py", line 45, in ?
    wmd = WMD()
  File "Desktop/wmd-0.1.2/WMD.py", line 29, in __init__
    ev = EVDispatcher( cf )  # In a way this is the core of the program. It dispatches events between each module
  File "/home/zgerrz/Desktop/wmd-0.1.2/wmd/EVDispatcher.py", line 19, in __init__
    self.xlib = EventBridge_PyXlib( self, cf )
TypeError: __init__() should return None
zgerrz@edgy:~$


Any suggestions??


I have the exact error message, every time that I try to run WMD, wmgui, wminput works just fine, I load evdev and uinput and put uinput in the /dev/misc/ directory, changed the config.py, but still having that problem, I am using Suse 10.2 instead of ubuntu but it should still run I guess .___.
Back to top
View user's profile Send private message
lordnils



Joined: 11 Oct 2007
Posts: 2

Digg It
PostPosted: Thu Oct 11, 2007 9:57 pm    Post subject: Accelerometer driven mouse movement

edit:
damn, i found out by accident. the moment i turned my loght on this evening and accidentally pointed on it the mouse was moved by some unknown force Wink
that hasnt solved the click-problem but its better than no mouse-events at all..

edit²:
well, solved the click-event-issue myself now. when i switched back from evdev to ExplorerPS/2 and reorganized my mouse-buttons all was well and ich could do clicks with the wiiremote Very Happy



--------------------------------------------------
(old post, not needed anymore)
Hm dunno how you got your mouse to move with the accelerator, i dont get any mouse-events. the standard config.py does not produce left- or rightclicks and i think it should move the mouse if 'IR_ENABLE' is true, shouldnt it? perhaps i got this wrong and mouse movement is not possible, dont know.

xev-output of mouse events:
Code:
ButtonPress event, serial 30, synthetic NO, window 0x3e00001,
    root 0x186, subw 0x3e00002, time 2433570848, (32,41), root:(37,90),
    state 0x10, button 1, same_screen YES

EnterNotify event, serial 30, synthetic NO, window 0x3e00001,
    root 0x186, subw 0x0, time 2433570848, (32,41), root:(37,90),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 272

KeymapNotify event, serial 30, synthetic NO, window 0x0,
    keys:  4294967174 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

ButtonRelease event, serial 30, synthetic NO, window 0x3e00001,
    root 0x186, subw 0x3e00002, time 2433571024, (32,41), root:(37,90),
    state 0x110, button 1, same_screen YES


is it possible that the mousedriver selected in xorg.conf is different here and doesnt work with these events?

some general information:

xorg.conf
Code:
Section "InputDevice"
        Identifier  "Configured Mouse"
        Driver      "evdev"
        Option      "CorePointer"
        Option      "Name" "Logitech USB-PS/2 Optical Mouse"
EndSection


uname -a
Linux Nils-Ubuntu 2.6.22-14-generic #1 SMP Wed Oct 10 06:00:47 GMT 2007 i686 GNU/Linux
--------------------------------------------------


thanks a lot for your help!
nils
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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


Powered by phpBB © 2001, 2005 phpBB Group