1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-11 09:04:01 +03:00
Commit Graph

390 Commits

Author SHA1 Message Date
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
Samuel Dionne-Riel
6fcd5b91c9 boot/splash: Fix passphrase input hide semantics
With the recent textraction of TextArea, the `#hide` call was not
happening as it would have previously.

Additionally, keep data in the field when hiding, it's less weird.
2022-10-26 19:38:10 -04:00
Samuel Dionne-Riel
93f557369a lvgui: 2022-10-13 -> 2022-10-26 2022-10-26 19:38:10 -04:00
Samuel Dionne-Riel
f3ac03097c boot/init: Include backtrace in exception failure 2022-10-21 16:53:55 -04:00
Samuel Dionne-Riel
45802604c9 boot/init: Always build with backtrace info 2022-10-21 16:53:05 -04:00
Samuel Dionne-Riel
5790eaf259 lvgui: Optimize option selection a bit
Don't needlessly rebuild it.
2022-10-20 21:52:47 -04:00
Samuel Dionne-Riel
26195eaea9 lvgui-native: Fix lv_task_create bindings 2022-10-20 20:43:27 -04:00
Samuel Dionne-Riel
519431be9d examples/installer: init app
Obviously does nothing yet...
2022-10-19 16:24:56 -04:00
Samuel Dionne-Riel
e3e6a92e8c boot/script-loader: Add mruby-securerandom
This will be used mainly for the installer, but it's not like it's
bloat, and may end-up useful anyway.
2022-10-19 16:24:56 -04:00
Samuel Dionne-Riel
a1627cfc6d lvgui: Remove stray comment 2022-10-19 16:24:56 -04:00
Samuel Dionne-Riel
bf3ad01187 lvgui: Wait for lv_ta to be updated before calling callbacks
This solves an annoying-to-solve problem with how it is handled
internally within LVGL.

This way we wait a full "tick" until the event, but it shouldn't matter.
2022-10-19 16:24:56 -04:00
Samuel Dionne-Riel
135c063420 boot: switch_root: Ensure /run/boot exists before writing to it 2022-10-16 01:20:44 -04:00
Samuel Dionne-Riel
59e3d0386d boot: Don't fail if we can't tell the kernel about modprobe
(cherry picked from commit 8db27e0c56b3934ebced48a10d749bf24d8cb6e1)
2022-10-16 01:11:37 -04:00
Samuel Dionne-Riel
2f0095af8a boot: switch_root: Explain how generation was selected
(cherry picked from commit f508a8df1daba81f689db7c6f181d223ea2d60c7)
2022-10-16 01:11:37 -04:00
Samuel Dionne-Riel
e4414042bc boot: switch_root: Ignore bogus init parameter
These will be provided by proprietary bootloader (e.g. google-blueline),
and cannot be removed.

Thus we'll ignore any bogus parameter.

(cherry picked from commit c961ca142650fead3c3b565cfc59f8ae0662d771)
2022-10-16 01:11:37 -04:00
Samuel Dionne-Riel
cc0385dd9c boot/init: Autoresize wait for graphics
This way this time-consuming step is guaranteed to be properly shown to
the end-user.
2022-10-13 15:28:51 -04:00
Samuel Dionne-Riel
6ad619dfb4 lvgui: Add monospace font info
Which uses Fira Mono as added in the previous commit.
2022-10-13 03:15:38 -04:00
Samuel Dionne-Riel
fed1017592 boot/splash: Use custom styling for textarea 2022-10-13 03:15:12 -04:00
Samuel Dionne-Riel
7c6414747b lvgui: 2022-07-30 -> 2022-10-13 2022-10-13 03:15:04 -04:00
Samuel Dionne-Riel
58efa9e6f8 lvgui: Fix options selection styles 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
d693da045b lvgui: Fix horizontal separator styles 2022-10-12 22:00:56 -04:00