What is the correct command to check which VGA driver is installed and loaded/running?
What is the correct command to check which VGA driver is installed and loaded/running?
I use
and the search for VGA.Code:lspci -v | less
I don't know a single command. Perhaps someone else will chime in with more.
I'd start by determining the hardware:
$ sudo lshw -c display
Then it depends on the driver. nvidia has 1, ATI another, Intel another, virtual machines and F/LOSS versions yet another.
Then I'd use lsmod with a grep to hone in on the exact driver. For example:
$ lsmod | grep -i nvidia
or
$ lsmod | grep fglrx
or
$ lsmod | grep video
or ...
Then to find a specific version, I'd ask the package manager which file is owned by which package.
$ dpkg -l | grep fglrx
which shows 2:8.960-0ubuntu1.1 on an ATI machine.
$ dpkg -l | grep nvidia
which returns 290.10-0ubuntu1~lucid~xup1 on an nvidia machine.
I hope there's an easier way.
Boot, Backup, and Security questions. Std Linux Sys Maint..
Why LTS release? Mark Thread SOLVED.
Use "code tags".
One of many...
egCode:lspci -nnk | grep -iA2 vga
Code:glen@Quantal:~$ lspci -nnk | grep -iA2 vga 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G96 [GeForce 9400 GT] [10de:0641] (rev a1) Subsystem: XFX Pine Group Inc. Device [1682:4009] Kernel driver in use: nvidia
Okay, thanks everybody! I can work with this.
I was just curious if the driver of x-swat is running on my system. When i go to Additional Drivers i see that the Nvidia driver current is not enabled although the nvidia-current driver of x-swat is installed. Can i asume that i have the driver installed?
Hi!, GeForce 9500GT,
Will tell you which version is installed and available, as well as its source.Code:sudo apt-cache policy nvidia-current
Though it will not work for drivers not installed with dpkg, for example the nvidia.com downloaded versions.
For those run:Chao!, bogan.Code:cat /sys/module/nvidia/version
Reason for editing: version note added
Last edited by bogan; October 9th, 2012 at 10:22 AM.
"Better Solutions may bring Worsened Problems": After Lao Tse, b. circa 405BC. a contemporary of Confucius, who died circa 600BC.
They did things differently in those days, apparently!!
"Better Solutions may bring Worsened Problems": After Lao Tse, b. circa 405BC. a contemporary of Confucius, who died circa 600BC.
They did things differently in those days, apparently!!
Just wanted to add something..
@TheFu, have you observed the entire output of lshw command? It also (always, if used with sudo) lists the driver (driver=..) currently loaded for the listed device.
[Edit : I should add that this driver name may not be same as the actual module name in some cases (for example, rtxxxx drivers are shown as "RALINK" in lshw output). So the 'lspci -nnk' method suggested below is more promising for finding the actual module name which can be used with 'modinfo' command]
The 'lspci -nnk' method suggested by stinkeye is the next most commonly used method to figure that out.
Once the driver in use is determined, you can use modinfo command to check the details (including source version) of that particular module (i.e., driver). For example-
It gives all the important details about a module and is not dependent on how the module (driver) was built or installed.Code:modinfo nvidiafb
Hope it adds some value to the thread.
Last edited by varunendra; October 11th, 2012 at 02:42 PM. Reason: To add the 'Edit' info
Bookmarks