From owner-freebsd-x11@freebsd.org Thu Sep 22 18:48:37 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 6AC09BE56AA for ; Thu, 22 Sep 2016 18:48:37 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ua0-x22b.google.com (mail-ua0-x22b.google.com [IPv6:2607:f8b0:400c:c08::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 220BFC05 for ; Thu, 22 Sep 2016 18:48:37 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ua0-x22b.google.com with SMTP id u68so7866675uau.0 for ; Thu, 22 Sep 2016 11:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=0yDIo4Qs0nnIs7J0Y+VEEfP0DfCr33udgdSK2nhXcMQ=; b=AUWO/hwwxZAAm7JYuPSXbBH3avJ7mXpEaa/G5iQOont7aBlyLKtVIj+fLQFmwDlag6 WpoEtUIP8Kzzv3jBteJe+x5lMDQVUMg9SFGKsGniqohvTq2WohZCbRGB/Yxj9vSMxPkE DzsH+XjJroVXkNbjvuvMvHTxnJ0IfQQk+sapLL2xs6UGFE0LJ9HC2DSZZHi5WcEDiMm3 NsdMfmuIybo9+UqHDEDoTXYh66KcHJ1XMO/PW6CeT/Fq1IOZ9uOXvXb9EyUXgPEkXNgM zm9L+KN6y4uXe3nA9YpBf3be8iRP3TzAAfLVNfa5VPjg0xnBBCLFmTbKcNTjGC1aKH/U FmYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=0yDIo4Qs0nnIs7J0Y+VEEfP0DfCr33udgdSK2nhXcMQ=; b=D/1uxFcqwfoTnjBDgxB5jE7ywFnxrXJ+HzAW6ipxWH+UgWpTmNppJSlX39B6KIArEu j+qdflOESyNHd3vdo1EUqL2xLUqUG8LOnvLTyWoMd8+AYjJLsoDyqFWmxDCZeeb4woKa OPRxQtRZR3HvTv27XZd7MCgJor3JBW8FQAX7vKpvxpsMEOSYCg0d0Ew6uJVrSWbsG9W+ OUvPNzcNxp99WnZWbmQrbWfiJmvK4jVtPU+ZcNq4xpC6PUOTVkXDVIzwFSzjdU4OYpTm HHXj5cTgTnm4vfA1GzshbilRtQb1icmKi0ls0v5DB13T1U4oKfrjmsxUvJAurvEo/YQO XpVA== X-Gm-Message-State: AE9vXwMAugRn0x4EHUdJP5rfrkcgYto/UyN9YJ4FhHOoGQRjDmeWeaKPVPYEKXE0d8q1n93gvWg7+RchQndzPQ== X-Received: by 10.176.69.151 with SMTP id u23mr865190uau.104.1474570116162; Thu, 22 Sep 2016 11:48:36 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.103.49.132 with HTTP; Thu, 22 Sep 2016 11:48:35 -0700 (PDT) In-Reply-To: References: From: Kevin Oberman Date: Thu, 22 Sep 2016 11:48:35 -0700 X-Google-Sender-Auth: 3zVFDXyyKH8wJBCutwXoHLtjji0 Message-ID: Subject: Re: How to disable touchpad in FreeBSD 10.3 To: doug@safeport.com Cc: "freebsd-x11@freebsd.org" Content-Type: text/plain; charset=UTF-8 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:48:37 -0000 On Thu, Sep 22, 2016 at 11:18 AM, 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" > Assuming that it's using the Synaptics driver, "sysctl hw.psm.synaptics.touchpad_off=1" You might also check out /etc/devd.conf as it now handles most device discovery for X. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683