From owner-freebsd-questions@freebsd.org Sat May 20 07:26:32 2017 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 8BC47D75077 for ; Sat, 20 May 2017 07:26:32 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay10.qsc.de (mailrelay10.qsc.de [212.99.163.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F222014C8 for ; Sat, 20 May 2017 07:26:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay10.qsc.de; Sat, 20 May 2017 09:26:21 +0200 Received: from r56.edvax.de (port-92-195-153-207.dynamic.qsc.de [92.195.153.207]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 233513CBF9; Sat, 20 May 2017 09:26:21 +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 v4K7QKFj002929; Sat, 20 May 2017 09:26:20 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 20 May 2017 09:26:20 +0200 From: Polytropon To: Ethan Grammatikidis Cc: freebsd-questions@freebsd.org Subject: Re: remapping pointer buttons Message-Id: <20170520092620.8d373fb7.freebsd@edvax.de> In-Reply-To: <1495219659.1490726.982391760.50A04D90@webmail.messagingengine.com> References: <1495208248.1449918.982161320.0B87F123@webmail.messagingengine.com> <20170519180758.f3d8d15c.freebsd@edvax.de> <1495215787.1476791.982307560.646FF759@webmail.messagingengine.com> <1495219094.1488826.982382488.519D524D@webmail.messagingengine.com> <1495219659.1490726.982391760.50A04D90@webmail.messagingengine.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-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay10.qsc.de with 847EB683DD3 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1198 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2017 07:26:32 -0000 On Fri, 19 May 2017 19:47:39 +0100, Ethan Grammatikidis wrote: > On Fri, May 19, 2017, at 07:38 PM, Ethan Grammatikidis wrote: > > > > almost! aaaalmost! i added a line to /etc/rc.conf, unplugged and > > reconnected my usb mouse, and saw my "-m 8=2" in the output of ps. > > i thought it was great, until i found it doesn't actually work. > > in x, button 8 is still button 8. > > sorry, replied too fast. in x, with '-m 8=2', button 8 is still button > 8 but button 2 becomes button 12, leaving me with no button 2 at all. As I said, X handles input differently than the text mode console. For the console, moused configuration applies. But for X, you need to mess with xinput, maybe through a partial xorg.conf file where you only set options for the mouse. Here is an example for such an entry: 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 Of course you'd have to define only the relevant options that you actually need for the button re-mapping; see "man xorg.conf" and assorted X documentation. :-) > i thought i'd misunderstood the man page, so i set '-m 2=8', but > that again makes no change to button 8 in x while button 2 stops > sending anything at all. Just mind the _scope_ of the moused utility. Check "man moused", there is also an option for debugging where you can examine the events appearing for the mouse (similar to the X event viewer, xev). > i'll leave it for a while as i'm replying too fast. if someone > could tell me how to test mouse buttons in the framebuffer console > (like i can with xev in x), i'd be grateful. With "moused -d -f " it is easily possible. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...