How to keep Wake On WirelessLan enabled after shutdown / reboot











up vote
1
down vote

favorite












My Latitude E7240 running Ubuntu 18.10 has Wireless Wake On Lan capability and the option is enabled in the BIOS.



While the Wake On Lan is working like a charm with ethtool, the Wireless variant gives me problems.



With iw dev the wireless shows up as phy0.



If I enable the WoWLan with sudo iw phy0 wowlan enable magic-packet
and check it with iw phy0 wowlan show it states: 'WoWLAN is enabled'.



However, after rebooting my PC and checking iw phy0 wowlan show it states: 'WoWLAN is disabled'.



So my question is: How to keep the WoWLAN enabled.










share|improve this question


























    up vote
    1
    down vote

    favorite












    My Latitude E7240 running Ubuntu 18.10 has Wireless Wake On Lan capability and the option is enabled in the BIOS.



    While the Wake On Lan is working like a charm with ethtool, the Wireless variant gives me problems.



    With iw dev the wireless shows up as phy0.



    If I enable the WoWLan with sudo iw phy0 wowlan enable magic-packet
    and check it with iw phy0 wowlan show it states: 'WoWLAN is enabled'.



    However, after rebooting my PC and checking iw phy0 wowlan show it states: 'WoWLAN is disabled'.



    So my question is: How to keep the WoWLAN enabled.










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      My Latitude E7240 running Ubuntu 18.10 has Wireless Wake On Lan capability and the option is enabled in the BIOS.



      While the Wake On Lan is working like a charm with ethtool, the Wireless variant gives me problems.



      With iw dev the wireless shows up as phy0.



      If I enable the WoWLan with sudo iw phy0 wowlan enable magic-packet
      and check it with iw phy0 wowlan show it states: 'WoWLAN is enabled'.



      However, after rebooting my PC and checking iw phy0 wowlan show it states: 'WoWLAN is disabled'.



      So my question is: How to keep the WoWLAN enabled.










      share|improve this question













      My Latitude E7240 running Ubuntu 18.10 has Wireless Wake On Lan capability and the option is enabled in the BIOS.



      While the Wake On Lan is working like a charm with ethtool, the Wireless variant gives me problems.



      With iw dev the wireless shows up as phy0.



      If I enable the WoWLan with sudo iw phy0 wowlan enable magic-packet
      and check it with iw phy0 wowlan show it states: 'WoWLAN is enabled'.



      However, after rebooting my PC and checking iw phy0 wowlan show it states: 'WoWLAN is disabled'.



      So my question is: How to keep the WoWLAN enabled.







      wireless 18.04 power-management 18.10 wakeonlan






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 at 20:22









      Loocat Mha Bhatt

      61




      61






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Create a file: /etc/rc.local



          #!/bin/sh
          iw phy0 wowlan enable magic-packet
          exit 0


          Save the file and make it executable with this command:



          sudo chmod +x /etc/rc.local


          Reboot and test WoWLAN






          share|improve this answer





















          • Thanks, the WoWLAN works now after reboot. The PC wakes up while in Sleep, Suspend and hibernate when the magic package is sent. Still the PC doesn't start when turned off.
            – Loocat Mha Bhatt
            Nov 21 at 21:36













          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',
          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%2f1094928%2fhow-to-keep-wake-on-wirelesslan-enabled-after-shutdown-reboot%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








          up vote
          0
          down vote













          Create a file: /etc/rc.local



          #!/bin/sh
          iw phy0 wowlan enable magic-packet
          exit 0


          Save the file and make it executable with this command:



          sudo chmod +x /etc/rc.local


          Reboot and test WoWLAN






          share|improve this answer





















          • Thanks, the WoWLAN works now after reboot. The PC wakes up while in Sleep, Suspend and hibernate when the magic package is sent. Still the PC doesn't start when turned off.
            – Loocat Mha Bhatt
            Nov 21 at 21:36

















          up vote
          0
          down vote













          Create a file: /etc/rc.local



          #!/bin/sh
          iw phy0 wowlan enable magic-packet
          exit 0


          Save the file and make it executable with this command:



          sudo chmod +x /etc/rc.local


          Reboot and test WoWLAN






          share|improve this answer





















          • Thanks, the WoWLAN works now after reboot. The PC wakes up while in Sleep, Suspend and hibernate when the magic package is sent. Still the PC doesn't start when turned off.
            – Loocat Mha Bhatt
            Nov 21 at 21:36















          up vote
          0
          down vote










          up vote
          0
          down vote









          Create a file: /etc/rc.local



          #!/bin/sh
          iw phy0 wowlan enable magic-packet
          exit 0


          Save the file and make it executable with this command:



          sudo chmod +x /etc/rc.local


          Reboot and test WoWLAN






          share|improve this answer












          Create a file: /etc/rc.local



          #!/bin/sh
          iw phy0 wowlan enable magic-packet
          exit 0


          Save the file and make it executable with this command:



          sudo chmod +x /etc/rc.local


          Reboot and test WoWLAN







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 at 20:34









          LeonidMew

          385215




          385215












          • Thanks, the WoWLAN works now after reboot. The PC wakes up while in Sleep, Suspend and hibernate when the magic package is sent. Still the PC doesn't start when turned off.
            – Loocat Mha Bhatt
            Nov 21 at 21:36




















          • Thanks, the WoWLAN works now after reboot. The PC wakes up while in Sleep, Suspend and hibernate when the magic package is sent. Still the PC doesn't start when turned off.
            – Loocat Mha Bhatt
            Nov 21 at 21:36


















          Thanks, the WoWLAN works now after reboot. The PC wakes up while in Sleep, Suspend and hibernate when the magic package is sent. Still the PC doesn't start when turned off.
          – Loocat Mha Bhatt
          Nov 21 at 21:36






          Thanks, the WoWLAN works now after reboot. The PC wakes up while in Sleep, Suspend and hibernate when the magic package is sent. Still the PC doesn't start when turned off.
          – Loocat Mha Bhatt
          Nov 21 at 21:36




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094928%2fhow-to-keep-wake-on-wirelesslan-enabled-after-shutdown-reboot%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

          Ellipse (mathématiques)

          Quarter-circle Tiles

          Mont Emei