Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2009 14:53:00 -0500
From:      Robert Noland <rnoland@FreeBSD.org>
To:        Lucius Windschuh <lwindschuh@googlemail.com>
Cc:        x11@freebsd.org
Subject:   Re: Xorg 7.4 freezes when not moving the mouse
Message-ID:  <1232826780.1732.54.camel@wombat.2hip.net>
In-Reply-To: <90a5caac0901241129x625dab1co9e965a2579b54f41@mail.gmail.com>
References:  <90a5caac0901240831j2367a69eo3a6dfd82f8e3c200@mail.gmail.com> <3a142e750901240903p56dbae27maea5c98a3ddc5971@mail.gmail.com> <90a5caac0901241129x625dab1co9e965a2579b54f41@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-ZKYtCSUwq2JjtPPQIYTN
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2009-01-24 at 20:29 +0100, Lucius Windschuh wrote:
> Hi Paul.
>=20
> 2009/1/24 Paul B. Mahol <onemda@gmail.com>:
> > Xorg is compiled with hald support and hald is enabled?
>=20
> 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.
>=20
> > 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.
>=20
> 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.
>=20
> 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=3D"YES"
#moused_nondefault_enable=3D"NO"
moused_flags=3D"-3 -m 1=3D4" # This was for the glidepoint with moused=20
moused_ums0_flags=3D"" # and this made it not remap external usb mice

/boot/loader.conf:
hw.psm.synaptics_support=3D1

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"
(=3D=3D) product 0x3010: Protocol: "Auto"
(**) product 0x3010: always reports core events
(**) Option "Device" "/dev/sysmouse"
(=3D=3D) 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"
(=3D=3D) product 0x3010: Protocol: "Auto"
(**) product 0x3010: always reports core events
(**) Option "Device" "/dev/sysmouse"
(=3D=3D) 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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"

--=-ZKYtCSUwq2JjtPPQIYTN
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)

iEYEABECAAYFAkl7cZwACgkQM4TrQ4qfROPG/wCcCOi0Merm89woL+UMIn2Wgxri
QmQAni/CoUKArdhkipkXiodyipVuzoJ7
=LuGe
-----END PGP SIGNATURE-----

--=-ZKYtCSUwq2JjtPPQIYTN--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1232826780.1732.54.camel>