PinePhone: Difference between revisions

From NixOS Wiki
imported>Tom
→‎Sensors: Note firmware re sensors
imported>Tom
Line 29: Line 29:
Working with:
Working with:
* [https://github.com/NixOS/mobile-nixos/pull/380 Use the more generic device path for modem]
* [https://github.com/NixOS/mobile-nixos/pull/380 Use the more generic device path for modem]
* the following:
* the following (pr: https://github.com/NixOS/nixpkgs/pull/131695/ ):


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">

Revision as of 15:16, 27 July 2021

PinePhone is supported by Mobile NixOS: https://mobile.nixos.org/devices/pine64-pinephone.html

This guide is discusses how to use Phosh, the GNOME-derived UI used by Librem and Mobian.

Requirements

This document assumes you have set up NixOS on your PinePhone, as described in https://mobile.nixos.org/getting-started.html

Beware known issues:

Status

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.

Browsing

Sound

Working. Settings -> Sound ->Output -> Configuration -> HiFi

Calling

Working with:

environment.systemPackages = [ pkgs.calls ];
services.dbus.packages = [ pkgs.callaudiod ];

Known issues:

SMS

Working with:

environment.systemPackages = [
  (pkgs.chatty.override {
    plugins = [
      pkgs.purple-mm-sms
    ];
  })
];

MMS

Unsupported. See https://source.puri.sm/Librem5/chatty/-/issues/30

Camera

pkgs.megapixels is the only known application to work with V4L2. Does not always start correctly, retrying might help.

Mobile internet

Working (imperative), with:

$ nmcli c add type gsm ifname cdc-wdm0 con-name $PROVIDER apn $APN

Other distributions use Librem's fork of gnome-control-center which has a mobile internet panel. https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/583 tracks the upstreaming of this functionality.

GPS

Working with GNOME applications with:

services.geoclue2.enable = true;
users.users.geoclue.extraGroups = [ "networkmanager" ];

Sensors

The acceleration, compass, and ambient light sensors provide working auto-rotation, compass, and auto-brightness, when you:

hardware.sensor.iio.enable = true;
hardware.firmware = [ config.mobile.device.firmware ];

Disk encryption

The boot process supports opening LUKS volumes. Creating an image to use LUKS is unsupported, but possible. The idea is to write an encrypted LUKS volume to the root partition, as described in https://github.com/NixOS/mobile-nixos/tree/master/examples/testing/qemu-cryptsetup.

Torch

See https://github.com/NixOS/mobile-nixos/issues/379

Bluetooth

Not working in Phosh settings. Works on Pinephones according to https://xnux.eu/devices/pine64-pinephone.html

I think we need to make the bluetooth kernel driver a module, so that the firmware has a chance to load.

Alarm clocks

Not working:

Recommended applications

See https://linmobapps.frama.io/ for a list of applications that behave well on small screens, including:

  • pkgs.gnome.gnome-chess
  • pkgs.gnome.gnome-podcasts
  • pkgs.portfolio-filemanager
  • pkgs.numberstation - TOTP

See also