Hardware/Framework/Laptop 16: Difference between revisions

Atvor (talk | contribs)
Cleanup, mention nixos-hardware, explain validation and troubleshooting
Atvor (talk | contribs)
m Use non-flake version of nix shell
Line 83: Line 83:


<syntaxhighlight lang="sh">
<syntaxhighlight lang="sh">
$ nix shell nixpkgs#pciutils -c lspci | grep -E "VGA|3D|Display"
$ nix-shell -p pciutils --run 'lspci | grep -E "VGA|3D|Display"'
</syntaxhighlight>
</syntaxhighlight>


Line 103: Line 103:
<syntaxhighlight lang="sh">
<syntaxhighlight lang="sh">
# Default: should show AMD iGPU
# Default: should show AMD iGPU
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 show NVIDIA dGPU
# Offload: should show NVIDIA dGPU
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"'


# Idle power check: should become "suspended" when idle
# Idle power check: should become "suspended" when idle