From: Fredrik Noring <noring@nocrew.org>
To: Alexey Gladkov <gladkov.alexey@gmail.com>
Cc: kbd@lists.altlinux.org
Subject: Re: [kbd] [PATCH 0/5] Add Apple USB keyboard models A1048 and A1243, Swedish localization
Date: Sun, 6 Jan 2019 09:37:35 +0100 [thread overview]
Message-ID: <20190106083735.GA10014@sx9> (raw)
In-Reply-To: <20181022084956.GT3219@comp-core-i7-2640m-0182e6>
Hi Alexey,
> > The top row keys with printed feature icons are normally used to control
> > features such as volume adjustments in macOS. They can also be used as
> > function keys (F1-F19) by holding the Fn key. The default behaviour of
> > the Fn key can be reversed.
I have discovered a better way to reverse the function keys. It turns out
that the keys can be reversed by the setting the fnmode parameter to 2 for
the apple_hid kernel module. This can be done by for example
# echo 2 >/sys/module/hid_apple/parameters/fnmode
One advantage with this method (as opposed to the reversed keymap files)
is that the function keys remain reversed with X11 as well. The apple_hid
kernel module needs to loaded regardless.
> > data/keymaps/mac/all/apple-a1048-sv.map | 70 ++++++++++++++++++
> > data/keymaps/mac/all/apple-a1243-sv-fn-reverse.map | 13 ++++
> > data/keymaps/mac/all/apple-a1243-sv.map | 17 +++++
> > .../all/apple-internal-0x0253-sv-fn-reverse.map | 15 ++++
> > data/keymaps/mac/all/apple-internal-0x0253-sv.map | 15 ++++
> > data/keymaps/mac/include/apple-a1048-base.inc | 85 ++++++++++++++++++++++
> > .../keymaps/mac/include/apple-a1243-fn-reverse.inc | 51 +++++++++++++
> > data/keymaps/mac/include/apple-a1243-fn.inc | 52 +++++++++++++
> > 8 files changed, 318 insertions(+)
Therefore I suggest that we remove the map files named apple-*-reverse.*
and instead refer to the use of the fnmode parameter. Would you agree?
Fredrik
prev parent reply other threads:[~2019-01-06 8:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1539266874.git.noring@nocrew.org>
2018-10-22 8:49 ` [kbd] [PATCH 0/5] Add Apple USB keyboard models A1048 and A1243, Swedish localization Alexey Gladkov
[not found] ` <20181022153738.GA2331@sx9>
2018-10-24 15:14 ` Alexey Gladkov
2019-01-06 8:37 ` Fredrik Noring [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190106083735.GA10014@sx9 \
--to=noring@nocrew.org \
--cc=gladkov.alexey@gmail.com \
--cc=kbd@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox