Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The two commands I use to test for video acceleration are:
Code:
glxinfo | grep direct
Code:
glxgears
The second one shows gears spinning, and gives your FPS reading. It's stopped by pressing "q". If the FPS reading is lower than it should be, then there's a problem. Try it on Mint, and then on another distro (IE, run by Live CD) and see if there's a difference. If not, then there is no problem (though, from the sound of it, it seems you've solved the problem anyway, so good!)
$ glxinfo | grep direct
direct rendering: Yes
glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
305 frames in 5.0 seconds = 60.871 FPS
300 frames in 5.0 seconds = 59.997 FPS
300 frames in 5.0 seconds = 60.000 FPS
300 frames in 5.0 seconds = 59.999 FPS
300 frames in 5.0 seconds = 59.998 FPS
300 frames in 5.0 seconds = 59.998 FPS
300 frames in 5.0 seconds = 59.999 FPS
300 frames in 5.0 seconds = 59.999 FPS
300 frames in 5.0 seconds = 59.998 FPS
300 frames in 5.0 seconds = 59.998 FPS
300 frames in 5.0 seconds = 59.999 FPS
300 frames in 5.0 seconds = 59.999 FPS
300 frames in 5.0 seconds = 59.995 FPS
301 frames in 5.0 seconds = 59.999 FPS
300 frames in 5.0 seconds = 60.000 FPS
Thank you for responding
gael.
Last edited by gael33; 06-11-2013 at 04:00 PM.
Reason: New result
You can see that direct rendering is enabled with the glxinfo command given to you by mark_alfred, but you can not see which renderer is in use. glxgears is for troubleshooting modern computers more or less useless, it mostly tests your CPU due to its very simple rendering.
Please post the output of
Code:
glxinfo | grep render
instead. Please use code-tags (see my signature) for posting that output.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Quote:
Originally Posted by gael33
$ glxinfo | grep direct
direct rendering: Yes
glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
305 frames in 5.0 seconds = 60.871 FPS
300 frames in 5.0 seconds = 59.997 FPS
300 frames in 5.0 seconds = 60.000 FPS
That's kinda low. I have an older video card (from "lspci" --> 01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000] (rev c1)) and I get the following:
Code:
mark:$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
3111 frames in 5.0 seconds = 622.079 FPS
3267 frames in 5.0 seconds = 653.283 FPS
3268 frames in 5.0 seconds = 653.555 FPS
3204 frames in 5.0 seconds = 640.508 FPS
vector:/~
And TobiSGD is right, the command he/she suggests will tell you what renderer is being used. Mine states the following:
There was an open source driver for my video card that I initially used, but the rendering was not nearly as good as it was with the nonfree driver I ultimately installed. So, it may help to find out what video card you're using, and then search for a different driver (IE, nvidia).
That's kinda low. I have an older video card (from "lspci" --> 01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000] (rev c1)) and I get the following:
Code:
mark:$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
3111 frames in 5.0 seconds = 622.079 FPS
3267 frames in 5.0 seconds = 653.283 FPS
3268 frames in 5.0 seconds = 653.555 FPS
3204 frames in 5.0 seconds = 640.508 FPS
vector:/~
The output of glxgears from the OP is as it should be, since the drawing is synchronized to the monitors refresh rate.
But that doesn't tells us if the correct driver is used on that system. Since there are compalints about software rendering I assume that Gallium over llvmpipe is used, so that all rendering is done on the CPU rather than on the GPU.
Then presumably my monitor refresh rate is ten times that of gael33's monitor refresh rate.
Or, since you use the proprietary Nvidia driver, your vertical synchronizing is not controlled by the VBLANK variable, which glxgears doesn't know and you simply have vertical synchronizing not enabled.
This is what I get on my laptop, one time with vsync enabled, one time disabled:
Code:
tobi ~ ☹ $ glxgears
300 frames in 5.0 seconds = 59.886 FPS
300 frames in 5.0 seconds = 59.866 FPS
300 frames in 5.0 seconds = 59.873 FPS
300 frames in 5.0 seconds = 59.869 FPS
300 frames in 5.0 seconds = 59.869 FPS
tobi ~ ☹ $ glxgears
2615 frames in 5.0 seconds = 522.952 FPS
2631 frames in 5.0 seconds = 526.135 FPS
2631 frames in 5.0 seconds = 526.053 FPS
2631 frames in 5.0 seconds = 526.025 FPS
2630 frames in 5.0 seconds = 525.890 FPS
WOW! you guys lost me after the first line
All I know is that if I had a better graphics card the FPS would be improved ... is that correct?
I am limited because my computer case is rather small ... it is a AX3950.
If anyone knows which graphics card would fit in the case, I would invest in one.
Could you recommend a graphics card that is not too complicated to install?
thanks again for all your help.
gael
PS. My monitor is a Benq 22 Senseye 3 which doesn't give me a refresh choice ... in fact, it doesn't tell me what the refresh number is!
The problem at the moment for you is not that your video device is slow, but that it probably runs with the wrong driver.
Buying a better videocard only makes sense if you want to play 3D games or want to use CAD or 3D modelling programs with very large models.
Regarding your monitor, it is an LCD device, those usually run at 60Hz, which is fine for LCD devices.
The problem at the moment for you is not that your video device is slow, but that it probably runs with the wrong driver.
Buying a better videocard only makes sense if you want to play 3D games or want to use CAD or 3D modelling programs with very large models.
Regarding your monitor, it is an LCD device, those usually run at 60Hz, which is fine for LCD devices.
I see the point you are making and it makes perfect sense.
I always thought that Linux, in this case Mint, always installs a working generic driver ... there appears to be no Proprietary drivers available, so it looks like I am stuck with whatever I have got.
Thanks for the advice on the LCD Monitor, that's one less thing to be concerned about.
Once again I am delighted that you took time to assist me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.