Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LibreOffice does not use OpenGL
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
nagmat84
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2007
Posts: 117

PostPosted: Mon May 09, 2016 5:53 pm    Post subject: LibreOffice does not use OpenGL Reply with quote

I have app-office/libreoffice-5.1.2.2 and OpenGL is enabled. However, LibreOffice does not use it as can be seen here: Screenshot of LibreOffice showing OpenGL status

This is the output of glxinfo:
Code:
~ # glxinfo | grep OpenGL
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NVE6
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.0.6
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

My .xsession-error.log gives:
Code:
OpenGL version:            3.0
GLSL version:              1.30
Mesa version:              11.0.6
X server version:          1.17.4
Linux kernel version:      4.4.8
Requires strict binding:   yes
GLSL shaders:              yes
Texture NPOT support:      yes
Virtual Machine:           no

So, what is missing? Why does LibreOffice not use OpenGL?


Last edited by nagmat84 on Sat May 14, 2016 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Mon May 09, 2016 6:49 pm    Post subject: Reply with quote

Check the ebuild,it doesn't have an opngl useflag.
Frankly why would it need opengl?
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
nagmat84
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2007
Posts: 117

PostPosted: Tue May 10, 2016 12:15 pm    Post subject: Reply with quote

Quote:
Check the ebuild,it doesn't have an opngl useflag.

This is not an argument. Only because an ebuild does not have the opengl use-flag this does not necessarily imply the application does not support OpenGL. A use-flag only makes sense if you have the choice to toggle between OpenGL support and no support. If an application mandates to be compiled with OpenGL support, i.e. sloppily spoken OpenGL support is always enabled, then there is no need for the use-flag either. This is exactly the case with LibreOffice. If you look closely at the ebuild, you see that it depends on OpenGL. The point with LibreOffice is that it decides to use or not to use OpenGL at runtime. Hence, OpenGL support is always compiled in at compile time.
Quote:
Frankly why would it need opengl?

For example, hardware acceleration for smoother scrolling, less CPU-intensive slide transitions, etc. pp. Probably for the same reasons why MS Office uses DirectX. Not only games benefit from hardware acceleration.

Back to my original question: Why does LibreOffice assumes that OpenGL support is not available at runtime?
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Tue May 10, 2016 12:53 pm    Post subject: Reply with quote

nagmat84
You're right.
I also have libreoffice though use it only occasionally.
Also I'm on nvidia-drivers,not nouvau.
I set it in the config including "even when blacklisted" but still no support.
I have no idea how to solve this.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Tue May 10, 2016 2:52 pm    Post subject: Re: LibreOffice does not use OpenGL Reply with quote

nagmat84 wrote:
I have app-office/libreoffice-5.1.2.2 and OpenGL is enabled. However, LibreOffice does not use it as can be seen here: Screenshot of LibreOffice showing OpenGL status

Here Current GL status: Enabled.
Back to top
View user's profile Send private message
nagmat84
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2007
Posts: 117

PostPosted: Wed May 11, 2016 4:42 pm    Post subject: Reply with quote

@charles17: Nice for you. Maybe you could elaborate about your configuration, what driver, output of glxinfo, etc.? Perhaps this way we will find out what the difference is. Thanks!
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Wed May 11, 2016 9:59 pm    Post subject: Reply with quote

nagmat84 wrote:
@charles17: Nice for you. Maybe you could elaborate about your configuration, what driver, output of glxinfo, etc.? !

Code:
$ emerge -pqv libreoffice
[ebuild   R   ] app-office/libreoffice-5.1.2.2  USE="branding cups gtk java (-aqua) -bluetooth (-coinmp) -collada -dbus -debug -eds (-firebird) -gltf -gnome -gstreamer (-gtk3) -jemalloc -kde (-libressl) -mysql -odk -postgres (-telepathy) {-test} -vlc" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python2_7 -python3_4 (-python3_5)" PYTHON_TARGETS="python2_7 python3_4 (-python3_5)"

Code:
$ eselect opengl show
xorg-x11

glxinfo I don't have. Which program to install to get it?
Back to top
View user's profile Send private message
nagmat84
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2007
Posts: 117

PostPosted: Fri May 13, 2016 2:42 pm    Post subject: Reply with quote

glxinfo is part of x11-apps/mesa-progs. Please run "glxinfo | egrep OpenGL"

It would also be of interest to know what graphic card you have and what driver is used. Perhaps it is specific to nouveau and or nvidia cards.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42592
Location: 56N 3W

PostPosted: Fri May 13, 2016 3:19 pm    Post subject: Reply with quote

nagmat84,

I did try LibreOffice with OpenGL. In calc, it became unusable.
The display was just the title bar wrapping from top to bottom in the window. The menus and mouse clicks still worked, so I was able to turn it off again.

I'm using a GeForce 9800 GT video card with the nouveau driver. The card is too old for the binary blob.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Fri May 13, 2016 5:50 pm    Post subject: Reply with quote

nagmat84 wrote:
glxinfo is part of x11-apps/mesa-progs. Please run "glxinfo | egrep OpenGL"
Code:
$ glxinfo | egrep OpenGL
OpenGL vendor string: Mesa Project
OpenGL renderer string: Gallium 0.4 on i915 (chipset: 945GM)
OpenGL version string: 2.1 Mesa 11.0.6
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 11.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:

nagmat84 wrote:
It would also be of interest to know what graphic card you have and what driver is used. Perhaps it is specific to nouveau and or nvidia cards.
Code:
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03) (prog
        Subsystem: Hewlett-Packard Company Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [103c:30aa]
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at e8400000 (32-bit, non-prefetchable) [size=512K]
        I/O ports at 6000 [size=8]
        Memory at d0000000 (32-bit, prefetchable) [size=256M]
        Memory at e8480000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Kernel driver in use: i915
Back to top
View user's profile Send private message
nagmat84
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2007
Posts: 117

PostPosted: Sat May 14, 2016 9:42 am    Post subject: Reply with quote

Because charles17 has a LibreOffice installation with enabled OpenGL support but on an Intel graphics, I remembered that my laptop also has an integrated Intel graphics. So I checked my laptop to find out if not having OpenGL is specific to the nouveau driver. This is my laptop:
Code:
~ # glxinfo | egrep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.0.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
and
Code:
00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Broadwell-U Integrated Graphics
        Flags: bus master, fast devsel, latency 0, IRQ 40                                                       
        Memory at e0000000 (64-bit, non-prefetchable) [size=16M]                                                 
        Memory at c0000000 (64-bit, prefetchable) [size=512M]                                                   
        I/O ports at 3000 [size=64]                                                                             
        Expansion ROM at <unassigned> [disabled]                                                                 
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-                                               
        Capabilities: [d0] Power Management version 2                                                           
        Capabilities: [a4] PCI Advanced Features                                                                 
        Kernel driver in use: i915

But different to charles17 the LibreOffice installation does not use OpenGL on my laptop. I think is time to ask upstream.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Sat May 14, 2016 3:26 pm    Post subject: Reply with quote

nagmat84 wrote:
Code:
...                                                         
        Kernel driver in use: i915

But different to charles17 the LibreOffice installation does not use OpenGL on my laptop. I think is time to ask upstream.

Are you sure i915 is correct for Broadwell-U? See https://wiki.gentoo.org/wiki/Intel#Feature_support
Back to top
View user's profile Send private message
nagmat84
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2007
Posts: 117

PostPosted: Sun May 15, 2016 12:28 pm    Post subject: Reply with quote

charles17 wrote:
nagmat84 wrote:
Code:
...                                                         
        Kernel driver in use: i915
Are you sure i915 is correct for Broadwell-U? See https://wiki.gentoo.org/wiki/Intel#Feature_support
Yes, I am. We need to distinguish three "parts" of the driver (or however you want to call it): The kernel part, the general X11/Xorg part and the Mesa part whereby the latter is responsible for OpenGL.

The kernel driver and that is what you copied over from my post is always called "i915". The kernel option is selected by:
Code:
Device Drivers  --->
    Graphics support  --->
        <*> /dev/agpgart (AGP Support)  --->
             <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
        <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
            <*> Intel 8xx/9xx/G3x/G4x/HD Graphics
            [*]   Enable modesetting on intel by default
            [*]   Enable legacy fbdev support for the modesetting intel driver
And the help messages says:
Code:
CONFIG_DRM_I915:

Choose this option if you have a system that has "Intel Graphics
Media Accelerator" or "HD Graphics" integrated graphics,
including 830M, 845G, 852GM, 855GM, 865G, 915G, 945G, 965G,
G35, G41, G43, G45 chipsets and Celeron, Pentium, Core i3,
Core i5, Core i7 as well as Atom CPUs with integrated graphics.
If M is selected, the module will be called i915.
You can see, Core i7 and 965G is explicitly mentioned. However, the kernel driver is always called i915.

The second part is the general X11/Xorg driver. The website you mentioned, section "Configuration" says
Quote:
As xorg is not aware of i915 or i965 they will need to be addressed as Driver "intel".
Code:
#
# /etc/X11/xorg.conf.d/device_no_vesa.conf
#

Section "Device"
        Identifier "Device0"
        Driver "intel"
        ...
EndSection
Hence, the Xorg driver is called intel.

Thirdly, the same website, section "Driver" also says
Quote:
Code:
#
# /etc/portage/make.conf
#

VIDEO_CARDS="intel i965"
"intel" is for x11-base/xorg-drivers and i915 resp. i965 are for media-libs/mesa.
Hence, only the Mesa driver is called i965.
Back to top
View user's profile Send private message
rickvernam
Guru
Guru


Joined: 09 Jul 2004
Posts: 310

PostPosted: Mon Oct 31, 2016 9:24 pm    Post subject: Reply with quote

Did anybody ever come to a conclusion on this? I am also trying to figure this one out...

I realize I'm on Mesa 13 rc2, but it also didn't work under mesa 12.x either.
Code:
~ $ glxinfo | grep "OpenGL"
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 13.0.0-rc2
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:
OpenGL version string: 3.0 Mesa 13.0.0-rc2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 13.0.0-rc2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:


Code:
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 06d9
        Flags: bus master, fast devsel, latency 0, IRQ 137
        Memory at dd000000 (64-bit, non-prefetchable) [size=16M]
        Memory at b0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [100] Process Address Space ID (PASID)
        Capabilities: [200] Address Translation Service (ATS)
        Capabilities: [300] Page Request Interface (PRI)
        Kernel driver in use: i915
        Kernel modules: i915
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