Skip to content

Commit

Permalink
malibal/aon/s1: Add initial intel-only support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dietr1ch authored and mergify[bot] committed Sep 9, 2024
1 parent 04a1cda commit aac7c50
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
lenovo-yoga-7-14ARH7-nvidia = import ./lenovo/yoga/7/14ARH7/nvidia;
lenovo-yoga-7-slim-gen8 = import ./lenovo/yoga/7/slim/gen8;
letsnote-cf-lx4 = import ./panasonic/letsnote/cf-lx4;
malibal-aon-s1-intel = import ./malibal/aon/s1;
microchip-icicle-kit = import ./microchip/icicle-kit;
microsoft-surface-go = import ./microsoft/surface/surface-go;
microsoft-surface-pro-intel = import ./microsoft/surface/surface-pro-intel;
Expand Down
79 changes: 79 additions & 0 deletions malibal/aon/s1/README.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
= Malibal Aon S1 =

== Tested Hardware ==

* CPU: Intel(R) Core(TM) i7-13700H CPU @ 2.4GHz
* RAM: 32 GB
* HDD: 2 TiB SSD
* Screen: 14" WQXGA+ (2880x1800)
* Graphics: Intel Raptor Lake-P [Iris Xe Graphics]. nVidia graphics disabled preemptively.
* Display: Wayland.
* Input: trackpad
== Firmware Configuration ==

No tweaking to get a useful system, but some is needed.
- Sleeping doesn't work properly and overheats the system.
- Fans spin even when the system is at almost no load and CPUs report 30°C-35°C

== Installation ==

=== Before installation ===

I don't recall what I did very well, probably just disabled secure boot as
there's no nice and meaningful way of using it yet.

=== After installation ===

=== Optional ===

* Run fwupd
== Troubleshooting ==


== Annoyances ==

=== It's easy to tap the power button ===

It's better to ignore short tapping the power button,

```nix
services = {
logind = {
if options.hardware.ignorePowerButtonTap
extraConfig = ''
# Don’t shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
};
};
```

== Broken Functionality ==

=== Sleeping works, but overheats the machine ===

This drains battery faster than keeping the machine on and it might get you backpack really warm.

Best workaround I found so far is to increase the time to take an action, and use shutdown as the action.
This is *not* a reasonable workaround for most.


```nix
services = {
logind = {
if options.hardware.ignorePowerButtonTap
extraConfig = ''
# Shutdown until sleep/hibernate works
IdleAction=poweroff
# Ideal case (hibernation onto / isn't working for me, but probably works with a swap partition)
# When idle, sleep, but hibernate if it's been too long.
# IdleAction=hybrid-sleep
'';
};
};
```

I'm hoping that suspend-then-hibernate will make this a non-issue in practice, but haven't spent time on it.
33 changes: 33 additions & 0 deletions malibal/aon/s1/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ pkgs, lib, ... }:

{
imports = [
../../../common/pc/laptop
../../../common/pc/laptop/ssd

../../../common/cpu/intel

../../../common/gpu/intel
../../../common/gpu/nvidia/disable.nix
];

boot = {
kernelParams = [
"mem_sleep_default=deep"
"i915.fastboot=1"
];
kernelModules = [
"coretemp"
];
};

powerManagement = {
powertop.enable = lib.mkDefault true;
};

services = {
fwupd = {
enable = lib.mkDefault true;
};
};
}

0 comments on commit aac7c50

Please sign in to comment.