LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2017, 11:52 AM   #46
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled

I still believe there is something fishy with your graphics. Does glxinfo tell direct rendering is enabled? Anything in Xorg log that points to rendering problems? Xorg defaults to modesetting with Intel graphics, some Intel chipsets work better with Intel driver. I suggested testing before but you never came back with results.
 
Old 09-28-2017, 01:27 AM   #47
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,392

Original Poster
Blog Entries: 16

Rep: Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214
Xorg log shows that the modesetting driver is not used either in Crux or in LFS. It gets loaded, then i915 gets loaded and modesetting gets unloaded again. I looked for significant differences between the Xorg logs of Crux and LFS but couldn't find any. I'm in Crux at the moment. I'll run glxinfo in LFS and post the result. I'm afraid it's all Greek to me; I've never understood graphics.
 
Old 09-28-2017, 06:41 AM   #48
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,392

Original Poster
Blog Entries: 16

Rep: Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214
OK. Here are the relevant files for the current (not the old) LFS. This is the one where Pale Moon is stable except for logging in to Yahoo. The first file is the output of glxinfo, the second is my Xorg.log.

btw if someone could find me an entry-level explanation of how a computer does graphics, I'd be grateful. Don't tell me to go to Wikipedia ; the articles there on this subject are already beyond my competence level.
Attached Files
File Type: txt glxinfo.txt (22.4 KB, 4 views)
File Type: txt Xorg-log.txt (15.7 KB, 5 views)

Last edited by hazel; 09-28-2017 at 06:44 AM.
 
Old 09-28-2017, 07:58 AM   #49
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
I'm no X expert either. This is all I know:
There is kernel DRI driver, if it is loaded you get /dev/dri/card0 node and can have hardware acceleration.
Then there is Xorg driver.
Plus MESA for 3D.

Here is interesting part from your glxinfo:
Code:
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa Project (0x8086)
    Device: i915 (chipset: Q33) (0x29d2)
    Version: 17.1.6
    Accelerated: yes
    Video memory: 384MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL vendor string: Mesa Project
OpenGL renderer string: Gallium 0.4 on i915 (chipset: Q33)
OpenGL version string: 2.1 Mesa 17.1.6
Here is mine, for comparison:
Code:
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2)  (0x5912)
    Version: 17.2.1
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.2.1
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
... 
long list of supported functions
...
Frankly, I do not know what to make of it. Do you have same glxinfo output in Crux?
 
Old 09-28-2017, 08:23 AM   #50
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
I did some search regarding Intel and gallium3d. As I mentioned before, Gentoo even does not offer gallium for Intel. And it seems to be the correct choice, I could not find anything encouraging its usage with Intel.
 
Old 09-28-2017, 08:26 AM   #51
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,392

Original Poster
Blog Entries: 16

Rep: Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214
Crux doesn't currently have the glx utils but I can install them. They'll be in the mesa-demos package.

The difference in the glxinfo output between my system and yours is striking! I think you're right: if we can find out what the difference means, we will have a handle on this.

I do have the card device you mentioned. In fact I have two devices in that directory:

crw-rw---- 1 root video 226, 0 Sep 28 12:30 card0
crw-rw---- 1 root video 226, 128 Sep 28 12:30 renderD128

I am in the video group so I should have access to both.

Here's what LFS says about gallium drivers:
The available drivers are i915, nouveau, r300, r600, radeonsi, freedreno, svga, swrast, vc4, and virgl. If the Gallium drivers are not specified, the default is 'r300,r600,svga,swrast'. Modify the command below for any desired drivers. The listed drivers below will cover most modern video cards. For help in selecting drivers see http://www.mesa3d.org/systems.html.
GLL_DRV="i915,r600,nouveau,radeonsi,svga,swrast"

Last edited by hazel; 09-28-2017 at 08:30 AM. Reason: Added info to cover immediately previous post.
 
Old 09-28-2017, 10:01 AM   #52
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Just in case, here is how I load modesetting instead of intel.
Code:
Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "3"
EndSection
 
Old 09-28-2017, 10:44 AM   #53
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,392

Original Poster
Blog Entries: 16

Rep: Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214
Quote:
Originally Posted by Emerson View Post
Just in case, here is how I load modesetting instead of intel.
Code:
Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "3"
EndSection
That partly worked. When I restarted X, it did load the modesetting driver. But then it choked on glamor:
Code:
[ 13572.040] (**) modeset(0): Option "AccelMethod" "glamor"
[ 13572.040] (==) modeset(0): RGB weight 888
[ 13572.040] (==) modeset(0): Default visual is TrueColor
[ 13572.040] (II) Loading sub module "glamoregl"
[ 13572.040] (II) LoadModule: "glamoregl"
[ 13572.040] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 13572.101] (II) Module glamoregl: vendor="X.Org Foundation"
[ 13572.101]    compiled for 1.19.3, module version = 1.0.0
[ 13572.101]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 13572.101] (II) glamor: OpenGL accelerated X.org driver based.
[ 13572.150] (II) glamor: EGL version 1.4 (DRI2):
[ 13572.153] (II) modeset(0): glamor initialized
.....
[ 13572.188] (WW) glamor requires at least 128 instructions (64 reported)
[ 13572.188] (EE) modeset(0): Failed to initialize glamor at ScreenInit() time.
[ 13572.188] (EE) 
Fatal server error:
[ 13572.188] (EE) AddScreen/ScreenInit failed for driver 0
[ 13572.188] (EE) 
[ 13572.188] (EE)
I gather that glamor is part of the X server, which I built (as recommended) with --enable-glamor.
 
Old 09-28-2017, 11:03 AM   #54
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Try without glamor, then. Just curious if this fixes your Yahoo.
 
1 members found this post helpful.
Old 09-28-2017, 12:06 PM   #55
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,392

Original Poster
Blog Entries: 16

Rep: Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214
Quote:
Originally Posted by Emerson View Post
Try without glamor, then. Just curious if this fixes your Yahoo.
Hallelujah! Emmerson, you're a genius!

Glamor is the default accelerator so I had great difficulty getting rid of it. In the end, I specified uxa, because that's what the Intel driver uses. And now I can log into Yahoo.

Just out of curiosity, I'm going to do the same thing on the old LFS and see if I can stabilise PM on that too.

That still doesn't solve the other problem, the incompatibility between that PM header and gcc-7, which forces me to build it in another system. I've asked about that on the LFS mailing list but haven't got an answer yet. It's going to be more of a problem going forward as gcc-6 comes to its end-of-life. Still, this thread was about Yahoo and I'm going to mark it solved.
 
Old 09-28-2017, 12:29 PM   #56
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Glad you got it working. Although this is just workaround, something is wrong with your video acceleration.
 
Old 09-28-2017, 12:50 PM   #57
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,392

Original Poster
Blog Entries: 16

Rep: Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214
Quote:
Originally Posted by Emerson View Post
Glad you got it working. Although this is just workaround, something is wrong with your video acceleration.
So how do I find out what that could be?

Actually, you're assuming that something is actively wrong. But maybe nothing's wrong, it's just that my aging hardware doesn't support glamor.
 
Old 09-28-2017, 01:07 PM   #58
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
I think your glxinfo showing in compat mode indicates a problem.
 
Old 09-29-2017, 01:56 AM   #59
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,392

Original Poster
Blog Entries: 16

Rep: Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214
Quote:
Originally Posted by Emerson View Post
I think your glxinfo showing in compat mode indicates a problem.
Why? Please enlarge. What does "compat" mean anyway? Compatible with what? And why is it a bad thing?

Just for fun, I switched the xorg server in my old LFS to use the modesetting driver to see if PM would become stable on that system. But it still crashes immediately after loading. You can't use it for anything.
 
Old 09-29-2017, 05:54 AM   #60
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,392

Original Poster
Blog Entries: 16

Rep: Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214Reputation: 3214
Now here's something interesting. If I run in LFS 8.1 the PM-27.4.0 that I built myself in LFS 8.0 with gcc-6, it behaves much better than it does in its native system. It still segfaults when I try to log into Yahoo (which PM-27.6.0a1 no longer does, thanks to Emerson) but otherwise it seems to be stable. Maybe that's because LFS 8.0 has much older graphics software (half a year older in fact). I'm beginning to think that the interactions between this program and the underlying system are simply too complicated to explain.
 
  


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
Pale Moon 27.3.0 and GCC-7.1 3rensho Slackware 5 06-01-2017 03:14 AM
How to get up and down arrows in Pale Moon rstuff Linux - Newbie 4 01-20-2017 02:51 AM
[SOLVED] Pale Moon vs Firefox storkus Slackware 35 09-07-2015 01:47 PM
Pale Moon browser JWJones Linux - Software 4 04-02-2015 12:06 PM
Pale Moon Browser TigerLinux General 10 12-28-2011 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 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