From owner-freebsd-questions@freebsd.org Tue Jun 21 05:24:05 2016 Return-Path: Delivered-To: freebsd-questions@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 00A85AC48CB for ; Tue, 21 Jun 2016 05:24:05 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 95494244E for ; Tue, 21 Jun 2016 05:24:04 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-96-188.dynamic.qsc.de [92.195.96.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 4D1A43CDD4; Tue, 21 Jun 2016 07:23:55 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u5L5Ns5A005773; Tue, 21 Jun 2016 07:23:55 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 21 Jun 2016 07:23:54 +0200 From: Polytropon To: emailrob@emailrob.com Cc: freebsd-questions@freebsd.org Subject: Re: slowing_down a super_fast mouse Message-Id: <20160621072354.575ae5a3.freebsd@edvax.de> In-Reply-To: <57689E95.2090502@emailrob.com> References: <57689E95.2090502@emailrob.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2016 05:24:05 -0000 On Tue, 21 Jun 2016 01:55:33 +0000, spellberg_robert wrote: > howdy , folks --- > > i hope that everyone is well . > > > > in anticipation of installing 10.3 , i have been buying new hardware > [ probably , intel "skylake" and "z170" , of some kind ] . > this new mechanical keyboard , "daskeyboard" , > with the cherry "blue" switches , is really nice , Yes, those are great, but nothing beats "IBM model M". :-) > [ before i did any editing , this post looked like > traudl junge's first effort for her new boss , > in that scene in "downfall" , at the beginning of the film > ] . Then compare to the "typist audition" in "Schindler's List" for improvement. :-) > the ps2 keyboards and mice actually have usb interfaces , > with usb/ps2 adapters , plugged into ps2 ports . > from what i read on wikipedia , > these should look like ps2 devices to the ps2 ports . > the six_years_old moboes --do-- have usb ports of some kind , > but this is my first usb equipment , > therefore , i have no usb experience . Then why don't you use them natively via USB? Basically, it should work out of the box (as the kernel provides ukbd and ums drivers). > so i start reading [ man_pages , handbook , et_cetera ] ; > eventually , i find the man_page about "/boot/device.hints" . > i find words like "flags" , "resolution" and "acceleration" . > i find an example for "psm0" . > this looks promising . > i check my boot messages ; > > psm0: irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: model Intellimouse, device ID 3 > > these are the same messages as those for > the old mitsumi mouse on the 10.2 box ; > i get the impression that all ps2 mice are pretty much the same . The easiest way to configure the mouse behaviour for the console is using moused. In this case, accessing the settings via /dev/psm0 (through the PS/2->USB adapter) is quite easy: moused_enable="YES" moused_type="auto" moused_flags="-z 4" moused_port="/dev/cuaa0" moused_type="mousesystems" moused_flags="-r 300 -a 2.0" This is an example from one of my older systems where a serial mouse with 3 buttons needed adjustment for resolution and accelleration. See "man moused" for details about the required flags. In your case, you'd probably have to use moused_type="auto" moused_port="/dev/psm0" instead. You can try out various settings by first invoking moused with the -d -f flags (print debugging messages, run in foreground), and when you're happy with the settings, add them to /etc/rc.conf accordingly. Note that using moused with USB devices is not that trivial as it is controlled "dynamically" via devfs/devd, if I remember correctly. > i note that there are no "flags" ; so i try that . > i "guess" that flags of "0x01" and "0x04" will > disable "acceleration" and > set "resolution" to either extreme , one way or the other . > if this works , > then i should observe a 8:1 ratio for cursor distance ; > all that i have to do is to pick a "comfortable" setting . > > well , that was the plan . > it failed . As expected. :-) > let me emphasize : the new hardware --works-- . > it is just that the cursor goes flying across the screen , > for a small mouse_on_pad motion . > positioning --is-- challenging . > > the flags --are-- recognized ; they appear in the boot messages ; > for example , > > psm0: flags 0x1 irq 12 on atkbdc0 > > but the behavior does not change on either the console or the xterm . The console has a different mouse driver than X. For X, you need to configure the mouse parameters using the tool your desktop environment provides. If you're not using a DE, consider using /etc/X11/xorg.conf. Again an example: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Device" "/dev/sysmouse" Option "Protocol" "Auto" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" Option "EmulateWheel" Option "EmulateWheelButton" "2" EndSection You can set "Samplerate" and "Resolution" as well. You can find even more options in the documentation. > maybe the mouse has hardware limitations . That is possible. > maybe there is some "buzzword" , of which i am unaware . > which ignorance prevents further research by me . Yes, there is dynamic leverage synergetic mouse outsourcing for startup unicorn capital growth inflation. :-) > should i be trying to effect this change in "rc.conf" ? Yes. > should i be trying to effect this change in "X" ? Yes, as well. As I said, console and X use different mechanisms for the mouse, so there are two different configurations needed. > ps --- does anyone know how to > turn_off this narrow 65_column auto_wrap > in the "thunderbird" editor ? Why is that a problem? You should breat your lines between column 60 and 70. If you prefer to do this manually (as I do), you'll find the relevant setting in the message compose configuration, if I remember correctly. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...