Skip to content

omamobile-device-tegu 0.2.24: Wi-Fi power save on, over Omarchy's laptop setting - #937

Open
W4HO-ham wants to merge 1 commit into
derekross:mainfrom
W4HO-ham:tegu-wifi-powersave
Open

W4HO-ham wants to merge 1 commit into
derekross:mainfrom
W4HO-ham:tegu-wifi-powersave

Conversation

@W4HO-ham

Copy link
Copy Markdown
Contributor

Omarchy turns Wi-Fi power save off in /etc/NetworkManager/conf.d/omarchy-wifi-powersave.conf (wifi.powersave = 2, owned by omarchy-settings 4.5). That is a fair trade on a laptop, but on the Pixel 9a it costs about 10 mA of the screen-off drain. NetworkManager reads /etc last, in name order, so a package file in /usr/lib can't override it. This package's file is in /etc and sorts after Omarchy's (zz-omamobile-tegu-wifi-powersave.conf, wifi.powersave=3), and it is a backup file so an owner's edit stays.

On my palmtop (Pixel 9a, daily kernel, modem up, screen off, cable in with the charger's buck off, 60 s means, power save toggled with iw in turn):

power save drain
off 285 and 295 mA
on 279 and 279 mA

The Wi-Fi interrupt rate didn't change (about 206 a second either way), so that's the radio's own sleeping. With the file in place, NetworkManager set power save on at the next connect, connectivity read full, and pings over wlan0 answered (5 of 5, about 22 ms).

One thing for the Pixel 6 Pro. omamobile-device-raven ships wifi.powersave=3 in /usr/lib/NetworkManager/conf.d/omamobile-raven-wifi-powersave.conf. On an install with Omarchy 4.5, Omarchy's /etc file is read after it and wins, so raven's power save is off too. I haven't changed raven here. If this one is the right shape, raven's file can move the same way.

Tests: test/all checks that the file sets power save on and nothing else, that it sorts after Omarchy's, and its backup entry. tests/all and tools/pr-check origin/main pass.

The version is 0.2.24, after #912 (0.2.22) and #922 (0.2.23); whichever goes first, the rest get a one-line rebase.

…top setting

Omarchy turns Wi-Fi power save off in /etc/NetworkManager/conf.d/omarchy-wifi-powersave.conf, a fair trade on a laptop. On the Pixel 9a it costs about 10 mA of the screen-off drain. NetworkManager reads /etc last and in name order, so the package's file is in /etc and sorts after Omarchy's, as a backup file.

Tested: test/all checks the file's one setting, its order after Omarchy's and its backup entry. On a Pixel 9a with the modem up and the screen off, cable in with the charger's buck off, 60 s means: 285 and 295 mA with power save off against 279 and 279 mA with it on; with the file, NetworkManager set power save on at the next connect, and pings over Wi-Fi answered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant