From https://bugzilla.gnome.org/show_bug.cgi?id=650379 libxklavier should automatically switch to the "macintosh" variant for Apple keyboards (and associated variant for other types of keyboard, if necessary/available).
As discussed, the plan is as follows: 1. Implement HW ids -> XKB model map in xkeyboard-config (in evdev.xml/base.xml) 2. In libxklavier, use that map to provide the "recommended" model name for the current hardware 3. Up the stack (libgnomekbd?), use the recommended model (or manually provided) to configure XKB.
"HID: apple: Use country code to detect ISO keyboards" (recently posted to LKML) makes the model selection obsolete, as the correct "variant" (not xkb variant) of the keyboard will be used in the kernel. Closing as OBSOLETE
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.