Re: [systemd-devel] WiFi power-save with systemd-networkd

2026-03-03 Thread Mantas Mikulėnas
On Fri, Feb 27, 2026 at 3:46 PM Henti Smith  wrote:

> Good day all.
>
> I'm running Robots on Ubuntu 24.04 that are configured with netplan
> and Network Manager.
> As part of this we disable power saving on WiFi cards by adding
> [connection]
> wifi.powersave = 2
> to /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
>
> We have started testing switching to networkd and I cannot find a
> similar mechanism.
>
> I can create a unit that will run
> iw dev wlp9s0f0 set power_save off
> as a service to get around this.
>
> Is there a way that does not require an extra unit? a global
> configuration option ?
>

Create a udev rule which calls `iw set`.


Re: [systemd-devel] WiFi power-save with systemd-networkd

2026-02-27 Thread Henti Smith
Hi Silvio,

We're using wpa_supplicant. I was really just hoping that like
NetworkManager, sd-networkd can manage power management without having
to set module options.

For the time being we're going to stick with NetworkManager as users
need to use nmtui and nmcli to easily manage multiple wireless
connections with priority.

Kind regards
Henti

On Fri, 27 Feb 2026 at 20:08, killermoehre  wrote:
>
> Am Freitag, dem 27.02.2026 um 13:45 + schrieb Henti Smith:
> > Good day all.
> >
> > I'm running Robots on Ubuntu 24.04 that are configured with netplan
> > and Network Manager.
> > As part of this we disable power saving on WiFi cards by adding
> > [connection]
> > wifi.powersave = 2
> > to /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
> >
> > We have started testing switching to networkd and I cannot find a
> > similar mechanism.
> >
> > I can create a unit that will run
> > iw dev wlp9s0f0 set power_save off
> > as a service to get around this.
> >
> > Is there a way that does not require an extra unit? a global
> > configuration option ?
> >
> > Kind regards
> > Henti
>
> Hi Henti,
>
> which tooling do you use for establishing the link itself? iwd or
> wpa_supplicant? Those are responsible to set some hardware features.
>
> Because sd-networkd operates on a higher level, where NetworkManager
> configures the whole stack – with the help of iwd/wpa_supplicant.
>
> Regards
> Silvio


Re: [systemd-devel] WiFi power-save with systemd-networkd

2026-02-27 Thread killermoehre
Am Freitag, dem 27.02.2026 um 13:45 + schrieb Henti Smith:
> Good day all.
> 
> I'm running Robots on Ubuntu 24.04 that are configured with netplan
> and Network Manager.
> As part of this we disable power saving on WiFi cards by adding
> [connection]
> wifi.powersave = 2
> to /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
> 
> We have started testing switching to networkd and I cannot find a
> similar mechanism.
> 
> I can create a unit that will run
> iw dev wlp9s0f0 set power_save off
> as a service to get around this.
> 
> Is there a way that does not require an extra unit? a global
> configuration option ?
> 
> Kind regards
> Henti

Hi Henti,

which tooling do you use for establishing the link itself? iwd or
wpa_supplicant? Those are responsible to set some hardware features.

Because sd-networkd operates on a higher level, where NetworkManager
configures the whole stack – with the help of iwd/wpa_supplicant.

Regards
Silvio