NVIDIA: Difference between revisions
imported>Mdedetrich In some cases you need to have both intel and nvidia as video drivers |
imported>Pmyjavec Made it clearer how to format the bus ID. |
||
Line 59: | Line 59: | ||
</nowiki>}} | </nowiki>}} | ||
Then you need to setup the Bus ID's of the cards as seen below | Then you need to setup the Bus ID's of the cards as seen below. | ||
''Note: Bus ID is important and needs to be formatted properly'' | |||
The Nvidia driver expects the bus ID to be in decimal format; However, <nowiki>lspci</nowiki> shows the bus IDs in hexadecimal format. | |||
You can convert the value by | |||
* Stripping any leading zeros from the bus numbers or if the number is above 09, convert it to decimal and use that value. | |||
* Replacing any full stops with colons. | |||
* Prefix the final value with "PCI". | |||
For example: | |||
'''Output from lspci''' | |||
``` | |||
09:1f.0 VGA compatible controller: NVIDIA Corporation Device 1f91 (rev a1) | |||
``` | |||
'''Required format''' | |||
``` | |||
PCI:9:31:0 | |||
``` | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> |