Make Apple Keyboard Settings persistent in ../hid_apple/parameters/

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












i'm running Ubuntu 16.04 LTS and want to use an apple keyboard (wired). No i'm facing some problems whith making my custom settings permanent. I'm using the 'English internationl, AltGr dead keys' layout.



The keyboard has some keys swapped and i set the settings manually in the
/sys/module/hid_apple/parameters/ folder. I set fnmode to 2 , iso_layout to 0 and swap_opt_cmd to 1. After this everything works like intended. But after rebooting the settings are back to the default. I have to reset everything manually after each reboot.



For now i wrote a little shell script which would do it but that's not the best way i think.



How can i make these settings persistent?







share|improve this question
























    up vote
    0
    down vote

    favorite












    i'm running Ubuntu 16.04 LTS and want to use an apple keyboard (wired). No i'm facing some problems whith making my custom settings permanent. I'm using the 'English internationl, AltGr dead keys' layout.



    The keyboard has some keys swapped and i set the settings manually in the
    /sys/module/hid_apple/parameters/ folder. I set fnmode to 2 , iso_layout to 0 and swap_opt_cmd to 1. After this everything works like intended. But after rebooting the settings are back to the default. I have to reset everything manually after each reboot.



    For now i wrote a little shell script which would do it but that's not the best way i think.



    How can i make these settings persistent?







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      i'm running Ubuntu 16.04 LTS and want to use an apple keyboard (wired). No i'm facing some problems whith making my custom settings permanent. I'm using the 'English internationl, AltGr dead keys' layout.



      The keyboard has some keys swapped and i set the settings manually in the
      /sys/module/hid_apple/parameters/ folder. I set fnmode to 2 , iso_layout to 0 and swap_opt_cmd to 1. After this everything works like intended. But after rebooting the settings are back to the default. I have to reset everything manually after each reboot.



      For now i wrote a little shell script which would do it but that's not the best way i think.



      How can i make these settings persistent?







      share|improve this question












      i'm running Ubuntu 16.04 LTS and want to use an apple keyboard (wired). No i'm facing some problems whith making my custom settings permanent. I'm using the 'English internationl, AltGr dead keys' layout.



      The keyboard has some keys swapped and i set the settings manually in the
      /sys/module/hid_apple/parameters/ folder. I set fnmode to 2 , iso_layout to 0 and swap_opt_cmd to 1. After this everything works like intended. But after rebooting the settings are back to the default. I have to reset everything manually after each reboot.



      For now i wrote a little shell script which would do it but that's not the best way i think.



      How can i make these settings persistent?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 28 '17 at 13:24









      Ian

      134




      134




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          It appears that you can create /etc/modprobe.d/hid_apple.conf and add the entries you need fixing in there, such as,



          options hid_apple fnmode=2



          NB: This assumes the hid_apple module is already being loaded.






          share|improve this answer






















          • That did only work for logout and login again. After rebooting settings have been reset and i have to reload the module manually via modprobe ... which needs a keyboard to unload and reload it. Or another script ...
            – Ian
            Nov 29 '17 at 15:24










          • After the reboot, does /etc/modprobe.d/hid_apple.conf still exist, and does it still have that line in it?
            – EightBitTony
            Nov 29 '17 at 21:03










          • It is still there.. Do i have to enable loading in any way?
            – Ian
            Dec 3 '17 at 11:14










          • I found it... I had to add hid_apple to /etc/modules. After doing this the correct settings have been set. Thanks!
            – Ian
            Dec 3 '17 at 11:48











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407501%2fmake-apple-keyboard-settings-persistent-in-hid-apple-parameters%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          It appears that you can create /etc/modprobe.d/hid_apple.conf and add the entries you need fixing in there, such as,



          options hid_apple fnmode=2



          NB: This assumes the hid_apple module is already being loaded.






          share|improve this answer






















          • That did only work for logout and login again. After rebooting settings have been reset and i have to reload the module manually via modprobe ... which needs a keyboard to unload and reload it. Or another script ...
            – Ian
            Nov 29 '17 at 15:24










          • After the reboot, does /etc/modprobe.d/hid_apple.conf still exist, and does it still have that line in it?
            – EightBitTony
            Nov 29 '17 at 21:03










          • It is still there.. Do i have to enable loading in any way?
            – Ian
            Dec 3 '17 at 11:14










          • I found it... I had to add hid_apple to /etc/modules. After doing this the correct settings have been set. Thanks!
            – Ian
            Dec 3 '17 at 11:48















          up vote
          0
          down vote



          accepted










          It appears that you can create /etc/modprobe.d/hid_apple.conf and add the entries you need fixing in there, such as,



          options hid_apple fnmode=2



          NB: This assumes the hid_apple module is already being loaded.






          share|improve this answer






















          • That did only work for logout and login again. After rebooting settings have been reset and i have to reload the module manually via modprobe ... which needs a keyboard to unload and reload it. Or another script ...
            – Ian
            Nov 29 '17 at 15:24










          • After the reboot, does /etc/modprobe.d/hid_apple.conf still exist, and does it still have that line in it?
            – EightBitTony
            Nov 29 '17 at 21:03










          • It is still there.. Do i have to enable loading in any way?
            – Ian
            Dec 3 '17 at 11:14










          • I found it... I had to add hid_apple to /etc/modules. After doing this the correct settings have been set. Thanks!
            – Ian
            Dec 3 '17 at 11:48













          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          It appears that you can create /etc/modprobe.d/hid_apple.conf and add the entries you need fixing in there, such as,



          options hid_apple fnmode=2



          NB: This assumes the hid_apple module is already being loaded.






          share|improve this answer














          It appears that you can create /etc/modprobe.d/hid_apple.conf and add the entries you need fixing in there, such as,



          options hid_apple fnmode=2



          NB: This assumes the hid_apple module is already being loaded.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 4 '17 at 7:55

























          answered Nov 28 '17 at 13:39









          EightBitTony

          15.5k34353




          15.5k34353











          • That did only work for logout and login again. After rebooting settings have been reset and i have to reload the module manually via modprobe ... which needs a keyboard to unload and reload it. Or another script ...
            – Ian
            Nov 29 '17 at 15:24










          • After the reboot, does /etc/modprobe.d/hid_apple.conf still exist, and does it still have that line in it?
            – EightBitTony
            Nov 29 '17 at 21:03










          • It is still there.. Do i have to enable loading in any way?
            – Ian
            Dec 3 '17 at 11:14










          • I found it... I had to add hid_apple to /etc/modules. After doing this the correct settings have been set. Thanks!
            – Ian
            Dec 3 '17 at 11:48

















          • That did only work for logout and login again. After rebooting settings have been reset and i have to reload the module manually via modprobe ... which needs a keyboard to unload and reload it. Or another script ...
            – Ian
            Nov 29 '17 at 15:24










          • After the reboot, does /etc/modprobe.d/hid_apple.conf still exist, and does it still have that line in it?
            – EightBitTony
            Nov 29 '17 at 21:03










          • It is still there.. Do i have to enable loading in any way?
            – Ian
            Dec 3 '17 at 11:14










          • I found it... I had to add hid_apple to /etc/modules. After doing this the correct settings have been set. Thanks!
            – Ian
            Dec 3 '17 at 11:48
















          That did only work for logout and login again. After rebooting settings have been reset and i have to reload the module manually via modprobe ... which needs a keyboard to unload and reload it. Or another script ...
          – Ian
          Nov 29 '17 at 15:24




          That did only work for logout and login again. After rebooting settings have been reset and i have to reload the module manually via modprobe ... which needs a keyboard to unload and reload it. Or another script ...
          – Ian
          Nov 29 '17 at 15:24












          After the reboot, does /etc/modprobe.d/hid_apple.conf still exist, and does it still have that line in it?
          – EightBitTony
          Nov 29 '17 at 21:03




          After the reboot, does /etc/modprobe.d/hid_apple.conf still exist, and does it still have that line in it?
          – EightBitTony
          Nov 29 '17 at 21:03












          It is still there.. Do i have to enable loading in any way?
          – Ian
          Dec 3 '17 at 11:14




          It is still there.. Do i have to enable loading in any way?
          – Ian
          Dec 3 '17 at 11:14












          I found it... I had to add hid_apple to /etc/modules. After doing this the correct settings have been set. Thanks!
          – Ian
          Dec 3 '17 at 11:48





          I found it... I had to add hid_apple to /etc/modules. After doing this the correct settings have been set. Thanks!
          – Ian
          Dec 3 '17 at 11:48


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407501%2fmake-apple-keyboard-settings-persistent-in-hid-apple-parameters%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay