{"id":9912,"date":"2022-12-14T05:02:08","date_gmt":"2022-12-14T04:02:08","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=9912"},"modified":"2022-12-14T05:02:10","modified_gmt":"2022-12-14T04:02:10","slug":"how-to-configure-wireless-wake-on-lan-for-linux-wifi-card","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2022\/12\/14\/how-to-configure-wireless-wake-on-lan-for-linux-wifi-card\/","title":{"rendered":"How to configure wireless wake-on-lan for Linux WiFi card"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-style-large is-layout-flow wp-block-quote-is-layout-flow\"><p><em><a href=\"https:\/\/www.cyberciti.biz\/faq\/configure-wireless-wake-on-lan-for-linux-wifi-wowlan-card\/\">How to configure wireless wake-on-lan for Linux WiFi card &#8211; nixCraft<\/a><\/em><\/p><\/blockquote>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.cyberciti.biz\/faq\/configure-wireless-wake-on-lan-for-linux-wifi-wowlan-card\/\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2022\/12\/Configure-wireless-wake-on-lan-for-Linux-WiFi-card-using-systemd.png?w=910&#038;ssl=1\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<blockquote>\n<p><span class=\"drop_cap\">I<\/span> have Network Attached Storage (NAS) server that backups all my devices. However, I am having a hard time with my Linux-powered laptop. I cannot back up my laptop\/computer when it is in suspended or sleep mode. How do I configure my wifi on a laptop to accept a wireless wol when using an Intel-based wifi card? How can I configure wireless wake-on-lan on Linux?<br \/><span id=\"more-146542\"><\/span><br \/><a href=\"https:\/\/www.cyberciti.biz\/tips\/linux-send-wake-on-lan-wol-magic-packets.html\">Wake-on-LAN (WOL) is an Ethernet networking standard<\/a> that allows a server to be turned on by a network message. You must send \u2018magic packets to wake-on-lan enabled ethernet adapters and motherboards to switch on the called systems.<\/p>\n<p><br \/>Wake on Wireless (WoWLAN or WoW) is a feature to allow the Linux system to go into a low-power state while the wireless NIC remains active and stay connected to an AP. This quick tutorial shows how to enable WoWLAN or WoW (wireless wake-on-lan) mode with a wifi card installed in a Linux based laptop or desktop computer.<\/p>\n<p class=\"note\">Please note that not all WiFi cards or Linux drivers support the WoWLAN feature.<\/p>\n<h2>Syntax to configure wireless wake-on-lan under Linux<\/h2>\n<p>You need to use the iw command to see or manipulate wireless devices and their configuration on a Linux based system. The syntax is:<br \/><code class=\"\" data-line=\"\">iw command&lt;br \/&gt;\niw [options] command<\/code><\/p>\n<h2>List all wireless devices and their capabilities<\/h2>\n<p>Type the following command:<br \/><code class=\"\" data-line=\"\"><\/code><\/p>\n<p><code class=\"\" data-line=\"\">iw list&lt;br \/&gt;\n<\/code><code class=\"\" data-line=\"\">iw list | more&lt;br \/&gt;\n<\/code><\/p>\n<p><code class=\"\" data-line=\"\">iw dev<\/code><br \/>Sample outputs:<\/p>\n<pre>phy#0\n\tInterface wlp3s0\n\t\tifindex 3\n\t\twdev 0x1\n\t\taddr 6c:88:14:ff:36:d0\n\t\ttype managed\n\t\tchannel 149 (5745 MHz), width: 40 MHz, center1: 5755 MHz\n\t\ttxpower 15.00 dBm\n<\/pre>\n<p>Please note down phy0.<\/p>\n<h2>Find out the current status of your wowlan<\/h2>\n<p>Open the terminal app and type the following command to find out wowlan status:<br \/><code class=\"\" data-line=\"\"><\/code><\/p>\n<p><code class=\"\" data-line=\"\">iw phy0 wowlan show<\/code><br \/>Sample outputs:<br \/><code class=\"\" data-line=\"\">WoWLAN is disabled<\/code><\/p>\n<h2>How to enable wowlan<\/h2>\n<p>The syntax is:<br \/><code class=\"\" data-line=\"\">sudo iw phy {phyname} wowlan enable {option}<\/code><br \/>Where,<\/p>\n<ol>\n<li>{phyname} \u2013 Use iw dev to get phy name.<\/li>\n<li>{option} \u2013 Can be any, disconnect, magic-packet and so on.<\/li>\n<\/ol>\n<p>For example, I am going to enable wowlan for phy0:<br \/><code class=\"\" data-line=\"\"><\/code><\/p>\n<p><code class=\"\" data-line=\"\">sudo iw phy0 wowlan enable any<\/code><br \/>OR<br \/><code class=\"\" data-line=\"\"><\/code><code class=\"\" data-line=\"\">sudo iw phy0 wowlan enable magic-packet disconnect<\/code><br \/>Verify it:<br \/><code class=\"\" data-line=\"\"><\/code><\/p>\n<p><code class=\"\" data-line=\"\">iw phy0 wowlan show<\/code><br \/>Sample outputs:<\/p>\n<pre>WoWLAN is enabled:\n * wake up on disconnect\n * wake up on magic packet\n<\/pre>\n<h2>Test it<\/h2>\n<p>Put your laptop in suspend or sleep mode and send ping request or magic packet from your nas server:<br \/><code class=\"\" data-line=\"\"><\/code><\/p>\n<p><code class=\"\" data-line=\"\">sudo sh -c &#039;echo mem &gt; \/sys\/power\/state&#039;<\/code><br \/>Send ping request from your nas server using the <a title=\"UNIX ping Command Examples\" href=\"https:\/\/www.cyberciti.biz\/faq\/unix-ping-command-examples\/?utm_source=Linux_Unix_Command&amp;utm_medium=faq&amp;utm_campaign=nixcmd\">ping command<\/a> <code class=\"\" data-line=\"\"><\/code><code class=\"\" data-line=\"\">ping your-laptop-ip<\/code><br \/>OR <a href=\"https:\/\/www.cyberciti.biz\/faq\/apple-os-x-wake-on-lancommand-line-utility\/\">send magic packet using wakeonlan command<\/a> :<br \/><code class=\"\" data-line=\"\"><\/code><code class=\"\" data-line=\"\">wakeonlan laptop-mac-address-here&lt;br \/&gt;\n<\/code><\/p>\n<p><code class=\"\" data-line=\"\">etherwake MAC-Address-Here<\/code><\/p>\n<h2>How do I disable WoWLAN?<\/h2>\n<p>The syntax is:<br \/><code class=\"\" data-line=\"\"><\/code><\/p>\n<p><code class=\"\" data-line=\"\">sudo phy {phyname} wowlan disable&lt;br \/&gt;\n<\/code><\/p>\n<p><code class=\"\" data-line=\"\">sudo phy0 wowlan disable<\/code><\/p>\n<h2>How to enable iw settings after reboot?<\/h2>\n<p>Edit or update or create a file named <kbd>\/etc\/rc.local<\/kbd> as follows:<br \/><code class=\"\" data-line=\"\">sudo vim \/etc\/rc.local<\/code><br \/>Update it as follows:<\/p>\n<div class=\"wp-geshi-highlight-wrap5\">\n<div class=\"wp-geshi-highlight-wrap4\">\n<div class=\"wp-geshi-highlight-wrap3\">\n<div class=\"wp-geshi-highlight-wrap2\">\n<div class=\"wp-geshi-highlight-wrap\">\n<div class=\"wp-geshi-highlight\">\n<div class=\"bash\">\n<pre class=\"de1\"><span class=\"co0\">#!\/bin\/bash<\/span>\n<span class=\"sy0\">\/<\/span>sbin<span class=\"sy0\">\/<\/span>iw phy0 wowlan <span class=\"kw3\">enable<\/span> magic-packet disconnect\n<span class=\"kw3\">exit<\/span> <span class=\"nu0\">0<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><a href=\"https:\/\/www.cyberciti.biz\/faq\/linux-unix-vim-save-and-quit-command\/\" target=\"_blank\" rel=\"noopener noreferrer\">Save and close the file in vim<\/a>. Run the chmod command to set correct permissions:<br \/><code class=\"\" data-line=\"\"><\/code><\/p>\n<p><code class=\"\" data-line=\"\">sudo chmod +x \/etc\/rc.local<\/code><br \/>Under systemd rc-local will gets pulled automatically into multi-user.target by systemd-rc-local-generator if \/etc\/rc.local is executable. For example, to view this file, run:<br \/><code class=\"\" data-line=\"\"><\/code><\/p>\n<p><code class=\"\" data-line=\"\">sudo systemctl edit --full rc-local<\/code><br \/>See <a title=\"How to enable rc.local shell script on systemd while booting Linux system\" href=\"https:\/\/www.cyberciti.biz\/faq\/how-to-enable-rc-local-shell-script-on-systemd-while-booting-linux-system\/\">how to enable rc.local shell script on systemd while booting Linux system<\/a> for more info.<\/p>\n<h2>Conclusion<\/h2>\n<p>You learned how to configure wireless (Wi-Fi) for wake-on-lan under Linux operaring system using the iw command. For more info read the iw command <a href=\"https:\/\/wireless.wiki.kernel.org\/en\/users\/documentation\/iw\" target=\"_blank\" rel=\"noopener noreferrer\">man page<\/a>:<br \/><code class=\"\" data-line=\"\"><\/code><\/p>\n<p><code class=\"\" data-line=\"\">man iw&lt;br \/&gt;\n<\/code><code class=\"\" data-line=\"\">iw --help<\/code><\/p>\n<\/blockquote>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">How to configure wireless wake-on-lan for Linux WiFi card &#8211; nixCraft<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2022\/12\/14\/how-to-configure-wireless-wake-on-lan-for-linux-wifi-card\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72,278],"tags":[330,331],"class_list":["post-9912","post","type-post","status-publish","format-standard","hentry","category-documentations","category-tricks","tag-wakeonlan","tag-wifi"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-2zS","jetpack-related-posts":[{"id":7642,"url":"https:\/\/monodes.com\/predaelli\/2020\/09\/23\/create-wireless-access-point\/","url_meta":{"origin":9912,"position":0},"title":"Create wireless access point","author":"Paolo Redaelli","date":"2020-09-23","format":false,"excerpt":"It is as simple as issuing nmcli dev wifi hotspot\u00a0 ssid MyHotSpot password \"test1234\" Actually ysdx in the answer given on Unix & Linux Stack Exchange added the interface name (for example ifname wlp4s0 ) but when you have only one wifi interface it is not necessary: nmcli is smart\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7612,"url":"https:\/\/monodes.com\/predaelli\/2020\/09\/18\/internet-connection-sharing-with-networkmanager-fedora-magazine\/","url_meta":{"origin":9912,"position":1},"title":"Internet connection sharing with NetworkManager &#8211; Fedora Magazine","author":"Paolo Redaelli","date":"2020-09-18","format":"link","excerpt":"Internet connection sharing with NetworkManager - Fedora Magazine Or nmtui, nmcli and other commands for the shell wizard Internet connection sharing with NetworkManager Posted by Beniamino Galvani on June 17, 2020 NetworkManager is the network configuration daemon used on Fedora and many other distributions. It provides a consistent way to\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3266,"url":"https:\/\/monodes.com\/predaelli\/2017\/08\/11\/linux-surprises-me-linux\/","url_meta":{"origin":9912,"position":2},"title":"Linux surprises me &#8211; linux","author":"Paolo Redaelli","date":"2017-08-11","format":"link","excerpt":"https:\/\/www.reddit.com\/r\/linux\/comments\/6ssm33\/linux_surprises_me\/?st=j66o5uma&sh=0cf94ffe Today, Linux surprised me, and in itself, that's surprising. I've been using it since 1998, and switched to Linux as my primary OS around 2005, so I'm pretty familiar with its capabilities. Today though, I was working on my main desktop PC, an aging \"woodsman's axe\" box running an\u2026","rel":"","context":"In &quot;GNU\/Linux&quot;","block_context":{"text":"GNU\/Linux","link":"https:\/\/monodes.com\/predaelli\/category\/gnulinux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3267,"url":"https:\/\/monodes.com\/predaelli\/2017\/08\/11\/linux-surprises-me-linux-2\/","url_meta":{"origin":9912,"position":3},"title":"Linux surprises me &#8211; linux","author":"Paolo Redaelli","date":"2017-08-11","format":"link","excerpt":"https:\/\/www.reddit.com\/r\/linux\/comments\/6ssm33\/linux_surprises_me\/?st=j66o5uma&sh=0cf94ffe Today, Linux surprised me, and in itself, that's surprising. I've been using it since 1998, and switched to Linux as my primary OS around 2005, so I'm pretty familiar with its capabilities. Today though, I was working on my main desktop PC, an aging \"woodsman's axe\" box running an\u2026","rel":"","context":"In &quot;GNU\/Linux&quot;","block_context":{"text":"GNU\/Linux","link":"https:\/\/monodes.com\/predaelli\/category\/gnulinux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5160,"url":"https:\/\/monodes.com\/predaelli\/2019\/01\/30\/pinebook-pro-hackable-arm64-linux-laptop-for-200-bald-nerd\/","url_meta":{"origin":9912,"position":4},"title":"Pinebook Pro \u2013 Hackable ARM64 Linux Laptop for $200 | Bald Nerd","author":"Paolo Redaelli","date":"2019-01-30","format":false,"excerpt":": Pinebook Pro \u2013 Hackable ARM64 Linux Laptop for $200 | Bald Nerd It looks quite promising! Pinebook Pro\u00a0System\u00a0Specifications 14\u2033 1080p IPS LCD panel 64GB of eMMC storage Black magnesium alloy body MicroSD card slot Digital video output via USB-C Audio aux out \/ UART USB 3.0 and USB 2.0\u2026","rel":"","context":"In &quot;Hardware&quot;","block_context":{"text":"Hardware","link":"https:\/\/monodes.com\/predaelli\/category\/hardware\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/01\/Pinebook-Pro-System-Board-v1-1024x768.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/01\/Pinebook-Pro-System-Board-v1-1024x768.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/01\/Pinebook-Pro-System-Board-v1-1024x768.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2019\/01\/Pinebook-Pro-System-Board-v1-1024x768.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2547,"url":"https:\/\/monodes.com\/predaelli\/2017\/06\/02\/forwarding-audio-elsewhere-on-linux\/","url_meta":{"origin":9912,"position":5},"title":"Forwarding audio elsewhere on Linux","author":"Paolo Redaelli","date":"2017-06-02","format":false,"excerpt":"These days I've been attending to an online course that require me not to do anything else in the user session beside watching and listening. Actually I've been able to pass two checks while I've been hacking on another machine, just listening and watching now and then. But it's boring\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/9912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=9912"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/9912\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=9912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=9912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=9912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}