Jump to content

Nvidia: Difference between revisions

103 bytes added ,  16 October 2023
To help new users spot the PCI bus info hex->dec gotcha, example PCI bus ID from `lshw` includes a hexadecimal
imported>Pmarreck
m (The "production" option now installs nvidia driver 535.x.x (I am running it currently))
imported>Daniel-fahey
(To help new users spot the PCI bus info hex->dec gotcha, example PCI bus ID from `lshw` includes a hexadecimal)
Line 95: Line 95:
description: i915drmfb
description: i915drmfb
physical id: 0
physical id: 0
bus info: pci@0000:01:00.0
bus info: pci@0000:0e:00.0
logical name: /dev/fb0
logical name: /dev/fb0
version: a1
version: a1
Line 117: Line 117:
</syntaxhighlight>
</syntaxhighlight>


Note the two values under "bus info" above, which may differ from laptop to laptop. Our Nvidia Bus ID is <code>01:00.0</code> and our Intel Bus ID is <code>00:02.0</code>. Once you have determined your Bus ID values, add them like this:
Note the two values under "bus info" above, which may differ from laptop to laptop. Our Nvidia Bus ID is <code>0e:00.0</code> and our Intel Bus ID is <code>00:02.0</code>. Watch out for the formatting; convert them from hexadecimal to decimal, remove the padding (leading zeroes), replace the dot with a colon, then add them like this:


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 124: Line 124:
# Make sure to use the correct Bus ID values for your system!
# Make sure to use the correct Bus ID values for your system!
intelBusId = "PCI:0:2:0";
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
nvidiaBusId = "PCI:14:0:0";
};
};
}
}
Line 156: Line 156:
# Make sure to use the correct Bus ID values for your system!
# Make sure to use the correct Bus ID values for your system!
intelBusId = "PCI:0:2:0";
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
nvidiaBusId = "PCI:14:0:0";
};
};
}
}
Line 173: Line 173:


     # Make sure to use the correct Bus ID values for your system!
     # Make sure to use the correct Bus ID values for your system!
     nvidiaBusId = "PCI:1:0:0";
     nvidiaBusId = "PCI:14:0:0";
     intelBusId = "PCI:0:2:0";
     intelBusId = "PCI:0:2:0";
   };
   };
Line 192: Line 192:
     # Make sure to use the correct Bus ID values for your system!
     # Make sure to use the correct Bus ID values for your system!
     intelBusId = "PCI:0:2:0";
     intelBusId = "PCI:0:2:0";
     nvidiaBusId = "PCI:1:0:0";
     nvidiaBusId = "PCI:14:0:0";
   };
   };
}
}
Anonymous user