How to Set Different Layouts for 2 Keyboards












0















According to this page I can have two different physical keyboards attached and have a different layout on each of them. I need German on one, and Danish on the other, so this would be a very elegant solution.



However, my xinput command output does not show me two keyboards; the wireless Logitech K230 keyboard is listed as a pointer because it uses the Logitech "Unifying Receiver" that also receives my wireless mouse. Also, the USB keyboard is shown as id 11 and 12?



$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech K230 id=8 [slave pointer (2)]
⎜ ↳ Logitech M705 id=9 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Sleep Button id=7 [slave keyboard (3)]
↳ UVC Camera (046d:0991) id=10 [slave keyboard (3)]
↳ SINO WEALTH USB Keyboard id=11 [slave keyboard (3)]
↳ SINO WEALTH USB Keyboard id=12 [slave keyboard (3)]


I have discovered that I can use setxkbmap on device 3 to affect both keyboards at once.
setxkbmap -device 11 at also affects device 8 (the Logitech keyboard).
setxkbmap -device 8 dk works - but only until I type anything at all on the USB keyboard! From then on, both keyboards have the at layout.




  • How do I assign different layouts to these two keyboards?

  • Why does using one keyboard affect the other keyboard?


This unanswered question from 2017 says that "Apparently, the [Logitech keyboard] has no layout of [its] own... it just uses the layout of the last keyboard that has been used." Since nobody has answered there, perhaps that is really an unsolvable problem? Perhaps specific to Logitech?










share|improve this question





























    0















    According to this page I can have two different physical keyboards attached and have a different layout on each of them. I need German on one, and Danish on the other, so this would be a very elegant solution.



    However, my xinput command output does not show me two keyboards; the wireless Logitech K230 keyboard is listed as a pointer because it uses the Logitech "Unifying Receiver" that also receives my wireless mouse. Also, the USB keyboard is shown as id 11 and 12?



    $ xinput
    ⎡ Virtual core pointer id=2 [master pointer (3)]
    ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
    ⎜ ↳ Logitech K230 id=8 [slave pointer (2)]
    ⎜ ↳ Logitech M705 id=9 [slave pointer (2)]
    ⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Power Button id=6 [slave keyboard (3)]
    ↳ Sleep Button id=7 [slave keyboard (3)]
    ↳ UVC Camera (046d:0991) id=10 [slave keyboard (3)]
    ↳ SINO WEALTH USB Keyboard id=11 [slave keyboard (3)]
    ↳ SINO WEALTH USB Keyboard id=12 [slave keyboard (3)]


    I have discovered that I can use setxkbmap on device 3 to affect both keyboards at once.
    setxkbmap -device 11 at also affects device 8 (the Logitech keyboard).
    setxkbmap -device 8 dk works - but only until I type anything at all on the USB keyboard! From then on, both keyboards have the at layout.




    • How do I assign different layouts to these two keyboards?

    • Why does using one keyboard affect the other keyboard?


    This unanswered question from 2017 says that "Apparently, the [Logitech keyboard] has no layout of [its] own... it just uses the layout of the last keyboard that has been used." Since nobody has answered there, perhaps that is really an unsolvable problem? Perhaps specific to Logitech?










    share|improve this question



























      0












      0








      0








      According to this page I can have two different physical keyboards attached and have a different layout on each of them. I need German on one, and Danish on the other, so this would be a very elegant solution.



      However, my xinput command output does not show me two keyboards; the wireless Logitech K230 keyboard is listed as a pointer because it uses the Logitech "Unifying Receiver" that also receives my wireless mouse. Also, the USB keyboard is shown as id 11 and 12?



      $ xinput
      ⎡ Virtual core pointer id=2 [master pointer (3)]
      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
      ⎜ ↳ Logitech K230 id=8 [slave pointer (2)]
      ⎜ ↳ Logitech M705 id=9 [slave pointer (2)]
      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
      ↳ Power Button id=6 [slave keyboard (3)]
      ↳ Sleep Button id=7 [slave keyboard (3)]
      ↳ UVC Camera (046d:0991) id=10 [slave keyboard (3)]
      ↳ SINO WEALTH USB Keyboard id=11 [slave keyboard (3)]
      ↳ SINO WEALTH USB Keyboard id=12 [slave keyboard (3)]


      I have discovered that I can use setxkbmap on device 3 to affect both keyboards at once.
      setxkbmap -device 11 at also affects device 8 (the Logitech keyboard).
      setxkbmap -device 8 dk works - but only until I type anything at all on the USB keyboard! From then on, both keyboards have the at layout.




      • How do I assign different layouts to these two keyboards?

      • Why does using one keyboard affect the other keyboard?


      This unanswered question from 2017 says that "Apparently, the [Logitech keyboard] has no layout of [its] own... it just uses the layout of the last keyboard that has been used." Since nobody has answered there, perhaps that is really an unsolvable problem? Perhaps specific to Logitech?










      share|improve this question
















      According to this page I can have two different physical keyboards attached and have a different layout on each of them. I need German on one, and Danish on the other, so this would be a very elegant solution.



      However, my xinput command output does not show me two keyboards; the wireless Logitech K230 keyboard is listed as a pointer because it uses the Logitech "Unifying Receiver" that also receives my wireless mouse. Also, the USB keyboard is shown as id 11 and 12?



      $ xinput
      ⎡ Virtual core pointer id=2 [master pointer (3)]
      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
      ⎜ ↳ Logitech K230 id=8 [slave pointer (2)]
      ⎜ ↳ Logitech M705 id=9 [slave pointer (2)]
      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
      ↳ Power Button id=6 [slave keyboard (3)]
      ↳ Sleep Button id=7 [slave keyboard (3)]
      ↳ UVC Camera (046d:0991) id=10 [slave keyboard (3)]
      ↳ SINO WEALTH USB Keyboard id=11 [slave keyboard (3)]
      ↳ SINO WEALTH USB Keyboard id=12 [slave keyboard (3)]


      I have discovered that I can use setxkbmap on device 3 to affect both keyboards at once.
      setxkbmap -device 11 at also affects device 8 (the Logitech keyboard).
      setxkbmap -device 8 dk works - but only until I type anything at all on the USB keyboard! From then on, both keyboards have the at layout.




      • How do I assign different layouts to these two keyboards?

      • Why does using one keyboard affect the other keyboard?


      This unanswered question from 2017 says that "Apparently, the [Logitech keyboard] has no layout of [its] own... it just uses the layout of the last keyboard that has been used." Since nobody has answered there, perhaps that is really an unsolvable problem? Perhaps specific to Logitech?







      usb keyboard keyboard-layout logitech setxkbdmap






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 6 at 20:39







      Torben Gundtofte-Bruun

















      asked Jan 6 at 15:09









      Torben Gundtofte-BruunTorben Gundtofte-Bruun

      4,4402463102




      4,4402463102






















          0






          active

          oldest

          votes











          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%2f1107447%2fhow-to-set-different-layouts-for-2-keyboards%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f1107447%2fhow-to-set-different-layouts-for-2-keyboards%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

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei