ALTGR (CTR ALT) on old macbook 13" unibody 2006 (model 1,1 intel core duo 32 bits) keyboard?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I just installed Lubuntu 17.10 on a an old MacBook (unibody 2006). The keyboard as no Alt or AltGr key on the right, and a Alt and Ctrl keys on the left.



If I press Ctrl+Alt and a key , I don't get the alternative characters like [ ] | and many more.



Is there a way to get these characters with different key combinations ? Or maybe to map a key that I don't use often (like the right super key) to be the AltGr key ?










share|improve this question































    1















    I just installed Lubuntu 17.10 on a an old MacBook (unibody 2006). The keyboard as no Alt or AltGr key on the right, and a Alt and Ctrl keys on the left.



    If I press Ctrl+Alt and a key , I don't get the alternative characters like [ ] | and many more.



    Is there a way to get these characters with different key combinations ? Or maybe to map a key that I don't use often (like the right super key) to be the AltGr key ?










    share|improve this question



























      1












      1








      1


      1






      I just installed Lubuntu 17.10 on a an old MacBook (unibody 2006). The keyboard as no Alt or AltGr key on the right, and a Alt and Ctrl keys on the left.



      If I press Ctrl+Alt and a key , I don't get the alternative characters like [ ] | and many more.



      Is there a way to get these characters with different key combinations ? Or maybe to map a key that I don't use often (like the right super key) to be the AltGr key ?










      share|improve this question
















      I just installed Lubuntu 17.10 on a an old MacBook (unibody 2006). The keyboard as no Alt or AltGr key on the right, and a Alt and Ctrl keys on the left.



      If I press Ctrl+Alt and a key , I don't get the alternative characters like [ ] | and many more.



      Is there a way to get these characters with different key combinations ? Or maybe to map a key that I don't use often (like the right super key) to be the AltGr key ?







      keyboard shortcut-keys keyboard-layout macbook






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 9 at 21:38









      Kevin Bowen

      14.8k155970




      14.8k155970










      asked Mar 3 '18 at 23:19









      jptsetungjptsetung

      1568




      1568






















          1 Answer
          1






          active

          oldest

          votes


















          0














          So I figured it out.



          First of all, I had picked the wrong keyboard model I think (you do that from the "Keyboard Layout Handler Settings" in Lubuntu). I chose "applealu_iso" instead of "macbook79" (internaltional variant of us "macbook78").



          But that didn't solve the problem. As there is no "3rd modifier key" (also called ALTGR or RALT for Right Alt) on the macbook pro keyboard.
          But there is 2 Super keys ("Apple" option keys, the equivalent of the "Windows" key on PC keyboards). Those 2 super keys have the same effect but I never use the right Super key. So I decided remap the right Super key as my 3rd modifier key (ALTGR/RALT).



          So here is how to do so (this article heped a lot https://medium.com/@damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450
          ).



          Use the following command in a terminal to get the key codes xev -event keyboard
          On my macbook I pressed the right super key, and the code returned was 134
          Press CTRL C to exit, then edit this file /usr/share/X11/xkb/keycodes/evdev and reverse the codes for RALT and RWIN this way :



          <RALT> = 134; //modif old code was 108;
          <RWIN> = 108; //modif old code was 134;


          (Note there's probably a cleaner way to do this, editing the /usr/share/X11/xkb/keycodes/macintosh file for example, that contains the mappings for the macbook78/macbook79 models, or even better create a new keyboard model, in order this is not overwritten by updates)



          To apply your modifications, try to type "sexkbmap fr" or "setxkbmap us" depending on the layout you use, or reboot if you're not sure.



          And that's it, it works now, I can get all my 3rd modifier keys (with the SHIFT variant as well).






          share|improve this answer


























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011663%2faltgr-ctr-alt-on-old-macbook-13-unibody-2006-model-1-1-intel-core-duo-32-bit%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            So I figured it out.



            First of all, I had picked the wrong keyboard model I think (you do that from the "Keyboard Layout Handler Settings" in Lubuntu). I chose "applealu_iso" instead of "macbook79" (internaltional variant of us "macbook78").



            But that didn't solve the problem. As there is no "3rd modifier key" (also called ALTGR or RALT for Right Alt) on the macbook pro keyboard.
            But there is 2 Super keys ("Apple" option keys, the equivalent of the "Windows" key on PC keyboards). Those 2 super keys have the same effect but I never use the right Super key. So I decided remap the right Super key as my 3rd modifier key (ALTGR/RALT).



            So here is how to do so (this article heped a lot https://medium.com/@damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450
            ).



            Use the following command in a terminal to get the key codes xev -event keyboard
            On my macbook I pressed the right super key, and the code returned was 134
            Press CTRL C to exit, then edit this file /usr/share/X11/xkb/keycodes/evdev and reverse the codes for RALT and RWIN this way :



            <RALT> = 134; //modif old code was 108;
            <RWIN> = 108; //modif old code was 134;


            (Note there's probably a cleaner way to do this, editing the /usr/share/X11/xkb/keycodes/macintosh file for example, that contains the mappings for the macbook78/macbook79 models, or even better create a new keyboard model, in order this is not overwritten by updates)



            To apply your modifications, try to type "sexkbmap fr" or "setxkbmap us" depending on the layout you use, or reboot if you're not sure.



            And that's it, it works now, I can get all my 3rd modifier keys (with the SHIFT variant as well).






            share|improve this answer






























              0














              So I figured it out.



              First of all, I had picked the wrong keyboard model I think (you do that from the "Keyboard Layout Handler Settings" in Lubuntu). I chose "applealu_iso" instead of "macbook79" (internaltional variant of us "macbook78").



              But that didn't solve the problem. As there is no "3rd modifier key" (also called ALTGR or RALT for Right Alt) on the macbook pro keyboard.
              But there is 2 Super keys ("Apple" option keys, the equivalent of the "Windows" key on PC keyboards). Those 2 super keys have the same effect but I never use the right Super key. So I decided remap the right Super key as my 3rd modifier key (ALTGR/RALT).



              So here is how to do so (this article heped a lot https://medium.com/@damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450
              ).



              Use the following command in a terminal to get the key codes xev -event keyboard
              On my macbook I pressed the right super key, and the code returned was 134
              Press CTRL C to exit, then edit this file /usr/share/X11/xkb/keycodes/evdev and reverse the codes for RALT and RWIN this way :



              <RALT> = 134; //modif old code was 108;
              <RWIN> = 108; //modif old code was 134;


              (Note there's probably a cleaner way to do this, editing the /usr/share/X11/xkb/keycodes/macintosh file for example, that contains the mappings for the macbook78/macbook79 models, or even better create a new keyboard model, in order this is not overwritten by updates)



              To apply your modifications, try to type "sexkbmap fr" or "setxkbmap us" depending on the layout you use, or reboot if you're not sure.



              And that's it, it works now, I can get all my 3rd modifier keys (with the SHIFT variant as well).






              share|improve this answer




























                0












                0








                0







                So I figured it out.



                First of all, I had picked the wrong keyboard model I think (you do that from the "Keyboard Layout Handler Settings" in Lubuntu). I chose "applealu_iso" instead of "macbook79" (internaltional variant of us "macbook78").



                But that didn't solve the problem. As there is no "3rd modifier key" (also called ALTGR or RALT for Right Alt) on the macbook pro keyboard.
                But there is 2 Super keys ("Apple" option keys, the equivalent of the "Windows" key on PC keyboards). Those 2 super keys have the same effect but I never use the right Super key. So I decided remap the right Super key as my 3rd modifier key (ALTGR/RALT).



                So here is how to do so (this article heped a lot https://medium.com/@damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450
                ).



                Use the following command in a terminal to get the key codes xev -event keyboard
                On my macbook I pressed the right super key, and the code returned was 134
                Press CTRL C to exit, then edit this file /usr/share/X11/xkb/keycodes/evdev and reverse the codes for RALT and RWIN this way :



                <RALT> = 134; //modif old code was 108;
                <RWIN> = 108; //modif old code was 134;


                (Note there's probably a cleaner way to do this, editing the /usr/share/X11/xkb/keycodes/macintosh file for example, that contains the mappings for the macbook78/macbook79 models, or even better create a new keyboard model, in order this is not overwritten by updates)



                To apply your modifications, try to type "sexkbmap fr" or "setxkbmap us" depending on the layout you use, or reboot if you're not sure.



                And that's it, it works now, I can get all my 3rd modifier keys (with the SHIFT variant as well).






                share|improve this answer















                So I figured it out.



                First of all, I had picked the wrong keyboard model I think (you do that from the "Keyboard Layout Handler Settings" in Lubuntu). I chose "applealu_iso" instead of "macbook79" (internaltional variant of us "macbook78").



                But that didn't solve the problem. As there is no "3rd modifier key" (also called ALTGR or RALT for Right Alt) on the macbook pro keyboard.
                But there is 2 Super keys ("Apple" option keys, the equivalent of the "Windows" key on PC keyboards). Those 2 super keys have the same effect but I never use the right Super key. So I decided remap the right Super key as my 3rd modifier key (ALTGR/RALT).



                So here is how to do so (this article heped a lot https://medium.com/@damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450
                ).



                Use the following command in a terminal to get the key codes xev -event keyboard
                On my macbook I pressed the right super key, and the code returned was 134
                Press CTRL C to exit, then edit this file /usr/share/X11/xkb/keycodes/evdev and reverse the codes for RALT and RWIN this way :



                <RALT> = 134; //modif old code was 108;
                <RWIN> = 108; //modif old code was 134;


                (Note there's probably a cleaner way to do this, editing the /usr/share/X11/xkb/keycodes/macintosh file for example, that contains the mappings for the macbook78/macbook79 models, or even better create a new keyboard model, in order this is not overwritten by updates)



                To apply your modifications, try to type "sexkbmap fr" or "setxkbmap us" depending on the layout you use, or reboot if you're not sure.



                And that's it, it works now, I can get all my 3rd modifier keys (with the SHIFT variant as well).







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 4 '18 at 11:31

























                answered Mar 4 '18 at 11:20









                jptsetungjptsetung

                1568




                1568






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011663%2faltgr-ctr-alt-on-old-macbook-13-unibody-2006-model-1-1-intel-core-duo-32-bit%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Human spaceflight

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                    張江高科駅