From owner-freebsd-x11@freebsd.org Thu Sep 22 18:58:07 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 E7C4EBE5902 for ; Thu, 22 Sep 2016 18:58:07 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from mail.abinet.ru (mail.abinet.ru [136.243.72.227]) by mx1.freebsd.org (Postfix) with ESMTP id 4F6361B9 for ; Thu, 22 Sep 2016 18:58:06 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from [10.0.0.1] (unknown [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.abinet.ru (Postfix) with ESMTPSA id 51B0726E42 for ; Thu, 22 Sep 2016 18:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=abinet.ru; s=dkim; t=1474570680; bh=J0k3XuhZlsS5wqR1he4UZYriI3P0wYBDXl8MKFKTOxU=; h=Date:From:To:Subject:References:In-Reply-To; b=i0fsWhJM0Yfg+OD5PY6NuzLV08Uh8nmHzZ1EnvoY8dO0YNoN14SNFn8IeWx8IsHMC pZ+NCjaBFL2O5k4NsAQqbc8kNwxJIlqVaOUu7/HgRcc8z26o3Xm7rWg9frXnhtTxqG djghQfe5I3X+SkmtXs2hEAwdEd5vn2FgihrClJlk= Message-ID: <57E429B7.8010802@abinet.ru> Date: Thu, 22 Sep 2016 21:57:59 +0300 From: abi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:) Gecko/20160112 FossaMail/25.2.0 MIME-Version: 1.0 To: freebsd-x11@freebsd.org Subject: Re: How to disable touchpad in FreeBSD 10.3 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:58:08 -0000 /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"