nixOS/modules
Sergei Poljanski 285933d22c
networking: recover the WWAN modem after a cold boot
After a cold boot the EM160R-GL often drops off the PCIe link 10-20s
after probe ("Unable to change power state from D3cold to D0", config
space reads all-ones) and never brings up its wwan ports. Until now
only a hibernate/resume cycle brought it back.

An ACPI _RST through the PCI reset attribute does the same at runtime.
The rescan after it catches the firmware mid-boot, under the generic
Qualcomm ID 17cb:0304, which has no FCC unlock script, so ModemManager
fails with "Couldn't set operating mode". A second rescan once the
firmware is up gets 1eac:100d back and the modem enables normally.

The service does nothing if wwan ports show up within 60s of boot.
The recovery sequence was verified by hand on 7.2.11; the service has
not yet run it on a real cold boot.

Assisted-by: Claude:opus-5-5
2026-10-20 20:37:11 +04:00
..
boot.nix boot: switch to the latest kernel for the NPU 2026-10-20 20:37:11 +04:00
desktop.nix desktop: point the mutter touch patch at upstream !5375 2026-10-13 08:24:00 +04:00
gaming.nix gaming: enable gamescope 2026-07-11 22:36:01 +04:00
hostel-wifi.nix xray: config via sops, private routes spliced into sing-box at runtime 2026-07-14 12:24:33 +04:00
lemonade.nix lemonade: XDNA2 NPU LLM serving via nix-amd-ai 2026-07-11 22:36:00 +04:00
litecoin-pkg.nix litecoin: build against the default openssl 2026-10-20 20:36:55 +04:00
litecoin.nix litecoin: build against the default openssl 2026-10-20 20:36:55 +04:00
locale.nix timezones now managed by GNOME 2026-03-19 19:14:48 +03:00
networking.nix networking: recover the WWAN modem after a cold boot 2026-10-20 20:37:11 +04:00
ollama.nix ollama: model store to /mnt/data, gfx1151 rocBLAS workaround, load tuning 2026-07-11 22:36:00 +04:00
packages.nix packages: add forgejo-cli 2026-10-20 20:37:11 +04:00
power.nix power: update resume_offset for the current swapfile 2026-10-20 12:10:06 +04:00
programs.nix programs: use the GNOME pinentry for gpg-agent 2026-10-13 08:24:00 +04:00
security.nix security: keep rootless podman storage on /mnt/data 2026-10-16 05:41:54 +04:00
shell.nix shell: drop the nrs alias 2026-10-20 12:10:05 +04:00
sops.nix sops: introduce sops-nix (age), ssh keys from encrypted tarball, .example secrets 2026-07-14 12:24:21 +04:00
users.nix Xray + system-wide proxy config. Fuck Turkey DPI :3 2026-04-06 01:56:55 +03:00
wireguard.nix wireguard: wg0/wg2 configs from sops 2026-07-14 12:24:33 +04:00
xfce-x11-test.nix desktop: add an xfce-x11 boot specialisation 2026-10-20 12:10:06 +04:00
xray.nix xray: config via sops, private routes spliced into sing-box at runtime 2026-07-14 12:24:33 +04:00