Score:0

how to check what graphics driver is currently loaded

id flag

Okay, so nvidia and nouveau don't play well together and I'm currently trying to set up my system where I will have both installed and can choose which drivers to use at boot(by blacklisting the other). Currently I have quite a few settings in my .bash_profile that are specific to the nvidia drivers.

I was wondering how to tell what drivers are in use

oldfred avatar
cn flag
What does this show. I have Intel and it shows the i915. `sudo lshw -c video | grep configuration` If proprietary driver install, this will show it: `dkms status` Mine is blank.
chili555 avatar
cn flag
You might also try: `lspci -nnk | grep 0300 -A3` Welcome to Ask Ubuntu.
Joshua Ferguson avatar
id flag
both commands do the job well enough without super user privileges, which is what I need because this is going to be checked at login in both admin and regular user accounts, thanks!
Score:0
jp flag

lspci will list all devices and the model, you can use "lspci | grep video" to narrow down displayed devices sometimes you need to use VGA instead of video

Score:0
id flag

Thanks to @chili555's comment I was able to get a start on explicitly matching just the driver name:

lspci -nnk | grep 0300 -A3 | grep -oP "(?<=driver in use: ).*"
nvidia

Wrap this in an alias or just put the entire command in a conditional and I'll be able to set environment variable only if the Nvidia drivers are in use.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.