From 09a57c426901ea746a6a5d77aeb61c7ebabcf6de Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 19 Jul 2024 23:44:36 +0100 Subject: [PATCH] disable the gps engine lock --- configuration.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration.nix b/configuration.nix index 2e1ef40..7949bc2 100644 --- a/configuration.nix +++ b/configuration.nix @@ -139,6 +139,9 @@ SUBSYSTEM=="wwan", ENV{ID_MM_CANDIDATE}="1" LABEL="mm_candidate_end" +# unlock the gps engine +SUBSYSTEM=="wwan", ENV{DEVNAME}=="/dev/wwan0qmi0", ENV{DEVTYPE}=="wwan_port", \ + RUN+="${pkgs.libqmi}/bin/qmicli -pd $env{DEVNAME} --loc-set-engine-lock=none" ''; systemd.services.ModemManager = {