Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving from intel to glamor driver fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Ashie
n00b
n00b


Joined: 09 Apr 2016
Posts: 54

PostPosted: Tue Aug 13, 2019 6:27 am    Post subject: Moving from intel to glamor driver fails Reply with quote

In continuation to the previous discussion :

Graphics in Qt (?) slow in specific applications

I tried to move from "intel" to "glamor" and can't start X with glamor configured



What was done : The system was previously installed with intel (and VIDEO CARDS="intel i915"), but slow in few specific places :

Plasma screen locker
SDDM
Plasma settings windows which have specific graphics (such as changing wallpapers)
Typing in text fields in Konqueror (but works ok with any other browser, and all other actions in Konqueror work ok too)

(In fact, i suspect that there is some specific Qt5 widget which implementation is grossly inefficient, which is used in those specific applications)



Anyway, i added glamor to USE flags and remerged --newuse @world. Now if i also add the changes to xorg.conf to switch to glamor, i cant start



Xorg.0.log with the error :
Code:
[    27.692] (--) Log file renamed from "/var/log/Xorg.pid-2706.log" to "/var/log/Xorg.0.log"
[    27.692]
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[    27.692] Build Operating System: Linux 4.19.57-gentoo x86_64 Gentoo
[    27.692] Current Operating System: Linux localhost 4.19.57-gentoo #1 SMP Mon Jul 22 21:37:11 -00 2019 x86_64
[    27.692] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19.57-gentoo root=/dev/sda2
[    27.692] Build Date: 03 August 2019  02:54:12PM
[    27.692] 
[    27.692] Current version of pixman: 0.38.4
[    27.692]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    27.692] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    27.692] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Aug  7 00:10:29 2019
[    27.747] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    27.747] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    27.797] (==) No Layout section.  Using the first Screen section.
[    27.797] (==) No screen section available. Using defaults.
[    27.797] (**) |-->Screen "Default Screen Section" (0)
[    27.797] (**) |   |-->Monitor "<default monitor>"
[    27.797] (==) No device specified for screen "Default Screen Section".
   Using the first device section listed.
[    27.797] (**) |   |-->Device "intel"
[    27.797] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[    27.797] (==) Automatically adding devices
[    27.797] (==) Automatically enabling devices
[    27.797] (==) Automatically adding GPU devices
[    27.798] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    27.860] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/TTF/,
   /usr/share/fonts/OTF/,
   /usr/share/fonts/Type1/,
   /usr/share/fonts/100dpi/,
   /usr/share/fonts/75dpi/
[    27.860] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    27.860] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    27.860] (II) Loader magic: 0x55f940cdd040
[    27.860] (II) Module ABI versions:
[    27.860]    X.Org ANSI C Emulation: 0.4
[    27.860]    X.Org Video Driver: 24.0
[    27.860]    X.Org XInput driver : 24.1
[    27.861]    X.Org Server Extension : 10.0
[    27.861] (II) xfree86: Adding drm device (/dev/dri/card0)
[    27.879] (--) PCI:*(0@0:2:0) 8086:29c2:103c:2a73 rev 2, Mem @ 0xfea00000/524288, 0xd0000000/268435456, 0xfe900000/1048576, I/O @ 0x0000c080/8, BIOS @ 0x????????/131072
[    27.879] (II) "glx" will be loaded by default.
[    27.879] (II) LoadModule: "dri"
[    27.879] (II) Module "dri" already built-in
[    27.879] (II) LoadModule: "dri2"
[    27.879] (II) Module "dri2" already built-in
[    27.879] (II) LoadModule: "vgahw"
[    27.920] (II) Loading /usr/lib64/xorg/modules/libvgahw.so
[    27.929] (II) Module vgahw: vendor="X.Org Foundation"
[    27.929]    compiled for 1.20.5, module version = 0.1.0
[    27.929]    ABI class: X.Org Video Driver, version 24.0
[    27.929] (II) LoadModule: "fb"
[    27.929] (II) Loading /usr/lib64/xorg/modules/libfb.so
[    27.944] (II) Module fb: vendor="X.Org Foundation"
[    27.944]    compiled for 1.20.5, module version = 1.0.0
[    27.944]    ABI class: X.Org ANSI C Emulation, version 0.4
[    27.944] (II) LoadModule: "xaa"
[    27.953] (WW) Warning, couldn't open module xaa
[    27.953] (EE) Failed to load module "xaa" (module does not exist, 0)
[    27.954] (II) LoadModule: "int10"
[    27.954] (II) Loading /usr/lib64/xorg/modules/libint10.so
[    27.964] (II) Module int10: vendor="X.Org Foundation"
[    27.964]    compiled for 1.20.5, module version = 1.0.0
[    27.964]    ABI class: X.Org Video Driver, version 24.0
[    27.964] (II) LoadModule: "vbe"
[    27.964] (II) Loading /usr/lib64/xorg/modules/libvbe.so
[    27.964] (II) Module vbe: vendor="X.Org Foundation"
[    27.964]    compiled for 1.20.5, module version = 1.1.0
[    27.964]    ABI class: X.Org Video Driver, version 24.0
[    27.964] (II) LoadModule: "shadowfb"
[    27.964] (II) Loading /usr/lib64/xorg/modules/libshadowfb.so
[    27.965] (II) Module shadowfb: vendor="X.Org Foundation"
[    27.965]    compiled for 1.20.5, module version = 1.0.0
[    27.965]    ABI class: X.Org ANSI C Emulation, version 0.4
[    27.965] (II) LoadModule: "shadow"
[    27.965] (II) Loading /usr/lib64/xorg/modules/libshadow.so
[    27.973] (II) Module shadow: vendor="X.Org Foundation"
[    27.973]    compiled for 1.20.5, module version = 1.1.0
[    27.973]    ABI class: X.Org ANSI C Emulation, version 0.4
[    27.973] (II) LoadModule: "fbdevhw"
[    27.973] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[    27.974] (II) Module fbdevhw: vendor="X.Org Foundation"
[    27.974]    compiled for 1.20.5, module version = 0.0.2
[    27.974]    ABI class: X.Org Video Driver, version 24.0
[    27.974] (II) LoadModule: "exa"
[    27.974] (II) Loading /usr/lib64/xorg/modules/libexa.so
[    27.985] (II) Module exa: vendor="X.Org Foundation"
[    27.985]    compiled for 1.20.5, module version = 2.6.0
[    27.985]    ABI class: X.Org Video Driver, version 24.0
[    27.985] (II) LoadModule: "glamoregl"
[    27.985] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[    28.080] (II) Module glamoregl: vendor="X.Org Foundation"
[    28.080]    compiled for 1.20.5, module version = 1.0.1
[    28.080]    ABI class: X.Org ANSI C Emulation, version 0.4
[    28.081] (II) LoadModule: "glx"
[    28.081] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    28.281] (II) Module glx: vendor="X.Org Foundation"
[    28.281]    compiled for 1.20.5, module version = 1.0.0
[    28.281]    ABI class: X.Org Server Extension, version 10.0
[    28.281] (II) LoadModule: "modesetting"
[    28.281] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[    28.283] (II) Module modesetting: vendor="X.Org Foundation"
[    28.283]    compiled for 1.20.5, module version = 1.20.5
[    28.283]    Module class: X.Org Video Driver
[    28.283]    ABI class: X.Org Video Driver, version 24.0
[    28.283] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    28.283] (++) using VT number 7

[    28.309] (II) modeset(0): using drv /dev/dri/card0
[    28.309] (II) modeset(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[    28.309] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    28.309] (==) modeset(0): RGB weight 888
[    28.309] (==) modeset(0): Default visual is TrueColor
[    28.309] (II) Loading sub module "glamoregl"
[    28.309] (II) LoadModule: "glamoregl"
[    28.309] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[    28.309] (II) Module glamoregl: vendor="X.Org Foundation"
[    28.309]    compiled for 1.20.5, module version = 1.0.1
[    28.309]    ABI class: X.Org ANSI C Emulation, version 0.4
[    28.602] (II) modeset(0): glamor X acceleration enabled on Mesa DRI Intel(R) G33
[    28.602] (II) modeset(0): glamor initialized
[    28.622] (II) modeset(0): Output VGA-1 has no monitor section
[    28.638] (II) modeset(0): EDID for output VGA-1
[    28.639] (II) modeset(0): Manufacturer: PTS  Model: 76d  Serial#: 16843009
[    28.639] (II) modeset(0): Year: 2006  Week: 10
[    28.639] (II) modeset(0): EDID Version: 1.3
[    28.639] (II) modeset(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
[    28.648] (II) modeset(0): Sync:  Separate
[    28.648] (II) modeset(0): Max Image Size [cm]: horiz.: 38  vert.: 30
[    28.648] (II) modeset(0): Gamma: 2.50
[    28.648] (II) modeset(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
[    28.648] (II) modeset(0): First detailed timing is preferred mode
[    28.648] (II) modeset(0): redX: 0.646 redY: 0.357   greenX: 0.278 greenY: 0.612
[    28.648] (II) modeset(0): blueX: 0.146 blueY: 0.118   whiteX: 0.310 whiteY: 0.329
[    28.648] (II) modeset(0): Supported established timings:
[    28.648] (II) modeset(0): 720x400@70Hz
[    28.648] (II) modeset(0): 640x480@60Hz
[    28.648] (II) modeset(0): 640x480@67Hz
[    28.648] (II) modeset(0): 640x480@72Hz
[    28.648] (II) modeset(0): 640x480@75Hz
[    28.648] (II) modeset(0): 800x600@56Hz
[    28.648] (II) modeset(0): 800x600@60Hz
[    28.648] (II) modeset(0): 800x600@72Hz
[    28.648] (II) modeset(0): 800x600@75Hz
[    28.648] (II) modeset(0): 832x624@75Hz
[    28.648] (II) modeset(0): 1024x768@60Hz
[    28.648] (II) modeset(0): 1024x768@70Hz
[    28.648] (II) modeset(0): 1024x768@75Hz
[    28.648] (II) modeset(0): 1280x1024@75Hz
[    28.648] (II) modeset(0): Manufacturer's mask: 0
[    28.648] (II) modeset(0): Supported standard timings:
[    28.648] (II) modeset(0): #0: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
[    28.648] (II) modeset(0): Supported detailed timing:
[    28.648] (II) modeset(0): clock: 108.0 MHz   Image Size:  376 x 301 mm
[    28.648] (II) modeset(0): h_active: 1280  h_sync: 1328  h_sync_end 1440 h_blank_end 1688 h_border: 0
[    28.648] (II) modeset(0): v_active: 1024  v_sync: 1025  v_sync_end 1028 v_blanking: 1066 v_border: 0
[    28.648] (II) modeset(0): Supported detailed timing:
[    28.648] (II) modeset(0): clock: 78.8 MHz   Image Size:  376 x 301 mm
[    28.648] (II) modeset(0): h_active: 1024  h_sync: 1040  h_sync_end 1136 h_blank_end 1312 h_border: 0
[    28.648] (II) modeset(0): v_active: 768  v_sync: 769  v_sync_end 772 v_blanking: 800 v_border: 0
[    28.648] (II) modeset(0): Ranges: V min: 60 V max: 75 Hz, H min: 30 H max: 80 kHz, PixClock max 145 MHz
[    28.648] (II) modeset(0): Serial No: F9TQ630287358
[    28.648] (II) modeset(0): EDID (in hex):
[    28.648] (II) modeset(0):    00ffffffffffff0042936d0701010101
[    28.648] (II) modeset(0):    0a10010308261e96ea6755a55b479c25
[    28.648] (II) modeset(0):    1e4f54bfef0081800101010101010101
[    28.648] (II) modeset(0):    010101010101302a009851002a403070
[    28.648] (II) modeset(0):    1300782d1100001ec31e002041002030
[    28.648] (II) modeset(0):    10601300782d11000000000000fd003c
[    28.648] (II) modeset(0):    4b1e500e000a202020202020000000ff
[    28.648] (II) modeset(0):    004639545136333032383733353800c7
[    28.648] (II) modeset(0): Printing probed modes for output VGA-1
[    28.648] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz eP)
[    28.648] (II) modeset(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[    28.648] (II) modeset(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 -hsync -vsync (60.0 kHz e)
[    28.648] (II) modeset(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[    28.648] (II) modeset(0): Modeline "1024x768"x70.1   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[    28.648] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    28.648] (II) modeset(0): Modeline "832x624"x74.6   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[    28.648] (II) modeset(0): Modeline "800x600"x72.2   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[    28.649] (II) modeset(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[    28.649] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    28.649] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    28.649] (II) modeset(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[    28.649] (II) modeset(0): Modeline "640x480"x72.8   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[    28.649] (II) modeset(0): Modeline "640x480"x66.7   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[    28.649] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    28.649] (II) modeset(0): Modeline "720x400"x70.1   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[    28.649] (II) modeset(0): Output VGA-1 connected
[    28.649] (II) modeset(0): Using exact sizes for initial modes
[    28.649] (II) modeset(0): Output VGA-1 using initial mode 1280x1024 +0+0
[    28.649] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    28.649] (==) modeset(0): DPI set to (96, 96)
[    28.649] (II) Loading sub module "fb"
[    28.649] (II) LoadModule: "fb"
[    28.649] (II) Loading /usr/lib64/xorg/modules/libfb.so
[    28.649] (II) Module fb: vendor="X.Org Foundation"
[    28.649]    compiled for 1.20.5, module version = 1.0.0
[    28.649]    ABI class: X.Org ANSI C Emulation, version 0.4
[    28.668] Require OpenGL version 2.1 or later.
[    28.668] (EE) modeset(0): Failed to initialize glamor at ScreenInit() time.
[    28.668] (EE)
Fatal server error:
[    28.668] (EE) AddScreen/ScreenInit failed for driver 0
[    28.668] (EE)
[    28.668] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[    28.668] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    28.668] (EE)
[    28.683] (EE) Server terminated with error (1). Closing log file.




xorg.conf(.d)
Code:
Section "Module"
Load "dri"
Load "dri2"
Load "vgahw"
Load "fb"
Load "xaa"
Load "int10"
Load "vbe"
Load "shadowfb"
Load "shadow"
Load "fbdevhw"
Load "exa"
Load "glamoregl"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
Option "DRI" "3"
EndSection




Section Module is what i allready have in the file. Section Device is the new section that triggers the fault


I am trying to repair the problem on few boxes with similar setups (allthough installed at different times so not precisely in sync). The boxes have Intel G31M chipsets with IGPs, different MB manufacturers


EDIT : Is the glamor driver supposed to support Intel G31M ("i915" era chipsets) ?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2642

PostPosted: Tue Aug 13, 2019 9:43 am    Post subject: Re: Moving from intel to glamor driver fails Reply with quote

Ashie wrote:
xorg.conf(.d)
Code:
Section "Module"
Load "dri"
Load "dri2"
Load "vgahw"
Load "fb"
Load "xaa"
Load "int10"
Load "vbe"
Load "shadowfb"
Load "shadow"
Load "fbdevhw"
Load "exa"
Load "glamoregl"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
Option "DRI" "3"
EndSection




Section Module is what i allready have in the file. Section Device is the new section that triggers the fault

Why at all are you having that module section? And, what are you having in your /etc/portage/make.conf file.
Back to top
View user's profile Send private message
kajzer
Guru
Guru


Joined: 27 Nov 2014
Posts: 439

PostPosted: Tue Aug 13, 2019 2:03 pm    Post subject: Reply with quote

Those chips are just too old, quick google tells me that max OpenGL version for those cards are 2.0, I don't think you can use glamor with those chips.
Gen2 if I'm not mistaken.
Forget about kms and glamor, it would be slow and very buggy, if it would work at all.
I tried glamor and kms with similar gpu 945G, IIRC, it was horrid.
Also, don't use dri3, stick with dri2
For accel method use sna or uxa
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5855

PostPosted: Tue Aug 13, 2019 3:30 pm    Post subject: Re: Moving from intel to glamor driver fails Reply with quote

Ashie wrote:
Code:

[    28.668] Require OpenGL version 2.1 or later.
[    28.668] (EE) modeset(0): Failed to initialize glamor at ScreenInit() time.

You need the gallium driver for that to work, if it works at all.
Back to top
View user's profile Send private message
Ashie
n00b
n00b


Joined: 09 Apr 2016
Posts: 54

PostPosted: Tue Aug 13, 2019 6:05 pm    Post subject: Reply with quote

Figured that out allready..

I am experimenting now with various xorg.conf options under the intel driver, none of them seem to improve performance much in those places (and everywhere else performance is excellent, scrolling, desktop effects etc)

I want to play some more with settings of openGL / GLES (how can that be controlled ? The opengl use flag was allready enabled, and for gles there are no global use flags)

Also, Qt4 had option to choose "graphicssystem" (and worked fine without having to manually change it anyway), i dont find any equivalent setting here



The hardware being old does not directly explain the slowness - 5 seconds to refresh the screen in the login screen is abnormal by any means even if all the graphics work is done on cpu alone
Back to top
View user's profile Send private message
Ashie
n00b
n00b


Joined: 09 Apr 2016
Posts: 54

PostPosted: Wed Aug 14, 2019 7:07 am    Post subject: Reply with quote

Is there a setting to change how Qt (not Kwin compositor) draws the contents - something like the "graphicssystem raster" of Qt4 ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum