Bug 37472

Summary: Problems in applealu_iso keyboard description
Product: xkeyboard-config Reporter: Andriy Rysin <arysin>
Component: GeneralAssignee: xkb
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium Keywords: NEEDINFO
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Andriy Rysin 2011-05-22 10:27:21 UTC
$ setxkbmap -model applealu_iso
Error loading keyboard description

xkeyboard-config 2.1 (OpenSuse 11.4) also happens on Fedora 14.

Forwarded from https://bugs.kde.org/show_bug.cgi?id=273414
Comment 1 Sergey V. Udaltsov 2011-05-22 14:16:59 UTC
What is the full configuration? I just tried - it worked for me. What are layouts, variants, options?
Comment 2 Andriy Rysin 2011-05-22 15:15:36 UTC
I think original bug report (from Fedora 14) had this command:
/usr/bin/setxkbmap -model applealu_iso -layout us,us -variant altgr-intl,
I was able to reproduce it on OpenSuse 11.4 with:
/usr/bin/setxkbmap -model applealu_iso -layout us,us -variant altgr-intl, -option -option grp:menu_toggle
Comment 3 Sergey V. Udaltsov 2011-05-22 15:19:45 UTC
Just tried. Works for me. Could you please check with the latest git?

Also, is it evdev driver/ruleset?
Comment 4 Andriy Rysin 2011-05-27 15:37:52 UTC
So just tried 2.2.1 (2.20110415git19a0026b5.fc15) from FC15 and hereĀ“s the outcome:
/usr/bin/setxkbmap -model applealu_iso
Success
/usr/bin/setxkbmap -model applealu_iso -layout us,us -variant ,
Success
/usr/bin/setxkbmap -model applealu_iso -layout us,us -variant ,intl
Success
/usr/bin/setxkbmap -model applealu_iso -layout us,us -variant intl,
Error loading new keyboard description
/usr/bin/setxkbmap -model pc104 -layout us,us -variant intl,
Success

So it seems like applealu_iso produces an error with using us(intl),us but is ok with reverse us,us(intl) and pc104 is ok with both
Comment 5 Sergey V. Udaltsov 2011-05-27 15:40:21 UTC
> So it seems like applealu_iso produces an error with using us(intl),us but is
> ok with reverse us,us(intl) and pc104 is ok with both
Do you use the stuff from git?

Try setxkbmap {all those options} -print
and setxkbmap {all those options} -print | xkbcomp - -xkb out.xkb
Comment 6 Andriy Rysin 2011-05-27 16:08:14 UTC
Didn't try from git yet

/usr/bin/setxkbmap -model applealu_iso -layout us,us -variant intl, -print
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete+numpad(mac)"  };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "macintosh_vndr/apple(alukbd)+macintosh_vndr/us(intl)+us:2+inet(evdev)+capslock(groupshift)+group(menu_toggle)"   };
        xkb_geometry  { include "macintosh(applealu_iso)"       };
};

/usr/bin/setxkbmap -model applealu_iso -layout us,us -variant intl, -print | xkbcomp - -xkb out.xkb
Warning:          Multiple default components in keypad
                  Using x11, ignoring pointerkeys
Error:            No Symbols named "intl" in the include file "macintosh_vndr/us"
                  Exiting
                  Abandoning symbols file "(null)"
Error:            symbols not defined in XkbWriteXKBSymbols
                  Output file "out.xkb" removed
Comment 7 Sergey V. Udaltsov 2011-05-27 16:52:44 UTC
> Error:            No Symbols named "intl" in the include file
> "macintosh_vndr/us"
This is the answer. If you're using mac layouts, you cannot use "general" ones. The simple workaround would be to copy intl section from symbols/us to symbols/macintosh_vndr/us.

I cannot think of easy way of fixing it except introducing very complex rules for vendors (up to every variant!)
Comment 8 Alexander Adam 2015-08-02 18:33:50 UTC
I just ran into the same issue.

How/where should I copy the intl section from symbols/us to symbols/macintosh_vndr/us?

Thank you in advance
Comment 9 Sergey V. Udaltsov 2015-09-15 14:06:12 UTC
Look at the symbols/us file, you'll find the section "intl". You can copy it so the file symbols/macintosh_vndr/us
Comment 10 GitLab Migration User 2018-12-28 00:37:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/issues/52.

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.