!JQvnJacrwKgtkGHYHO:matrix.org

NixOS + Framework

229 Members
Discussing NixOS in the context of the Framework laptop52 Servers

Load older messages


SenderMessageTime
4 Apr 2025
@damccull:matrix.orgdamccull

forgot one other file needed. This one is amdgpu-kernel-module.nix, referenced in the configuration.nix as well. This is the part that packages the amdgpu module separately from the kernel:

{
  pkgs,
  lib,
  kernel ? pkgs.linuxPackages_latest.kernel,
}:

pkgs.stdenv.mkDerivation {
  pname = "amdgpu-kernel-module";
  inherit (kernel)
    src
    version
    postPatch
    nativeBuildInputs
    ;

  kernel_dev = kernel.dev;
  kernelVersion = kernel.modDirVersion;

  modulePath = "drivers/gpu/drm/amd/amdgpu";

  buildPhase = ''
    BUILT_KERNEL=$kernel_dev/lib/modules/$kernelVersion/build

    cp $BUILT_KERNEL/Module.symvers .
    cp $BUILT_KERNEL/.config        .
    cp $kernel_dev/vmlinux          .

    make "-j$NIX_BUILD_CORES" modules_prepare
    make "-j$NIX_BUILD_CORES" M=$modulePath modules
  '';

  installPhase = ''
    make \
      INSTALL_MOD_PATH="$out" \
      XZ="xz -T$NIX_BUILD_CORES" \
      M="$modulePath" \
      modules_install
  '';

  meta = {
    description = "AMD GPU kernel module";
    license = lib.licenses.gpl3;
  };
}
18:45:11
@damccull:matrix.orgdamccullAll this is taken from nixos.wiki, wiki.nixos.org, and the amd bug tracker. GL everyone.18:45:48
@damccull:matrix.orgdamccull Oh, one last thing Matt H , this isn't just a nixos issue. Apparently the OP of the bug is on fedora, and on that tracker at the bottom there's a link to another, related issue, where hibernation is prevented from happening due to this bug. My own experience included hibernation not working. Everything's fine now with the patch. 18:54:24
7 Apr 2025
@cbobrobison:matrix.orgcbobrobison joined the room.02:02:37
8 Apr 2025
@ctsdownloads:fedora.imMatt H. Thanks for the clarity damccull 🙏😀 00:17:06
@damccull:matrix.orgdamccullYou're quite welcome. I'm happy to help because the community for nix and framework both have been so helpful to me.05:15:51
9 Apr 2025
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️Same here21:07:12
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️ Matt H: look at #gaming:nixos.org 21:07:21
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️I had this problem21:07:24
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️Its a regression in 6.13 21:07:31
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️6.14 still has the same problem21:07:37
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️6.12 works21:07:40
@damccull:matrix.orgdamccullYeah, I'm getting weird graphical glitches on .13 and .14 too. About to switch back to 1221:08:14
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️Same here21:10:16
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️red band on the screen/screen flashing?21:10:21
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️Or something else21:10:23
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️Like I see a band/screen flickering on a part of the screen sometimes21:10:41
@damccull:matrix.orgdamcculljust random junk appearing at random. Sometimes it's red and gold colored. It's always inside a window and tends to move with the window. I think it's a problem between the new kernel code and wayland maybe21:16:18
10 Apr 2025
@ctsdownloads:fedora.imMatt H.
In reply to @niko:nyanbinary.rs
6.12 works
Okay, thank you. Appreciate it
04:29:16
13 Apr 2025
@myned:bjork.techMyned joined the room.00:05:02
16 Apr 2025
@stunkymonkey:matrix.orgFelix Bühler joined the room.20:28:02
18 Apr 2025
@fabaff:matrix.orgfabaff joined the room.18:03:18
@stackdoubleflow:matrix.orgStackDoubleFlow joined the room.22:05:19
19 Apr 2025
@aktaboot:tchncs.deaktabootanyone else having issues with the ec charging limit (through the now upstream kmod) ? sometimes it just does not work10:59:41
@aktaboot:tchncs.deaktabooti.e the laptop is chargin to full even though the limit is set to 80%11:00:09
@aktaboot:tchncs.deaktabootokay seems like a known bug on the latest BIOS for 13" AMD11:17:15
@jopejoe1:matrix.orgjopejoe1 (4094@epvpn) changed their display name from jopejoe1 to jopejoe1 (4094@eh22).12:59:37
@strutztm:strutztm.destrutztm joined the room.21:58:57
22 Apr 2025
@senorsmile:matrix.orgsenorsmile joined the room.02:50:33
25 Apr 2025
@albertlarsan68:albertlarsan.frAlbert Larsan

Hello!
I can't get full sleep to work on my FW 13 with an Ultra 5 125H.
The tool from https://github.com/intel/S0ixSelftestTool says (after a few adjustments to make it work on NixOS):

S0ix substates residency delta value: S0i2.0 2196

S0ix substates residency delta value: S0i2.1 13249322

S0ix substates residency delta value: S0i2.2 0

Your system only get shallower S0ix substate residency: S0i2.1 308804753

(full output available at https://paste.sr.ht/~albertlarsan68/0ce10116393d54b43cce870322d16c8ecd3639e8)

Has anyone the same problem?

The fan does stop and the power led does blink normally during the test. The only expansion cards connected are a pair of USB-C with one for the power input and the other for a YubiKey.

10:04:49

Show newer messages


Back to Room ListRoom Version: 10