NetBSD Problem Report #59011

From www@netbsd.org  Sun Jan 19 12:48:32 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 773691A923A
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 19 Jan 2025 12:48:32 +0000 (UTC)
Message-Id: <20250119124831.4C0FF1A923B@mollari.NetBSD.org>
Date: Sun, 19 Jan 2025 12:48:31 +0000 (UTC)
From: nathanialsloss@yahoo.com.au
Reply-To: nathanialsloss@yahoo.com.au
To: gnats-bugs@NetBSD.org
Subject: Change request [patch]: Change emulated buttons/brightness to command+key
X-Send-Pr-Version: www-1.0

>Number:         59011
>Category:       port-mac68k
>Synopsis:       Change request [patch]: Change emulated buttons/brightness to command+key
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    nat
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 19 12:50:00 +0000 2025
>Closed-Date:    Mon Jan 20 16:08:39 +0000 2025
>Last-Modified:  Mon Jan 20 16:25:01 +0000 2025
>Originator:     Nat Sloss
>Release:        NetBSD 10.99.12
>Organization:
Another PowerBook Salvage and Rescue
>Environment:
NetBSD princess 10.99.12 NetBSD 10.99.12 (WSFBPWR) #231: Sun Jan 12 01:03:02 AEDT 2025  /home/build/mac68k-new-gas/sys/arch/mac68k/compile/WSFBPWR mac68k
>Description:
X11 works well on both my PowerBook 160 and 520 (pkgsrc/x11/tinyx-wscons)

However with the stock Xorg or TinyX, Option is mapped as the meta key and meta plus click for both ALTXBUTTONS and regular Option-left/right
arrow key sequences result in undesired effects of meta being held.

This changes the intention of the emulated mouse click.
>How-To-Repeat:
Try Xorg or tinyx-wscons with a one button mouse.
>Fix:
My proposal is to change the emulmod key from Option to Command so emulated mouse buttons would be Command+Left/Right arrow or Command+1/2/3 etc and brightness would be command+Up/Down Arrows as the
Apple/Command key is not referenced as much in X11.

Thus emulated mouse clicks work closer to their intended purpose.

See the patch in the link:

ftp://ftp.netbsd.org/pub//NetBSD/misc/nat/opt-to-command-emubuttons.diff

Best regards,

Nat

>Release-Note:

>Audit-Trail:
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@netbsd.org
Cc: port-mac68k-maintainer@netbsd.org, gnats-admin@netbsd.org,
        netbsd-bugs@netbsd.org
Subject: Re: port-mac68k/59011: Change request [patch]: Change emulated
 buttons/brightness to command+key
Date: Mon, 20 Jan 2025 10:15:50 +0100

 On Sun, 19 Jan 2025 12:50:00 +0000 (UTC), nathanialsloss@yahoo.com.au=20
 wrote:
 > My proposal is to change the emulmod key from Option to Command so=20
 > emulated mouse buttons would be Command+Left/Right arrow or=20
 > Command+1/2/3 etc and brightness would be command+Up/Down Arrows as=20
 > the Apple/Command key is not referenced as much in X11.

 This is rather academic right now since my X11 serving Quadra 700 has=20
 issues, and I use my own .xmodmap anyway, but: For non-US keyboard=20
 layouts the opt-key is rather necessary to produce ~\|[]{} and friends.=20
 The command key then is the obvious choice for Meta.

 Cheerio,
 Hauke

 --=20
 Hauke Fath                        <hauke@Espresso.Rhein-Neckar.DE>
 Linn=E9weg 7
 64342 Seeheim-Jugenheim
 Germany

Responsible-Changed-From-To: port-mac68k-maintainer->nat
Responsible-Changed-By: nat@NetBSD.org
Responsible-Changed-When: Mon, 20 Jan 2025 16:08:39 +0000
Responsible-Changed-Why:
Mine.


State-Changed-From-To: open->closed
State-Changed-By: nat@NetBSD.org
State-Changed-When: Mon, 20 Jan 2025 16:08:39 +0000
State-Changed-Why:
Closing as the manual page has clarification and a remedy.


From: "Nathanial Sloss" <nat@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59011 CVS commit: src/share/man/man4
Date: Mon, 20 Jan 2025 16:06:01 +0000

 Module Name:	src
 Committed By:	nat
 Date:		Mon Jan 20 16:06:01 UTC 2025

 Modified Files:
 	src/share/man/man4: akbd.4

 Log Message:
 Add example to use xmodmap to remap Option to Command key.
 Clarification on keys that generate middle and right button events.
 Clarification for brightness keys on mac68k.

 Addresses PR/59011.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/akbd.4

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Nat Sloss <nathanialsloss@yahoo.com.au>
To: gnats-bugs@netbsd.org
Cc: netbsd-bugs@netbsd.org
Subject: Re: port-mac68k/59011: Change request [patch]: Change emulated buttons/brightness to command+key
Date: Tue, 21 Jan 2025 03:21:26 +1100

 On Mon, 20 Jan 2025 20:25:01 Hauke Fath via gnats wrote:
 >
 > 
 >  This is rather academic right now since my X11 serving Quadra 700 has=20
 >  issues, and I use my own .xmodmap anyway, but: For non-US keyboard=20
 >  layouts the opt-key is rather necessary to produce ~\|[]{} and friends.=20
 >  The command key then is the obvious choice for Meta.
 > 
 >  Cheerio,
 >  Hauke

 Many thanks for the clarification.  Using xmodmap works better than my intended 
 patch so I've added an example in the akbd.4 man page and have closed the PR.

 Best regards,

 Nat

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.