[compiz] Bug with evdev corepointers

Thomas Liebetraut thomas at tommie-lie.de
Tue Jun 20 12:37:44 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hello everybody,

Those who are active in #Xgl on freenode know that I've had segfaults
when starting Xgl during the last few weeks (which is also why there was
no progress on my g-w-d rewrite).
Today I found the time to debug Xgl and to find the bug.
My mouse was configured as evdev device in xorg.conf, and to use it, it
was set as the corepointer. With this setting, Xgl reproducably
segfaults in xglxPointerProc() when returning from this function (the
last thing gdb does is "pop ebp", which I think pretty strange) on
device initialization (the function is called with  onoff==DEVICE_INIT).
The return value of InitPointerDeviceStruct() is 1.
This bug only occurs if I have 'Option "CorePointer"' in my InputDevice
section. If I remove this line, Xgl works fine, but I can't use my mouse
to move the pointer.
There is someone else on ubuntuforums.org
(http://ubuntuforums.org/showthread.php?t=193946) who has the same problem.
The same configuration worked for me some weeks ago, but I can't say
which update rendered Xgl useless for me.
Is there any solution to this problem or can anyone else confirm this?
Support for evdev would be really nice for people with modern Logitech mice.
I don't know X code and architecture good enough (by far) to do more
debugging on it on my own (not to mention solving the problem).

Here is my minimal InputDevice section that causes the error:
- ---->8-------->8-------->8-------->8----
Section "InputDevice"
        Identifier      "Logitech MX1000"
        Driver          "evdev"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/event2"
EndSection
- ---->8-------->8-------->8-------->8----

And my usual config that I'd like to be working ;-)
- ---->8-------->8-------->8-------->8----
Section "InputDevice"
       Identifier      "Logitech MX1000"
       Driver          "evdev"
       Option          "CorePointer"
       Option          "Device"                "/dev/input/event2"
       Option          "Buttons"               "12"
       Option          "ZAxisMapping"          "4 5 7 6"
       Option          "Emulate3Buttons"       "no"
       Option          "ButtonMapping"         "1 2 3 8 9 10 11 12"
EndSection
- ---->8-------->8-------->8-------->8----


Regards,
Thomas


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEmE6IxVmZpTAq4IgRAjFlAJ9hK5n5wb7uuiC7gYLD2sfDNdp7cwCeOVAv
Ess/FIhfPmTc96PPL9X1jYg=
=QXUK
-----END PGP SIGNATURE-----


More information about the compiz mailing list