tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
883 stars 91 forks source link

Can't get GPU to work with hyprland #136

Open SailorSnoW opened 10 months ago

SailorSnoW commented 10 months ago

Using hyprland, I can't get things work with the GPU, so it is using the CPU instead and it's not really usable then.

I installed NixOS with the last released ISO found on this repo (24-12-2023)

hardware.asahi.useExperimentalGPUDriver is on, using the overlay mode.

Output of glxinfo: $ glxinfo | grep 'OpenGL renderer string' OpenGL renderer string: llvmpipe (LLVM 16.0.6, 128 bits)

Here is my actual config: https://github.com/SailorSnoW/snOwOS/

Is there a conflict with something already installed on my config or maybe I did the hyprland setup in a wrong way, or missing env variables ?

SailorSnoW commented 10 months ago

Just saw that it seems like I'm not using asahi edge kernel also, but I don't have any idea on how to switch to edge actually

rowanG077 commented 10 months ago

I'm using hyprland with GPU so it's definitely possible.

I have this as my hardware.asahi config:

  hardware.asahi = {
    withRust = true;
    addEdgeKernelConfig = true;
    useExperimentalGPUDriver = true;
    experimentalGPUInstallMode = "replace";
  };
SailorSnoW commented 10 months ago

Tried with your config, it cause Hyprland to crash at startup with the following logs:

[LOG] Instance Signature: f9c13b614c780c45933440ddecaaa57cc5f1cc12_1703811723
[LOG] Hyprland PID: 25366
[LOG] ===== SYSTEM INFO: =====
[LOG] System name: Linux
[LOG] Node name: snOwOS
[LOG] Release: 6.6.0-asahi
[LOG] Version: #1-NixOS SMP PREEMPT_DYNAMIC Tue Jan  1 00:00:00 UTC 1980

[LOG] GPU information:

[LOG] os-release:
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.05.20231224.5f64a12"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.05 (Uakari)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.05 (Uakari)"
VERSION_CODENAME=uakari
VERSION_ID="24.05"

[LOG] ========================

[INFO] If you are crashing, or encounter any bugs, please consult https://wiki.hyprland.org/Crashes-and-Bugs/

[LOG] 
Current splash: Stayin' alive, stayin' alive

[LOG] Creating the HookSystem!
[LOG] Creating the KeybindManager!
[LOG] [hookSystem] New hook event registered: configReloaded
[LOG] Creating the AnimationManager!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 9.67µs. Estimated average calc time: 0.02µs.
[LOG] Creating the ConfigManager!
[LOG] NOTE: further logs to stdout / logfile are disabled by default. Use debug:disable_logs and debug:enable_stdout_logs to override this.
[LOG] Creating the CHyprError!
[LOG] [hookSystem] New hook event registered: focusedMon
[LOG] [hookSystem] New hook event registered: preRender
[LOG] Creating the LayoutManager!
[LOG] [hookSystem] New hook event registered: preConfigReload
[LOG] Reloading the config!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 6.21µs. Estimated average calc time: 0.03µs.
[LOG] Using config: /home/snow/.config/hypr/hyprland.conf
[LOG] Registered dynamic var "$mod" -> SUPER
[LOG] Disabling stdout logs! Check the log for further logs.
[EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
[EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
[render/egl.c:556] Failed to create GBM device
[render/egl.c:572] Failed to initialize EGL context
[render/gles2/renderer.c:682] Could not initialize EGL
[CRITICAL] m_sWLRRenderer was NULL!
[CRITICAL] Critical error thrown: wlr_gles2_renderer_create_with_drm_fd() failed!

This shouldn't happen tho as the normal workaround for this is normally to set WLR_RENDERER_ALLOW_SOFTWARE to 1, which is already set in my config...

May I see your full nixOS config file so I can compare to mine @rowanG077 ?

I've kinda tried everything possible around the GPU options so I'm really stuck actually :(

rowanG077 commented 10 months ago

That's the exact error I got when my GPU wasn't functioning due to https://github.com/tpwrules/nixos-apple-silicon/issues/126

Are you sure you are uptodate? What platform are you on? Can you attach your kernel log?

SailorSnoW commented 10 months ago

I just checked and yeah I'm up to date with apple-silicon-support, CONFIG_MUX_APPLE_DPXBAR=m is in the linux-asahi config so it's seem like the problem is not related to that.

I'm using the unstable nix channel also and I'm up to date with it. I'm on a Macbook M2 Pro 14" and here is the kernel log with replace mode and experimentalGPU enabled:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x611f0340]
[    0.000000] Linux version 6.6.0-asahi (nixbld@localhost) (gcc (GCC) 12.3.0, GNU ld (GNU Binutils) 2.40) #1-NixOS SMP PREEMPT_DYNAMIC Tue Jan  1 00:00:00 UTC 1980
[    0.000000] random: crng init done
[    0.000000] Machine model: Apple MacBook Pro (14-inch, M2 Pro, 2023)
[    0.000000] efi: EFI v2.10 by Das U-Boot
[    0.000000] efi: RTPROP=0x103c9568040 INITRD=0x103c8a7c040 MEMRESERVE=0x103c8a7b040 
[    0.000000] OF: reserved mem: 0x0000010000218000..0x000001000081bfff (6160 KiB) nomap non-reusable asc-firmware@10000218000
[    0.000000] OF: reserved mem: 0x00000100009e4000..0x0000010001317fff (9424 KiB) nomap non-reusable asc-firmware@100009e4000
[    0.000000] OF: reserved mem: 0x0000010001954000..0x0000010001c67fff (3152 KiB) nomap non-reusable asc-firmware@10001954000
[    0.000000] OF: reserved mem: 0x00000103ce6b0000..0x00000103ce967fff (2784 KiB) nomap non-reusable isp-heap
[    0.000000] OF: reserved mem: 0x00000103d1998000..0x00000103d2997fff (16384 KiB) nomap non-reusable asc-firmware@103d1998000
[    0.000000] OF: reserved mem: 0x00000103d2998000..0x00000103d2c97fff (3072 KiB) nomap non-reusable asc-firmware@103d2998000
[    0.000000] OF: reserved mem: 0x00000103d2c98000..0x00000103d2c9bfff (16 KiB) nomap non-reusable region157@103d2c98000
[    0.000000] OF: reserved mem: 0x00000103d2c9c000..0x00000103d8447fff (89776 KiB) nomap non-reusable framebuffer@103d2c9c000
[    0.000000] OF: reserved mem: 0x00000103d8448000..0x00000103d8507fff (768 KiB) nomap non-reusable region95@103d8448000
[    0.000000] OF: reserved mem: 0x00000103d8508000..0x00000103d8867fff (3456 KiB) nomap non-reusable region94@103d8508000
[    0.000000] OF: reserved mem: 0x00000103d8868000..0x00000103d9867fff (16384 KiB) nomap non-reusable region57@103d8868000
[    0.000000] OF: reserved mem: 0x00000103d9868000..0x00000103d9b67fff (3072 KiB) nomap non-reusable dcp_data@103d9868000
[    0.000000] OF: reserved mem: 0x00000103fff74000..0x00000103fff77fff (16 KiB) nomap non-reusable uat-handoff
[    0.000000] OF: reserved mem: 0x00000103fff78000..0x00000103fffb7fff (256 KiB) nomap non-reusable uat-pagetables
[    0.000000] OF: reserved mem: 0x00000103fffb8000..0x00000103fffbbfff (16 KiB) nomap non-reusable uat-ttbs
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000010000218000-0x00000103fffbbfff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000010000218000-0x000001000081bfff]
[    0.000000]   node   0: [mem 0x00000100009e4000-0x0000010001317fff]
[    0.000000]   node   0: [mem 0x0000010001954000-0x0000010001c67fff]
[    0.000000]   node   0: [mem 0x0000010001e28000-0x0000010002f27fff]
[    0.000000]   node   0: [mem 0x0000010002f28000-0x0000010003003fff]
[    0.000000]   node   0: [mem 0x0000010003004000-0x00000100055e7fff]
[    0.000000]   node   0: [mem 0x00000100055e8000-0x0000010005613fff]
[    0.000000]   node   0: [mem 0x0000010005614000-0x00000103c9567fff]
[    0.000000]   node   0: [mem 0x00000103c9568000-0x00000103c9573fff]
[    0.000000]   node   0: [mem 0x00000103c9574000-0x00000103ce5cffff]
[    0.000000]   node   0: [mem 0x00000103ce5d0000-0x00000103ce5dffff]
[    0.000000]   node   0: [mem 0x00000103ce5e0000-0x00000103ce6abfff]
[    0.000000]   node   0: [mem 0x00000103ce6b0000-0x00000103ce967fff]
[    0.000000]   node   0: [mem 0x00000103d1998000-0x00000103d9b67fff]
[    0.000000]   node   0: [mem 0x00000103fff74000-0x00000103fffbbfff]
[    0.000000] Initmem setup node 0 [mem 0x0000010000218000-0x00000103fffbbfff]
[    0.000000] On node 0, zone DMA: 134 pages in unavailable ranges
[    0.000000] On node 0, zone DMA: 114 pages in unavailable ranges
[    0.000000] On node 0, zone DMA: 399 pages in unavailable ranges
[    0.000000] On node 0, zone DMA: 112 pages in unavailable ranges
[    0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.000000] On node 0, zone DMA: 3084 pages in unavailable ranges
[    0.000000] On node 0, zone DMA: 14595 pages in unavailable ranges
[    0.000000] On node 0, zone DMA: 17 pages in unavailable ranges
[    0.000000] cma: Reserved 64 MiB at 0x0000010006000000 on node -1
[    0.000000] percpu: Embedded 6 pages/cpu s50536 r8192 d39576 u98304
[    0.000000] pcpu-alloc: s50536 r8192 d39576 u98304 alloc=6*16384
[    0.000000] pcpu-alloc: [0] 00 [0] 01 [0] 02 [0] 03 [0] 04 [0] 05 [0] 06 [0] 07 
[    0.000000] pcpu-alloc: [0] 08 [0] 09 [0] 10 [0] 11 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Address authentication (IMP DEF algorithm)
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: initrd=\efi\nixos\hkvhj9jb3k87mcc2v9n1n7bk4llbgakv-initrd-linux-6.6.0-asahi-initrd.efi init=/nix/store/hxrkb5qck5fl3zh3zmlpwdgq9s3nl6m0-nixos-system-snOwOS-24.05.20231219.54aac08/init earlycon console=ttySAC0,115200n8 console=tty0 boot.shell_on_fail nvme_apple.flush_interval=0 loglevel=4
[    0.000000] Dentry cache hash table entries: 2097152 (order: 10, 16777216 bytes, linear)
[    0.000000] Inode-cache hash table entries: 1048576 (order: 9, 8388608 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1001448
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 16.
[    0.000000] software IO TLB: mapped [mem 0x00000103c0610000-0x00000103c4610000] (64MB)
[    0.000000] Memory: 15669440K/16088704K available (12544K kernel code, 1674K rwdata, 4800K rodata, 2944K init, 632K bss, 353728K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=12, Nodes=1
[    0.000000] Dynamic Preempt: full
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=12.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=12
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: aic_handle_irq
[    0.000000] Root FIQ handler: aic_handle_fiq
[    0.000000] irq_apple_aic: Using Fast IPIs
[    0.000000] irq_apple_aic: Initialized with 1961/4096 IRQs * 1/8 die(s), 7 FIQs, 32 vIPIs
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000145] Console: colour dummy device 80x25
[    0.000148] printk: console [tty0] enabled
[    0.000165] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[    0.000168] pid_max: default: 32768 minimum: 301
[    0.000225] LSM: initializing lsm=capability,yama,apparmor
[    0.000256] Yama: becoming mindful.
[    0.000270] AppArmor: AppArmor initialized
[    0.000297] Mount-cache hash table entries: 32768 (order: 4, 262144 bytes, linear)
[    0.000302] Mountpoint-cache hash table entries: 32768 (order: 4, 262144 bytes, linear)
[    0.000938] RCU Tasks: Setting shift to 4 and lim to 1 rcu_task_cb_adjust=1.
[    0.000952] RCU Tasks Trace: Setting shift to 4 and lim to 1 rcu_task_cb_adjust=1.
[    0.001000] rcu: Hierarchical SRCU implementation.
[    0.001001] rcu:     Max phase no-delay instances is 400.
[    0.001269] Remapping and enabling EFI services.
[    0.001369] smp: Bringing up secondary CPUs ...
[    0.001455] Detected PIPT I-cache on CPU1
[    0.001471] CPU1: Booted secondary processor 0x0000000001 [0x611f0340]
[    0.001581] Detected PIPT I-cache on CPU2
[    0.001593] CPU2: Booted secondary processor 0x0000000002 [0x611f0340]
[    0.001689] Detected PIPT I-cache on CPU3
[    0.001702] CPU3: Booted secondary processor 0x0000000003 [0x611f0340]
[    0.001805] Detected PIPT I-cache on CPU4
[    0.001826] CPU4: Booted secondary processor 0x0000010100 [0x611f0350]
[    0.001940] Detected PIPT I-cache on CPU5
[    0.001952] CPU5: Booted secondary processor 0x0000010101 [0x611f0350]
[    0.002061] Detected PIPT I-cache on CPU6
[    0.002074] CPU6: Booted secondary processor 0x0000010102 [0x611f0350]
[    0.002182] Detected PIPT I-cache on CPU7
[    0.002194] CPU7: Booted secondary processor 0x0000010103 [0x611f0350]
[    0.002305] Detected PIPT I-cache on CPU8
[    0.002326] CPU8: Booted secondary processor 0x0000010200 [0x611f0350]
[    0.002440] Detected PIPT I-cache on CPU9
[    0.002453] CPU9: Booted secondary processor 0x0000010201 [0x611f0350]
[    0.002557] Detected PIPT I-cache on CPU10
[    0.002571] CPU10: Booted secondary processor 0x0000010202 [0x611f0350]
[    0.002675] Detected PIPT I-cache on CPU11
[    0.002689] CPU11: Booted secondary processor 0x0000010203 [0x611f0350]
[    0.002722] smp: Brought up 1 node, 12 CPUs
[    0.002726] SMP: Total of 12 processors activated.
[    0.002727] CPU features: detected: Branch Target Identification
[    0.002729] CPU features: detected: ARMv8.4 Translation Table Level
[    0.002730] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.002731] CPU features: detected: Common not Private translations
[    0.002732] CPU features: detected: CRC32 instructions
[    0.002733] CPU features: detected: Data independent timing control (DIT)
[    0.002734] CPU features: detected: E0PD
[    0.002735] CPU features: detected: Enhanced Counter Virtualization
[    0.002736] CPU features: detected: Enhanced Virtualization Traps
[    0.002737] CPU features: detected: Fine Grained Traps
[    0.002738] CPU features: detected: Generic authentication (IMP DEF algorithm)
[    0.002739] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.002740] CPU features: detected: LSE atomic instructions
[    0.002741] CPU features: detected: Privileged Access Never
[    0.002742] CPU features: detected: RAS Extension Support
[    0.002743] CPU features: detected: Speculation barrier (SB)
[    0.002743] CPU features: detected: Stage-2 Force Write-Back
[    0.002744] CPU features: detected: TLB range maintenance instructions
[    0.002745] CPU features: detected: TSO memory model (Apple)
[    0.002747] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.002781] CPU: All CPU(s) started at EL2
[    0.002782] alternatives: applying system-wide alternatives
[    0.003612] devtmpfs: initialized
[    0.006554] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.006557] futex hash table entries: 4096 (order: 4, 262144 bytes, linear)
[    0.006683] pinctrl core: initialized pinctrl subsystem
[    0.006768] DMI not present or invalid.
[    0.006885] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.007449] DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
[    0.007475] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.007501] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.007510] audit: initializing netlink subsys (disabled)
[    0.007548] audit: type=2000 audit(0.007:1): state=initialized audit_enabled=0 res=1
[    0.007637] thermal_sys: Registered thermal governor 'fair_share'
[    0.007639] thermal_sys: Registered thermal governor 'bang_bang'
[    0.007640] thermal_sys: Registered thermal governor 'step_wise'
[    0.007641] thermal_sys: Registered thermal governor 'user_space'
[    0.007641] thermal_sys: Registered thermal governor 'power_allocator'
[    0.007651] cpuidle: using governor ladder
[    0.007656] cpuidle: using governor menu
[    0.007677] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.007763] ASID allocator initialised with 256 entries
[    0.019607] Modules: 6756 pages in range for non-PLT usage
[    0.019609] Modules: 129636 pages in range for PLT usage
[    0.019785] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.019786] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.019788] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.019789] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.019790] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.019790] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.019920] cryptd: max_cpu_qlen set to 1000
[    0.020097] ACPI: Interpreter disabled.
[    0.020277] iommu: Default domain type: Translated
[    0.020278] iommu: DMA domain TLB invalidation policy: strict mode
[    0.020368] SCSI subsystem initialized
[    0.020404] usbcore: registered new interface driver usbfs
[    0.020410] usbcore: registered new interface driver hub
[    0.020421] usbcore: registered new device driver usb
[    0.020431] pps_core: LinuxPPS API ver. 1 registered
[    0.020432] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.020621] efivars: Registered efivars operations
[    0.020687] Advanced Linux Sound Architecture Driver Initialized.
[    0.020845] NetLabel: Initializing
[    0.020846] NetLabel:  domain hash size = 128
[    0.020847] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.020859] NetLabel:  unlabeled traffic allowed by default
[    0.020895] vgaarb: loaded
[    0.020963] clocksource: Switched to clocksource arch_sys_counter
[    0.021022] VFS: Disk quotas dquot_6.6.0
[    0.021030] VFS: Dquot-cache hash table entries: 2048 (order 0, 16384 bytes)
[    0.021195] AppArmor: AppArmor Filesystem Enabled
[    0.021205] pnp: PnP ACPI: disabled
[    0.022692] NET: Registered PF_INET protocol family
[    0.022733] IP idents hash table entries: 262144 (order: 7, 2097152 bytes, linear)
[    0.025503] tcp_listen_portaddr_hash hash table entries: 8192 (order: 3, 131072 bytes, linear)
[    0.025532] Table-perturb hash table entries: 65536 (order: 4, 262144 bytes, linear)
[    0.025534] TCP established hash table entries: 131072 (order: 6, 1048576 bytes, linear)
[    0.025633] TCP bind hash table entries: 65536 (order: 7, 2097152 bytes, linear)
[    0.025735] TCP: Hash tables configured (established 131072 bind 65536)
[    0.025767] MPTCP token hash table entries: 16384 (order: 4, 393216 bytes, linear)
[    0.025788] UDP hash table entries: 8192 (order: 4, 262144 bytes, linear)
[    0.025805] UDP-Lite hash table entries: 8192 (order: 4, 262144 bytes, linear)
[    0.025846] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.025928] RPC: Registered named UNIX socket transport module.
[    0.025929] RPC: Registered udp transport module.
[    0.025929] RPC: Registered tcp transport module.
[    0.025930] RPC: Registered tcp-with-tls transport module.
[    0.025930] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.025933] PCI: CLS 0 bytes, default 64
[    0.025989] Trying to unpack rootfs image as initramfs...
[    0.030005] kvm [1]: IPA Size Limit: 42 bits
[    0.030012] kvm [1]: Non-architectural vgic, tainting kernel
[    0.030013] kvm [1]: GICv3: no GICV resource entry
[    0.030014] kvm [1]: disabling GICv2 emulation
[    0.030014] kvm [1]: GICv3 with broken locally generated SEI
[    0.030015] kvm [1]: GICv3 sysreg trapping enabled ([G0G1D], reduced performance)
[    0.030027] kvm [1]: GIC system register CPU interface enabled
[    0.030031] kvm [1]: vgic interrupt IRQ33
[    0.030043] kvm [1]: VHE mode initialized successfully
[    0.030328] Initialise system trusted keyrings
[    0.030361] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.030367] zbud: loaded
[    0.030589] NFS: Registering the id_resolver key type
[    0.030592] Key type id_resolver registered
[    0.030592] Key type id_legacy registered
[    0.030596] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.030598] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.035541] NET: Registered PF_ALG protocol family
[    0.035543] Key type asymmetric registered
[    0.035544] Asymmetric key parser 'x509' registered
[    0.035545] Asymmetric key parser 'pkcs8' registered
[    0.067346] Freeing initrd memory: 9968K
[    0.067788] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.067821] io scheduler mq-deadline registered
[    0.067822] io scheduler kyber registered
[    0.067830] io scheduler bfq registered
[    0.072378] apple-pmgr-pwrstate 29e280000.power-management:power-controller@78: always-on domain msg is not on at boot
[    0.072750] 39b200000.serial: ttySAC0 at MMIO 0x39b200000 (irq = 44, base_baud = 0) is a APPLE S5L
[    0.072759] printk: console [ttySAC0] enabled
[    0.073038] [drm] Initialized simpledrm 1.0.0 20200625 for 103d2d76880.framebuffer on minor 0
[    0.084332] Console: switching to colour frame buffer device 189x59
[    0.101225] simple-framebuffer 103d2d76880.framebuffer: [drm] fb0: simpledrmdrmfb frame buffer device
[    0.121583] mousedev: PS/2 mouse device common for all mice
[    0.121692] device-mapper: uevent: version 1.0.3
[    0.121713] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    0.122058] ledtrig-cpu: registered to indicate activity on CPUs
[    0.122082] hid: raw HID events driver (C) Jiri Kosina
[    0.122450] watchdog: Delayed init of the lockup detector failed: -19
[    0.122451] watchdog: Hard watchdog permanently disabled
[    0.122605] hw perfevents: enabled with apple_blizzard_pmu PMU driver, 10 counters available
[    0.122819] hw perfevents: enabled with apple_avalanche_pmu PMU driver, 10 counters available
[    0.123322] Initializing XFRM netlink socket
[    0.123356] NET: Registered PF_INET6 protocol family
[    0.124026] Segment Routing with IPv6
[    0.124030] In-situ OAM (IOAM) with IPv6
[    0.124043] mip6: Mobile IPv6
[    0.124045] NET: Registered PF_PACKET protocol family
[    0.124087] Key type dns_resolver registered
[    0.125119] registered taskstats version 1
[    0.125154] Loading compiled-in X.509 certificates
[    0.126042] Key type .fscrypt registered
[    0.126042] Key type fscrypt-provisioning registered
[    0.126156] Key type encrypted registered
[    0.126161] AppArmor: AppArmor sha1 policy hashing enabled
[    0.263098] clk: Disabling unused clocks
[    0.263104] ALSA device list:
[    0.263106]   No soundcards found.
[    0.263285] Freeing unused kernel memory: 2944K
[    0.280995] Checked W+X mappings: passed, no W+X pages found
[    0.281002] Run /init as init process
[    0.281003]   with arguments:
[    0.281004]     /init
[    0.281010]   with environment:
[    0.281011]     HOME=/
[    0.281012]     TERM=linux
[    0.294276] stage-1-init: [Thu Jan  1 00:00:00 UTC 1970] running udev...
[    0.300529] stage-1-init: [Thu Jan  1 00:00:00 UTC 1970] Starting systemd-udevd version 254.6
[    0.341267] apple-dart 2a9808000.iommu: Limiting DMA range to 0x0000010000000000..0x00000100ffffffff
[    0.341556] apple-dart 2a9808000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.341645] apple-dart 3860e8000.iommu: Limiting DMA range to 0x0000010000000000..0x00000100ffffffff
[    0.341730] apple-dart 3860e8000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.341759] apple-dart 3860f4000.iommu: Limiting DMA range to 0x0000010000000000..0x00000100ffffffff
[    0.341840] apple-dart 3860f4000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.341869] apple-dart 3860fc000.iommu: Limiting DMA range to 0x0000010000000000..0x00000100ffffffff
[    0.341993] apple-dart 3860fc000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.342045] apple-dart 389304000.iommu: Limiting DMA range to 0x0000010000000000..0x0000010fffffffff
[    0.342169] apple-dart 389304000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 1, AS 42 -> 42] initialized
[    0.342211] apple-dart 38930c000.iommu: Limiting DMA range to 0x0000010000000000..0x0000010fffffffff
[    0.342262] apple-dart 38930c000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 1, AS 42 -> 42] initialized
[    0.342409] apple-dart 39b008000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.342542] apple-dart 594000000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.342648] apple-dart 595000000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.342692] apple-dart 289304000.iommu: Limiting DMA range to 0x0000010000000000..0x0000010fffffffff
[    0.342731] apple-dart 289304000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 1, AS 42 -> 42] initialized
[    0.342759] apple-dart 28930c000.iommu: Limiting DMA range to 0x0000010000000000..0x0000010fffffffff
[    0.342797] apple-dart 28930c000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 1, AS 42 -> 42] initialized
[    0.342972] apple-dart 702f00000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.343048] apple-dart 702f80000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.343132] apple-dart b02f00000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.343209] apple-dart b02f80000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.343294] apple-dart f02f00000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.343374] apple-dart f02f80000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0, locked: 0, AS 42 -> 42] initialized
[    0.347060] apple-gpio-pinctrl 2a2820000.pinctrl: No cache defaults, reading back from HW
[    0.347607] apple-gpio-pinctrl 29e1f0000.pinctrl: No cache defaults, reading back from HW
[    0.347981] rtkit-helper 2a9400000.mtp: Adding to iommu group 0
[    0.348120] rtkit-helper 2a9400000.mtp: RTKit: Initializing (protocol version 12)
[    0.348748] apple-gpio-pinctrl 2a6820000.pinctrl: No cache defaults, reading back from HW
[    0.348842] rtkit-helper 2a9400000.mtp: RTKit: Unknown oslog message: 300006e6ab20420
[    0.348845] rtkit-helper 2a9400000.mtp: RTKit: Unknown oslog message: 400002000000105
[    0.348846] rtkit-helper 2a9400000.mtp: RTKit: Unknown oslog message: 400004001050000
[    0.348847] rtkit-helper 2a9400000.mtp: RTKit: Unknown oslog message: 400006000000000
[    0.348848] rtkit-helper 2a9400000.mtp: RTKit: Unknown oslog message: 50672694670744d
[    0.348867] rtkit-helper 2a9400000.mtp: RTKit: Unknown oslog message: 56500657261776d
[    0.349268] apple-gpio-pinctrl 39b028000.pinctrl: No cache defaults, reading back from HW
[    0.349855] nvme-apple 34bcc0000.nvme: RTKit: Initializing (protocol version 12)
[    0.349888] nvme-apple 34bcc0000.nvme: RTKit: Unknown system endpoint: 0x0a
[    0.351997] macsmc-rtkit 2a2400000.smc: RTKit: Initializing (protocol version 12)
[    0.354179] macsmc-rtkit 2a2400000.smc: Initialized (2291 keys #KEY (0x234b4559)..zSPp (0x7a535070))
[    0.360983] dockchannel-hid 2a9b30000.input: Adding to iommu group 0
[    0.361110] dockchannel-hid 2a9b30000.input: Initialized, awaiting packets
[    0.361206] dockchannel-hid 2a9b30000.input: Product name for stm: Apple Internal Keyboard / Trackpad
[    0.361283] dockchannel-hid 2a9b30000.input: Product name for multi-touch: Apple Internal Keyboard / Trackpad
[    0.361385] dockchannel-hid 2a9b30000.input: Product name for keyboard: Apple Internal Keyboard / Trackpad
[    0.361441] dockchannel-hid 2a9b30000.input: Product name for tp_accel: Apple Internal Keyboard / Trackpad
[    0.361498] dockchannel-hid 2a9b30000.input: Product name for actuator: Apple Internal Keyboard / Trackpad
[    0.361535] dockchannel-hid 2a9b30000.input: Product name for stm: Apple Internal Keyboard / Trackpad
[    0.361540] dockchannel-hid 2a9b30000.input: New interface stm
[    0.361637] rtkit-helper 2a9400000.mtp: RTKit: syslog message: stm_cr.c:98: ST management interface configuration completed
[    0.361642] rtkit-helper 2a9400000.mtp: RTKit: syslog message: stm.c:97: ST management ready
[    0.361647] dockchannel-hid 2a9b30000.input: Interface stm is now ready
[    0.361790] hid-generic 0019:0000:0000.0001: hidraw0: HOST HID v0.00 Device [Apple MTP stm] on 2a9b30000.input.3 (stm)
[    0.372272] dockchannel-hid 2a9b30000.input: New interface multi-touch
[    0.372318] dockchannel-hid 2a9b30000.input: New interface keyboard
[    0.372338] dockchannel-hid 2a9b30000.input: New interface actuator
[    0.372358] rtkit-helper 2a9400000.mtp: RTKit: syslog message: touch_iface.c:212: Grape interface configuration completed
[    0.372540] input: Apple MTP multi-touch Mouse as /devices/platform/soc/2a9b14000.fifo/2a9b30000.input/0019:05AC:0352.0002/input/input0
[    0.372560] dockchannel-hid 2a9b30000.input: New interface tp_accel
[    0.372649] rtkit-helper 2a9400000.mtp: RTKit: syslog message: accel_cr.c:78: Accel interface configuration completed
[    0.372649] hid-generic 0019:05AC:0352.0002: input,hidraw1: HOST HID v2.70 Mouse [Apple MTP multi-touch] on 2a9b30000.input.1 (multi-touch)
[    0.372661] rtkit-helper 2a9400000.mtp: RTKit: syslog message: accel.c:72: Accel ready
[    0.372665] dockchannel-hid 2a9b30000.input: Interface tp_accel is now ready
[    0.372783] rtkit-helper 2a9400000.mtp: RTKit: syslog message: keyboard_cr.c:78: Keyboard interface configuration completed
[    0.372795] rtkit-helper 2a9400000.mtp: RTKit: syslog message: keyboard.c:75: Keyboard ready
[    0.372799] dockchannel-hid 2a9b30000.input: Interface keyboard is now ready
[    0.372821] hid-generic 0019:05AC:0352.0003: hidraw2: HOST HID v2.70 Device [Apple MTP tp_accel] on 2a9b30000.input.5 (tp_accel)
[    0.372995] input: Apple MTP keyboard Keyboard as /devices/platform/soc/2a9b14000.fifo/2a9b30000.input/0019:05AC:0352.0004/input/input3
[    0.373179] rtkit-helper 2a9400000.mtp: RTKit: syslog message: actuator_cr.c:88: Actuator interface configuration completed
[    0.373191] rtkit-helper 2a9400000.mtp: RTKit: syslog message: actuator.c:72: Actuator ready
[    0.373192] hid-generic 0019:05AC:0352.0004: input,hidraw3: HOST HID v2.70 Keyboard [Apple MTP keyboard] on 2a9b30000.input.2 (keyboard)
[    0.373194] dockchannel-hid 2a9b30000.input: Interface actuator is now ready
[    0.373295] hid-generic 0019:05AC:0352.0005: hidraw4: HOST HID v2.70 Device [Apple MTP actuator] on 2a9b30000.input.4 (actuator)
[    0.373425] dwc3 702280000.usb: Adding to iommu group 1
[    0.403306] nvme-apple 34bcc0000.nvme: RTKit: syslog message: apcie.c:1110: power up done[0]: PMU=Ocarina, PWR=0
[    0.403309] nvme-apple 34bcc0000.nvme: RTKit: syslog message: apcie.c:1110: power up done[1]: PMU=Undefined, PWR=0
[    0.403311] nvme-apple 34bcc0000.nvme: RTKit: syslog message: apcie.c:423: APCIe 1 is configured as unused.
[    0.403562] nvme-apple 34bcc0000.nvme: RTKit: syslog message: pre_nand_eng.c:6162: enabled 1p0v 1, enabled prog-no-exec 1
[    0.403565] nvme-apple 34bcc0000.nvme: RTKit: syslog message: pre_nand_eng.c:6162: enabled 1p0v 1, enabled prog-no-exec 1
[    0.403567] nvme-apple 34bcc0000.nvme: RTKit: syslog message: pre_nand_eng.c:6162: enabled 1p0v 1, enabled prog-no-exec 1
[    0.403569] nvme-apple 34bcc0000.nvme: RTKit: syslog message: pre_nand_eng.c:6162: enabled 1p0v 1, enabled prog-no-exec 1
[    0.422264] nvme-apple 34bcc0000.nvme: RTKit: syslog message: cmd.c:6416:  boot mode normal
[    0.424969]  nvme0n1: p1 p2 p3 p4 p5 p6
[    0.434737] macsmc-rtkit 2a2400000.smc: Failed to create device link (0x180) with 29e114000.spmi:pmu@f:rtc_nvmem@1400
[    0.435936] macsmc-gpio macsmc-gpio: First GPIO key: gP01 (0x67503031)
[    0.444562] macsmc-rtkit 2a2400000.smc: Failed to create device link (0x180) with 29e114000.spmi:pmu@f:rtc_nvmem@1400
[    0.454631] macsmc-rtkit 2a2400000.smc: Failed to create device link (0x180) with 29e114000.spmi:pmu@f:legacy_nvmem@6000
[    0.455593] gpio gpiochip4: (macsmc-pmu-gpio): not an immutable chip, please consider fixing it!
[    0.473714] stage-1-init: [Thu Jan  1 00:00:00 UTC 1970] starting device mapper and LVM...
[    0.510378] stage-1-init: [Thu Jan  1 00:00:00 UTC 1970] checking /dev/disk/by-uuid/12636250-1e17-4e04-bac1-f8fe4c5f8c19...
[    0.510835] stage-1-init: [Thu Jan  1 00:00:00 UTC 1970] fsck (busybox 1.36.1)
[    0.511328] stage-1-init: [Thu Jan  1 00:00:00 UTC 1970] [fsck.ext4 (1) -- /mnt-root/] fsck.ext4 -a /dev/disk/by-uuid/12636250-1e17-4e04-bac1-f8fe4c5f8c19
[    0.514375] stage-1-init: [Thu Jan  1 00:00:00 UTC 1970] nixos: clean, 453738/11698176 files, 4721343/46792488 blocks
[    0.521785] stage-1-init: [Thu Jan  1 00:00:00 UTC 1970] mounting /dev/disk/by-uuid/12636250-1e17-4e04-bac1-f8fe4c5f8c19 on /...
[    0.524088] EXT4-fs (nvme0n1p5): mounted filesystem 12636250-1e17-4e04-bac1-f8fe4c5f8c19 r/w with ordered data mode. Quota mode: none.
[    0.524570] EXT4-fs (nvme0n1p5): re-mounted 12636250-1e17-4e04-bac1-f8fe4c5f8c19 r/w. Quota mode: none.
[    0.620104] EXT4-fs (nvme0n1p5): re-mounted 12636250-1e17-4e04-bac1-f8fe4c5f8c19 r/w. Quota mode: none.
[    0.620280] booting system configuration /nix/store/hxrkb5qck5fl3zh3zmlpwdgq9s3nl6m0-nixos-system-snOwOS-24.05.20231219.54aac08
[    0.636684] stage-2-init: running activation script...
[    0.754002] stage-2-init: setting up /etc...
[    0.873887] systemd[1]: RTC configured in localtime, applying delta of 60 minutes to system time.
[    0.873895] systemd[1]: System time before build time, advancing clock.
[    0.882014] systemd[1]: systemd 254.6 running in system mode (+PAM +AUDIT -SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK -XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified)
[    0.882018] systemd[1]: Detected architecture arm64.
[    0.882948] systemd[1]: Hostname set to <snOwOS>.
[    0.907035] dwc3 b02280000.usb: Adding to iommu group 2
[    0.918924] systemd[1]: bpf-lsm: BPF LSM hook not enabled in the kernel, BPF LSM not supported
[    1.022543] systemd[1]: /etc/systemd/system/cups.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/cups/cups.sock → /run/cups/cups.sock; please update the unit file accordingly.
[    1.030094] systemd[1]: /etc/systemd/system/greetd.service:20: Unknown key name 'StantardOutput' in section 'Service', ignoring.
[    1.031535] systemd[1]: Queued start job for default target Graphical Interface.
[    1.043710] systemd[1]: Created slice Virtual Machine and Container Slice.
[    1.044283] systemd[1]: Created slice Slice /system/modprobe.
[    1.044561] systemd[1]: Created slice Slice /system/serial-getty.
[    1.044837] systemd[1]: Created slice Slice /system/systemd-fsck.
[    1.045106] systemd[1]: Created slice User and Session Slice.
[    1.045178] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    1.045244] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    1.045308] systemd[1]: Reached target Local Encrypted Volumes.
[    1.045355] systemd[1]: Reached target Containers.
[    1.045400] systemd[1]: Reached target Path Units.
[    1.045438] systemd[1]: Reached target Remote File Systems.
[    1.045475] systemd[1]: Reached target Slice Units.
[    1.045513] systemd[1]: Reached target Swaps.
[    1.045546] systemd[1]: Reached target libvirt guests shutdown target.
[    1.046390] systemd[1]: Listening on Process Core Dump Socket.
[    1.046497] systemd[1]: Listening on Journal Socket (/dev/log).
[    1.046598] systemd[1]: Listening on Journal Socket.
[    1.046702] systemd[1]: Listening on Userspace Out-Of-Memory (OOM) Killer Socket.
[    1.046975] systemd[1]: Listening on udev Control Socket.
[    1.047056] systemd[1]: Listening on udev Kernel Socket.
[    1.047712] systemd[1]: Mounting Huge Pages File System...
[    1.048293] systemd[1]: Mounting POSIX Message Queue File System...
[    1.049833] systemd[1]: Mounting Kernel Debug File System...
[    1.050486] systemd[1]: Starting Create List of Static Device Nodes...
[    1.051153] systemd[1]: Starting Load Kernel Module configfs...
[    1.051769] systemd[1]: Starting Load Kernel Module drm...
[    1.052391] systemd[1]: Starting Load Kernel Module efi_pstore...
[    1.053052] systemd[1]: Starting Load Kernel Module fuse...
[    1.053718] systemd[1]: Starting mount-pstore.service...
[    1.054367] systemd[1]: Starting Create SUID/SGID Wrappers...
[    1.054421] systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/).
[    1.055280] systemd[1]: Starting Journal Service...
[    1.055784] fuse: init (API version 7.39)
[    1.055954] systemd[1]: Starting Load Kernel Modules...
[    1.056516] systemd[1]: Starting Remount Root and Kernel File Systems...
[    1.057680] systemd[1]: Starting Coldplug All udev Devices...
[    1.060409] systemd[1]: Mounted Huge Pages File System.
[    1.061933] EXT4-fs (nvme0n1p5): re-mounted 12636250-1e17-4e04-bac1-f8fe4c5f8c19 r/w. Quota mode: none.
[    1.062740] systemd[1]: Mounted POSIX Message Queue File System.
[    1.063153] systemd-journald[649]: Collecting audit messages is disabled.
[    1.063680] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.063909] systemd[1]: Mounted Kernel Debug File System.
[    1.064557] systemd[1]: Finished Create List of Static Device Nodes.
[    1.065244] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[    1.065339] systemd[1]: Finished Load Kernel Module configfs.
[    1.065928] systemd[1]: modprobe@drm.service: Deactivated successfully.
[    1.066016] tun: Universal TUN/TAP device driver, 1.6
[    1.066045] systemd[1]: Finished Load Kernel Module drm.
[    1.066639] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[    1.066718] systemd[1]: Finished Load Kernel Module efi_pstore.
[    1.067272] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[    1.067350] systemd[1]: Finished Load Kernel Module fuse.
[    1.068256] systemd[1]: Finished Remount Root and Kernel File Systems.
[    1.069582] systemd[1]: Mounting FUSE Control File System...
[    1.070243] loop: module loaded
[    1.070649] systemd[1]: Mounting Kernel Configuration File System...
[    1.071721] systemd[1]: Starting Load/Save OS Random Seed...
[    1.072928] systemd[1]: Starting Create Static Device Nodes in /dev gracefully...
[    1.074205] systemd[1]: Finished Load Kernel Modules.
[    1.074677] systemd[1]: Mounted FUSE Control File System.
[    1.075090] systemd[1]: Mounted Kernel Configuration File System.
[    1.075487] systemd[1]: Started Journal Service.
[    1.086241] systemd-journald[649]: Received client request to flush runtime journal.
[    1.098685] systemd-journald[649]: /var/log/journal/334d486b13eb4f479c89067d405b39d9/system.journal: Realtime clock jumped backwards relative to last journal entry, rotating.
[    1.098689] systemd-journald[649]: Rotating system journal.
[    1.154038] apple-display-crossbar 130304c000.mux: Switched dpphy to disconnected state
[    1.154041] apple-display-crossbar 130304c000.mux: Switched dpin0 to disconnected state
[    1.154041] apple-display-crossbar 130304c000.mux: Switched dpin1 to disconnected state
[    1.157765] apple-dcp 389c00000.dcp: Adding to iommu group 3
[    1.157837] apple-dart 38930c000.iommu: Limited to ias=36 due to lock
[    1.169786] apple-dcp 289c00000.dcp: Adding to iommu group 4
[    1.169819] apple-dart 28930c000.iommu: Limited to ias=36 due to lock
[    1.173849] apple-display-crossbar 130304c000.mux: Switched dpphy to dispext0,0
[    1.176606] mc: Linux media interface: v0.10
[    1.181029] apple-admac 39b400000.dma-controller: Adding to iommu group 5
[    1.182259] asahi 406400000.gpu: Probing...
[    1.182307] asahi 406400000.gpu: MMU: Initializing...
[    1.182313] videodev: Linux video capture interface: v2.00
[    1.182333] asahi 406400000.gpu: MMU: Initializing kernel page table
[    1.182341] asahi 406400000.gpu: MMU: Creating kernel page tables
[    1.182345] asahi 406400000.gpu: MMU: Kernel page tables created
[    1.183143] input: Apple SMC power/lid events as /devices/platform/soc/2a2400000.smc/macsmc-hid/input/input5
[    1.192187] cs42l84 2-004b: Found reset GPIO
[    1.192205] apple-admac 39b400000.dma-controller: Audio DMA Controller
[    1.192206] apple-admac 39b400000.dma-controller: imprint 8082008 TX cache 8192 RX cache 8192
[    1.192733] apple-drm soc:display-subsystem: Adding to iommu group 6
[    1.192768] apple-dart 389304000.iommu: Limited to ias=36 due to lock
[    1.193928] spi-nor spi0.0: spi-nor-generic (8192 Kbytes)
[    1.193967] asahi 406400000.gpu: MMU: Initializing TTBs
[    1.193969] asahi 406400000.gpu: MMU: initialized
[    1.193971] asahi 406400000.gpu: GPU ID registers: 0x6031100 0x60602 0x21020a 0x40404 0x1320311 0x400c1802
[    1.193974] asahi 406400000.gpu: Core masks: [
                   0x7ffff,
                   0x0,
                   0x0,
               ]
[    1.193977] asahi 406400000.gpu: GPU Information:
[    1.193977] asahi 406400000.gpu:   Type: G14S
[    1.193978] asahi 406400000.gpu:   Clusters: 2
[    1.193979] asahi 406400000.gpu:   Cores: 10 (20)
[    1.193981] asahi 406400000.gpu:   Frags: 10 (20)
[    1.193981] asahi 406400000.gpu:   GPs: 4 (8)
[    1.193982] asahi 406400000.gpu:   Core masks: [
                   0x3ff,
                   0x1ff,
               ]
[    1.193982] asahi 406400000.gpu:   Active cores: 19
[    1.193983] asahi 406400000.gpu: Getting configuration from device tree...
[    1.194007] asahi 406400000.gpu: Dynamic configuration fetched
[    1.194190] asahi 406400000.gpu: MMU: IO map: 0x404d00000:0x144000 -> 0xffffffaf00000000
[    1.194192] asahi 406400000.gpu: MMU: IO map: 0x20e100000:0x4000 -> 0xffffffaf00148000
[    1.194193] asahi 406400000.gpu: MMU: IO map: 0x28e104000:0x8000 -> 0xffffffaf00150000
[    1.194194] asahi 406400000.gpu: MMU: IO map: 0x404000000:0x20000 -> 0xffffffaf0015c000
[    1.194194] asahi 406400000.gpu: MMU: IO map: 0x28e460000:0x4000 -> 0xffffffaf00180000
[    1.194195] asahi 406400000.gpu: MMU: IO map: 0x404e08000:0x8000 -> 0xffffffaf00188000
[    1.194196] asahi 406400000.gpu: MMU: IO map: 0x200000000:0xd8000 -> 0xffffffaf00194000
[    1.194197] asahi 406400000.gpu: MMU: IO map: 0x201000000:0xd8000 -> 0xffffffaf0026c000
[    1.194197] asahi 406400000.gpu: MMU: IO map: 0x202000000:0xd8000 -> 0xffffffaf00344000
[    1.194198] asahi 406400000.gpu: MMU: IO map: 0x203000000:0xd8000 -> 0xffffffaf0041c000
[    1.194199] asahi 406400000.gpu: MMU: IO map: 0x28e118000:0x4000 -> 0xffffffaf004f8000
[    1.194199] asahi 406400000.gpu: MMU: IO map: 0x28e3d0000:0x4000 -> 0xffffffaf00500000
[    1.194200] asahi 406400000.gpu: MMU: IO map: 0x28e3c0000:0x4000 -> 0xffffffaf00508000
[    1.194201] asahi 406400000.gpu: MMU: IO map: 0x28e3d8000:0x4000 -> 0xffffffaf00510000
[    1.194201] asahi 406400000.gpu: MMU: IO map: 0x404eac000:0x4000 -> 0xffffffaf00518000
[    1.194202] asahi 406400000.gpu: MMU: IO map: 0x404d60000:0x20000 -> 0xffffffaf00520000
[    1.195805] asahi 406400000.gpu: RTKit: Initializing (protocol version 12)
[    1.198848] [drm] Initialized asahi 0.0.0 20220831 for 406400000.gpu on minor 1
[    1.198850] asahi 406400000.gpu: Probed!
[    1.199825] cs42l84 2-004b: Cirrus Logic CS42L84, Revision: 36
[    1.200767] 1 fixed-partitions partitions found on MTD device spi0.0
[    1.200768] Creating 1 MTD partitions on "spi0.0":
[    1.200769] 0x000000700000-0x000000800000 : "nvram"
[    1.201061] apple-isp 384000000.isp: Adding to iommu group 7
[    1.201248] apple-isp 384000000.isp: ISP firmware-compat: 13.5 (FW: 13.5)
[    1.201336] Console: switching to colour dummy device 80x25
[    1.209306] apple-dcp 389c00000.dcp: Detected display with notch of 74 pixel
[    1.209551] apple-isp 384000000.isp: IPC surface iova: 0x10000f00000
[    1.209564] apple-isp 384000000.isp: Data surface iova: 0x10000f1c000
[    1.209618] platform 389c00000.dcp:piodma: Adding to iommu group 8
[    1.209682] apple-dart 389304000.iommu: Limited to ias=36 due to lock
[    1.209765] apple-dart 389304000.iommu: Limited to ias=36 due to lock
[    1.209864] apple-dcp 389c00000.dcp: RTKit: Initializing (protocol version 12)
[    1.209928] apple-dcp 389c00000.dcp: shmem_setup: iova: 1000083c000 -> pa: 103d9aa0000 -> iomem: ffff8000826d0000
[    1.209941] apple-dcp 389c00000.dcp: shmem_setup: iova: 10fffffc000, buffer: ffff8000826c4000
[    1.210747] apple-dcp 389c00000.dcp: shmem_setup: iova: 10fffff8000, buffer: ffff8000826e4000
[    1.210812] apple-drm soc:display-subsystem: bound 389c00000.dcp (ops dcp_comp_ops [apple_dcp])
[    1.210829] apple-dcp 289c00000.dcp: DCP index:1 dptx target phy: 3 dptx die: 0
[    1.210944] platform 289c00000.dcp:piodma: Adding to iommu group 9
[    1.210947] apple-dart 289304000.iommu: Limited to ias=36 due to lock
[    1.211016] apple-dcp 389c00000.dcp: RTKit: syslog message: ck_PCC2DBlm_v5.cpp:2611: IOMFB LACS_ERROR: DCP took too long to respond to LAS stats
[    1.211048] apple-dart 289304000.iommu: Limited to ias=36 due to lock
[    1.211069] apple-dcp 389c00000.dcp: RTKit: syslog message: ck_PCC2DBlm_v5.cpp:2646: IOMFB: BLM LTS data hasn't been read in more than 10 secs
[    1.211196] apple-dcp 289c00000.dcp: RTKit: Initializing (protocol version 12)
[    1.211295] apple-dcp 289c00000.dcp: shmem_setup: iova: 1000083c000 -> pa: 103d2bd0000 -> iomem: ffff800082710000
[    1.211307] apple-dcp 289c00000.dcp: shmem_setup: iova: 10fffffc000, buffer: ffff800082704000
[    1.212423] apple-dcp 289c00000.dcp: shmem_setup: iova: 10fffff8000, buffer: ffff800082724000
[    1.212508] apple-drm soc:display-subsystem: bound 289c00000.dcp (ops dcp_comp_ops [apple_dcp])
[    1.212827] apple-dcp 389c00000.dcp: RTKit: syslog message: ap_link.c:299: shared memory dva: 0x10fffe00000 0xffffffff005f8000
[    1.212861] apple-dcp 389c00000.dcp: RTKit: syslog message: ap_link.c:276: ap_link: IOMFB: DCP heap size: 0x1030000 [iBoot:0x1030000] [LinkService:0x0]
[    1.213687] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:4191: IOMFB: Could not find Backlight service
[    1.213719] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:4199: IOMFB: Could not find nvram service
[    1.213722] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1838: virtual bool UnifiedPipeline::start_ios_gated(): Created AP Services
[    1.213746] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1864: start_ios_gated: trigger pending HPD notification
[    1.213753] apple-dcp 389c00000.dcp: cb_hotplug() connected:1, valid_mode:0
[    1.213757] apple-dcp 389c00000.dcp: dcp_hotplug() connected:1 valid_mode:0 nr_modes:0
[    1.215785] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1871: virtual bool UnifiedPipeline::start_ios_gated(): Flushed RTPs
[    1.216064] apple-dcp 389c00000.dcp: RTKit: syslog message: ableCompensator.cpp:903: IOMFB setup_table: Could not find table 'display-backlight-compensation-v1' in registry. Using default table.
[    1.216222] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:11092: IOMFB updateFrequencies: minimum-frequency property not found, using getClockFrequency(0) instead.
[    1.216274] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:11109: IOMFB updateFrequencies EDT ERROR: getClockFrequency(0) (257142848) < videoClock 402278400! Giving up on frequencies.
[    1.216445] apple-dcp 389c00000.dcp: RTKit: syslog message: UPPipeDCP_H13P.cpp:1532: IOMFB: videoClock is zero, defaulting to 402280000
[    1.216860] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1356: set_device_enabled_gated: current state: 1, requested state: 1
[    1.216980] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:11092: IOMFB updateFrequencies: minimum-frequency property not found, using getClockFrequency(0) instead.
[    1.217034] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:11109: IOMFB updateFrequencies EDT ERROR: getClockFrequency(0) (257142848) < videoClock 402278400! Giving up on frequencies.
[    1.217260] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10490: set_run_mode_safe: deferring: 2 -> 4
[    1.217274] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10395: virtual IOMFBStatus IOMFB::UPPipeDCP_H13P::ready_for_run_mode_change(IOMFB::AppleRegisterStream *): initiating deferred run mod
[    1.217650] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load APT M3 IMem : size 0x7b40
[    1.217857] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load APT M3 DMem : size 0x6fd4
[    1.218031] apple-dcp 389c00000.dcp: RTKit: syslog message: CAHandler.cpp:188: IOMFB load_ca_data: Unrecognized data version 0 (expected 1 or 2)
[    1.220813] apple-dcp 289c00000.dcp: AFK[ep:20]: new service system on channel 1
[    1.220858] apple-dcp 289c00000.dcp: AFK[ep:20]: new service powerlog-service on channel 3
[    1.222863] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:14085: IOMFB Int RTBandwidth: program_M3_rt_config: Using Dashboard 28e3d1208
[    1.223141] apple-dcp 389c00000.dcp: AFK[ep:20]: new service system on channel 5
[    1.223238] apple-dcp 389c00000.dcp: AFK[ep:20]: new service powerlog-service on channel 7
[    1.223467] apple-dcp 389c00000.dcp: RTKit: syslog message: dpointInterface.cpp:606: [AFK][AFKMailboxSharedMemoryEndpointInterface:#62] if:1 inCmd:0 inResp:0 outRepErr:0 outCmdErr:0 t:487067315
[    1.223751] apple-dcp 389c00000.dcp: RTKit: syslog message: dpointInterface.cpp:606: [AFK][AFKMailboxSharedMemoryEndpointInterface:#65] if:3 inCmd:0 inResp:0 outRepErr:0 outCmdErr:0 t:487074193
[    1.224234] apple-dcp 389c00000.dcp: RTKit: syslog message: UPTSQManager.cpp:133: IOMFB: clearing M3 reset
[    1.224262] apple-dcp 389c00000.dcp: RTKit: syslog message: UPTSQ_Hal_v1.cpp:349: IOMFB: timebase_offset = 4
[    1.224923] apple-dcp 289c00000.dcp: AFK[ep:23]: new service disp0-service on channel 1
[    1.231035] apple-dcp 289c00000.dcp: AFK[ep:2a]: new service AppleDCPDPTXRemotePort on channel 1
[    1.231117] apple-dcp 289c00000.dcp: AFK[ep:2a]: new service AppleDCPDPTXRemotePort on channel 3
[    1.231350] apple-dcp 289c00000.dcp: DPTXPort: acking unhandled call 20
[    1.235400] apple-dcp 389c00000.dcp: RTKit: syslog message: UPTSQManager.cpp:105: IOMFB: switch to normal mode succeeded
[    1.238661] apple-dcp 389c00000.dcp: RTKit: syslog message: ck_PCC2DBlm_v5.cpp:2611: IOMFB LACS_ERROR: DCP took too long to respond to LAS stats
[    1.238671] apple-dcp 389c00000.dcp: DCP booted
[    1.239191] apple-dcp 389c00000.dcp: DCP is_main_display: 1
[    1.239197] apple-dcp 389c00000.dcp: dcp_hotplug() connected:1 valid_mode:0 nr_modes:5
[    1.253969] macsmc-reboot macsmc-reboot: Handling reboot and poweroff requests via SMC
[    1.255966] apple-dcp 289c00000.dcp: dcp_start: DP2HDMI HPD connected:0
[    1.256110] apple-dcp 289c00000.dcp: RTKit: syslog message: ap_link.c:299: shared memory dva: 0x10fffe00000 0xffffffff0001f000
[    1.256158] apple-dcp 289c00000.dcp: RTKit: syslog message: ap_link.c:276: ap_link: IOMFB: DCP heap size: 0x1030000 [iBoot:0x1030000] [LinkService:0x0]
[    1.257295] apple-dcp 289c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:4191: IOMFB: Could not find Backlight service
[    1.257366] apple-dcp 289c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:4199: IOMFB: Could not find nvram service
[    1.257369] apple-dcp 289c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1838: virtual bool UnifiedPipeline::start_ios_gated(): Created AP Services
[    1.260461] apple-dcp 289c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1871: virtual bool UnifiedPipeline::start_ios_gated(): Flushed RTPs
[    1.260994] apple-dcp 289c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:11122: IOMFB setup_video_limits called on secondary display with no timing set
[    1.262166] apple-dcp 289c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1356: set_device_enabled_gated: current state: 1, requested state: 1
[    1.262326] apple-dcp 289c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:11122: IOMFB setup_video_limits called on secondary display with no timing set
[    1.263911] apple-dcp 289c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10468: set_run_mode_safe: no need to defer: 2 -> 1
[    1.264006] apple-dcp 289c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10468: set_run_mode_safe: no need to defer: 1 -> 0
[    1.264481] apple-dcp 289c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1356: set_device_enabled_gated: current state: 1, requested state: 0
[    1.264776] apple-dcp 289c00000.dcp: DCP booted
[    1.264894] apple-dcp 289c00000.dcp: DCP is_main_display: 0
[    1.264897] apple-dcp 289c00000.dcp: dcp_hotplug() connected:0 valid_mode:0 nr_modes:0
[    1.273103] input: Apple MTP keyboard as /devices/platform/soc/2a9b14000.fifo/2a9b30000.input/0019:05AC:0352.0004/input/input6
[    1.273163] apple 0019:05AC:0352.0004: input,hidraw1: HOST HID v2.70 Keyboard [Apple MTP keyboard] on 2a9b30000.input.2 (keyboard)
[    1.273638] input: Apple MTP multi-touch as /devices/platform/soc/2a9b14000.fifo/2a9b30000.input/0019:05AC:0352.0002/input/input7
[    1.273674] magicmouse 0019:05AC:0352.0002: input,hidraw2: HOST HID v2.70 Mouse [Apple MTP multi-touch] on 2a9b30000.input.1 (multi-touch)
[    1.306382] dockchannel-hid 2a9b30000.input: Starting interface multi-touch
[    1.314662] dockchannel-hid 2a9b30000.input: Requesting GPIO multi-touch#167: afe-reset
[    1.315546] dockchannel-hid 2a9b30000.input: Sending firmware for multi-touch
[    1.315696] rtkit-helper 2a9400000.mtp: RTKit: syslog message: afe_transport.c:143: Z2 AFE transport initialized
[    1.315715] rtkit-helper 2a9400000.mtp: RTKit: syslog message: boot.c:151: [Touch]: AFE transport initialization complete
[    1.315727] rtkit-helper 2a9400000.mtp: RTKit: syslog message: boot.c:153: [Touch]: Touch initialized
[    1.315732] dockchannel-hid 2a9b30000.input: Resetting multi-touch
[    1.315877] dockchannel-hid 2a9b30000.input: GPIO command: multi-touch#167: 3
[    1.315903] rtkit-helper 2a9400000.mtp: RTKit: syslog message: touch.c:88: Touch Reset Ext Request: OK
[    1.332825] cs42l84 2-004b: Unplug event
[    1.368069] [drm] Initialized apple 1.0.0 20221106 for soc:display-subsystem on minor 0
[    1.370373] apple-dcp 389c00000.dcp: dcp_poweron() starting
[    1.370454] apple-dcp 389c00000.dcp: set_digital_out_mode(color:1 timing:3) "3024x1890": 60 402278 3024 3032 3064 3104 1890 1992 2074 2160 0x48 0x0
[    1.370458] apple-dcp 389c00000.dcp: set_digital_out_mode() color mode depth:8 format:0 colorimetry:16 eotf:0 range:0
[    1.370503] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:7462: set_digital_out_mode: Modeset requested for colorID: 1, timingID: 3
[    1.370547] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:18011: Dual pipe disabled offset 0
[    1.370746] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10490: set_run_mode_safe: deferring: 4 -> 1
[    1.370764] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10395: virtual IOMFBStatus IOMFB::UPPipeDCP_H13P::ready_for_run_mode_change(IOMFB::AppleRegisterStream *): initiating deferred run mod
[    1.370786] apple-dcp 389c00000.dcp: RTKit: syslog message: UPTSQManager.cpp:150: IOMFBStatus IOMFB::UPTSQManager::power_down_M3(IOMFB::AppleRegisterStream *, UPTSQManager::ModeChangeWaiter *): request mode ch
[    1.372823] apple-dcp 389c00000.dcp: RTKit: syslog message: UPTSQManager.cpp:162: IOMFBStatus IOMFB::UPTSQManager::power_down_M3(IOMFB::AppleRegisterStream *, UPTSQManager::ModeChangeWaiter *): disabling M3
[    1.372965] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10468: set_run_mode_safe: no need to defer: 1 -> 0
[    1.373699] apple-dcp 389c00000.dcp: RTKit: syslog message: ck_PCC2DBlm_v5.cpp:3300: Quiescing callback
[    1.412346] rtkit-helper 2a9400000.mtp: RTKit: syslog message: boot.c:382: Calibration blob 'TCAL' updated
[    1.437040] rtkit-helper 2a9400000.mtp: RTKit: syslog message: boot.c:382: Calibration blob 'FCAL' updated
[    1.451860] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1356: set_device_enabled_gated: current state: 1, requested state: 0
[    1.452067] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:7700: set_mode: timingID: 3 colorID: 1
[    1.453453] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:11092: IOMFB updateFrequencies: minimum-frequency property not found, using getClockFrequency(0) instead.
[    1.453531] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:11109: IOMFB updateFrequencies EDT ERROR: getClockFrequency(0) (257142848) < videoClock 402278400! Giving up on frequencies.
[    1.453784] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:7356: IOMFBStatus UnifiedPipeline::mode_set_gated(uint32_t, uint32_t): 3024x1964@60 Hz link: 1
[    1.453815] apple-dcp 389c00000.dcp: RTKit: syslog message: nifiedPipeline.cpp:1356: set_device_enabled_gated: current state: 0, requested state: 1
[    1.454081] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10468: set_run_mode_safe: no need to defer: 0 -> 1
[    1.454108] apple-dcp 389c00000.dcp: RTKit: syslog message: ock_Tunables_v1.cpp:651: IOMFB: Writing tunables with target 1
[    1.455145] apple-dcp 389c00000.dcp: RTKit: syslog message: ck_Config_H13P.cpp:1771: program_frame_size: pixel_clock 804560000, vid0 402280000, 00019247 000000a3
[    1.455548] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load LED M3 IMem : size 0x7b74
[    1.456059] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load LED M3 DMem : size 0x102e0
[    1.458468] apple-dcp 389c00000.dcp: RTKit: syslog message: ock_PCC2DLTM_v4.cpp:324: IOMFBStatus IOMFB::UPBlock_PCC2DLTM_v4::set_mcpu_power(IOMFB::AppleRegisterStream *, bool) Loading M3 Hal
[    1.458476] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load LTM M3 IMem : size 0x7308
[    1.458916] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load LTM M3 DMem : size 0xd190
[    1.460123] apple-dcp 389c00000.dcp: RTKit: syslog message: ck_PCC2DBlm_v5.cpp:4938: [set_lts_buffer] buffer 0x10001c94000 Add_lo = 0x1c94000, Add_hi = 0x100, size 0x2500 stride 0x100
[    1.460940] pcie-apple 580000000.pcie: host bridge /soc/pcie@580000000 ranges:
[    1.460951] pcie-apple 580000000.pcie:      MEM 0x05a0000000..0x05bfffffff -> 0x05a0000000
[    1.460955] pcie-apple 580000000.pcie:      MEM 0x05c0000000..0x05ffffffff -> 0x00c0000000
[    1.466729] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10468: set_run_mode_safe: no need to defer: 1 -> 2
[    1.466962] apple-dcp 389c00000.dcp: RTKit: syslog message: UPPipeDCP_H13P.cpp:1532: IOMFB: videoClock is zero, defaulting to 402280000
[    1.467033] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load BLM M3 IMem : size 0x764c
[    1.467466] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load BLM M3 DMem : size 0xaf6c
[    1.468124] apple-dcp 389c00000.dcp: RTKit: syslog message: FBPropertyManager.h:189: value_t<P> IOMFB::PropMgr::getVal(IOMFB::RuntimeProperty) [P = IOMFB::RuntimePropertyType::boolean]: WARNING - type mismatch on
[    1.468402] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10490: set_run_mode_safe: deferring: 2 -> 4
[    1.468410] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:10395: virtual IOMFBStatus IOMFB::UPPipeDCP_H13P::ready_for_run_mode_change(IOMFB::AppleRegisterStream *): initiating deferred run mod
[    1.468457] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load APT M3 IMem : size 0x7b40
[    1.468648] apple-dcp 389c00000.dcp: RTKit: syslog message: M3Hal_v1.cpp:197: IOMFB: load APT M3 DMem : size 0x6fd4
[    1.468820] apple-dcp 389c00000.dcp: RTKit: syslog message: CAHandler.cpp:188: IOMFB load_ca_data: Unrecognized data version 0 (expected 1 or 2)
[    1.471110] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:14085: IOMFB Int RTBandwidth: program_M3_rt_config: Using Dashboard 28e3d1208
[    1.471155] apple-dcp 389c00000.dcp: RTKit: syslog message: UPTSQManager.cpp:133: IOMFB: clearing M3 reset
[    1.471212] apple-dcp 389c00000.dcp: RTKit: syslog message: UPTSQ_Hal_v1.cpp:349: IOMFB: timebase_offset = 4

[    1.483354] apple-dcp 389c00000.dcp: RTKit: syslog message: UPTSQManager.cpp:105: IOMFB: switch to normal mode succeeded

[    1.483582] apple-dcp 389c00000.dcp: RTKit: syslog message: eoInterfaceIOAV.cpp:296: IOMFB: VideoInterfaceIOAV::power_on: m_power_ctrl->setPower( 1 )
[    1.489678] apple-dcp 389c00000.dcp: RTKit: syslog message: MMailboxHandler.cpp:214: pcc firmware: MailBox Printf is enabled in BLM Pipe Line Init

[    1.490917] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:17179: handle_stage1_enable blm_en 1 ltm_en 0
[    1.490943] apple-dcp 389c00000.dcp: set_digital_out_mode finished:8380
[    1.517136] Console: switching to colour frame buffer device 189x59
[    1.544732] apple-drm soc:display-subsystem: [drm] fb0: appledrmfb frame buffer device
[    1.564042] rtkit-helper 2a9400000.mtp: RTKit: syslog message: afe_transport.c:177: afe_transport_start() Z2 running
[    1.564070] rtkit-helper 2a9400000.mtp: RTKit: syslog message: touch_pwr_mgr.c:216: [TPM] Mac Power Manager State Machine Started
[    1.564073] rtkit-helper 2a9400000.mtp: RTKit: syslog message: touch.c:128: Touch interface ready
[    1.564092] dockchannel-hid 2a9b30000.input: Interface multi-touch is now ready
[    1.564119] rtkit-helper 2a9400000.mtp: RTKit: syslog message: touch.c:143: Touch MT ready
[    1.564498] rtkit-helper 2a9400000.mtp: RTKit: syslog message: touch_pwr_mgr_fsm.c:286: Sending Cumulus Report to enter Dependent Mode (9A)
[    1.880089] pcie-apple 580000000.pcie: ECAM at [mem 0x580000000-0x580ffffff] for [bus 00-04]
[    1.880221] pcie-apple 580000000.pcie: PCI host bridge to bus 0000:00
[    1.880224] pci_bus 0000:00: root bus resource [bus 00-04]
[    1.880226] pci_bus 0000:00: root bus resource [mem 0x5a0000000-0x5bfffffff pref]
[    1.880229] pci_bus 0000:00: root bus resource [mem 0x5c0000000-0x5ffffffff] (bus address [0xc0000000-0xffffffff])
[    1.880243] pci 0000:00:00.0: [106b:100c] type 01 class 0x060400
[    1.880298] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[    1.880484] pci 0000:00:01.0: [106b:100c] type 01 class 0x060400
[    1.880534] pci 0000:00:01.0: PME# supported from D0 D3hot D3cold
[    1.881871] pci 0000:01:00.0: [14e4:4434] type 00 class 0x028000
[    1.881893] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[    1.881907] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00ffffff 64bit]
[    1.882043] pci 0000:01:00.0: supports D1 D2
[    1.882045] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.882299] pci 0000:01:00.1: [14e4:5f72] type 00 class 0x028000
[    1.882321] pci 0000:01:00.1: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    1.882334] pci 0000:01:00.1: reg 0x18: [mem 0x00000000-0x00ffffff 64bit]
[    1.882453] pci 0000:01:00.1: supports D1 D2
[    1.882454] pci 0000:01:00.1: PME# supported from D0 D1 D2 D3hot D3cold
[    1.885005] pci_bus 0000:01: busn_res: [bus 01-04] end is updated to 01
[    1.885081] pci 0000:02:00.0: [17a0:9755] type 00 class 0x080501
[    1.885107] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[    1.885302] pci 0000:02:00.0: supports D1 D2
[    1.885304] pci 0000:02:00.0: PME# supported from D1 D2 D3hot D3cold
[    1.887830] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.888014] pci_bus 0000:02: busn_res: [bus 02-04] end is updated to 02
[    1.888026] pci 0000:00:00.0: BAR 14: assigned [mem 0x5c0000000-0x5c27fffff]
[    1.888029] pci 0000:00:01.0: BAR 14: assigned [mem 0x5c2800000-0x5c28fffff]
[    1.888032] pci 0000:01:00.0: BAR 2: assigned [mem 0x5c0000000-0x5c0ffffff 64bit]
[    1.888044] pci 0000:01:00.1: BAR 2: assigned [mem 0x5c1000000-0x5c1ffffff 64bit]
[    1.888055] pci 0000:01:00.0: BAR 0: assigned [mem 0x5c2000000-0x5c200ffff 64bit]
[    1.888066] pci 0000:01:00.1: BAR 0: assigned [mem 0x5c2010000-0x5c2017fff 64bit]
[    1.888077] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.888080] pci 0000:00:00.0:   bridge window [mem 0x5c0000000-0x5c27fffff]
[    1.888085] pci 0000:02:00.0: BAR 0: assigned [mem 0x5c2800000-0x5c2800fff]
[    1.888091] pci 0000:00:01.0: PCI bridge to [bus 02]
[    1.888094] pci 0000:00:01.0:   bridge window [mem 0x5c2800000-0x5c28fffff]
[    1.888124] OF: /soc/pcie@580000000: no iommu-map translation for id 0x0 on (null)
[    1.888226] pcieport 0000:00:00.0: PME: Signaling with IRQ 113
[    1.888310] pcieport 0000:00:00.0: AER: enabled with IRQ 113
[    1.888441] OF: /soc/pcie@580000000: no iommu-map translation for id 0x8 on (null)
[    1.888627] pcieport 0000:00:01.0: PME: Signaling with IRQ 115
[    1.888723] pcieport 0000:00:01.0: AER: enabled with IRQ 115
[    1.889159] sdhci: Secure Digital Host Controller Interface driver
[    1.889160] sdhci: Copyright(c) Pierre Ossman
[    1.889964] sdhci-pci 0000:02:00.0: Adding to iommu group 10
[    1.890011] sdhci-pci 0000:02:00.0: SDHCI controller found [17a0:9755] (rev 1)
[    1.890022] sdhci-pci 0000:02:00.0: enabling device (0000 -> 0002)
[    1.890382] mmc0: SDHCI controller on PCI [0000:02:00.0] using ADMA 64-bit
[    1.896159] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.898978] usbcore: registered new interface driver brcmfmac
[    1.899086] brcmfmac 0000:01:00.0: Adding to iommu group 11
[    1.899132] brcmfmac 0000:01:00.0: enabling device (0000 -> 0002)
[    1.902393] Bluetooth: Core ver 2.22
[    1.902401] NET: Registered PF_BLUETOOTH protocol family
[    1.902401] Bluetooth: HCI device and connection manager initialized
[    1.902404] Bluetooth: HCI socket layer initialized
[    1.902406] Bluetooth: L2CAP socket layer initialized
[    1.902408] Bluetooth: SCO socket layer initialized
[    1.902966] hci_bcm4377 0000:01:00.1: Adding to iommu group 11
[    1.913248] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4388c0-pcie for chip BCM4388/4
[    1.914017] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4388c0-pcie.apple,tokara-WLMT-u-4.7-X3.bin failed with error -2
[    1.914041] macsmc-rtc macsmc-rtc: registered as rtc0
[    1.914192] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4388c0-pcie.apple,tokara-WLMT-u-4.7.bin failed with error -2
[    1.914417] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4388c0-pcie.apple,tokara-WLMT-u.bin failed with error -2
[    1.914532] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4388c0-pcie.apple,tokara-WLMT.bin failed with error -2
[    1.914564] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4388c0-pcie.apple,tokara-X3.bin failed with error -2
[    1.937983] macsmc-rtc macsmc-rtc: setting system clock to 2023-12-29T13:15:12 UTC (1703855712)
[    1.938049] leds_pwm led-controller: failed to read period for kbd_backlight, default to off
[    2.100293] input: MacBook Pro J414 Headphone Jack as /devices/platform/sound/sound/card0/input8
[    2.100562] dwc3 f02280000.usb: Adding to iommu group 12
[    2.120061] hci_bcm4377 0000:01:00.1: enabling device (0000 -> 0002)
[    2.170982] apple-isp: CISP_CMD_CONFIG_GET: 
[    2.170988] apple-isp: 00000000 00000003 016e3600 00000001 0000000a 00000000 00000001
[    2.171075] apple-isp 384000000.isp: found sensor 558 CC2244400Y8PNTVFG on ch 0
[    2.171078] apple-isp: ch: CISP_CMD_CH_INFO_GET: 0
[    2.171080] apple-isp: ch: 00000000 0000010d 00000000 07dc0001 0004008c 00010007 00000006 00000001
[    2.171081] apple-isp: ch: 00000558 00000009 00001410 00000002 00000000 00000000 00000000 00000000
[    2.171083] apple-isp: ch: 00000000 00000000 00000000 00050000 00000001 00000000 00000004 00000020
[    2.171084] apple-isp: ch: 00000006 00000000 00004680 00000040 00000001 00000002 00004000 00000040
[    2.171086] apple-isp: ch: 00000001 00000000 00000000 00000036 00000000 00000000 000f4240 434300a0
[    2.171088] apple-isp: ch: 34343232 59303034 544e5038 00474656 00000000 00000008 00000000 00000000
[    2.171089] apple-isp: ch: 00000001 00000000 00000100 00000000 00000000 00000000 00000000 00ff0000
[    2.171090] apple-isp: ch: 00000c00 00000000 0000001c 00000680 00000004 00000004 00000000 00000000
[    2.171092] apple-isp: ch: 00000000 00000000 00000000 00000000 07800000 00000780
[    2.171184] apple-isp: ps: CISP_CMD_CH_CAMERA_CONFIG_GET: 0
[    2.171186] apple-isp: ps: 00000000 00000106 00000000 00000000 07800780 07800780 00000000 00001df8
[    2.171188] apple-isp: ps: 00000100 00000001 00000040 00000040 00000040 00000040 00000040 00000040
[    2.171189] apple-isp: ps: 00000003 00000040 00000040 00000005 00000000 0100041e 00000001 00000000
[    2.171191] apple-isp: ps: 0bdebefc 00000006 00000007 00000000 00000009 000f4240 00000012 00000000
[    2.171192] apple-isp: ps: 00008000 00000014 00000015 00000000 00000000 00000000 00000780 00000780
[    2.171193] apple-isp: ps: 00010000 00000000 93f00000 00000040 0000001f 00000000 00000000 00000000
[    2.171195] apple-isp: ps: 00000780 00000780 00000100 00000000 00000000 00000780 00000780
[    2.171250] apple-isp: ps: CISP_CMD_CH_CAMERA_CONFIG_GET: 1
[    2.171257] apple-isp: ps: 00000000 00000106 00000000 00000001 08700780 08700780 00000000 00001df8
[    2.171259] apple-isp: ps: 00000100 00000001 00000040 00000040 00000040 00000040 00000040 00000040
[    2.171260] apple-isp: ps: 00000003 00000040 00000040 00000005 00000000 0100041e 00000001 00000000
[    2.171261] apple-isp: ps: 0bdebefc 00000006 00000007 00000000 00000009 000f4240 00000012 00000000
[    2.171263] apple-isp: ps: 00008000 00000014 00000015 00000000 00000000 00000000 00000780 00000438
[    2.171264] apple-isp: ps: 00010001 00000000 93f00000 00000040 0000001f 00000000 00000000 00000000
[    2.171265] apple-isp: ps: 00000780 00000870 00000100 00000000 00000000 00000780 00000438
[    2.171342] apple-isp: ps: CISP_CMD_CH_CAMERA_CONFIG_GET: 2
[    2.171344] apple-isp: ps: 00000000 00000106 00000000 00000002 0f000438 0f000438 00000000 00001df8
[    2.171345] apple-isp: ps: 00000100 00000001 00000040 00000040 00000040 00000040 00000040 00000040
[    2.171346] apple-isp: ps: 00000003 00000040 00000040 00000005 00000000 0100041e 00000001 00000000
[    2.171348] apple-isp: ps: 0bdebefc 00000006 00000007 00000000 00000009 000f4240 0000000d 00000000
[    2.171349] apple-isp: ps: 00008000 00000014 00000015 00000000 00000000 00000000 00000438 00000780
[    2.171350] apple-isp: ps: 00010001 00000000 93f00000 00000040 0000001f 00000000 00000000 00000000
[    2.171352] apple-isp: ps: 00000438 00000f00 00000100 00000000 00000000 00000438 00000780
[    2.171405] apple-isp: ps: CISP_CMD_CH_CAMERA_CONFIG_GET: 3
[    2.171406] apple-isp: ps: 00000000 00000106 00000000 00000003 0a6006e0 0a6006e0 00000000 00001df8
[    2.171407] apple-isp: ps: 00000100 00000001 00000040 00000040 00000040 00000040 00000040 00000040
[    2.171409] apple-isp: ps: 00000003 00000040 00000040 00000005 00000000 0100041e 00000001 00000000
[    2.171410] apple-isp: ps: 0bdebefc 00000006 00000007 00000000 00000009 000f4240 00000010 00000000
[    2.171415] apple-isp: ps: 00008000 00000014 00000015 00000000 00000000 00000000 000006e0 00000530
[    2.171416] apple-isp: ps: 00010001 00000000 93f00000 00000040 0000001f 00000000 00000000 00000000
[    2.171417] apple-isp: ps: 000006e0 00000a60 00000100 00000000 00000000 000006e0 00000530
[    2.171484] apple-isp: ps: CISP_CMD_CH_CAMERA_CONFIG_GET: 4
[    2.171485] apple-isp: ps: 00000000 00000106 00000000 00000004 0dc00530 0dc00530 00000000 00001df8
[    2.171487] apple-isp: ps: 00000100 00000001 00000040 00000040 00000040 00000040 00000040 00000040
[    2.171488] apple-isp: ps: 00000003 00000040 00000040 00000005 00000000 0100041e 00000001 00000000
[    2.171489] apple-isp: ps: 0bdebefc 00000006 00000007 00000000 00000009 000f4240 0000000e 00000000
[    2.171491] apple-isp: ps: 00008000 00000014 00000015 00000000 00000000 00000000 00000530 000006e0
[    2.171495] apple-isp: ps: 00010001 00000000 93f00000 00000040 0000001f 00000000 00000000 00000000
[    2.171496] apple-isp: ps: 00000530 00000dc0 00000100 00000000 00000000 00000530 000006e0
[    2.171559] apple-isp: ps: CISP_CMD_CH_CAMERA_CONFIG_GET: 5
[    2.171561] apple-isp: ps: 00000000 00000106 00000000 00000005 0c200610 0c200610 00000000 00001df8
[    2.171562] apple-isp: ps: 00000100 00000001 00000040 00000040 00000040 00000040 00000040 00000040
[    2.171564] apple-isp: ps: 00000003 00000040 00000040 00000005 00000000 0100041e 00000001 00000000
[    2.171565] apple-isp: ps: 0bdebefc 00000006 00000007 00000000 00000009 000f4240 0000000f 00000000
[    2.171566] apple-isp: ps: 00008000 00000014 00000015 00000000 00000000 00000000 00000610 00000610
[    2.171568] apple-isp: ps: 00010001 00000000 93f00000 00000040 0000001f 00000000 00000000 00000000
[    2.171569] apple-isp: ps: 00000610 00000c20 00000100 00000000 00000000 00000610 00000610
[    2.180273] apple-isp 384000000.isp: apple-isp probe!
[    2.638161] 8021q: 802.1Q VLAN Support v1.8
[    2.671772] alg: No test for hmac(md4) (hmac(md4-generic))
[    3.283890] brcmfmac: brcmf_c_process_txcap_blob: TxCap blob found, loading
[    3.286055] brcmfmac: brcmf_c_process_cal_blob: Calibration blob provided by platform, loading
[    3.299104] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4388/4 wl0: Jun 11 2023 05:20:59 version 23.20.95.0.40.50.92 FWID 01-ec505a98
[    3.303125] ieee80211 phy0: brcmf_c_set_joinpref_default: Set join_pref error (-52)
[    3.564718] ieee80211 phy0: brcmf_c_set_joinpref_default: Set join_pref error (-52)
[    3.650701] ieee80211 phy0: brcmf_dongle_roam: WLC_SET_ROAM_DELTA error (-52)
[    3.773339] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.773341] Bluetooth: BNEP filters: protocol multicast
[    3.773343] Bluetooth: BNEP socket layer initialized
[    3.829832] ieee80211 phy0: brcmf_c_set_joinpref_default: Set join_pref error (-52)
[    4.166471] Bluetooth: hci0: HCI LE Coded PHY feature bit is set, but its usage is not supported.
[    4.213340] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.223114] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.230249] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.237332] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.246393] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.253444] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.260426] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.268705] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.275416] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.282101] Bluetooth: hci0: Failed to read codec capabilities (-22)
[    4.292824] Bluetooth: MGMT ver 1.22
[   36.843540] systemd-journald[649]: Time jumped backwards, rotating.
rowanG077 commented 10 months ago

kernel logs look clean to me. If you boot into plasma does the GPU work?

The only real difference between your config and mine is that I don't use flakes and thus I use the nixpkgs hyprland.

If plasma has GPU accel. Try the nixpkgs hyprland. If that works as well then it's probably mesa mismatch. I'm not super familiar with flakes, maybe it's not properly replacing/overlaying the mesa asahi over the default mesa.

SailorSnoW commented 10 months ago

Okay so it appear that having only programs.hyprland.enable = true in my configuration.nix without all the home-manager part work with the GPU ! But when I add wayland.windowManager.hyprland.enable = true in my home.nix to declaratively configure Hyprland then the startup crash error is back.

(not using the flakes hyprland anymore, using the nixpkgs like you)

Also, I only got Plasma X11 to work through SDDM (with the GPU enabled), but I didn't managed to get plasma Wayland to work in any case, giving me this error:

Error: could not determine $DISPLAY.
Error: Can not contact kdeinit5!
org.kde.startup: "kdeinit5_shutdown" () exited with code 255
startplasma-wayland: Shutting down...
startplasmacompositor: Shutting down...
startplasmacompositor: Done.

How are you managing your hyprland config actually then ?

teevik commented 10 months ago

I think you can use wayland.windowManager.hyprland.package = null; to prevent home manager from installing it

rowanG077 commented 10 months ago

I don't use home manager so I can't really comment what goes wrong here. I just have config files.

rowanG077 commented 10 months ago

I'm not sure how home manager works with flakes. Does it use the nixpkgs you choose or does it use the one it specifies itself? If it's the later then you need to somehow tell home manager to not use it's own nixpkgs for the hyprland package. Which is probably what @teevik suggestion does. An easy way to tell if home manager brings it's own nixpkgs + hyprland is to check if the standard hyprland derivation differs from the one provided by home manager.

SailorSnoW commented 10 months ago

We can't use wayland.windowManager.hyprland.package = null;, then I tried by putting pkgs.hyprland but nothing changed.

Derivation path are differents, but the same version of Hyprland is used tho.

Anyway we can confirm that the problem is inside home-manager module

tpwrules commented 10 months ago

Are you sure that home-manager is using the same pkgs as the rest of the system? See the option home-manager.useGlobalPkgs = true;; it's probably not going to work without that due to the Mesa shenanigans.

If you have used that, then maybe replace mode is simply not compatible with how home-manger works.

n3oney commented 9 months ago

Personally, I have Hyprland running on a M1 Air, but it barely works. Very laggy, and screenshots are broken. No clue what causes the issues. I've noticed that when the lag spikes happen, CPU usage of Hyprland rises to around 8%, and so does usage of the asahi_sched process, when they both sit at 0.1% when it's not lagging.

n3oney commented 9 months ago

Writing this comment reminded me I have the experimental tearing enabled in Hyprland. Turning WLR_DRM_NO_ATOMIC off fixed the screenshots. Why have I not thought of this earlier... No lags so far too.

mirrortemplar commented 8 months ago

Okay, so Hyprland does not work for me if and only if I have wayland.windowManager.hyprland.enable = true; in my home-manager config. I have specified useGlobalPkgs = true; for my home-manager install, am using the replace GPU install mode, and this issue persists after the recent OpenGL 4.6 update.

Hyprland works and seems to be GPU-accelerated when I don't manage it through home-manager.

n3oney commented 8 months ago

Okay, I've had issues with Hyprland again, and came to this conclusion: The HM module made no difference for me. The difference was using the package from the Hyprland flake.

When using hyprland from nixpkgs, it worked fine. When it was from their flake, it was broken.

The solution? Use an overlay.

nixpkgs.overlays = [inputs.hyprland.overlays.default];

Then, just use pkgs.hyprland anywhere you want. Gives you the latest version of Hyprland, with actual working mesa!

n8henrie commented 7 months ago

I'm also seeing hyprland crashing on launch (from sddm).

I'm confused as to your update -- you report that When using hyprland from nixpkgs, it worked fine. -- I am seeing the crash without using the hyprland flake. But the nixos package was working for you?

It works for me when run from a Plasma session, but crashes on launch from sddm.

zvolin commented 7 months ago

Some new finding I made https://github.com/tpwrules/nixos-apple-silicon/issues/159#issuecomment-2053684818

jmastr commented 3 months ago

This guy found a solution:

  # setting WLR Graphic Card - needed for hyprland
  environment.sessionVariables = {
    WLR_DRM_DEVICES = "/dev/dri/card0";
  };

  # experimental GPU drivers - needed for hyperland
  hardware = {
    asahi = {
      # peripheralFirmwareDirectory = ./firmware;
      withRust = true;
      # addEdgeKernelConfig = true;
      useExperimentalGPUDriver = true;
      experimentalGPUInstallMode = "replace";
    };
    opengl = {
      enable = true;
      driSupport = true;
    };
  };

  # packages
  environment.systemPackages = with pkgs; [
    mesa-asahi-edge
    xdg-desktop-portal-hyprland
  ];

Source: https://github.com/mario-iml/nixos/tree/33ffeddf172d4f3ffd277f055c36dbb1ccd85179/hosts/m1

With this configuration I am able to run Hyprland with GPU on M1.

n3oney commented 3 months ago

I think this should be closed, it was figured out in a different issue

ppenguin commented 3 months ago

@jmastr

With this configuration I am able to run Hyprland with GPU on M1.

Until now I haven't been able to start Hyprland on my M1, haven't tried any other graphical shells yet. In my case (even when overlaying pkgs.mesa with mesa-asahi-edge, which leads to huge deps builds and would be pretty much unsustainable in production), Hyprland crashes with the message that it was built with a different mesa version than it found at runtime. (I don't have the exact message now because not near that machine).

Anyhow it strikes me as odd that in the above proposal mesa-asahi-edge is included as a normal system package, that shouldn't be supposed to work or make a difference, because the responsible nixos module links the active mesa drivers under /run usually?

@n3oney If you're referring to #159, I've also included that in my tests, but it doesn't seem to have me brought much closer...

Possibly part of the issue may be with the fact that Hyprland has just made a transition (though I covered both env vars from #159 in my env).

Or am I missing something in how (presumably the nixos-apple-silicon module ?) sets/overrides mesa options in a way that might be invisible and gets inadvertently overridden by existing nixos config?

n3oney commented 3 months ago

What I think is important is using Hyprland's overlay, otherwise it doesn't get applied

jmastr commented 3 months ago

@ppenguin In my post above I messed up the link somehow. Please have a look here https://github.com/mario-iml/nixos/tree/33ffeddf172d4f3ffd277f055c36dbb1ccd85179/hosts/m1/

I have it running for couple of days now and I am daily driving my M1 with Hyprland at work.

jmastr commented 3 months ago

2024-08-14T14:07:01,139901310+02:00

ppenguin commented 3 months ago

@ppenguin In my post above I messed up the link somehow. Please have a look here https://github.com/mario-iml/nixos/tree/33ffeddf172d4f3ffd277f055c36dbb1ccd85179/hosts/m1/

I have it running for couple of days now and I am daily driving my M1 with Hyprland at work.

Thanks, will try more as soon as I get the chance (might be only in a few days though)... Will report back.