wip: PinePhone: niri as the compositor, plus the shell work that follows #933
Closed
lytedev
wants to merge 81 commits from
pinephone-niri into main
pull from: pinephone-niri
merge into: lytedev:main
lytedev:main
lytedev:wip/texts-batch2-chat
lytedev:propose/nabu-core-voice-bridge
lytedev:propose/ambient-room-configuration
lytedev:propose/voice-service-configuration
lytedev:propose/ambient-room-admission
lytedev:wip/email-batch1-protocol
lytedev:propose/household-human-audience
lytedev:propose/voice-hub-bridge-access
lytedev:propose/household-review-admission
lytedev:parked/beefcake-forgejo-deploy-fix
lytedev:wip/andromeda-reminder-acp-guard
lytedev:wip/lyte-shell-long-press-setting
lytedev:wip/andromeda-reminder-acp-repair
lytedev:wip/andromeda-reminder-policy-cli
lytedev:wip/andromeda-voice-lifecycle
lytedev:wip/andromeda-history-chronology
lytedev:wip/andromeda-tui-input-fence
lytedev:wip/andromeda-web-route-integration
lytedev:wip/andromeda-terminal-stream-boundary
lytedev:wip/andromeda-conversation-access
lytedev:wip/andromeda-tui-navigation-fence
lytedev:wip/andromeda-terminal-core
lytedev:wip/andromeda-terminal-tui
lytedev:wip/andromeda-agent-authority-binding
lytedev:wip/andromeda-terminal-ui
lytedev:wip/andromeda-live-followup
lytedev:wip/andromeda-uncertainty-inspector
lytedev:wip/andromeda-inbox-batch-read
lytedev:wip/canonical-background-rollout
lytedev:wip/andromeda-push-replay-fence
lytedev:wip/andromeda-historical-effects-fence
lytedev:wip/andromeda-notification-epoch
lytedev:wip/andromeda-web-last-route
lytedev:wip/andromeda-local-view-lifecycle
lytedev:wip/andromeda-local-backend-completion
lytedev:wip/andromeda-local-ui-completion
lytedev:wip/andromeda-local-web-repair
lytedev:wip/rog5-cpuidle-on
lytedev:propose/canonical-matrix-boundary-hang
lytedev:propose/canonical-remote-admission-fence
lytedev:propose/canonical-background-action-integration
lytedev:wip/wow-frame-native
lytedev:propose/operator-host-startup-tests
lytedev:propose/canonical-assessment-fence
lytedev:propose/canonical-background-composition
lytedev:propose/operator-popup-transport
lytedev:propose/streaming-contract-gate
lytedev:wip/operator-persistence-foundation
lytedev:wip/canonical-inbox-ui-81cf
lytedev:wip/canonical-background-nix
lytedev:wip/inbox-consent-7e2a
lytedev:wip/canonical-background-extraction
lytedev:wip/passive-review-ledger-0525
lytedev:wip/incident-nightly-bounded-validation
lytedev:wip/presentation-receiver-9e42
lytedev:parked/app-chat-guard-1121
lytedev:wip/voice-default-backend-7c91
lytedev:wip/voice-python-default-c842
lytedev:wip/rog5-diag-mailbox-once
lytedev:wip/rog5-mailbox-attempt-guard
lytedev:propose/steamframe-phase0
lytedev:wip/lytewatch-mesh-radio-rx
lytedev:wip/lytewatch-mesh-gps
lytedev:wip/lytewatch-meshtastic-core
lytedev:wip/lytewatch-gps-ui
lytedev:wip/lytewatch-gnss-state
lytedev:parked/deploy-phone-back-swipes
lytedev:parked/sanctuary-x11-trial
lytedev:parked/lytewatch-wireless-verifier
lytedev:wip/steamdeck-moonlight-console
lytedev:wip/incident-nightly-native-scratch-tests
lytedev:wip/sanctuary-foxtrot-tailnet
lytedev:wip/incident-nightly-bounded-builds
lytedev:wip/sanctuary-moonlight-console
lytedev:wip/bigtower-wow-install
lytedev:wip/bigtower-moonlight
lytedev:parked/shell-data-location
lytedev:wip/dragon-lyte-shell-fixup
lytedev:wip/flake-check-diagnose
lytedev:wip/voxer-bridge
lytedev:propose/agent-inbox
lytedev:archive/unified-chat-local-texts
lytedev:parked/rog5-cpuidle-on-by-default
lytedev:propose/sunshine-battlenet-gamescope
lytedev:parked/lytewatch-ultra-steps
lytedev:parked/lyte-shell-calendar
lytedev:parked/lyte-shell-build-strategies
lytedev:parked/lyte-shell-launcher-icon-raster
lytedev:propose/web-apps
lytedev:parked/rog5-voxtype-phone
lytedev:parked/rog5-dictation
lytedev:propose/deck-awake-while-charging
lytedev:propose/private-query-adoption-ui
lytedev:propose/native-final-generation-observer
lytedev:propose/household-private-query-adoption
lytedev:propose/private-query-writer-notices
lytedev:propose/assistant-mvp-download-deferral
lytedev:propose/private-query-completion-observation
lytedev:propose/private-query-ui-continuation
lytedev:propose/household-private-query-proof
lytedev:propose/household-private-query-advisory
lytedev:parked/rog5-oled-remote-20261101
lytedev:propose/private-query-canonical-ingress
lytedev:propose/private-query-client-protocol
lytedev:propose/private-query-tool-guard
lytedev:propose/private-query-notice-tickets
lytedev:propose/native-agent-turn-diagnostics
lytedev:propose/private-query-handoff-purpose
lytedev:propose/tv-proxy-request-admission
lytedev:propose/household-typed-services
lytedev:propose/tv-seekable-private-stream
lytedev:propose/household-ha-intent-client
lytedev:propose/native-agent-real-service-proof
lytedev:propose/tv-native-video-proof
lytedev:propose/private-media-receiver-proof
lytedev:propose/jellyfin-private-playback
lytedev:propose/tv-player-private-stream
lytedev:propose/household-tool-task-authority
lytedev:propose/home-assistant-builtin-agent
lytedev:parked/rog5-personal-environment-20261101
lytedev:propose/voice-adapter-verification-status
lytedev:propose/andromeda-local-spoken-proof
lytedev:parked/rog5-core-terminal-20261101
lytedev:propose/gateway-session-failure-diagnostics
lytedev:propose/authenticated-voice-reply-playback
lytedev:propose/andromeda-spoken-agent-proof
lytedev:propose/preauthorized-agent-actions
lytedev:propose/voice-proof-compact-token
lytedev:propose/voice-adapter-e2e-proof
lytedev:propose/legacy-guarded-chat-tests
lytedev:propose/household-publication-proof
lytedev:propose/ambient-room-turn-authority
lytedev:propose/kanidm-root-class-attestation
lytedev:propose/voice-configuration-fixture-contract
lytedev:propose/household-person-attestation
lytedev:propose/publication-guards-followup
lytedev:propose/conversation-publication-guards
lytedev:propose/desktop-lock-capabilities
lytedev:propose/household-human-credential
lytedev:propose/household-human-extraction
lytedev:propose/desktop-multiplex-intent
lytedev:propose/compact-service-token-auth
lytedev:propose/household-discovery-revocation
lytedev:propose/kanidm-service-conformance
lytedev:propose/command-private-scope-sdk-tests
lytedev:propose/command-private-scope
lytedev:propose/conversation-actor-provenance
lytedev:propose/browser-provider-clock
lytedev:propose/approval-phone-actions
lytedev:propose/command-approval-identity
lytedev:propose/approval-browser-proof
lytedev:propose/agent-management-json-endpoint
lytedev:propose/voice-room-transport
lytedev:propose/foxtrot-mutable-experiments
lytedev:parked/rog5-boot-canonical-20261028
lytedev:propose/assistant-core-session-endpoint
lytedev:parked/rog5-responsive-settings-20261028
lytedev:propose/assistant-session-open-reason
lytedev:parked/rog5-canonical-host
lytedev:propose/slippi-host-nixpkgs
lytedev:propose/pi-scratch-extension
lytedev:propose/agent-workspace-inventory
lytedev:propose/claude-ws-project-layout
lytedev:propose/rascal-ram-rescue
lytedev:propose/assistant-pg-harness-fix
lytedev:propose/assistant-pg-runtime-normalized
lytedev:propose/assistant-postgres
lytedev:propose/assistant-pg-harness
lytedev:propose/assistant-pg-runtime
lytedev:propose/assistant-pg-state
lytedev:draft/andromeda-stream-transport
lytedev:propose/niri-start-locked
lytedev:propose/andromeda-web-nix
lytedev:propose/andromeda-web-shared
lytedev:propose/deploy-switch-default
lytedev:propose/lyte-suite-desktops
lytedev:propose/nix-cache-cascade-ephemeral-ports
lytedev:propose/household-kiosk
lytedev:propose/xwayland-ei-display-from-client
lytedev:propose/steamdeck-mouse-steps-aside-for-games
lytedev:propose/lpcamm-watch
lytedev:propose/agents-where-information-lives
lytedev:propose/tuwunel-1.9.2
lytedev:propose/admindevice-ssh-anything
lytedev:propose/kdeconnect-announce
lytedev:steamdeck-mgba
lytedev:propose/bc250-40cu-measured
lytedev:propose/pitft-stmpe-drive
lytedev:propose/foxtrot-multiboot-prep
lytedev:propose/kexec-luks-reboot
lytedev:propose/foxtrot-multiboot
lytedev:propose/foxtrot-vm-seats
lytedev:propose/calendar-alarms
lytedev:propose/spoof-reject-cleanups
lytedev:propose/finance-pipeline
lytedev:pinephone-buildable
lytedev:deck-pose-wip
lytedev:aerc-open-html
lytedev:local-auth-unification
lytedev:iamb-dotfiles
lytedev:esphome-music-panel
lytedev:wifi-system-profile
lytedev:gauge-history
lytedev:validate-gate-fix2
lytedev:validate-slot-no-hugepages
lytedev:pinephone-reenable
lytedev:cyberdeck-research
lytedev:git-anon-ratelimit
lytedev:headscale-basedomain
lytedev:ssd-fast-tier
lytedev:hold-impermanence-flip
lytedev:gate-dummy-eval
lytedev:zen-browser
lytedev:initrd-remote-unlock
lytedev:beefcake-rpool-backup
lytedev:sec-sso-plan
lytedev:sec-mail
lytedev:flab-lid-wake
lytedev:hearth-k8s
lytedev:zulip
lytedev:router-guest-vlan
lytedev:headscale-extra-records
lytedev:beefcake-advertise-lan
lytedev:push-qrvuuqmxtznv
lytedev:voxtype-per-host-model
lytedev:cleanup
lytedev:push-kanidm-opt-in
lytedev:push-voxtype-flake-fix
lytedev:push-uvqqknxvqlvy
lytedev:push-qrqsxkmlrevert
lytedev:fix-kanidm-uid-attr-map
lytedev:nix-on-droid
lytedev:self-hosted-dns
lytedev:fix-runner-tmpfs-revert
lytedev:beefcake-email
lytedev:beefcake-immich
lytedev:firefox-nightly-devedition
lytedev:fix-bun-baseline
lytedev:flab-stuff
lytedev:printer-sftp
lytedev:dragon-vr-monado
lytedev:clever-vr-game-clamshell-mode-detection
lytedev:wireguard-mesh
lytedev:rescue-beefcake-unpushed-nix
No reviewers
Labels
No labels
bug
enhancement
question
scary
upstream
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
lytedev/nix!933
Loading…
Reference in a new issue
No description provided.
Delete branch "pinephone-niri"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Moves the PinePhone session from phoc to niri, and everything that fell out of that.
The detail is in the commit messages; the shape of it:
/run/niriwas root-only0700while niri runs as the user, so it silently fell back to defaults — it warns once to its own stderr and carries on.Also picks up the shell's shade/slider work and the scrollable notification list.
CI
The format check was failing on
lib/modules/nixos/pinephone-shell.nix;368b508ffixes it. Note that nixfmt also rewrapped pre-existingresidentUnits/pathcode, so the file had drifted before this — the unformatted block just made the check notice. Whitespace only.Verified by running the exact CI command (
nix fmt -- --check .) in a cleanjj workspacerather than in a working tree, which gives a false positive here because of a./resultsymlink into a build output.Morph works, and force-dark works — confirmed on the device with a page that is normally white rendering dark. Two earlier conclusions here were wrong, and both were bad testing rather than bad software: - `su daniel` without `-` keeps the working directory at /root, which daniel cannot read, so the process died before exec. That produced exit status 0 with no output whatsoever — not even for `--help` — which reads exactly like a broken build. It is not. - It also needs writable XDG directories and a session bus. Missing either fails the same silent way. The wrapper now sets all of that, and passes --app-id, which it wants as a Lomiri application. Recorded in the wrapper because it is the sort of thing that costs an afternoon twice: do NOT add --disable-gpu. QtWebEngine logs "eglCreateContext: Requested version is not supported" on Mali-400 — Chromium asks for a GL version this GPU does not have — but it falls back and renders correctly. Disabling the GPU makes it exit immediately. Measured against Firefox on the same page: 494 MB across 3 processes versus 1139 MB across 11. Less than half the memory on a 3 GB phone, which is the whole reason for wanting it. Still imperfect: force-dark applies to page content, not Morph's own chrome, so the URL bar stays white. That is a Morph theming setting rather than a Chromium flag.pathbab249bd85On the first encrypted boot mesa logged Failed to create /home/daniel/.cache for shader cache (Required key not available)---disabling. and turned the cache off for the whole session, so lima recompiled every shader on every launch. On a Mali-400 that is not a rounding error, and this project grades itself on latency. The cause is the same one that broke mmsd and the carrier settings: the shell starts before the home directory can be unlocked, so anything it touches at startup has to live outside it. MESA_SHADER_CACHE_DIR now points at /var/cache/pinephone-shell. A shader cache is not private in the way messages are — it holds compiled shaders from the shell own baked assets — so putting it outside the encrypted home costs nothing that matters. Counted while looking: 1088 mmsd-tng failures in a single boot, worse than the 315 measured earlier, and two nixos-activation failures from the same root cause. Both are fixed by the home-unlocked target; this was the third thing hiding behind it.Setting MESA_SHADER_CACHE_DIR on the shell fixed the shell and left the compositor still logging phoc: Failed to create /home/daniel/.cache for shader cache (Required key not available)---disabling. on every boot. phoc starts from the session service, not from the transient unit the shell runs in, so it never saw the variable — and it is the one that matters most, since every frame goes through it. Measured across the reboot: the message went from 9 occurrences to 3, all three phoc. This should take it to none.PinePhone: niri as the compositor, plus the shell work that followsto wip: PinePhone: niri as the compositor, plus the shell work that followsReported as "it scrolls with swiping but I can't tap an app to launch" -- which read as vicinae ignoring touch. It was not. The taps arrived and vicinae acted on every one of them: App started with command line "foot" Failed to start app: "Child process set up failed: execve: No such file or directory" It runs as a systemd user unit, which inherits almost nothing, and its path held only vicinae and coreutils. Nothing it could offer to launch was on it. The failure goes to vicinae's own log and nowhere the user can see, so a tap that cannot find its binary looks exactly like a tap that never landed. Fixed with the profiles rather than a list of applications: a launcher launches whatever is installed, so enumerating packages would mean every application added anywhere else had to be remembered here too -- and forgetting would be silent in precisely the same way.e4bef01a7a5ef6b445ccThe engine runs. Launched on the device it started the Dart VM natively on arm64, registered its plugins, and failed for an application reason -- flet is a client and wants a server URL -- with no EGL or GL error anywhere: package:media_kit_libs_linux registered. os: linux arch: arm64 comp: no sim: no Unhandled Exception: In desktop mode Flet app URL must be provided That settles what docs/pinephone-shell-plan.md could not: the GLES 2.0 ceiling does not exclude Flutter the way it excludes bevy and wgpu. It does not settle that a frame reaches the panel. One line is suspicious -- `fl_compositor_render: assertion FL_IS_COMPOSITOR failed` -- and could be teardown noise from the early exit or the renderer never initialising. flet cannot tell us: without a URL it shows no window at all. plezy can, because it opens one unprompted. Cheap now that the engine and GTK stack are on the phone: four store paths rather than the gigabyte the first one cost. Also worth recording from getting here: `nix copy` moved the 1.1 GB closure on its first pass over the same link that had been failing a 57 MB rsync archive repeatedly. Per-path transfer is not an optimisation for this phone, it is the difference between finishing and not -- which is open question 8 in the plan, now answered.Pull request closed