You are not logged in.

#1 2015-02-05 20:41:46

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Is there a 2D acceleration support on Linux?

Seriously. I just installed a newly bought graphics card from Nvidia, ASUS GeForce GT 610 (come on, I don't want games, just desktop), installed recent proprietary drivers from Nvidia and I still can't scroll stupid spreadsheet in LibreOffice without lags. Before I had Nvidia 7300GT and it was the same both on nouveau and proprietary driver.

Here's sample xls (don't worry, no malicious macros attached): http://upload.koci.net.pl/uploads/test.xls

If for someone it works as it is expected to work on modern system, please provide you configuration (CPU, GPU and driver).

Mine is AMD Athlon(tm) 64 X2 Dual Core Processor 5600+, Nvidia GT 610 and nvidia driver 346.35.

I'm also unhappy with my web browsing performance but this is for another topic. Anyway, believe me, I tried everything, finally changed the GPU and it is only a little bit better.

Offline

#2 2015-02-05 21:47:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Is there a 2D acceleration support on Linux?

mkkot wrote:

believe me, I tried everything

Can you please tell us anyway?

Let's start with X logs - is your card properly detected?

See also https://wiki.archlinux.org/index.php/Li … ibreOffice

Offline

#3 2015-02-05 22:02:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Is there a 2D acceleration support on Linux?

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-02-06 02:26:31

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Is there a 2D acceleration support on Linux?

mkkot wrote:

If for someone it works as it is expected to work on modern system, please provide you configuration (CPU, GPU and driver).

The file looks and scrolls great to me.

My hardware: https://wiki.archlinux.org/index.php/Us … s#Hardware
Driver: radeon (open source)
Window manager: Openbox
Wallpaper: Wreck-It Ralph

Can you better describe what the lagging looks like? Both my mouse wheel and the scrollbars will instantly scroll your test spreadsheet.

Offline

#5 2015-02-06 14:49:59

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,949

Re: Is there a 2D acceleration support on Linux?

I do indeed see some lag while scrolling, it feels like the screen is updating slower then i move the scrollbar or mousewheel.

However, i wouldn't exactly call my system modern.


I have dual AMD Opteron 2378 with Radeon 4890 .
It's a server/workstation dual cpu mobo with ECC memory and only supports pciexpress 1 .

Although 6 six years old now, It's still working fine .

Off-topic :
If a see a spreadsheetfile like this one, i can't help wondering why people don't use a database application with decent report-creation capabilities instead of abusing a spreadsheet program.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2015-02-06 15:11:09

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Is there a 2D acceleration support on Linux?

Lone_Wolf wrote:

If a see a spreadsheetfile like this one, i can't help wondering why people don't use a database application with decent report-creation capabilities instead of abusing a spreadsheet program.

I have no idea what you just said. Can't I just click boxes and fill them in with numbers?

...I'm kind of being facetious and kind of not. wink

Offline

#7 2015-02-06 17:51:31

gdon
Member
Registered: 2015-01-26
Posts: 15

Re: Is there a 2D acceleration support on Linux?

drcouzelis wrote:

I have no idea what you just said. Can't I just click boxes and fill them in with numbers?

Yes you can. It's just that you're kinda using a knife to cut a log: it's perfectly possible but it's a pain. (but whatever, this is off-topic)


Did you try removing your libreoffice config folder? Did you try to disable hardware acceleration?

This table is working just great on a 6yo system with and without hardware acceleration I don't see why it wouldn't be the same with yours.

Offline

#8 2015-02-06 18:00:49

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Is there a 2D acceleration support on Linux?

gdon wrote:

Did you try to disable hardware acceleration?

Ooooh, I bet this could be the problem! Good thought! smile

Try toggling the hardware acceleration in LibreOffice (and restarting it). Does that change the amount of lag?

Offline

#9 2015-02-07 20:35:34

onslow77
Member
Registered: 2014-09-21
Posts: 279

Re: Is there a 2D acceleration support on Linux?

Hello,

Not sure what you meen by lagging, but  - Is there a chance that the lagging problems in libreoffice and webbsurfing that you also say you are unhappy with: is because the lack of a composite manager on your system?

Regards
Martin

Last edited by onslow77 (2015-02-07 20:37:25)


It is advised to follow the How to post guide when posting on the Arch forum. If one consciously jumps over these elementary steps like reading the wiki and providing necessary information about the problem, one can be regarded as a Help Vampire.

Offline

#10 2015-02-08 00:47:56

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

Hello again,

sorry for delay, but I didn't forget about the thread.

The spreadsheet I posted here is a simplified version of the original one. I have removed most of the information since I took it from my company. The simplified version scrolls easier but still, please look at the screenshot:

przechnzn.png

The more complicated version forces me to wait 5-10 seconds when I use mouse scroll which drives me nuts. At work we're using Lenovo's T430 laptops with Red Hat Linux,  Intel® Core™ i5-3320M (2.60GHz) processor and Intel HD Graphics 4000 (I'm not sure if the second nvidia is used there). And guess what, it works perfectly! I checked the Memory settings in Open Office there and they are just left default. I played around with these settings at home but they make no difference with my PC.

To answer karol's question:

[    25.641] (II) NVIDIA(0): NVIDIA GPU GeForce GT 610 (GF119) at PCI:2:0:0 (GPU-0)
[    25.641] (--) NVIDIA(0): Memory: 1048576 kBytes
[    25.641] (--) NVIDIA(0): VideoBIOS: 75.19.55.00.02
[    25.641] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    25.649] (--) NVIDIA(0): Valid display device(s) on GeForce GT 610 at PCI:2:0:0

przechbeb.png

What I have tried? Here's the thread I created having my previous card, GeForce 7300GT: https://devtalk.nvidia.com/default/topi … th-7300gt/

What has changed according to that list when I bought new GPU?

- scrolling an image in graphics viewer causes glitches (ristretto under xfce) - now it's better, but when dragging the image I can see the mouse cursor follows my steering with visible delay
- firefox uses hardware acceleration on his own but chrome doesn't, anyway, I read somewhere it's because of developer's decision, I force-enabled it anyway
- http://get.webgl.org/ - now works perfectly
- mouseover and out over this site with css3 animations takes whole CPU core: http://linux-porady.info/ - now it's the same, it only doesn't glitch that much
- firefox scrolling down any page has poor performance - now it's better but still glitches sometimes and it takes too much CPU as well. It's a bit better with chrome but not perfect
- Google maps and sites with maps from google have now better performace but they still get stuck while dragging maps with mouse. It's much better in chrome, it only has problems with close zoom
- HTML5 player on youtube - in chrome perfect, in firefox tearing and no 1080p mode. When forced in about:config, the picture is almost still

And movies. With my previous card I had no such thing as VDPAU so I had tearing in every resolution. Now it stopped. Anyway, with fast moving pictures I can see that they are not perfectly smooth. Maybe I'm too much demanding at this but I would like to feel that my PC doesn't work at the end of it's capabilities but that there's some (a lot of) power left for future challenges.

Offline

#11 2015-02-09 13:32:39

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Is there a 2D acceleration support on Linux?

...and what about toggling hardware acceleration in LibreOffice or Firefox? Does that make a difference?

Offline

#12 2015-02-09 14:04:13

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

They are both enabled by default.
I can see that there is huge interest with this thread but not many answers. For you it's all working well?

Offline

#13 2015-02-09 14:55:38

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Is there a 2D acceleration support on Linux?

mkkot wrote:

They are both enabled by default.

You didn't answer my question at all. sad

Offline

#14 2015-02-09 21:57:19

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

Sorry, I though you want me to check if they are enabled (and they are, as I checked that). I'll disable acceleration as well and test when I get home.

// Edit

So I checked. In LibreOffice with acceleration and antialiasing disabled or enabled: can't tell the difference.

In Firefox I'm not sure, it seems like css3 animations work slightly better with acceleration, scrolling site content slightly without but google maps work much better accelerated. Youtube html5 1080p mode works better without acceleration but it's not smooth anyway.

So it's mixed up actually...

Last edited by mkkot (2015-02-10 16:09:09)

Offline

#15 2015-02-15 20:09:36

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

Any more ideas?

Offline

#16 2015-02-16 03:37:13

pypi
Wiki Maintainer
Registered: 2014-04-22
Posts: 250

Re: Is there a 2D acceleration support on Linux?

Re-read karol's original response and try again. You didn't really answer the questions karol asked. Posting the full X logs would be a good start!

That GPU should be overkill for Linux (for basic use, anyway), so I'd suspect something's wrong with your configuration. I'm by no means an expert, though.

Offline

#17 2015-02-16 11:40:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,754

Re: Is there a 2D acceleration support on Linux?

It could really just be LibreOffice (at least in combination with Nvidia), I get tearing here as well as an image or something remotely complex is present in the document. The title is simply misleading as the OP assumes no acceleration in LibreOffice == no acceleration in Linux which is bogus

Offline

#18 2015-02-16 12:28:09

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

Wow. I thought karol was asking me if card is properly detected. Okay, sorry for that. I doubt if there is anything wrong with my configuration (anyway I'm not sure why X loads nv driver as well). I also have some remainings after playing around with nouveau but they shouldn't really pose a problem (I'm not sure how about mesa libraries but AFAIK nvidia binary driver replaces some of these files when installed). I'm also confused about text-mode VGA console messages from NVRM but I guess they shouldn't cause performance penalty. Anyway, I would appreciate if you look at those:

Xorg.0.log:
http://wklej.org/id/1636978/

pacman -Qs nvidia

[mk@linux ~]$ pacman -Qs nvidia
local/lib32-libvdpau 0.9-1
    Nvidia VDPAU library
local/libcl 1.1-4
    OpenCL library and ICD loader from NVIDIA
local/libvdpau 0.9-1
    Nvidia VDPAU library
local/nouveau-fw 325.15-1
    This package provides video & pgraph firmwares for all NVIDIA chipsets that
    need them
local/nvidia 346.35-6
    NVIDIA drivers for linux
local/nvidia-libgl 346.35-2
    NVIDIA drivers libraries symlinks
local/nvidia-utils 346.35-2
    NVIDIA drivers utilities

pacman -Qs nouveau

[mk@linux ~]$ pacman -Qs nouveau
local/lib32-mesa 10.4.4-1
    an open-source implementation of the OpenGL specification (32-bit)
local/mesa 10.4.4-1
    an open-source implementation of the OpenGL specification
local/nouveau-fw 325.15-1
    This package provides video & pgraph firmwares for all NVIDIA chipsets that
    need them

pacman -Qs xorg
http://wklej.org/id/1636983/

journalctl -b
http://wklej.org/id/1636988/

journalctl -b | grep NVRM

[root@linux mk]# journalctl -b | grep NVRM
lut 16 11:36:13 linux kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  346.35  Sat Jan 10 21:27:15 PST 2015
lut 16 11:36:28 linux kernel: NVRM: Your system is not currently configured to drive a VGA console
lut 16 11:36:28 linux kernel: NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
lut 16 11:36:28 linux kernel: NVRM: requires the use of a text-mode VGA console. Use of other console
lut 16 11:36:28 linux kernel: NVRM: drivers including, but not limited to, vesafb, may result in
lut 16 11:36:28 linux kernel: NVRM: corruption and stability problems, and is not supported.

ls /etc/X11

[mk@linux ~]$ ls /etc/X11/
xinit       xorg.conf2  xorg.conf.backup  xorg.conf.new
xorg.conf~  xorg.conf3  xorg.conf.d

I assume none of this files is parsed.

[mk@linux ~]$ ls /etc/X11/xorg.conf.d/
10-evdev.conf~         10-keyboard.conf  20-nvidia.conf.7300GT
10-evdev.conf.pacsave  20-nvidia.conf2   30-monitorsaver.conf

I assume that only files with .conf suffix are parsed. The only files I left from previous configuration are 10-keyboard.conf and 30-monitorsaver.conf.

10-keyboard.conf

Section "InputClass"
	Identifier "system-keyboard"
	Option "XkbLayout" "pl"
EndSection

30-monitorsaver.conf

Section "Monitor"
	Identifier "Monitor0"
	Option "DPMS" "true"
EndSection

Section "ServerLayout"
    Identifier "ServerLayout0"
    Option "StandbyTime" "20"
    Option "SuspendTime" "30"
    Option "OffTime" "60"
EndSection

~/.nvidia-settings-rc
http://wklej.org/id/1636998/

lspci

[root@linux mk]# lspci 
00:00.0 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a1)
00:01.0 ISA bridge: NVIDIA Corporation MCP61 LPC Bridge (rev a2)
00:01.1 SMBus: NVIDIA Corporation MCP61 SMBus (rev a2)
00:01.2 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a2)
00:02.0 USB controller: NVIDIA Corporation MCP61 USB 1.1 Controller (rev a2)
00:02.1 USB controller: NVIDIA Corporation MCP61 USB 2.0 Controller (rev a2)
00:04.0 PCI bridge: NVIDIA Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: NVIDIA Corporation MCP61 High Definition Audio (rev a2)
00:06.0 IDE interface: NVIDIA Corporation MCP61 IDE (rev a2)
00:08.0 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2)
00:08.1 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2)
00:09.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter (rev 10)
01:09.0 Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)
02:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 610] (rev a1)
02:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)

modinfo nvidia

[root@linux mk]# modinfo nvidia
filename:       /lib/modules/3.18.6-1-ARCH/extramodules/nvidia.ko.gz
alias:          char-major-195-*
version:        346.35
supported:      external
license:        NVIDIA
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd00000AA3sv*sd*bc0Bsc40i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        drm,i2c-core
vermagic:       3.18.6-1-ARCH SMP preempt mod_unload modversions 
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_RemapLimit:int
parm:           NVreg_UpdateMemoryTypes:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_CheckPCIConfigSpace:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_AssignGpus:charp

dmesg
http://wklej.org/id/1637005/

gcc -v
http://wklej.org/id/1637007/

xset -q
http://wklej.org/id/1637010/

nvidia-settings -q all
http://wklej.org/id/1637024/

xrandr --verbose
http://wklej.org/id/1637028/

//edit

~/.xinitrc

[mk@linux ~]$ cat .xinitrc
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
# nvidia-settings -a InitialPixmapPlacement=2

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
#exec startkde
 exec startxfce4
# ...or the Window Manager of your choice
#exec twm

I commented out nvidia-settings -a InitialPixmapPlacement=2 as I was removing all changes made in system with previous card. I had also a file /etc/modprobe.d/50-nvidia.conf with options nvidia NVreg_EnableMSI=1. The file has been removed.

.bashrc

[mk@linux ~]$ cat .bashrc 

# Check for an interactive session
[ -z "$PS1" ] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

// edit 2

I also forgot to mention that I was testing firefox with new profile as well (I just changed name of profile directory in ~/.mozilla/firefox/)

Last edited by mkkot (2015-02-16 12:43:25)

Offline

#19 2015-02-16 12:29:52

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

V1del wrote:

It could really just be LibreOffice (at least in combination with Nvidia), I get tearing here as well as an image or something remotely complex is present in the document. The title is simply misleading as the OP assumes no acceleration in LibreOffice == no acceleration in Linux which is bogus

There are also problems with firefox: scrolling sites, google maps, css3 animation, youtube html5 player and so on.

Anyway, I think that since my camera cable is back, I'll create a movie and post here so you can see what is wrong.

Last edited by mkkot (2015-02-16 12:46:04)

Offline

#20 2015-02-16 13:29:00

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Is there a 2D acceleration support on Linux?

We forgot to do the most basic test:

What is the output of "glxinfo | grep render"?

Offline

#21 2015-02-16 13:30:52

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

Here you are:

[mk@linux ~]$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: GeForce GT 610/PCIe/SSE2
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, 
    GL_KTX_buffer_region, GL_NVX_conditional_render, GL_NVX_gpu_memory_info, 
    GL_NV_blend_square, GL_NV_compute_program5, GL_NV_conditional_render, 
    GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite, 
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, 
    GL_KTX_buffer_region, GL_NVX_conditional_render, GL_NVX_gpu_memory_info, 
    GL_NV_blend_square, GL_NV_compute_program5, GL_NV_conditional_render, 
    GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite, 
    GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB, 
    GL_NV_blend_equation_advanced, GL_NV_conditional_render, 
    GL_NV_packed_float_linear, GL_NV_path_rendering, 
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

And in a few minutes there will be a movie.

Offline

#22 2015-02-16 14:13:52

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

And here goes the movie so you can actually see what is wrong with this 2D acceleration.

I think my camera has written it in some weird way because I can't stream it from the server, so it has to be downloaded:
http://upload.koci.net.pl/uploads/movie.avi

Anyway, it should be ready on youtube in a couple of minutes as well:
https://www.youtube.com/watch?v=3_N1jcTjWEk

//edit it's online now

Last edited by mkkot (2015-02-16 14:18:58)

Offline

#23 2015-02-16 15:24:46

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: Is there a 2D acceleration support on Linux?

I get the refresh problem with the spreadsheet, though not nearly as bad as you, but 1080p video on YT (or, indeed, anywhere else) plays just fine.

I can't offer a solution, though.

Phenom II 965 BE, 8GB Ram and GTX 670 2Gb card.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#24 2015-02-16 15:36:27

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

Please try youtube in Firefox with http://youtube.com/html5 enabled and media.mediasource.enabled;true in about:config. Anyway I have no idea why youtube is blocking that mode for html5, maybe this isn't supposed to work...

Last edited by mkkot (2015-02-16 15:36:55)

Offline

#25 2015-02-16 16:42:26

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Is there a 2D acceleration support on Linux?

BTW about site scrolling. I found a site which seems best visualize the problem:
http://lowdi.com/

And here's (1 minute) movie:
https://www.youtube.com/watch?v=CFbUH86YOHc

The first browser if Chromium, the second one Firefox. As you can see, Chromium is not perfect but quite good, Firefox is just terrible.

And my personal favourite, window tearing (look at the window edges):
https://www.youtube.com/watch?v=feZRyATESCQ

Offline

Board footer

Powered by FluxBB