Compare commits

...
2 Commits
Author SHA1 Message Date
Alexander Heldt 48248e8c7d pinwheel: Lock instead of suspend on lid close
Have logind ignore the lid switch and suspend/hibernate keys so the
machine stays reachable over SSH with the lid closed. SUPER + SHIFT + x
remains the way to suspend; closing the lid now only locks the screen.
2026-10-22 19:37:42 +02:00
Alexander Heldt 36292c4f14 pinwheel: Fix webcam frame drops and raise resolution to 1080p
With the default 6 icamerasrc buffers the camera HAL ran out of pending
requests and dropped every fourth sensor frame, capping output at ~22.5 fps.
Using 10 buffers keeps the request queue fed and restores 30 fps.
2026-10-22 19:37:42 +02:00
3 changed files with 21 additions and 0 deletions

No files matched your search

@@ -82,6 +82,13 @@ in
(lib.generators.mkLuaInline ''hl.dsp.exec_cmd("${pause-music}; ${dpms-lock}")'') (lib.generators.mkLuaInline ''hl.dsp.exec_cmd("${pause-music}; ${dpms-lock}")'')
]; ];
} }
{
_args = [
"switch:on:Lid Switch"
(lib.generators.mkLuaInline ''hl.dsp.exec_cmd("${pkgs.procps}/bin/pidof hyprlock || { ${pause-music}; ${dpms-lock}; }")'')
{ locked = true; }
];
}
{ {
_args = [ _args = [
"SUPER + SHIFT + x" "SUPER + SHIFT + x"
+8
View File
@@ -40,6 +40,14 @@ in
enable = true; enable = true;
}; };
logind.settings.Login = {
HandleLidSwitch = "ignore";
HandleLidSwitchExternalPower = "ignore";
HandleLidSwitchDocked = "ignore";
HandleSuspendKey = "ignore";
HandleHibernateKey = "ignore";
};
tlp = { tlp = {
enable = true; enable = true;
@@ -33,6 +33,12 @@
platform = "ipu6epmtl"; platform = "ipu6epmtl";
}; };
services.v4l2-relayd.instances.ipu6.input = {
pipeline = lib.mkForce "icamerasrc buffer-count=10";
width = 1920;
height = 1080;
};
systemd.services.v4l2-relayd-ipu6 = { systemd.services.v4l2-relayd-ipu6 = {
preStart = lib.mkOverride 40 '' preStart = lib.mkOverride 40 ''
mkdir -p "$(dirname "$V4L2_DEVICE_FILE")" mkdir -p "$(dirname "$V4L2_DEVICE_FILE")"