[PATCH] Fix xorg-server regression without moused

Jung-uk Kim jkim at FreeBSD.org
Sat Apr 5 00:41:57 UTC 2008


My previous patch (xorg-server-1.4_7,1) fixed problems with HAL but it 
broke some cases without moused running, e.g., ports/122363, 
ports/122372, ports/122405.

ports/122363:
PS/2 aux reset command is sent to /dev/psm0 and it is waiting for ACK 
forever.  It does not work on FreeBSD because psm(4) does not support 
write(2).  If you move the mouse pointer a bit, xorg-server suddenly 
unfreezes because select(2) returns successfully. Apparently it seems 
okay as X.org does not validate ACK data.

ports/122372, ports/122405:
"PS/2" protocol (xf86-input-mouse) does not support mouse wheel.  
However, psm supports extended protocols in operation level 1.  It 
should work by specifying "SysMouse" protocol.

The following patch should restore previous behavior:

http://people.freebsd.org/~jkim/xorg-server.diff

I intent to correct native mode and to add write() support but I need 
some time to figure out a way not to disturb atkbdc(4).

Thanks,

Jung-uk Kim


More information about the freebsd-x11 mailing list