Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-25-2021, 10:24 AM
|
#1
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,378
|
Using Intel versus modesetting driver in Slackware-current
I have a partial Slackware-current installation which is going to become Slackware 15 when they go beyond alpha. Earlier I found that I was getting weird effects in some software when using the intel driver in X, something I haven't seen elsewhere. Basically I couldn't scroll up. I could scroll down OK and I could page up and down using the keyboard, but scrolling up with the mouse produced a broken display with two lines repeating endlessly.
Not everything was affected: for example gvim was fine. But vim on an xterm misbehaved and so did the graphical version of links.
Now I'm using the modesetting driver and everything seems to be working normally. I was always told before to use the specific driver for your card if you can because it's better and faster, but a quick google suggests that this advice is out of date.
What do people think?
Last edited by hazel; 03-25-2021 at 10:26 AM.
|
|
|
03-25-2021, 10:47 AM
|
#2
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
I think just recently I read somewhere Intel still has quite an advantage over modesetting in 2D performance. How noticeable this is in everyday use is another question.
|
|
|
03-25-2021, 11:38 AM
|
#3
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728
|
Quote:
Originally Posted by Emerson
I think just recently I read somewhere Intel still has quite an advantage over modesetting in 2D performance. How noticeable this is in everyday use is another question.
|
It is noticeable on sucky intel video cards like mine, and I daresay Hazel's. What is irritating is that some drivers are in /usr/lib64/xorg/modules/drivers (intel, modesetting) but the i965 driver (which my ivy bridge/HD4000 which is also used) is in /usr/lib64/dri and it's not funny trying to sort out what is actually using for what.
The intel driver has not been developed for 5+ years. To say intel has 'quite an advantage in performance' implies quite a performance from a generation of sucky cards, and I would dispute that.
|
|
|
03-25-2021, 11:44 AM
|
#4
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
While it is true they haven't reached version three there is something going on, at least the driver is maintained to keep in running with latest Xorg. Intel driver in Gentoo is x11-drivers/xf86-video-intel-2.99.917_p20201215, as you can see, released in December.
|
|
|
03-25-2021, 11:34 PM
|
#5
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,571
|
GPU-specific X drivers are old technology. Intel pays its graphics developers to work on both the (unofficially deprecated) Intel and the Modesetting, with primary focus on the newer technology Modesetting. Modesetting is the DDX I've been using on most GPUs that it supports for around 6 years, around the time the modesetting DDX ceased to be a separate package, having been moved into the 1.17.0 server package in 2015 to make it the default DDX. It doesn't require the reverse engineering that the Nouveau DDX does. Modesetting DDX support includes Intel since around 2008, and AMD & NVidia since mostly a bit later. Newer AMDs seem to get more recommendations to use the amdgpu DDX. My newest AMDs aren't really new enough to tell any behavioral difference between the two. Each have their own bugs, strengths and weaknesses, depending on which APU/GPU/IGP is employed. Use whichever works best for yours, if you can tell any difference.
|
|
|
03-26-2021, 04:37 AM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728
|
Quote:
Originally Posted by Emerson
While it is true they haven't reached version three there is something going on, at least the driver is maintained to keep in running with latest Xorg. Intel driver in Gentoo is x11-drivers/xf86-video-intel-2.99.917_p20201215, as you can see, released in December.
|
Bugfixes and compatibility issues, I imagine. My next video card will not be intel, and I'll inform myself of the state of play whenever that is.
|
|
|
03-26-2021, 04:40 AM
|
#7
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,378
Original Poster
|
Interesting discussion. Someone once told me that the _drv.so drivers in /usr/lib64/xorg/modules/drivers are little more than envelopes these days, and that the main rendering work is now done by mesa. Presumably that's where the secondary driver files in /usr/lib64/dri that business kid mentioned come into the picture.
In Slackware 14, I use the Intel driver and it works perfectly, which is why I set up Slackware-current to use it too. But it doesn't work there.
I don't actually have a video card. I have an Intel Baytrail system-on-a-chip cpu that apparently does the video in its spare time.
Last edited by hazel; 03-26-2021 at 05:27 AM.
|
|
|
03-26-2021, 05:26 AM
|
#8
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Quote:
Originally Posted by mrmazda
GPU-specific X drivers are old technology.
...
|
Intel driver uses SNA, modesetting knows nothing about it.
|
|
|
03-26-2021, 08:42 AM
|
#9
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,378
Original Poster
|
I am intrigued as to how such a thing occurs. Consider: this is not a random screen phenomenon like tearing. It occurs inside specific windows that display text and it causes the wrong text to be displayed. Now how can that be related to the video driver such that it occurs with one driver but not another? These are well-formed images; they just show the wrong thing.
When I scroll upwards with my mouse, that is an X-event. It gets reported by evdev to the X-window. In the case of gvim, it gets reported as a gdk-event and the gtk text window widget rewrites the window with the correct text (earlier text from the buffer). Everything works.
In the case of xterm or links, the X-event gets handled directly. Something (some kind of display widget?) rewrites the window but uses a scrap of random text that just repeats itself over and over. But what has that to do with what video driver I am using?
Last edited by hazel; 03-26-2021 at 08:43 AM.
|
|
|
03-26-2021, 11:41 AM
|
#10
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728
|
I try to keep agetty-type console stuff out of X, for the very reason you stated. There's a chasm between them, and it's not where the development is at. That's at OpenGL & OpenCL, dri, all that stuff, not emulating 80×25 consoles. Personally, I think it may get worse, and nobody will care. Use links in a agetty console.
|
|
|
03-26-2021, 11:49 AM
|
#11
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,378
Original Poster
|
Quote:
Originally Posted by business_kid
Use links in a agetty console.
|
But I like graphical links. Why shouldn't I use it? Anyway I only use consoles in partial systems where I haven't got X up and running yet.
I want an explanation, not a solution. The solution is obviously to use the modesetting driver. But how the heck can a driver problem cause such weird symptoms?
Last edited by hazel; 03-26-2021 at 11:51 AM.
|
|
|
03-26-2021, 12:12 PM
|
#12
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,571
|
Quote:
Originally Posted by hazel
how the heck can a driver problem cause such weird symptoms?
|
To me it seems obvious. A lot of puzzle pieces go into making everything work. FOSS developers don't keep using 8, 10 or 15 year old PCs or laptops as primary platforms, or have every combination of DE, WM, CPU, theme or GPU at their disposal to test on. Old machines get to be unbearably slow as bloat progresses, or they die. So, as development progresses, "testing" older hardware falls more on users who complain or find and report regressions.
|
|
|
All times are GMT -5. The time now is 09:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|