mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-04 15:03:29 +01:00
Update README for nix-shell command usage
This commit is contained in:
1 parent
d31d8077bb
commit
838481adb5
1 file changed
+5
-4
@@ -44,7 +44,7 @@ The default values are examples only and will likely not match your hardware. Du
|
|||||||
Find your bus IDs with:
|
Find your bus IDs with:
|
||||||
|
|
||||||
```sh
|
```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 ...
|
c2:00.0 VGA compatible controller: NVIDIA Corporation ...
|
||||||
c3:00.0 Display controller: Advanced Micro Devices ...
|
c3:00.0 Display controller: Advanced Micro Devices ...
|
||||||
```
|
```
|
||||||
@@ -65,16 +65,16 @@ printf 'PCI:%d:%d:%d\n' "$((16#$BUS))" "$((16#$DEV))" "$FUN"
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Default should use AMD
|
# 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
|
# 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:
|
To check whether the NVIDIA GPU is runtime-suspending at idle:
|
||||||
|
|
||||||
```sh
|
```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
|
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
|
* Latest BIOS update on LVFS: https://fwupd.org/lvfs/devices/work.frame.Laptop16.RyzenAI300.BIOS.firmware
|
||||||
|
|
||||||
Reference in new issue
Block a user