Hardware/Microsoft/Surface Go 2: Difference between revisions
m
no edit summary
(Add setup instructions) |
mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
!colspan="2" class="title"|Microsoft Surface Go 2 | !colspan="2" class="title"|Microsoft Surface Go 2 | ||
|- | |- | ||
|colspan="2"|[[File: | |colspan="2"|[[File:Microsoft surface go 2.jpg|frameless|256x256px|A Pinebook 11".]] | ||
|- | |- | ||
!Manufacturer | !Manufacturer | ||
Line 14: | Line 14: | ||
|- | |- | ||
!Bootloader | !Bootloader | ||
| | |64-bit GRUB | ||
|- | |- | ||
!Maintainer | !Maintainer | ||
Line 41: | Line 41: | ||
}; | }; | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight>After that rebuild your system and reboot the machine. | ||
If the LTE modem does not appear in your network manager directly, a [https://github.com/linux-surface/linux-surface/wiki/Surface-Go-2#enabling-the-lte-modem small workaround script] is required. Add this to your system configuration<syntaxhighlight lang="nix"> | |||
systemd.services.lte_modem_fix = let | |||
modemFixScript = pkgs.writeScriptBin "fix_lte_modem" '' | |||
#!${pkgs.stdenv.shell} | |||
echo -n 16383 > /sys/bus/usb/devices/2-3:1.0/net/wwp0s20f0u3/cdc_ncm/rx_max | |||
echo -n 16383 > /sys/bus/usb/devices/2-3:1.0/net/wwp0s20f0u3/cdc_ncm/tx_max | |||
echo -n 16384 > /sys/bus/usb/devices/2-3:1.0/net/wwp0s20f0u3/cdc_ncm/rx_max | |||
echo -n 16384 > /sys/bus/usb/devices/2-3:1.0/net/wwp0s20f0u3/cdc_ncm/tx_max | |||
''; | |||
in { | |||
wantedBy = ["multi-user.target"]; | |||
serviceConfig = { | |||
Type = "oneshot"; | |||
ExecStart = "${modemFixScript}/bin/fix_lte_modem"; | |||
}; | |||
}; | |||
systemd.services.ModemManager.wantedBy = ["multi-user.target"]; | |||
</syntaxhighlight>It will take a couple of seconds for the modem to appear. |