1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-08-15 15:00:28 +03:00
Commit Graph

410 Commits

Author SHA1 Message Date
Chuang Zhu
472073a517
lvgui: don't treat warnings as errors (#729) 2024-07-17 17:04:39 -04:00
Samuel Dionne-Riel
c2e76ef834 XXX: lvgui: 2024-03-25 -> 2024-03-27 2024-03-29 20:09:47 -04:00
Samuel Dionne-Riel
1c29d2d643 boot/init: Disable device wait when set to 0 2024-03-27 20:31:10 -04:00
Samuel Dionne-Riel
4f75d3ef5a boot/splash: Handle big BGRT 2024-03-25 16:53:44 -04:00
Samuel Dionne-Riel
be67fcb8b4 boot/splash: Allow using the Mobile NixOS logo with BGRT
The fade-in/out will still use the BGRT when present.

This is something I believe is fair, and should require the user to
completely disable BGRT usage if undesirable.
2024-03-25 16:53:44 -04:00
Samuel Dionne-Riel
d92e6cf44a boot/splash: Add initial support for BGRT 2024-03-25 16:53:44 -04:00
Samuel Dionne-Riel
3ac1698f3a lvgui: 2024-03-09 -> 2024-03-25 2024-03-25 16:53:40 -04:00
Samuel Dionne-Riel
95f818dec3 lvgui: Add bmp bindings and support 2024-03-25 16:28:38 -04:00
Samuel Dionne-Riel
271187b8d3 lvgui: 2023-05-01 -> 2024-03-09 2024-03-09 01:17:10 -05:00
Samuel Dionne-Riel
1e06638c17 boot/init: SwitchRoot: prep for stage-0 deprecation
For now, only moves the code to make it obvious which parts are for
stage-0.
2024-03-06 21:25:42 -05:00
Samuel Dionne-Riel
cbc35593db boot/init: Make generation facts and paths easier to work with
Mainly, this aims to reduce the impedance mismatch between path
as-seen-in-stage-1 and paths-according-to-stage-2.

Now, two helpers, one using the other, are used to properly telegraph
the intent when using a file path.

With this, reading `nixos-version` was also fixed.
2024-03-06 21:25:42 -05:00
Samuel Dionne-Riel
e6c87f4d8f boot/init: Make symlink handling easier to grok 2024-02-28 22:51:39 -05:00
Samuel Dionne-Riel
c98de5f525 boot/init: Simplify generation listing code
This still needs more, but it's coming...
2024-02-28 22:34:21 -05:00
Samuel Dionne-Riel
26bff46678 boot/init: Be more verbose about selected generation
Also improve the comment
2024-02-28 22:23:01 -05:00
Samuel Dionne-Riel
489b89e980 boot/init: Drop "Mobile" from generation button labels 2024-02-28 21:34:36 -05:00
Samuel Dionne-Riel
7f2aa84982 boot/init: Drop largely unused @target member in SwitchRoot 2024-02-28 21:14:29 -05:00
chayleaf
b3ec466c5a remove deprecated URL literals and unused args
- get rid of deprecated URL literals (see RFC 45)
- remove unused derivation args
- remove one instance of unused rec, and two unused variable in let's
2023-10-17 19:11:41 +07:00
Samuel Dionne-Riel
9f8b5f2c4f lvgui: 2023-03-11 -> 2023-05-01 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
b6a3a7a427 boot/splash: Use symlink for logo artwork
This will allow a single build to be made, instead of one build per
logo.
2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
3cb45e2fb1 boot/splash: Make theme configurable 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
447dcddd9c boot/splash: Fix for mono theme 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
3521834abd boot/splash: Make colours configurable
I try to convert strings to integers so the configuration is less
awkward. Nix doesn't do `0x______` integers. So since colours are never
written in base ten, let's allow strings.
2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
d8a0a89d05 boot/lvgui: Add support for mono theme 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
c1a295ade8 mruby-lvgui-native: Add support for mono theme 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
f3772a48fc lvgui: Make progress bar colours configurable 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
d734a57aa5
Merge pull request #613 from samueldr-wip/feature/kernel-logo-as-early-splash
Use the kernel logo feature as early splash
2023-05-05 16:11:08 -04:00
Samuel Dionne-Riel
f5d45fb35f
Merge pull request #583 from samueldr-wip/feature/misc-cleanups
boot: Misc. cleanups
2023-05-05 15:51:33 -04:00
Samuel Dionne-Riel
ffdc031b2c boot/init: Make FBDev a no-op
... this way, the framebuffer content is not evicted by a needless mode
change.

AFAIK none of our targets will be affected by this change. The
framebuffer should already be setup with the correct mode. This was
holdover from early early cargo-culting about the framebuffer.

I have verified on a few devices, it does not worsen their behaviour.
2023-05-03 21:51:19 -04:00
Samuel Dionne-Riel
93397d6708 lvgui: use (charge now ÷ full) for battery as a fallback
Some drivers may expose those without exposing capacity.
2023-05-03 21:31:33 -04:00
Samuel Dionne-Riel
3959529d85 boot/init: Fix mount regression from option added for systemd-boot
A NixOS change for systemd-stage-1 added an `x-` mount option, which is
not handled well by busybox mount.

 - 1b39491326

The same option was not an issue for the shell-script stage-1 as it
already stripped `x-` mount options

 - 8be838254b/nixos/modules/system/boot/stage-1-init.sh (L365-L366)

Thus it's assumed safe to strip the options the same way.
2023-03-22 16:21:22 -04:00
Samuel Dionne-Riel
cd0786ae66 lvgui: 2023-03-02 -> 2023-03-11
Fixes issue with normal orientation displays and touch.
2023-03-11 15:45:38 -05:00
Samuel Dionne-Riel
9a0c317a02
Merge pull request #587 from samueldr-wip/feature/crypsetup-args
boot/init: Honor some cryptsetup arguments
2023-03-03 16:39:24 -05:00
Samuel Dionne-Riel
bf43312242 boot/init: Add support for bypassWorkqueues 2023-03-03 13:55:04 -05:00
Samuel Dionne-Riel
5945a7e957 boot/init: Add support for allowDiscards
Fixes #578
2023-03-03 13:55:04 -05:00
Samuel Dionne-Riel
a66bd290fe boot/init: Handle additional cryptsetup arguments 2023-03-03 13:55:04 -05:00
Samuel Dionne-Riel
2d3a3d67dc boot/init: Pass down luks device arguments 2023-03-03 13:55:04 -05:00
Samuel Dionne-Riel
ea12a06e01 boot/init: Add a quirk to wait on USB devices to settle
This is useful for devices with USB, where input devices may take a
short while before showing up.

With this, external USB keyboard passphrase input is reliable in the
limited testing I did.
2023-03-03 10:32:47 -05:00
Samuel Dionne-Riel
d7abb16068
Merge pull request #585 from samueldr-wip/fix/nix-cflags-compile
Fix/nix cflags compile
2023-03-03 08:17:59 -05:00
Samuel Dionne-Riel
cb559d2aaa lvgui: Drop NIX_CFLAGS_COMPILE arg
I don't recalle why `X_DISPLAY_MISSING` was needed at some point, but it
must not be anymore since it works fine without.

Also drop the needless stdenv adapter.
2023-03-02 20:02:02 -05:00
Samuel Dionne-Riel
c6a0b27970
Merge pull request #584 from samueldr-wip/feature/lvgui-2023-03-02
lvgui: 2023-02-25 -> 2023-03-02
2023-03-02 19:54:20 -05:00
Samuel Dionne-Riel
21eb2dece8 lvgui: 2023-02-25 -> 2023-03-02 2023-03-02 19:42:06 -05:00
Samuel Dionne-Riel
50bd07f404 boot/init: Tear down udevd
This fixes amdgpu suspend/resume on Steam Deck.
2023-03-02 14:05:55 -05:00
Samuel Dionne-Riel
518d22bbf3 boot/init: Use a private procfs mount for mount points
Better than doing the wildly weird thing of mounting/unmounting to peek,
and it doesn't leave a stray mountpoint after switch_root.

Why not depend on `/proc` or keep it mounted? Mainly because of the
mount options. I don't want to deal with it when it is being handled
through the mount tasks.
2023-03-02 00:23:00 -05:00
Samuel Dionne-Riel
bc8ccc2424 boot/init: Prefer System.symlink
This one is logged.
2023-03-01 21:56:03 -05:00
Samuel Dionne-Riel
6a36919d68 lvgui: 2023-02-11 -> 2023-02-25
See https://github.com/mobile-nixos/lvgui/pull/12
2023-02-25 19:36:39 -05:00
Samuel Dionne-Riel
8784004e32 boot/splash: Ensure keyboard can't cover the UI too much
On a 1920×1080p the keyboard was basically full height (1056 out of
1080 pixels high).

With this, the UI will be cut-off a bit at the top, but it won't be
entirely unusable!
2023-02-12 13:43:06 -05:00
Samuel Dionne-Riel
d3867f605e boot/gui: Fix keyboard not hiding when using physical keyboard 2023-02-12 13:43:06 -05:00
Samuel Dionne-Riel
21d1ccfa75 boot/gui: Support up/down keys for recovery menu 2023-02-12 13:43:06 -05:00
Samuel Dionne-Riel
161fdf731b lvgui: 2022-10-26 -> 2023-02-11 2023-02-12 13:43:06 -05:00
Samuel Dionne-Riel
5f6e965add boot/splash: Add traceback info 2022-10-26 19:38:10 -04:00