PinePhone: Difference between revisions
imported>Tom m →SMS: chatty no longer needs a plugin as of 0.4 |
mNo edit summary |
||
| (8 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
[https://en.wikipedia.org/wiki/PinePhone PinePhone] is supported by [https://mobile.nixos.org/ Mobile NixOS]: https://mobile.nixos.org/devices/pine64-pinephone.html | [https://en.wikipedia.org/wiki/PinePhone PinePhone] is supported by [https://mobile.nixos.org/ Mobile NixOS]: https://mobile.nixos.org/devices/pine64-pinephone.html | ||
This guide is discusses how to use [https:// | This guide is discusses how to use [https://phosh.mobi/ Phosh], the GNOME-derived UI used by Librem and Mobian. | ||
== Requirements == | == Requirements == | ||
| Line 13: | Line 13: | ||
=== Phosh === | === Phosh === | ||
Working with: | |||
<syntaxhighlight lang="nix"> | |||
xserver.desktopManager.phosh = { | |||
enable = true; | |||
user = "alice"; | |||
group = "users"; | |||
# for better compatibility with x11 applications | |||
phocConfig.xwayland = "immediate"; | |||
}; | |||
</syntaxhighlight> | |||
=== Battery === | === Battery === | ||
| Line 33: | Line 43: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.calls.enable = true; | programs.calls.enable = true; | ||
# Optional but recommended. https://github.com/NixOS/nixpkgs/pull/162894 | |||
systemd.services.ModemManager.serviceConfig.ExecStart = [ | |||
"" # clear ExecStart from upstream unit file. | |||
"${pkgs.modemmanager}/sbin/ModemManager --test-quick-suspend-resume" | |||
]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 51: | Line 66: | ||
* Front camera works out-of-the-box. | * Front camera works out-of-the-box. | ||
* Back camera | * Back camera works, but autofocus does not ( https://github.com/NixOS/mobile-nixos/issues/393 ) | ||
=== Mobile internet === | === Mobile internet === | ||
| Line 94: | Line 107: | ||
config.mobile.device.firmware | config.mobile.device.firmware | ||
]; | ]; | ||
</syntaxhighlight> | |||
=== Modem firmware === | |||
Per https://wiki.pine64.org/wiki/PineModems#Upgrade/switch_firmware_via_fwupd , fwupd can be used to flash the FOSS Modem firmware. To enable fwupd: | |||
<syntaxhighlight lang="nix"> | |||
services.fwupd.enable = true; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 113: | Line 133: | ||
* [https://wiki.postmarketos.org/wiki/PINE64_PinePhone_(pine64-pinephone) PostmarketOS's Pinephone docs] | * [https://wiki.postmarketos.org/wiki/PINE64_PinePhone_(pine64-pinephone) PostmarketOS's Pinephone docs] | ||
* [https://gitlab.com/postmarketOS/pmaports/-/tree/master/device/main/device-pine64-pinephone PostmarketOS's Pinephone config] | * [https://gitlab.com/postmarketOS/pmaports/-/tree/master/device/main/device-pine64-pinephone PostmarketOS's Pinephone config] | ||
[[Category: Hardware]] | |||