Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] KDE Plasma - No acceleration.
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
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Wed Jan 18, 2017 8:11 pm    Post subject: [Solved] KDE Plasma - No acceleration. Reply with quote

Hi,

Not sure exactly what happened here. I had been fighting with KDE for a while, and I got tired of it (black screen problems). So I bailed for a while and tried i3 for a few months. I got tired of that, and wanted to go back and give it another try. I found that my black screen problems were not the typical "video group" or permissions issues others were having. It had to do with the fact that my KDE was built with gles2. As soon as I dumped gles2 from my compile flags, everything started to work.

Except, of course, I have no acceleration in KDE. The funny thing is that acceleration works fine everywhere else (xscreen saver, glxgears, etc. etc.). I still retain the opengl flag in my build, but it just won't work. My other sytem, acceleration works fine in KDE... and I cannot determine what the difference is. I'm now using the same build flags, and one works, and the other doesnt.

A little about my problematic system:

Code:
# emerge --info
Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.4, glibc-2.23-r3, 4.8.7-gentoo x86_64)
=================================================================
System uname: Linux-4.8.7-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_W3670_@_3.20GHz-with-gentoo-2.3
KiB Mem:    24685608 total,  22276240 free
KiB Swap:   22906876 total,  22906876 free
Timestamp of repository gentoo: Wed, 18 Jan 2017 12:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j 7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth bluray branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fmpeg fortran fuse gdbm gif glamor gpm gtk iconv java jpeg kde kipi kvm lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulse pulseaudio qml qt3support qt4 qt5 quicktime readline samba sdl seccomp semantic-desktop session sftp spell sse sse2 ssl startup-notification svg tcpd tiff truetype type1 udev udf udisks unicode upower usb vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xine xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Code:

# lspci |grep -i vga
02:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750] (rev a2)


Code:
eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11
Code:
emerge -pv nvidia-drivers plasma-desktop xorg-x11

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] kde-plasma/plasma-desktop-5.8.3:5::gentoo  USE="fontconfig handbook pulseaudio qt4 semantic-desktop -debug -gtk2 -gtk3 -ibus -legacy-systray (-packagekit) -scim {-test}" INPUT_DEVICES="evdev -synaptics" 0 KiB
[ebuild   R    ] x11-base/xorg-x11-7.4-r2::gentoo  0 KiB
[ebuild   R    ] x11-drivers/nvidia-drivers-375.26:0/375::gentoo  USE="X acpi driver gtk3 kms static-libs tools -compat -multilib -pax_kernel -uvm -wayland" 0 KiB


And, of course, compositing is set to opengl 2.0 (or 3.1, doesn't matter... neither works). Again, my other system does not use gles2 and the use flags are now the same... compositing works on the other system...

Thank you for any insights.

G
_________________
To look without without looking within is like looking without without looking at all.


Last edited by grooveman on Mon Mar 06, 2017 6:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Thu Jan 19, 2017 8:05 am    Post subject: Reply with quote

Do you enable MTRR in your kernel?
And do you enable as module (M) AGP Support and DRM-DRI support?
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Thu Jan 19, 2017 5:57 pm    Post subject: Reply with quote

Hi Maxx. Yes, I have MTRR enabled, and I have DRI compiled in monolithically.

But...

I'm not having difficulty with acceleration across the board, only with KDE. So I don't think this is a kernel issue, but thanks.

Any other thoughts?
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Wed Jan 25, 2017 7:40 pm    Post subject: Reply with quote

Bump?
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Thu Feb 02, 2017 1:44 pm    Post subject: Reply with quote

I just saw this today:

https://forums.gentoo.org/viewtopic-p-8026100.html#8026100

It is the same issue: plasma doesn't work with nvidia drivers, aparently...
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Thu Feb 23, 2017 2:33 pm    Post subject: Reply with quote

Now I'm not so sure. I upgraded two other systems, that also have nvidia graphics cards, to current this past week, and KDE plasma is working just fine... there seems to be something about this system.

The use flags are identical between systems. The only difference I see is that the one without working acceleration (again, in KDE ONLY, it works for everything else) is 64bit only (-multilib). I don't see how that would be relevant though...

Something else must be going on here...
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Fri Feb 24, 2017 3:35 pm    Post subject: Reply with quote

I have been beating my head against this wall for hours now... days... it makes no sense.

I've been doing back to back comparisons with my home system (which works) and my work system (which doesn't).

I made another user. Every time I log in with that account, it won't even let kde start. I get a pop-up:
Code:

Plasma is unable to start as it could not correctly use OpenGL 2.  Please check your graphic divers are set up correctly.


Pretty sure that my graphics drivers are fine -- like I said, everything else can use acceleration just not KDE/Plasmat/QT and I'm not getting any errors.

I put 'exec startkde' in this 2nd account's .xinitrc, and did a startx. Burried in all the output I found the line:

Code:
kwin_core: Failed to initialize compositing, compositing disabled.


I thought: "Cool, something different to google, since no one else seems to be having the other error output I'm getting"... but that didn't help either. Couldn't find anything relevant about it.

Once upon a time, my work system was compiled with kde using gles2... but that was a long time ago (at least 6 mo. - 1 year). I have since recompiled the world a couple times (emerge -ev @world) and updated the world dozens of times. I have pulled gles2 out of everything a while back, and have been combing my system for any packages that still might reference it. I don't see any. Both my working and non-working systems have mesa compiled with egl. Both systems have some kde packages compiled with wayland (same ones), even though I'm not using it. And neither system has gles2 used in any packages. Both systems use the same nvidia-drivers package, and all the same kde packages.

The problem has NOTHING to do with sddm, as it still exists when KDE is launched via startx.

I appreciate any insight.

Thanks.

G
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Fri Feb 24, 2017 6:59 pm    Post subject: Reply with quote

Your other applications may have acceleration, but they may not require OpenGL2. What generation is your GPU?

Also: `eselect qtgraphicssystem list`

PS: Even if you don't start a wayland session, Plasma is using libwayland behind the scenes even on X for some security reasons. It is completely unrelated to your issues, anyway.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Fri Feb 24, 2017 8:04 pm    Post subject: Reply with quote

Hi Asturm, Thanks for the reply.

Asturm wrote:
Your other applications may have acceleration, but they may not require OpenGL2. What generation is your GPU?


Yes, I suppose that is a valid point... but not sure how to test...

I am using an NVIDIA GTX 750

eselect qtgraphicssystem list
Code:
  [1]   native
  [2]   opengl (experimental)
  [3]   raster (default) *


Which is the same on both systems (working system uses a GTX 970, incidentally)

Asturm wrote:
Even if you don't start a wayland session, Plasma is using libwayland behind the scenes even on X for some security reasons. It is completely unrelated to your issues, anyway.


Good to know, thanks. :)
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Tue Feb 28, 2017 3:25 pm    Post subject: Reply with quote

I have tried everything with this... I've recompiled by system using the empty tree option, tried adding and removing every compile flag I could find... I have rebuild plasma from the ground up... I have picked though my kernel config and tossed out anything that wasn't explicitly needed... Reviewed the wiki for plasma and Nvidia...

Acceleration works on everything except plasma. If I log in with my user, KDE works, but no acceleration. If I log in with a new user, it won't let me in at all (opengl 2.0 error above). I cannot find anything different on this system than my home systems under which acceleration works... I've wasted countless hours troubleshooting and compiling on this... In fact, I don't think I've ever sunk this much time into any gentoo-related problem. I cannot see what I'm doing wrong here....

No ideas?
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
patrix_neo
Guru
Guru


Joined: 08 Jan 2004
Posts: 515
Location: The Maldives

PostPosted: Wed Mar 01, 2017 9:52 pm    Post subject: Reply with quote

Have you looked what composition setting you have per default? There is the option to use XRender, and OpenGL 2 or 3.1 setting on mine.

System setting -> Hardware:Monitor -> Composition. My only tip for you, I am afraid.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Wed Mar 01, 2017 10:14 pm    Post subject: Reply with quote

patrix_neo wrote:
Have you looked what composition setting you have per default? There is the option to use XRender, and OpenGL 2 or 3.1 setting on mine.

System setting -> Hardware:Monitor -> Composition. My only tip for you, I am afraid.



Yes.
Quote:
And, of course, compositing is set to opengl 2.0 (or 3.1, doesn't matter... neither works)


Apparently 3.1 still uses 2.0 anyway, so it is 2.0 or nothing for plasma (unless you consider XRender an option... which I don't ;) )
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
patrix_neo
Guru
Guru


Joined: 08 Jan 2004
Posts: 515
Location: The Maldives

PostPosted: Thu Mar 02, 2017 8:03 pm    Post subject: Reply with quote

The new user failed completely, you said..
How about the user rights to use the video, opengl correctly?

And, just a crazy thought.. Do you have an onboard video card or a noveau that startx tries to use instead of nvidia.ko/libGLX.so?
I lean to that the system has a hardware related miss match. What differs here from your working PC?

Some thoughts that came up. :)
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Thu Mar 02, 2017 9:21 pm    Post subject: Reply with quote

Oh my God...

I completely forgot to put my test user in the video group!

I had gotten so frustrated with this... I forgot that one simple thing. I still don't know why it won't work for my user... but at least I can rebuild his home directory from scratch, and cull out whatever old setting is messing with it.

Now I have something to go on! I'll post back once its working...

Thank you... I guess I owe you a coke!

G
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1166

PostPosted: Mon Mar 06, 2017 5:59 pm    Post subject: Reply with quote

Ok.

I think I had a few issues going on there... some I must have cleaned up during my exploits... but I introduced complexity by not adding my test user to the video group.... The behavior was so similar, I forgot all about that.

It looks like I had some debris, or corruption somewhere in my kde configuration for my user. I just wiped anything and everything KDE/Plasma related in .local, .config, .cache and .kde4.

That seemed to do the trick.

In short: I'm muchly chagrinned... and, of course, many thanks to you, Patrix.

Marking as solved.

G
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
patrix_neo
Guru
Guru


Joined: 08 Jan 2004
Posts: 515
Location: The Maldives

PostPosted: Tue Mar 07, 2017 9:18 pm    Post subject: Reply with quote

My work here is done..
Glad you got "it" off the ground, so to speak. :)
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