From owner-freebsd-x11@freebsd.org Thu Sep 22 18:23:28 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8B08BE6E4C for ; Thu, 22 Sep 2016 18:23:28 +0000 (UTC) (envelope-from doug@safeport.us) Received: from lighthouse.safeport.com (lighthouse.safeport.com [204.107.128.114]) by mx1.freebsd.org (Postfix) with ESMTP id 9C54D9FB for ; Thu, 22 Sep 2016 18:23:28 +0000 (UTC) (envelope-from doug@safeport.us) Received: by lighthouse.safeport.com (Postfix, from userid 1004) id 6F91F73069; Thu, 22 Sep 2016 14:18:18 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by lighthouse.safeport.com (Postfix) with ESMTP id 6CE9073030 for ; Thu, 22 Sep 2016 14:18:18 -0400 (EDT) Date: Thu, 22 Sep 2016 14:18:18 -0400 (EDT) From: doug X-X-Sender: doug@lighthouse.safeport.com Reply-To: doug@safeport.com To: freebsd-x11@freebsd.org Subject: How to disable touchpad in FreeBSD 10.3 Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2016 18:23:28 -0000 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