[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2020-10-06 Thread Pedro A. Aranda
After posting, I tried 
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/214786/comments/78
and it worked for me on a Spanish USB apple keyboard.

Currently I have my laptop's and the USB Apple keyboard working
correctly _and_ simultaneously

Just my .2 cents

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2020-10-05 Thread Pedro A. Aranda
I'm having this issue with a Spanish USB Mac keyboard. Is it really so
difficult to detect when you have a Mac keyboard connected and/or
disconnected? Can't anything be done with hotplug, udev, etc. ?

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2019-10-01 Thread Daniel
I'm currently having this issue on a portuguese (european) apple
keyboard. The wireless kind used in iMac.

I have two keys swapped. The key < > prints ` and ~

Was working fine previously, not sure what changed.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2019-07-24 Thread Brad Figg
** Tags added: cscc

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2019-01-04 Thread Gianni
I have an italian apple keyboard and I confirm that the bug where keys
<> and \| are switched is still present.

The command for a volatile fix

echo 0 | sudo tee /sys/module/hid_apple/parameters/iso_layout

and for a permanent solution

echo options hid_apple iso_layout=0 | sudo tee -a
/etc/modprobe.d/hid_apple.conf

that are mentioned above fix the issue for me.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2018-09-01 Thread Simon Collis
Hi guys, this problem is still present in Ubuntu 18.04, Portugese Apple
wired USB keyboard.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2018-07-20 Thread OR
Error still present in 18.04 (German Apple wired USB keyboard)

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2015-10-29 Thread André
@joao-pimentel-ferreira read the previous comment (#73)

Error still present in 15.10

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2015-02-23 Thread João Pimentel
Newby at stage! Can you kindly tell me exactly what i have to do to fix
this problem? Thank you

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2013-10-02 Thread Rickard Armiento
Since the last comment on this is before 13.04, I'll just add that this exact 
issue still remains on a fresh install of Raring. pdecat's workaround 
  echo 0 | sudo tee /sys/module/hid_apple/parameters/iso_layout
works.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2013-02-06 Thread Dario Bertini
I'm affected by this problem as well, but the hid_apple fix didn't work
for me

this is weird, since I'm using the hid_apple.conf already to use the
special keys as default:

 cat /etc/modprobe.d/hid_apple.conf
options hid_apple iso_layout=0 fnmode=1

I tried all of the 3 alternatives that have been written here:
http://wiki.debian.org/InstallingDebianOn/Apple/PageFragmentKeyboard

but not even setting it from GRUB is working

I cannot use the xmodmap setting for a different reason, it seems that I'm 
affected by this bug:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/289781

the weird thing is that I don't have the evdev module loaded (I guess
that the keyboard driver is supplied through usbhid or something like
that), so for now I'm refraining to set that bug back to confirmed

I also tried to use this file for startup:

 cat .config/autostart/xmodmap.desktop 
[Desktop Entry]
Type=Application
Exec=xmodmap -e keycode 49 = 0x3c 0x3e -e keycode 94 = 0x5c 0x7c
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=false
Name=remap  and \
Comment=

but it doesn't work (it's for the italian layout if you need it)

If I remember correctly, some time ago I also tried to put a script in
/etc/acpi/resume.sh (now probably it should go into /etc/pm/sleep.d/ )
to no avail

and finally, sebastien bacher suggested me to use a gnome-settings-daemon hook:
http://git.gnome.org/browse/gnome-settings-daemon/commit/?id=2ec0fbd38cd9d787fc3ad003f462c537ea795890

I wrote this small script

#! /usr/bin/env python3

import argparse
from subprocess import check_call as call
from os.path import expanduser

parser = argparse.ArgumentParser()
parser.add_argument('-t')
parser.add_argument('-i')
parser.add_argument('name')
args = parser.parse_args()

if __name__ == '__main__':
try:
if args.t in (added, present) and args.i == 10:
call([xmodmap, expanduser(~/.Xmodmap)])

#EOF
(I also added some error checking when debugging it, and 10 is the XID obtained 
from xinput)

and I added it to g-s-d with

gsettings set org.gnome.settings-daemon.peripherals.input-devices
hotplug-command '/path/to/mac_keyboard_fix.py'

but apparently, gnome-settings-daemon receives a device-added signal,
only for device #11(touchpad) and #14(unknown)

(so, this seems to be denying the hypothesis that the problem is due to
the driver loading the keyboard as a completely different keyboard)

right now, I'm not sure why, but when doing a suspend/resume, if I
previously applied the xmodmap, the change retains... but in the
meanwhile I removed the python script, deactivated the .desktop startup
item, and nothing else should be able to change the behaviour after-
resume without also changing it after bootup, so I'm quite baffled

I get fed up by this issue every few months, and I try to find a
workaround that works once and for all (unless something makes the
xmodmap script working, that is)... but now I've spent too much time on
this, I just hope that something/somebody will improve the situation in
the next months

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2013-02-06 Thread Dario Bertini
(when removing the obsolete error checking from the python script, I
forgot to remove the try, statement... if you use it and get a syntax
error, that's why)

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2012-12-20 Thread Felix Dreissig
Before I speculate on more details about this problem, let me add that
pdecat's persistent fix works fine but requires an additional `update-
initramfs -u -k all` for the option to be set correctly.

I own two Apple aluminium keyboards of different generations (German
layout) , one MacBook Air and one old Early-2008 white MacBook. While
the laptops seem to work fine for quite some time now, both alu
keyboards experienced this issue in different Ubuntu releases; at least
one of them always suffers from it up until today. (Count this as
confirmed for Quantal.)

In the past, I used the xmodmap fix from above, but that didn't work out now 
because of Bug #1016996. Since I didn't know about pdecat's fix at first, I 
dived a bit into the shady areas of XKB configuration and found out that XKB 
offers options called apple:badmap and 'apple:goodmap' targeting the exact 
same problem. Those are listed in /usr/share/X11/xkb/rules/base and 
`[…]/evdev`, but not in the respective `.lst` and `.xml` files and therefore 
don't show up in the GNOME keyboard options dialog.
When it comes to persisent configuration, I didn't succeed in settings the 
options via `xorg.conf` as described by [1] and [2].  Running `setxkbmap […]` 
at session start through `gnome-session-properties` works in principal, but 
seems to conflict with settings from the GNOME keyboard options. (Only one of 
them will be set due to what seems to be some kind of race-condition.) What 
worked for me was running the command via `.profile`, but just then I came 
across pdecat's much simpler and system-wide approach :-).

As there seem to be different generations of Apple keyboards with different 
behaviours out there, I believe that there won't be a general fix for this 
problem.
What should however be done in my opinion, is offering a simple way to get the 
right configuration. I think the GNOME keyboard options are the right place to 
do that, and therefore the apple:badmap option  should be added to the `.lst` 
and `.xml` files like described above. That's why I'm adding xkeyboard-config 
to the affected packages.


[1] http://wiki.debian.org/MacBook#X11_.28X_Window.29
[2] 
https://wiki.archlinux.org/index.php/Apple_Keyboard#.3C_and_.3E_have_changed_place_with_.C2.A7_and_.C2.BD

** Also affects: xkeyboard-config (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 214786] Re: Apple USB ISO keyboard has incorrectly swapped keys

2012-12-20 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: xkeyboard-config (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/214786

Title:
  Apple USB ISO keyboard has incorrectly swapped keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/mactel-support/+bug/214786/+subscriptions

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp