I do not know of a direct equivalent, but lshw should give you the info you want, try:
sudo lshw -C display
(it also works without sudo but the info may be less complete/accurate)
You can also install the package lshw-gtk to get a GUI.
I do not know of a direct equivalent, but lshw should give you the info you want, try:
sudo lshw -C display
(it also works without sudo but the info may be less complete/accurate)
You can also install the package lshw-gtk to get a GUI.
That type of information is non-standard, and the tools you will use to gather it vary widely.
The command glxinfo will give you all available OpenGL information for the graphics processor, including its vendor name, if the drivers are correctly installed.
To get clock speed information, there is no standard tool.
- For ATI/AMD GPUs running the old Catalyst driver,
aticonfig --odgcshould fetch the clock rates, andaticonfig --odgtshould fetch the temperature data. I'm not familiar with AMDGPU-Pro, but a similar tool should exist. - For NVIDIA GPUs, the
nvidia-smitool will show all of the information you could want, including clock speeds and usage statistics.
I am not aware of an equivalent tool for the open source drivers or for Intel or other GPUs, but other information on the hardware can be fetched from the lspci and lshw tools.
I am a developer who is mostly working in a windows enviroment. I am using python and I'm trying to support as many platforms as possible for my program. In this case, I need to check for the GPU vendor to determine whether to enable/disable hardware acceleration.
In windows, I can do it through cmd like so:
wmic path win32_VideoController get name
What is the simplest way to do this via terminal in Linux? (if I can get the driver info too, that could prove useful).
hardware - How to check which GPU is active in Linux? - Unix & Linux Stack Exchange
How do I check what GPU drivers are in use?
How do I know if my Ubuntu is using the graphics card?
How to check graphics card model in Linux
Videos
I've just gone through a hell of a time
trying to get my discrete graphics to work in Ubuntu,
and answering this question was constantly a challenge,
since the lspci method mentioned earlier
can sometimes say that both are [VGA controller].
I think the following command should give you an indication of your active chip:
$ glxinfo | grep -E "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
For me, this is telling me that my Intel graphics are running the show.
glxinfo is available from the mesa-utils package,
so you will need to install it if you haven't already.
On Ubuntu 22.04, for example, run:
sudo apt-get install mesa-utils
If you're using an NVIDIA chip, and you're using the bumblebee package,
you can put optirun in front of that line,
and it should tell you that you're running the NVIDIA chip
(optirun is basically telling the computer
to use the discrete chip to run whatever command follows,
but everything else is still using the integrated chip).
$ optirun glxinfo | grep -E "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GT 555M/PCIe/SSE2
glxheads is another helpful command from mesa-utils that tells you
some useful information about which graphics card is in use
(mostly repeats glxinfo in a more compact and easy-to-read form, though),
and it gives you a nice rendering of a rotating triangle.
To check which GPU is currently in command (that means which is an active VGA controller) type in
lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
Any controller with [VGA controller] at the end is your currently active GPU. The others are switched off. In the following example the Intel card is active while the nVidia one is not in use:
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor
Integrated Graphics Controller [8086:0046] (rev 02) (prog-if 00 [VGA
controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108 [GeForce
GT 540M] [10de:0df4] (rev ff) (prog-if ff)
If you have it installed, you can also use nvidia-smi which provides even more information for NVIDIA GPUs (this is, after all, what they use in the page you linked):
$ nvidia-smi
Mon Sep 15 16:02:31 2014
+------------------------------------------------------+
| NVIDIA-SMI 340.32 Driver Version: 340.32 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GT 650M Off | 0000:01:00.0 N/A | N/A |
| N/A 59C P0 N/A / N/A | 8MiB / 2047MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+
If you just want the GPU name:
$ nvidia-smi --query-gpu=name --format=csv,noheader
GeForce GT 650M
please update your PCI ID database with:
sudo update-pciids
And use the following command in your terminal:
lspci -nn | grep '\[03'
You will see the model name of your graphic card. If it's ambiguous, you could search the PCI ID (something like [10de:11bc]) on the Internet for the corrent model name.