PinePhone: Difference between revisions

imported>Tom
m SMS: chatty no longer needs a plugin as of 0.4
Klinger (talk | contribs)
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://puri.sm/posts/phosh-overview/ Phosh], the GNOME-derived UI used by Librem and Mobian.
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 ===
https://github.com/NixOS/mobile-nixos/pull/352 is a PR to add a phosh-demo to mobile-nixos. The author of this wiki page uses this PR.
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 requires:
* Back camera works, but autofocus does not ( https://github.com/NixOS/mobile-nixos/issues/393 )
** https://github.com/NixOS/mobile-nixos/pull/392
** https://github.com/NixOS/mobile-nixos/issues/393 tracks autofocus support. The camera is usable without this.


=== 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]]