<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>Colas.Nahaboo.net - network</title>
    <subtitle>Colas Nahaboo personal site, with discussions about programming code, web and computing topics, surfing and SUPing, and various musings.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://colas.nahaboo.net/tags/network/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://colas.nahaboo.net"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-08-11T00:00:00+00:00</updated>
    <id>https://colas.nahaboo.net/tags/network/atom.xml</id>
    <entry xml:lang="en">
        <title>WoWLAN: waking a suspended Linux host over wifi</title>
        <published>2026-08-11T00:00:00+00:00</published>
        <updated>2026-08-11T00:00:00+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://colas.nahaboo.net/blog/wowlan-wake-a-suspended-linux-host-over-wifi/"/>
        <id>https://colas.nahaboo.net/blog/wowlan-wake-a-suspended-linux-host-over-wifi/</id>
        
        <content type="html" xml:base="https://colas.nahaboo.net/blog/wowlan-wake-a-suspended-linux-host-over-wifi/">&lt;h2 id=&quot;what&quot;&gt;What?&lt;a class=&quot;zola-anchor&quot; href=&quot;#what&quot; aria-label=&quot;Anchor link for: what&quot;&gt;🔗&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I stumbled recently upon the fact that you can wake up a suspended Linux host over &lt;strong&gt;wifi&lt;/strong&gt;, not just Ethernet. The feature is called &lt;strong&gt;WoWLAN&lt;/strong&gt; — Wake on Wireless LAN — and, I must say, it took me by surprise.&lt;/p&gt;
&lt;p&gt;For me wifi always needs some complex dance to re-connect, and I could not imagine it could work. But with WoWLAN the card keeps running in a low-power listening mode, still associated to the access point, and it can wake the whole host when it sees the right packet. It is the wireless sibling of Wake-on-LAN, with one obvious advantage: no cable.&lt;/p&gt;
&lt;h2 id=&quot;why&quot;&gt;Why?&lt;a class=&quot;zola-anchor&quot; href=&quot;#why&quot; aria-label=&quot;Anchor link for: why&quot;&gt;🔗&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I am setting up two cheap Linux &quot;AI servers&quot; at home:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a discounted &quot;Virtual Reality&quot; Zotac &quot;PC in a backpack&quot; with a GPU I have been using for two years now to transcribe confcalls with Whisper.&lt;/li&gt;
&lt;li&gt;a cheap PC with 3 GPUs of 12GB VRAM each made of spare parts and cheap second hand ones, to toy with the current ever-evolving crop of open source LLMs that are more powerful by the week.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I wanted to suspend them when not actively running AI, but wake them transparently on demand. And with wifi, this meant I could move their noise and heat easily away from my &quot;work&quot; room.&lt;/p&gt;
&lt;h2 id=&quot;how&quot;&gt;How?&lt;a class=&quot;zola-anchor&quot; href=&quot;#how&quot; aria-label=&quot;Anchor link for: how&quot;&gt;🔗&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Linux exposes it through the &lt;code&gt;iw&lt;/code&gt; tool, which is the least surprising part. Something like:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #4C4F69; background-color: #EFF1F5;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;iw phy0 wowlan show&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;sudo iw phy0 wowlan enable magic-packet disconnect&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can wake on a magic packet, on a disconnect, on any packet, or a combination. Then put the machine to sleep, fire a magic packet from your phone or another machine, and it comes back. A phone is the natural partner here — wake your laptop from the sofa before you even walk to it.&lt;/p&gt;
&lt;p&gt;Alas, it does not work everywhere. Not all wifi cards and drivers support it, so check the output of &lt;code&gt;iw list&lt;/code&gt; first. Intel cards are generally well served. The card also has to stay powered during suspend, so a machine that cuts wifi power entirely in suspend will not cooperate. And some distributions or NetworkManager versions may reset the setting at boot, so you may need to re-enable it — a systemd service fixes that.&lt;/p&gt;
&lt;p&gt;The tutorial I used, from &lt;a rel=&quot;noopener external&quot; target=&quot;_blank&quot; href=&quot;https://www.cyberciti.biz/faq/configure-wireless-wake-on-lan-for-linux-wifi-wowlan-card/&quot;&gt;cyberciti.biz: how to configure wireless wake-on-lan for your Linux wifi card&lt;/a&gt;, walks through the whole thing: finding your phy, checking support, enabling WoWLAN, and testing it with &lt;code&gt;echo mem &amp;gt; /sys/power/state&lt;/code&gt;. For the low-level details, the &lt;a rel=&quot;noopener external&quot; target=&quot;_blank&quot; href=&quot;https://wireless.docs.kernel.org/en/latest/en/users/documentation/wowlan.html&quot;&gt;official Linux wireless docs&lt;/a&gt; are the reference.&lt;/p&gt;
&lt;p&gt;The idea that a machine with a sleeping CPU is still listening for a whispered packet over the radio — and will wake up at a shout — amazes me more than it probably should :-)&lt;/p&gt;
</content>
        
    </entry>
</feed>
