Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Sep 2016 21:57:59 +0300
From:      abi <abi@abinet.ru>
To:        freebsd-x11@freebsd.org
Subject:   Re: How to disable touchpad in FreeBSD 10.3
Message-ID:  <57E429B7.8010802@abinet.ru>
In-Reply-To: <alpine.BSF.2.00.1609221406310.21592@lighthouse.safeport.com>
References:  <alpine.BSF.2.00.1609221406310.21592@lighthouse.safeport.com>

next in thread | previous in thread | raw e-mail | index | archive | help
/Section "InputClass"
	//Identifier "Mouse Off"
	//MatchDevicePath "/dev/psm0"
	//Option "Ignore" "true"
//EndSection/

On 22.09.2016 21:18, doug wrote:
> In FreeBSD 10.1 the touchpad on my laptop could be disabled by:
>
>    moused_enable="YES"
>    moused_port="/dev/ums0"
>
> resulting in starting moused with:
>
>    /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid
>
> With Xorg 7.7_2 and FreeBSD 10.1 this worked. E.g., /dev/psm0 was not 
> available to Xorg. With FreeBSD 10.3 and Xorg 7.7_2 as you can see 
> from the marked lines [**] in 10.3 this starts /dev/psm0 also.
>
> I would like to disable psm0 without compiling a custom kernal. 
> Options would seem to be a custom driver or input section in 
> /usr/local/etc/X11/xorg.conf.d but the man files show no options to do 
> this. sysctl for dev.psm.0 does not have any options I can see would 
> do this available values:
>
>    hw.psm.tap_timeout: 125000
>    hw.psm.tap_threshold: 25
>    hw.psm.tap_enabled: 0
>    dev.psm.0.%parent: atkbdc0
>    dev.psm.0.%pnpinfo:
>    dev.psm.0.%location:
>    dev.psm.0.%driver: psm
>    dev.psm.0.%desc: PS/2 Mouse
>    dev.psm.%parent:
>    dev.psmcpnp.0.%parent: acpi0
>    dev.psmcpnp.0.%pnpinfo: _HID=SYN1E4B _UID=0
>    dev.psmcpnp.0.%location: handle=\_SB_.PCI0.LPC0.PS2M
>    dev.psmcpnp.0.%driver: psmcpnp
>    dev.psmcpnp.0.%desc: PS/2 mouse port
>    dev.psmcpnp.%parent:
>
> man xinput has an operand that would seem to do it:
>
>    xinput --disable device
>      device can be the device name as a string or the XID of the device.
>
> What do I use for the device. On my system xinput shows:
>
>     Virtual core pointer                     id=2    [master pointer  
> (3)]
>     Virtual core XTEST pointer               id=4    [slave pointer  (2)]
>         sysmouse                             id=7    [slave pointer  (2)]
>         Mouse                                id=8    [slave pointer  (2)]
>     Virtual core keyboard                    id=3    [master keyboard 
> (2)]
>      Virtual core XTEST keyboard             id=5    [slave keyboard (3)]
>      kbdmux                                  id=6    [slave keyboard (3)]
>
> I think I want id=8  [slave  pointer  (2)], but how to specify that?
>
> Xorg.0.log
> --------------------------------------------
>    [517.130] (II) LoadModule: "mouse"
>    [517.131] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
>    [517.132] (II) Module mouse: vendor="X.Org Foundation"
>    [517.132]    compiled for 1.17.4, module version = 1.9.1
>    [517.132]    Module class: X.Org XInput Driver
>    [517.132]    ABI class: X.Org XInput driver, version 21.0
>    [517.132] (II) Using input driver 'mouse' for 'sysmouse'
>    [517.132] (**) sysmouse: always reports core events
>    [517.132] (**) Option "Device" "/dev/sysmouse"
>    [517.132] (==) sysmouse: Protocol: "Auto"
>    [517.133] (**) sysmouse: always reports core events
>    [517.133] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
>    [517.133] (**) sysmouse: ZAxisMapping: buttons 4 and 5
>    [517.133] (**) sysmouse: Buttons: 5
>    [517.133] (**) Option "config_info" "devd:sysmouse"
>    [517.133] (II) XINPUT: Adding extended input device "sysmouse" 
> (type: MOUSE, id 7)
>    [517.134] (**) sysmouse: (accel) keeping acceleration scheme 1
>    [517.134] (**) sysmouse: (accel) acceleration profile 0
>    [517.134] (**) sysmouse: (accel) acceleration factor: 2.000
>    [517.134] (**) sysmouse: (accel) acceleration threshold: 4
>    [517.134] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
>    [517.134] (II) sysmouse: SetupAuto: protocol is SysMouse
>    [517.134] (II) config/devd: device /dev/ums0 already opened
>    [517.197] (II) config/devd: adding input device Mouse (/dev/psm0)
>    [517.197] (II) Using input driver 'mouse' for 'Mouse'
>    [517.197] (**) Mouse: always reports core events
> ** [517.197] (**) Option "Device" "/dev/psm0"
>    [517.198] (==) Mouse: Protocol: "Auto"
>    [517.198] (**) Mouse: always reports core events
>    [517.258] (==) Mouse: Emulate3Buttons, Emulate3Timeout: 50
>    [517.258] (**) Mouse: ZAxisMapping: buttons 4 and 5
>    [517.258] (**) Mouse: Buttons: 5
> ** [517.258] (**) Option "config_info" "devd:psm0"
>    [517.258] (II) XINPUT: Adding extended input device "Mouse" (type: 
> MOUSE, id 8)
>    [517.259] (**) Mouse: (accel) keeping acceleration scheme 1
>    [517.259] (**) Mouse: (accel) acceleration profile 0
>    [517.259] (**) Mouse: (accel) acceleration factor: 2.000
>    [517.259] (**) Mouse: (accel) acceleration threshold: 4
>    [517.279] (II) Mouse: SetupAuto: hw.iftype is 3, hw.model is 0
> ** [517.279] (II) Mouse: SetupAuto: protocol is PS/2
>    [517.722] (II) Mouse: ps2EnableDataReporting: succeeded
>
> _______________________________________________
> freebsd-x11@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"




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