Hardware profiles and device controls
Omarchy detects the machine's hardware and applies matching system support. It then exposes small commands and desktop controls for devices that users change during normal work: graphics mode, displays, cameras, input devices, audio, Bluetooth, brightness, battery, and power state. This page describes that control layer; see Hardware devices and power for the wider hardware and power model.
Hardware matching and setup
Hardware matching separates machine-specific setup from the common desktop. Detectors report facts such as the product family, GPU type, connected monitors, and available input devices. The setup pass uses those facts to install only the support that applies to the machine.
Hardware matchers
The hardware commands provide small yes-or-no checks or return a device name. Product checks use the system's DMI product name or family. Other checks inspect kernel device data, graphics devices, display connectors, or the desktop's device list. These results are the common contract used by menus, setup scripts, and device controls.
The matchers also distinguish useful cases that need different support. A system can have an NVIDIA GPU without driving the display. A laptop can have more than one GPU without being in hybrid mode. A display can be internal, external, or absent even when the computer has a backlight device. Apple systems can also match a Broadcom FaceTime HD camera by its PCI identity.
References: bin/omarchy-hw-match• L1-6 bin/omarchy-hw-facetimehd• L1-6 bin/omarchy-hw-nvidia• L1-16 bin/omarchy-hw-nvidia-display• L1-45 bin/omarchy-hw-hybrid-gpu• L1-24 bin/omarchy-hw-external-monitors• L1-12
Hardware setup pass
The /home/user/repo/bin/omarchy-apply-hardware command is the entry point for machine setup. It requires root and a target user unless provisioning is deferred. It runs the hardware actions as an idempotent pass, so installation can call it again after a package or hardware change without treating a second run as a new machine.
The setup group covers broad support areas rather than one fixed computer model. It applies network and Bluetooth support, graphics and Vulkan support, Intel media and camera support, keyboard and input defaults, audio tuning, and vendor-specific fixes for supported ASUS, Framework, Dell, Surface, Apple, HP, Acer, Lenovo, Raspberry Pi, and Qualcomm systems. It also applies platform safeguards for shared-memory GPUs, special NVIDIA memory behavior, DGX Spark boot timing, T2 Macs, early display paths, and known sleep, display, or boot failures. Qualcomm systems receive firmware, camera, and power-profile support, with extra board actions when hardware needs wireless, audio, display, touch, boot, or sleep support. Apple systems with a FaceTime HD camera receive a driver and first-boot firmware path when needed. Optional NVIDIA workload and dashboard packages receive their runtime and service setup when they are installed. The profile choice is therefore a set of matching hardware actions, not a user-selected desktop theme.
The setup relationship is:
flowchart TD
A[Installed machine] --> B[Hardware matchers]
B --> C[Matching support actions]
C --> D[Packages and system settings]
D --> E[Desktop device controls]
E --> F[Current device state]
References: bin/omarchy-apply-hardware• L1-75 install/…/all.sh• L1-97 install/…/fix-fkeys.sh• L1-10 install/…/fix-t2.sh• L1-56 install/…/fix-facetimehd.sh• L1-31 install/…/gpu-memory.sh• L1-4 install/…/nvidia-memory-pools.sh• L1-16 install/…/memory-watermark.sh• L1-23 install/…/dgx-spark-boot.sh• L1-17 install/…/fix-hp-zbook-ultra-g3a-sleep.sh• L1-20 install/…/fix-hp-zbook-ultra-g3a-display.sh• L1-20 install/…/fix-lenovo-ideacentre-mini-boot.sh• L1-35 install/…/firmware.sh• L1-56 install/…/raspberry-pi-4.sh• L1-39
Board-specific boot support
Some Qualcomm machines need support before the main system starts. Their device trees are selected from the machine identity and refreshed before boot images are built, while matching Acer, ASUS, Surface, and Qualcomm profiles add the early display and input support needed at the disk-unlock screen. The Lenovo IdeaPad Slim 5x profile uses the panel's display identity to choose LCD or OLED support because both models share a system identity. The common Hamoa display profile covers Snapdragon X Elite and X Plus device trees. Other profiles add the firmware or board data needed for Wi-Fi, audio, USB4, sensors, or touch input. These actions keep hardware support tied to the exact board instead of applying one broad rule to similar product names.
The Qualcomm board path also handles hardware that upstream firmware does not yet name. It supplies a compatible Wi-Fi board record for the matched card and can reload the device after deferred installation so the new data takes effect without waiting for a later boot. Board profiles can also protect a known power-state path: Lenovo Yoga Slim 7x keeps its input, display, processor, and suspend support aligned, while Samsung Galaxy Book4 Edge 14 prevents sleep paths that do not resume reliably and keeps its USB-C hubs available.
The early-display profiles for ASUS Zenbook A14 and Lenovo IdeaCentre Mini include the display chain and graphics firmware in the initramfs. This makes the disk-unlock screen usable before the real root file system is available. Qualcomm Hamoa profiles use the same early-display model for the display engine, panel, USB-C DisplayPort chain, and related firmware. Qualcomm firmware setup also keeps the DSP disabled when its signed firmware is missing or when the root disk is attached through USB-C, because starting that DSP can reset the storage path.
The Lenovo IdeaPad Slim 5x profile pins the LCD device tree only when the panel identity confirms the LCD model. An unknown panel keeps the safer shared choice. Raspberry Pi 4 receives a separate display-memory setting and HDMI access rule because its SoC display buses do not match the usual PCI display path. T2 Mac support adds its kernel, internal keyboard modules, fan service, and boot settings when the security chip is present. Surface Laptop 7 uses separate board paths for its 15-inch and 13.8-inch device trees so early keyboard, display, touch, wireless, and camera support matches each model. Samsung Galaxy Book4 Edge 14 leaves its display driver out of the initramfs so the firmware display remains usable at unlock, then enables the driver after the root system starts.
DGX Spark receives a separate boot policy. When the profile matches the GB10 architecture and NVIDIA DGX Spark product, it selects direct kernel boot instead of a UKI. This avoids a firmware memory-clear delay that leaves the screen black during startup until the bootloader fix is available.
References: install/…/fix-ath12k-board-data.sh• L1-26 install/…/dtb-uki.sh• L1-21 install/…/firmware.sh• L1-56 install/…/hamoa-display.sh• L1-45 install/…/fix-acer-aspire-16-ai-boot.sh• L5-35 install/…/fix-asus-vivobook-s16-boot.sh• L1-34 install/…/fix-asus-zenbook-a14-boot.sh• L1-39 install/…/surface-laptop-7.sh• L1-74 install/…/glymur-display.sh• L1-29 install/…/fix-lenovo-ideacentre-mini-boot.sh• L1-35 install/…/ideapad-slim-5x.sh• L8-105 install/…/yoga-slim7x.sh• L9-95 install/…/galaxy-book4-edge-14.sh• L7-55 install/…/fix-t2.sh• L1-56 install/…/raspberry-pi-4.sh• L1-39 default/…/raspberry-pi-4-ddc.rules• L1-6 install/…/dgx-spark-boot.sh• L1-17
Graphics controls
Graphics controls handle both driver capability and runtime GPU selection. Detection informs setup and menu visibility. Runtime switching is reserved for hybrid laptops because changing between integrated and dedicated GPU modes changes how the next session starts.
GPU mode
The omarchy-toggle-hybrid-gpu command switches between integrated and hybrid GPU modes through the system GPU manager. It asks for confirmation and reboots after a change because the selected mode is a boot-level choice. Integrated mode favors lower power use. Hybrid mode makes the dedicated GPU available while retaining the integrated display path where the machine supports it.
The command prepares the required sleep and service settings before it changes the mode. If the GPU manager cannot answer, it stops instead of making a partial change. The hardware detectors and the toggle therefore serve different purposes: one identifies a capability, while the other changes the machine state.
References: bin/omarchy-toggle-hybrid-gpu• L1-6 bin/omarchy-toggle-hybrid-gpu• L54-119 bin/omarchy-hw-hybrid-gpu• L1-24
N1x GPU policy
NVIDIA N1x laptops use a firmware-dependent graphics policy rather than the normal hybrid-GPU switch. Release firmware can let the NVIDIA GPU drive the panel and use the open driver. Older firmware that cannot start the GPU keeps the NVIDIA stack unloaded so the desktop can use the firmware display path instead. The hardware setup applies the matching driver, boot, and panel-brightness support for the detected firmware state.
This policy is separate from the general NVIDIA package path because the N1x platform has no safe driver choice that is independent of its firmware. Other supported NVIDIA systems continue to select their driver family from GPU capability and architecture.
References: install/…/n1x.sh• L76-192 install/…/nvidia.sh• L1-43
GPU memory policy
GPU memory policy adjusts boot-time limits for integrated AMD and Intel GPUs that use system RAM as graphics memory. The profile can raise the mapping limit to all RAM except an 8 GiB desktop reserve. This is a limit rather than a reservation, so RAM remains available to the desktop when the GPU does not hold it. On NVIDIA GB10 systems, a separate policy disables driver memory pools so memory freed by a stopped workload returns to the system at once.
GB10 setup also restores the kernel's default free-memory watermark. The normal desktop setting keeps a larger reserve for early reclaim. The GB10 setting leaves more shared memory available for GPU workloads, and deferred first-boot setup applies it after the normal system setting. GPU memory settings change the next boot rather than the current session.
References: install/…/gpu-memory.sh• L1-4 bin/omarchy-apply-gpu-memory• L1-66 install/…/nvidia-memory-pools.sh• L1-16 install/…/memory-watermark.sh• L1-23
Vulkan support
Vulkan support is selected from the detected graphics platform so applications receive a driver for the GPU that is present. PCI graphics identify Intel, AMD, and Apple devices. Qualcomm Adreno graphics use a platform-device match because they do not appear in PCI device data. NVIDIA Vulkan support comes with the NVIDIA driver path.
References: install/…/vulkan.sh• L1-27 install/…/nvidia.sh• L1-43
Display and brightness controls
Display controls treat the focused monitor as the normal target and distinguish laptop panels from external monitors. The same user action can use a kernel backlight, monitor DDC/CI, or an Apple display control path. This lets brightness keys and the display panel keep one user-facing contract across different hardware.
Monitor state
The monitor state command gives the shell a compact view of the display layout. It reports the focused monitor, internal and external monitor identities, enabled and mirrored displays, dimensions, and current brightness. The display menu uses this state to present actions for the monitors that are actually available.
The desktop also provides direct actions for turning the internal display off or mirroring it. Lid events use the same monitor model to support laptop clamshell behavior when an external monitor is present.
References: bin/omarchy-monitor-state• L1-23 default/…/utilities.lua• L31-36
Display scaling
omarchy-hyprland-monitor-scaling changes the scale of the focused Hyprland monitor and can show, set, or step through supported scale values. It rounds a requested value to a scale that keeps the monitor's logical pixels whole. This avoids an unusable layout while preserving a simple control for displays with different sizes and resolutions.
The command applies the change to the active session and saves a monitor-specific rule for later sessions. It also updates the session-wide GTK scale from the lowest active monitor scale, so applications do not become oversized on another display. A change is recorded with the requested value, effective value, monitor, and calling process for later diagnosis.
References: bin/omarchy-hyprland-monitor-scaling• L1-9 bin/omarchy-hyprland-monitor-scaling• L55-113 bin/omarchy-hyprland-monitor-scaling• L115-174 bin/omarchy-hyprland-monitor-scaling• L235-264
Display brightness
omarchy-brightness-display reads or changes brightness for a selected monitor. With no explicit monitor, it uses the focused display. It supports absolute values and relative changes, plus display off and on actions. Hardware keys call this command for the normal and precise brightness steps. The DDC/CI path maps each monitor connector to its own bus and briefly caches both successful and unavailable results, so a missing external monitor does not trigger repeated device scans.
The command selects the control path from the display type. Internal panels use the best available backlight device. External monitors use DDC/CI. Apple displays use their HID control tool. On Raspberry Pi 4, a board rule grants the desktop access to its platform HDMI DDC buses because those buses are not covered by the usual PCI display rule. If a path cannot find its display, the command fails rather than reporting a value for a different monitor.
References: bin/omarchy-brightness-display• L1-5 bin/omarchy-brightness-display• L32-70 bin/omarchy-brightness-display• L79-122 bin/omarchy-brightness-display-ddc• L1-5 bin/omarchy-brightness-display-ddc• L23-70 bin/omarchy-brightness-display-ddc• L87-179 install/…/raspberry-pi-4.sh• L22-38 default/…/raspberry-pi-4-ddc.rules• L1-6 default/…/media.lua• L6-9 bin/omarchy-hw-display• L1-25
Board display safeguards
Some profiles change display boot settings to prevent a known panel failure. The HP ZBook Ultra G3a 16 profile disables one display-engine memory-stutter mode because the high-rate internal panel can underflow during heavy GPU load. This is a matched hardware safeguard rather than a separate brightness or monitor mode.
References: install/…/fix-hp-zbook-ultra-g3a-display.sh• L1-20 bin/omarchy-hw-match• L1-6
Keyboard backlight
Keyboard backlight controls are separate from display brightness because keyboards expose their own LED device and may have a small number of levels. The command supports raising, lowering, cycling, turning the light off, and restoring the saved level. A separate LED path reports microphone mute on laptops that expose that indicator.
References: bin/omarchy-brightness-keyboard• L1-58 bin/omarchy-brightness-keyboard-mute• L1-14 default/…/media.lua• L10-12
Webcam and touch controls
Camera and input controls follow device availability. The webcam detector lists capture-capable video devices, while touch controls find the matching Hyprland input device and change its enabled state. This prevents a menu action from assuming that every laptop has the same camera or touch hardware.
Webcam controls
The webcam check reports only video devices that support capture. The screen-recording flow can show the active camera as a pinned overlay. The overlay has small, medium, and large sizes and stays anchored to the monitor or selected recording region, so it remains useful across monitor sizes and capture modes.
Camera support can also depend on the hardware profile. Qualcomm systems use the libcamera path through PipeWire. The Snapdragon ThinkPad T14s Gen 6 profile adds the desktop access needed by its software camera path when the kernel already exposes the camera. Intel systems receive matching camera support during hardware setup. Apple systems with the Broadcom FaceTime HD PCI device receive a compatible driver and firmware-fetch path; the firmware is fetched from Apple on the machine because it cannot be redistributed.
References: bin/omarchy-hw-webcam• L1-5 bin/omarchy-hw-facetimehd• L1-6 bin/omarchy-capture-webcam-list• L1-33 bin/omarchy-capture-webcam-resize• L1-6 bin/omarchy-capture-webcam-resize• L64-152 default/…/webcam-overlay.lua• L1-25 install/…/camera.sh• L1-6 install/…/ipu7-camera.sh• L1-10 install/…/thinkpad-t14s-camera.sh• L1-10 default/…/thinkpad-t14s-camera.rules• L1-3 install/…/fix-facetimehd.sh• L1-31
Touch device controls
Touchpad and touchscreen commands share one enable, disable, and toggle interface. A disable action records the device name so a Hyprland reload can keep that device disabled. An enable action clears the saved disable state before it applies the live change, which avoids preserving a stale device name.
The touchpad detector reads mouse devices whose names identify a touchpad or trackpad. The touchscreen detector reads touch and tablet devices. If no matching device exists, the control reports an error instead of changing an unrelated input device.
References: bin/omarchy-toggle-input-device• L1-76 bin/omarchy-toggle-touchpad• L1-6 bin/omarchy-toggle-touchscreen• L1-6 bin/omarchy-hw-touchpad• L1-6 bin/omarchy-hw-touchscreen• L1-6 default/…/disabled-input-device.lua• L1-21 install/…/surface-laptop-7.sh• L43-74
Audio controls
Audio controls provide one path for volume, mute, output selection, microphone selection, and laptop speaker tuning. They account for the difference between a physical audio device and a virtual processing device, so a user action changes the real output without breaking an active speaker treatment.
Audio outputs and inputs
Output controls resolve a selected output to the physical sink that carries the real loudness when a processing sink is present. The resolver follows active processing links. It also supports direct EasyEffects links and its configured output when the processing graph is idle. If no downstream device can be found, it falls back to the selected sink so the control still has a defined target.
Output switching lists only sinks with an available port and skips a physical sink that is already fronted by speaker tuning. It sets the new default and moves active application streams to it. Processing streams stay on their own path because moving them would bypass the filter or create a loop. Input selection follows the same default-device model and moves active application recordings without moving a filter's own capture stream.
Microphone mute changes the default source and updates the hardware mute LED when one exists. The audio panel and media keys use these commands, so keyboard actions and panel actions preserve the same default-device behavior.
References: bin/omarchy-audio-output-volume• L1-21 bin/omarchy-audio-output-sink• L1-97 bin/omarchy-audio-output-switch• L1-60 bin/omarchy-audio-output-set-default• L1-32 bin/omarchy-audio-input-set-default• L1-28 bin/omarchy-audio-input-mute• L1-13 bin/omarchy-audio-sink-availability• L3-32 default/…/media.lua• L2-5 default/…/shortcuts• L20-34
Speaker tuning
Speaker tuning is an optional matched audio profile for supported laptops. It selects a tuning from machine identity and the expected physical speaker sink. When enabled, it creates a virtual output in front of the laptop speakers and moves application streams into it. When disabled, it removes that layer and returns streams to the physical speakers.
The tuning manager checks that the virtual output reaches the physical sink for which the profile was made. If it reaches another sink, the manager removes the profile instead of leaving audio on the wrong device. Other audio controls use the matched downstream sink to hide the physical sink from rotation and to resolve volume changes to the sink that carries real loudness.
The ASUS Zenbook A16 profile is a prerequisite for this flow on the UX3607OA. Its board-specific audio package makes the speaker sink available and keeps the speakers attached across idle before the shared speaker-tuning pass applies its profile. The Acer Aspire 16 AI profile supplies the matching board audio package for the same reason. The HP OmniBook 3 profile supplies the board audio data needed for its speakers, headset, and microphones to register before these controls use them.
References: bin/omarchy-audio-tuning• L1-6 bin/omarchy-audio-tuning• L67-119 bin/omarchy-audio-tuning• L141-186 bin/omarchy-audio-tuning• L214-241 bin/omarchy-audio-tuning• L244-351 bin/omarchy-audio-output-sink• L1-97 bin/omarchy-audio-sink-availability• L1-54 install/…/fix-asus-zenbook-a16-speakers.sh• L1-12 install/…/fix-acer-aspire-16-ai-speakers.sh• L1-10 install/…/fix-hp-omnibook-3-speakers.sh• L1-10
Bluetooth controls
Bluetooth controls separate radio power from device pairing. Radio power uses a persistent block so the user's choice survives reboot. Device actions then turn the radio on when needed and pair, connect, disconnect, or forget one validated device address.
Bluetooth power
omarchy-bluetooth-power applies power changes to all Bluetooth controllers through the radio block state. Turning Bluetooth off blocks the radio. Turning it on removes the block and waits for a controller to become powered before it uses a direct power request as a fallback.
This shared path matters because a device action cannot connect reliably to a controller that is blocked. The device command therefore calls the power command before pairing or connecting.
References: bin/omarchy-bluetooth-power• L1-17 bin/omarchy-bluetooth-power• L21-89 bin/omarchy-bluetooth-device• L1-52
Battery and power controls
Battery and power controls combine live hardware state with remembered user choices. Battery status supplies the shell and notifications with charge, rate, time, capacity, and charge-limit information. Power-profile commands select a performance policy for AC or battery use and restore the policy that belongs to the current power source.
Battery state
The battery commands distinguish three questions: whether a battery exists, whether external power is present, and what the current battery state is. The status command presents percentage, charge state, power rate, capacity, time, cycle count, and charge thresholds when available. It uses the live power-supply reading when the firmware provides one, then keeps the time estimate consistent with that reading. It also reports when charging is being held at a configured threshold.
Low-battery handling sends a warning notification and runs the battery-low hooks with the reported percentage. It does not change the battery policy itself. Other power behavior can use the presence and power checks to decide whether a battery-specific action applies.
References: bin/omarchy-battery-present• L1-12 bin/omarchy-power-present• L1-14 bin/omarchy-battery-status• L1-7 bin/omarchy-battery-status• L38-120 bin/omarchy-battery-status• L121-171 bin/omarchy-battery-status• L177-231 bin/omarchy-battery-low• L1-17
Power profiles
Power profiles are named system policies such as power-saver, balanced, and performance. The list command exposes the policies that the system currently provides. The set command accepts an AC or battery context and can select a policy for that context.
When the context is detected automatically, it uses the same battery signal as the desktop shell. A manually selected policy is saved under its context. On a later context change or boot, the command restores the saved policy when it is still available. If it is not available, AC prefers performance when possible and other cases fall back to balanced.
On Qualcomm Snapdragon systems, the matching profile also gives logged-in user work a profile-dependent CPU scheduling floor. It reapplies when the power profile changes or a user logs in. This improves burst response without forcing idle cores to stay at full speed, and the service releases the floor when it stops.
References: bin/omarchy-powerprofiles-list• L1-17 bin/omarchy-powerprofiles-set• L1-63 bin/omarchy-powerprofiles-init• L1-5 bin/omarchy-powerprofiles-floor• L1-79 install/…/powerprofiles-floor.sh• L1-16 install/…/n1x.sh• L35-50
Power state controls
Power state actions connect the hardware state to user-visible controls. The power panel is registered with the shell, the power key opens the system menu, and the system can react to lid state and battery warnings. Hibernation is offered only when the kernel sleep state, swap space, and resume setup meet the system's support check. These actions use the device commands above as signals rather than duplicating hardware detection in each interface.
Some board profiles add a guard for a known suspend path. Lenovo Yoga Slim 7x prevents an unwanted wake after deep suspend with the lid open and stops its Wi-Fi and DSP drivers around hibernation so they can start cleanly after resume. Samsung Galaxy Book4 Edge 14 keeps its always-on subsystem and USB-C hubs available because the laptop does not resume reliably when those parts sleep. HP ZBook Ultra G3a 16 uses an IOMMU passthrough setting to avoid a firmware SSD-unlock fault that can stall resume. These are hardware-profile safeguards, not alternate user-facing power modes.
Apple FaceTime HD support also guards hibernation because the available camera driver can hang a hibernating sleep path. Intel laptops with a supported CPU and battery can receive thermald support, except when the ThinkPad firmware exposes a conflicting lap-mode control. These setup actions support power behavior without adding new power states.
References: bin/omarchy-hibernation-available• L1-37 default/…/shortcuts• L20-28 default/…/utilities.lua• L8-10 default/…/utilities.lua• L31-36 default/…/utilities.lua• L93-105 install/…/fix-facetimehd.sh• L15-31 install/…/thermald.sh• L1-13 install/…/yoga-slim7x.sh• L63-95 install/…/yoga-slim7x-hibernate.sh• L1-159 install/…/galaxy-book4-edge-14.sh• L7-55 install/…/fix-hp-zbook-ultra-g3a-sleep.sh• L1-20
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the hardware detector's output contract aligned with every menu or control that consumes its result. A detector that changes from a name to a status can make a toggle target the wrong device without a clear error.
- Keep display classification aligned across monitor state, scaling, brightness routing, and lid or clamshell actions. Internal connector names and external monitor names drive different control paths.
- Keep monitor scaling persistence aligned with the Hyprland monitor rule and the session-wide GTK scale. A new rule shape or scale expression can prevent a user's setting from surviving a reload without changing the live display.
- Keep the audio sink graph contract aligned across tuning, output rotation, volume, mute, and availability. A new virtual sink must not make the physical speaker both selectable and fronted at the same time.
- Keep output switching and default selection aligned on which streams may move. Application streams should follow a new output while processing streams must keep their graph links.
- Keep direct audio-link and configured-device fallbacks aligned with output volume and mute callers. An idle processing sink must still resolve to the device that carries sound when that device is known.
- Keep AC and battery context detection aligned between power-profile commands and the shell. Different context signals can restore the wrong policy after a power transition.
- Keep persisted toggle and profile state compatible with the commands that read it. A renamed device kind or context key can leave old state active but unreachable.
- Keep camera package setup and device access rules aligned with the camera path used by each hardware profile. A profile that installs only one side can leave a camera visible but unusable by desktop applications.
- Keep FaceTime HD driver, firmware-fetch, and hibernation guard support aligned. The camera can be detected before its firmware exists on the machine.
- Keep matched audio prerequisites ahead of shared speaker tuning. A vendor package that supplies the physical sink must run before tuning tries to build its virtual output.
- Keep device-tree selection and boot-image refresh aligned with board identity. A new or renamed Qualcomm tree must be available to the pre-build hook and must not be hidden by a broader fallback list.
- Keep panel-specific detection aligned with the selected device tree. A shared product identity must not make an LCD system boot with OLED support or lose its backlight control.
- Keep early-boot module and firmware support aligned with the device's unlock-screen needs. A profile that starts the display or input path before root mounts must include the matching firmware and avoid bypassing its storage safety guard.
- Keep board-data installation and deferred-device reload aligned. Installing wireless data after the driver probes must either rebind the matched card or wait for the next boot.
- Keep Qualcomm DSP firmware guards aligned with the root-disk transport. Removing the guard must require both safe storage transport and available signed firmware.
- Keep Qualcomm power-profile setup aligned with the profile service lifecycle. A service that is enabled without a first-boot start can leave the CPU floor inactive until the next reboot.
- Keep firmware-dependent N1x GPU policy aligned across driver packages, module loading, early display, and boot brightness. A firmware threshold change must update every part of that choice together.
- Keep shared-memory GPU boot settings aligned with the final boot-image build. Integrated GPU mapping limits, GB10 memory watermarks, and GB10 NVIDIA pool settings change behavior from the next boot and must not be treated as live session controls.
- Keep DGX Spark product matching aligned with the Limine UKI choice. Broadening the override can change boot behavior on another GB10 board, while narrowing it can restore the firmware delay on DGX Spark.
- Keep Raspberry Pi display-memory settings and DDC access rules aligned with the board's display buses. A rule for the wrong I2C controllers can leave external brightness keys ineffective.
- Keep T2 kernel, keyboard, fan, and initramfs support aligned. The internal keyboard and fan path depend on the T2-specific kernel modules and service being selected together.
- Keep board-specific suspend guards tied to the exact device identity. A workaround for one resume failure must not change sleep behavior on a similar but supported board.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Hardware setup runs without root or without a valid target user | Machine-specific packages and settings are not applied | The setup entry point validates root, provisioning mode, and the target user before it runs actions. |
| A hybrid GPU mode change cannot reach the GPU manager | The requested mode is unknown and a partial switch could leave boot support unsafe | The GPU toggle retries bounded status checks and stops before changing mode when the manager does not respond. |
| N1x firmware cannot boot the NVIDIA GPU but the release policy is applied | The GPU can fail to start and the desktop can lose its usable display path | N1x checks firmware before selecting the open driver, early KMS, or the unloaded-driver fallback. |
| An integrated GPU boot setting is written but the next boot is not rebuilt or reached | The current session keeps the old GPU memory behavior | The setup pass writes a boot setting and the final image build applies the mapping policy from the next boot. |
| GB10 keeps the desktop's higher free-memory watermark | The kernel reclaims shared memory earlier and leaves less memory for GPU workloads | The GB10 profile writes the default watermark and applies it during deferred first-boot setup. |
| DGX Spark boots through a UKI while the Limine firmware issue persists | Firmware clearing can leave the screen black for about 20 seconds during boot | The exact GB10 and NVIDIA DGX Spark match writes a later Limine setting that selects direct kernel boot. |
| A monitor scale cannot be represented as clean logical pixels | Hyprland may reject the value or produce uneven application sizing | Scaling rounds the request to a valid monitor-specific value and updates the shared GTK scale from active monitors. |
| An external display has no usable DDC/CI bus | Brightness cannot be read or changed through the external-display path | DDC detection maps the monitor connector to its own bus, caches short-lived unavailable results, and fails without using another monitor's bus. |
| Raspberry Pi 4 DDC access is missing or targets the wrong platform buses | External brightness keys leave the HDMI monitor unchanged | The board setup installs rules for only the two Raspberry Pi HDMI DDC controllers. |
| A matched HP ZBook Ultra G3a 16 display lacks its memory-stutter safeguard | The high-rate internal panel can show horizontal artifacts under GPU load | The exact product match writes the display-engine setting for the affected panel. |
| A saved touch device name is stale | A reload could disable the wrong device or fail to restore the intended state | The toggle stores the detected name as data and requires a current matching device before it changes or saves state. |
| A camera is not exposed by the required kernel or device-tree support | Camera applications cannot use the hardware even when the matching user-space package is installed | The hardware profile documents the kernel/device-tree prerequisite and applies its access rule only to the matched device. |
| FaceTime HD firmware is not fetched after the driver is installed | The Apple camera is detected but cannot stream video | The matched profile enables the firmware fetch service and starts it during deferred first boot when possible. |
| A Qualcomm DSP starts while the root disk is on USB-C or its signed firmware is missing | USB-C storage can disconnect or the DSP can start without valid firmware | Qualcomm setup detects the root transport and firmware state before it removes or writes the DSP blacklist. |
| A Qualcomm display profile omits a required early display or USB-C dependency | The disk-unlock prompt can remain black on the matched board | The board profile adds the display chain and firmware needed before the real root is available. |
| A shared product identity selects the wrong Lenovo IdeaPad Slim 5x device tree | The LCD model can lose brightness control or the panel can use the wrong board description | The profile checks the panel identity and pins the LCD tree when its display record matches. |
| Lenovo IdeaCentre Mini, ASUS Zenbook A14, or a Hamoa board lacks early display support | The display can stay black until disk unlock finishes | Their matched initramfs profiles include the required display chain and graphics firmware. |
| Samsung Galaxy Book4 Edge 14 lets AOSS sleep or USB-C hubs autosuspend | The laptop can lose UFS or its USB-C display and input path during resume | The matched profile keeps AOSS awake, disables USB hub autosuspend, and leaves its display driver deferred until root switch. |
| Speaker tuning links to a different downstream sink | Audio may play through the wrong device or bypass the intended tuning | The tuning manager verifies the downstream sink and removes the profile if the link is wrong. |
| A Zenbook A16, ProArt PZ13, Acer Aspire 16 AI, or HP OmniBook 3 audio prerequisite is absent | The speaker or microphone sink may never register, so tuning or input controls have no physical device to use | The matched vendor profile installs the board-specific audio package before the shared tuning pass. |
| A processing output has no active stream or direct port link | Volume or mute may act on the processing layer instead of the physical output | The sink resolver follows stream and port links, then uses the configured EasyEffects output when it exists. It falls back only when no downstream device is resolvable. |
| An audio sink port is unavailable or a filter owns the capture stream | The control can offer a disconnected output or move the filter instead of an application | Output lists filter unavailable ports and fronted physical sinks. Default selection moves only application streams. |
| Bluetooth is powered off by a non-persistent adapter setting | Bluetooth returns after reboot or device actions cannot connect | The shared power command uses the persistent rfkill block and waits for controller state. |
| A saved power profile is no longer provided by the system | A context change cannot restore the saved policy | The profile setter checks availability and falls back to performance on AC or balanced otherwise. |
| The selected Qualcomm device tree is missing from the boot image | The board can use the wrong hardware description or fail to bring up display and input devices | The device-tree updater refreshes literal paths before each image build and includes the machine-specific tree when it is available. |
| Early boot lacks a required panel, input, or firmware dependency | The user can reach disk unlock without a usable display or keyboard | Board profiles add optional early modules and the firmware they request to the initramfs. |
| Qualcomm Wi-Fi probes before its board data is installed | The card has no Wi-Fi until a later boot or driver reload | Deferred hardware setup rebinds the matched PCI device after it installs the fallback board data. |
| A Qualcomm system installs power-profile support without starting its enabled service on the first deferred boot | Burst work keeps the slow default scheduling behavior until the next boot | The matched setup starts the service during deferred hardware setup and the monitor reapplies the floor after profile and session changes. |
| A T2 Mac has no usable source for its Wi-Fi firmware | The T2 Wi-Fi device can remain without firmware on a single-boot install | The profile installs the fetcher and requires firmware from a macOS volume or supplied recovery image when the original volume is absent. |
| A board-specific suspend workaround is applied to an unmatched system | The system can lose a supported sleep or resume path | Each workaround checks the exact product or device-tree identity before it changes boot or sleep behavior. |
| The kernel does not expose a usable hibernation state, or swap and resume setup are insufficient | The power menu must not offer hibernation because resume may fail | The availability check requires the disk sleep state, enough non-zram swap for the image, and the resume configuration. |
Key files
| File | Why to read it |
|---|---|
bin/omarchy-apply-hardware | Shows the entry point and validation for the hardware setup pass. |
| install/…/all.sh | Shows how broad and vendor-specific hardware actions are grouped, including boot, display, memory, firmware, power, and audio profiles. |
| install/…/fix-fkeys.sh | Shows the default keyboard top-row mode applied during hardware setup. |
| install/…/fix-t2.sh | Shows the matched T2 Mac kernel, keyboard, fan, and boot support. |
| install/…/fix-facetimehd.sh | Shows the matched Apple FaceTime HD driver, firmware, and hibernation support. |
bin/omarchy-hw-facetimehd | Shows the PCI identity used to detect the Broadcom FaceTime HD camera. |
| install/…/gpu-memory.sh | Shows the hardware-profile wrapper for the integrated GPU memory policy. |
bin/omarchy-apply-gpu-memory | Shows the boot-time integrated GPU mapping limit and its desktop memory reserve. |
| install/…/nvidia-memory-pools.sh | Shows the GB10-specific NVIDIA memory-pool policy. |
| install/…/memory-watermark.sh | Shows the GB10 memory-watermark override and deferred first-boot application. |
| install/…/dgx-spark-boot.sh | Shows the exact DGX Spark match and its direct-kernel boot policy. |
| install/…/fix-ath12k-board-data.sh | Shows how missing Qualcomm Wi-Fi board data is supplied and activated after deferred setup. |
| install/…/firmware.sh | Shows Qualcomm firmware installation and the DSP safety guard. |
| install/…/hamoa-display.sh | Shows shared early display support for Snapdragon Hamoa and Purwa boards. |
| install/…/fix-acer-aspire-16-ai-boot.sh | Shows early display support for disk unlock on the Acer Aspire 16 AI. |
| install/…/fix-asus-zenbook-a14-boot.sh | Shows early display support for the ASUS Zenbook A14. |
| install/…/fix-lenovo-ideacentre-mini-boot.sh | Shows early display support for the Lenovo IdeaCentre Mini. |
| install/…/fix-hp-zbook-ultra-g3a-display.sh | Shows the exact-board display safeguard for the HP ZBook Ultra G3a 16. |
| install/…/fix-acer-aspire-16-ai-speakers.sh | Shows the matched board audio support for the Acer Aspire 16 AI. |
| install/…/fix-hp-omnibook-3-speakers.sh | Shows the matched board audio support for the HP OmniBook 3. |
| install/…/fix-hp-zbook-ultra-g3a-sleep.sh | Shows the exact-board resume safeguard for the HP ZBook Ultra G3a 16. |
| install/…/fix-asus-vivobook-s16-boot.sh | Shows early display support for the OLED and LCD ASUS Vivobook S16 variants. |
| install/…/glymur-display.sh | Shows early display support shared by the Snapdragon X2 board family. |
| install/…/dtb-uki.sh | Shows how Qualcomm device trees are refreshed and made available to boot-image builds. |
| install/…/ideapad-slim-5x.sh | Shows panel-based selection of the LCD or OLED device tree for a shared product identity. |
| install/…/yoga-slim7x.sh | Shows board-specific display, input, processor, and hibernation setup for the Lenovo Yoga Slim 7x. |
| install/…/yoga-slim7x-hibernate.sh | Shows how Yoga Slim 7x drivers are stopped and restored around hibernation. |
| install/…/surface-laptop-7.sh | Shows board-specific early display, keyboard, Bluetooth, touchpad, and camera support for Surface Laptop 7 variants. |
| install/…/galaxy-book4-edge-14.sh | Shows the resume, USB-C, and early-display safeguards for Samsung Galaxy Book4 Edge 14. |
| install/…/powerprofiles-floor.sh | Shows how Snapdragon systems enable the profile-dependent CPU scheduling support. |
bin/omarchy-powerprofiles-floor | Shows how the Snapdragon CPU scheduling floor follows power profiles and user sessions. |
| install/…/raspberry-pi-4.sh | Shows Raspberry Pi 4 display-memory, Bluetooth firmware, and DDC setup. |
default/udev/raspberry-pi-4-ddc.rules | Shows access to the Raspberry Pi 4 HDMI DDC buses used for external brightness. |
| install/…/fix-asus-zenbook-a16-speakers.sh | Shows the matched audio support for ASUS Zenbook A16 UX3607OA systems. |
| install/…/fix-asus-proart-pz13-speakers.sh | Shows the matched audio support for ASUS ProArt PZ13 systems. |
| install/…/fix-asus-vivobook-s15-boot.sh | Shows board-specific early display support for disk unlock on an ASUS Snapdragon laptop. |
| install/…/fix-hp-omnibook-x14-boot.sh | Shows the early display support needed to unlock an HP OmniBook X 14. |
| install/…/surface-pro-11.sh | Shows board-specific device-tree selection plus early display and keyboard, firmware, touch, audio, and sensor support for Surface Pro 11 variants. |
| install/…/surface-laptop8.sh | Shows board-specific early display, keyboard, firmware, USB4, and sleep support for Surface Laptop 8. |
| install/…/camera.sh | Shows the shared camera support selected for Qualcomm systems. |
| install/…/thinkpad-t14s-camera.sh | Shows the matched camera support for Snapdragon ThinkPad T14s Gen 6 systems. |
default/udev/thinkpad-t14s-camera.rules | Shows the device access needed by the ThinkPad camera path. |
| install/…/thermald.sh | Shows the battery-aware Intel thermal service selection. |
| install/…/nvidia.sh | Shows the general NVIDIA driver selection and the delegation of N1x policy. |
| install/…/n1x.sh | Shows the firmware-dependent N1x GPU policy, boot display brightness, and platform setup. |
| install/…/vulkan.sh | Shows Vulkan driver selection for PCI and Qualcomm platform GPUs. |
bin/omarchy-hw-match | Shows the common product matching contract. |
bin/omarchy-hw-hybrid-gpu | Shows how GPU capability detection differs from runtime GPU mode. |
bin/omarchy-toggle-hybrid-gpu | Shows the user-facing GPU mode change and reboot boundary. |
bin/omarchy-monitor-state | Shows the display state shape consumed by the shell. |
bin/omarchy-hyprland-monitor-scaling | Shows focused-monitor scaling, persistence, and session-wide GTK scaling. |
bin/omarchy-brightness-display | Shows how brightness routes across internal, external, and Apple displays. |
bin/omarchy-brightness-display-ddc | Shows monitor-specific DDC/CI brightness access and short-lived bus discovery state. |
bin/omarchy-toggle-input-device | Shows the shared touchpad and touchscreen control contract. |
bin/omarchy-audio-output-sink | Shows how volume and mute resolve a virtual output to its physical sink, including direct EasyEffects links and idle configured output. |
bin/omarchy-audio-output-switch | Shows how output rotation filters unavailable and fronted sinks while preserving the effective audio state. |
bin/omarchy-audio-output-set-default | Shows how default selection moves application streams without moving processing streams. |
bin/omarchy-audio-input-set-default | Shows how input selection changes the default source without moving filter-owned capture. |
bin/omarchy-audio-sink-availability | Shows the availability contract used by audio controls for sinks and sources. |
bin/omarchy-audio-tuning | Shows matched speaker profiles, downstream validation, and their lifecycle. |
bin/omarchy-bluetooth-power | Shows persistent Bluetooth radio state. |
bin/omarchy-battery-status | Shows the battery information contract used by panels and notifications. |
bin/omarchy-powerprofiles-set | Shows AC and battery policy selection and fallback behavior. |
bin/omarchy-hibernation-available | Shows the support check that gates hibernation controls. |
default/hypr/bindings/media.lua | Shows how hardware keys reach audio, brightness, and input controls. |
default/hypr/bindings/utilities.lua | Shows the display, power, lid, and hardware menu entry points. |