From 838481adb596e2d92b03dbf9baf5659ff79d5524 Mon Sep 17 00:00:00 2001 From: Dmitry <1315874+dniku@users.noreply.github.com> Date: Tue, 30 Dec 2025 11:23:51 +0000 Subject: [PATCH] Update README for nix-shell command usage --- framework/16-inch/amd-ai-300-series/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/framework/16-inch/amd-ai-300-series/README.md b/framework/16-inch/amd-ai-300-series/README.md index 8c2cfb8..11aa900 100644 --- a/framework/16-inch/amd-ai-300-series/README.md +++ b/framework/16-inch/amd-ai-300-series/README.md @@ -44,7 +44,7 @@ The default values are examples only and will likely not match your hardware. Du Find your bus IDs with: ```sh -$ nix shell nixpkgs#pciutils -c lspci | grep -E "VGA|3D|Display" +$ nix-shell -p pciutils --run 'lspci | grep -E "VGA|3D|Display"' c2:00.0 VGA compatible controller: NVIDIA Corporation ... c3:00.0 Display controller: Advanced Micro Devices ... ``` @@ -65,16 +65,16 @@ printf 'PCI:%d:%d:%d\n' "$((16#$BUS))" "$((16#$DEV))" "$FUN" ```sh # Default should use AMD -nix shell nixpkgs#mesa-demos -c glxinfo -B | grep -E "OpenGL vendor|OpenGL renderer" +nix-shell -p mesa-demos --run 'glxinfo -B | grep -E "OpenGL vendor|OpenGL renderer"' # Offload should use NVIDIA -nix shell nixpkgs#mesa-demos -c nvidia-offload glxinfo -B | grep -E "OpenGL vendor|OpenGL renderer" +nix-shell -p mesa-demos --run 'nvidia-offload glxinfo -B | grep -E "OpenGL vendor|OpenGL renderer"' ``` To check whether the NVIDIA GPU is runtime-suspending at idle: ```sh -# Replace with your NVIDIA PCI address (from `nix shell nixpkgs#pciutils -c lspci -D`) +# Replace with your NVIDIA PCI address (from `nix-shell -p pciutils --run 'lspci -D'`) cat /sys/bus/pci/devices/0000:??:??.?/power/runtime_status ``` @@ -106,3 +106,4 @@ $ fwupdmgr update ``` * Latest BIOS update on LVFS: https://fwupd.org/lvfs/devices/work.frame.Laptop16.RyzenAI300.BIOS.firmware +