Xorg 7.4 freezes when not moving the mouse

Robert Noland rnoland at FreeBSD.org
Sat Jan 24 11:53:11 PST 2009


On Sat, 2009-01-24 at 20:29 +0100, Lucius Windschuh wrote:
> Hi Paul.
> 
> 2009/1/24 Paul B. Mahol <onemda at gmail.com>:
> > Xorg is compiled with hald support and hald is enabled?
> 
> HAL support is activated (in x11-servers/xorg-server) and X reports:
>   (II) config/hal: Adding input device AT Keyboard
> So it should use hald.
> 
> > moused is working fine for me, only if I add `Option
> > "AllowEmptyInput"       "0"` to xorg.conf,
> > and that one is documented in UPDATING.
> > Without it and without hald running mouse and keyboard where not
> > working at all and Xorg even managed to suspend freebsd.
> 
> That's also true here (except the suspend, which doesn't work at all). I have
>   Option "AllowEmptyInput" "off"
> in my xorg.conf, which is identical.
> 
> I enabled the Synaptics support in psm(4). But this shouldn't
> influence moused...
> And I didn't test Xorg 7.4 on a FreeBSD 7.x, only on -CURRENT. :-/
> But the issue itself remains the same: X shouldn't clear O_NONBLOCK...

So, I was trying to look at this... That code in the xserver hasn't
changed in forever.  I'm trying to find someone who can explain to me
why it does that.  One thing that I find curious is that in the xorg log
that you showed, the mouse seems to report a lot of serial options.  I
don't see that in my setup.

Right now, I'm running with AllowEmptyInput on, so kbd/mouse driver
configs are ignored.  I'm disabling moused on psm (glidepoint touchpad)
and configuring it with the "synaptics" driver (which AllowEmptyInput
won't ignore).  usb mice are added via hal, currently via sysmouse.

rc.conf:
#moused_enable="YES"
#moused_nondefault_enable="NO"
moused_flags="-3 -m 1=4" # This was for the glidepoint with moused 
moused_ums0_flags="" # and this made it not remap external usb mice

/boot/loader.conf:
hw.psm.synaptics_support=1

xorg.conf:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Mouse1" "SendCoreEvents"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option         "AIGLX"
        #Option         "AllowEmptyInput" "Off"
EndSection
...
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"  # This device is ignored
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "synaptics"   # This device is NOT ignored
        Option      "Protocol" "alps"
        Option      "Device" "/dev/psm0"
        Option      "SHMConfig" "On"
        Option        "LeftEdge"              "120"
        Option        "RightEdge"             "830"
        Option        "TopEdge"               "120"
        Option        "BottomEdge"            "650"
        Option        "FingerLow"             "14"
        Option        "FingerHigh"            "15"
        Option        "MaxTapTime"            "180"
        Option        "MaxTapMove"            "110"
        Option        "EmulateMidButtonTime"  "75"
        Option        "VertScrollDelta"       "20"
        Option        "HorizScrollDelta"      "20"
        Option        "CornerCoasting"        "1"
        Option        "CoastingSpeed"         "3"
        Option        "MinSpeed"              "0.3"
        Option        "MaxSpeed"              "0.75"
        Option        "AccelFactor"           "0.015"
        Option        "EdgeMotionMinSpeed"    "200"
        Option        "EdgeMotionMaxSpeed"    "200"
        Option        "UpDownScrolling"       "1"
        Option        "CircularScrolling"     "1"
        Option        "CircScrollDelta"       "0.1"
EndSection

Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"  # this device is currently ignored
        Option      "Protocol" "auto"
        Option      "Device" "/dev/sysmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

xorg.log:
...
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or
'vmmouse' will be disabled.
(WW) Disabling Mouse1
(WW) Disabling Keyboard0
...(**) AT Keyboard: always reports core events
(**) Option "Protocol" "standard"
(**) AT Keyboard: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) AT Keyboard: XkbRules: "xorg"
(**) Option "XkbModel" "pc105"
(**) AT Keyboard: XkbModel: "pc105"
(**) Option "XkbLayout" "us"
(**) AT Keyboard: XkbLayout: "us"
(**) Option "CustomKeycodes" "off"
(**) AT Keyboard: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "AT Keyboard" (type: KEYBOARD)
...
(II) config/hal: Adding input device product 0x3010
(**) product 0x3010: Device: "/dev/sysmouse"
(==) product 0x3010: Protocol: "Auto"
(**) product 0x3010: always reports core events
(**) Option "Device" "/dev/sysmouse"
(==) product 0x3010: Emulate3Buttons, Emulate3Timeout: 50
(**) product 0x3010: ZAxisMapping: buttons 4 and 5
(**) product 0x3010: Buttons: 9
(**) product 0x3010: Sensitivity: 1
(II) XINPUT: Adding extended input device "product 0x3010" (type: MOUSE)
(**) product 0x3010: (accel) keeping acceleration scheme 1
(**) product 0x3010: (accel) filter chain progression: 2.00
(**) product 0x3010: (accel) filter stage 0: 20.00 ms
(**) product 0x3010: (accel) set acceleration profile 0
(II) product 0x3010: SetupAuto: hw.iftype is 4, hw.model is 0
(II) product 0x3010: SetupAuto: protocol is SysMouse
(II) config/hal: removing device product 0x3010
(II) UnloadModule: "mouse"
(II) config/hal: Adding input device product 0x3010
(**) product 0x3010: Device: "/dev/sysmouse"
(==) product 0x3010: Protocol: "Auto"
(**) product 0x3010: always reports core events
(**) Option "Device" "/dev/sysmouse"
(==) product 0x3010: Emulate3Buttons, Emulate3Timeout: 50
(**) product 0x3010: ZAxisMapping: buttons 4 and 5
(**) product 0x3010: Buttons: 9
(**) product 0x3010: Sensitivity: 1
(II) XINPUT: Adding extended input device "product 0x3010" (type: MOUSE)
(**) product 0x3010: (accel) keeping acceleration scheme 1
(**) product 0x3010: (accel) filter chain progression: 2.00
(**) product 0x3010: (accel) filter stage 0: 20.00 ms
(**) product 0x3010: (accel) set acceleration profile 0
(II) product 0x3010: SetupAuto: hw.iftype is 4, hw.model is 0
(II) product 0x3010: SetupAuto: protocol is SysMouse
(II) 3rd Button detected: disabling emulate3Button

robert.




> Lucius
> _______________________________________________
> freebsd-x11 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20090124/eafec835/attachment-0001.pgp


More information about the freebsd-x11 mailing list