LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-25-2021, 10:24 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,378
Blog Entries: 21

Rep: Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859
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.
 
Old 03-25-2021, 10:47 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
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.
 
Old 03-25-2021, 11:38 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728

Rep: Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668
Quote:
Originally Posted by Emerson View Post
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.
 
Old 03-25-2021, 11:44 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
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.
 
Old 03-25-2021, 11:34 PM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,571
Blog Entries: 1

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
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.
 
Old 03-26-2021, 04:37 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728

Rep: Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668
Quote:
Originally Posted by Emerson View Post
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.
 
Old 03-26-2021, 04:40 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,378

Original Poster
Blog Entries: 21

Rep: Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859
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.
 
Old 03-26-2021, 05:26 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
GPU-specific X drivers are old technology.
...
Intel driver uses SNA, modesetting knows nothing about it.
 
Old 03-26-2021, 08:42 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,378

Original Poster
Blog Entries: 21

Rep: Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859
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.
 
Old 03-26-2021, 11:41 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,728

Rep: Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668
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.
 
Old 03-26-2021, 11:49 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,378

Original Poster
Blog Entries: 21

Rep: Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859Reputation: 4859
Quote:
Originally Posted by business_kid View Post
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.
 
Old 03-26-2021, 12:12 PM   #12
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,571
Blog Entries: 1

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
Quote:
Originally Posted by hazel View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can anyone else get favorable accelerated video graphics using Xorg driver modesetting? ReaperX7 Slackware 2 04-20-2016 03:25 PM
intel(0): No kernel modesetting driver detected. venam Linux - Newbie 1 03-17-2012 04:49 PM
For NVIDIA users with suicidal tendencies: you have a new driver called "modesetting" Darth Vader Slackware 7 11-29-2010 06:23 AM
[SOLVED] No Screens & intel(0) no kernel modesetting driver detected JSlack Slackware 14 04-10-2010 01:40 PM
Will 2D modesetting with Radeon driver eliminate DRI, what is the impact chromei386 Linux - General 3 03-30-2010 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration