Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SDDM can't start Plasma
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
void1984
n00b
n00b


Joined: 22 Jul 2016
Posts: 5

PostPosted: Fri Jul 22, 2016 5:47 pm    Post subject: SDDM can't start Plasma Reply with quote

Hi

I've upgraded from KDE4 to KDE5 aka Plasma.
I can start Plasma using `startx` command just fine.
Unfortunately I can start it via sddm. It crashes with a message:
Code:
Plasma is unable to start as it could not correctly use OpenGL 2.
Please check that your graphic drivers are set up correctly.


uddm user is in the video group.
I use nvidia card and "nvidia" driver for it.

I've fund this, but it wasn't helpful:
https://forum.kde.org/viewtopic.php?f=289&t=128609

What should I check next?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Fri Jul 22, 2016 6:22 pm    Post subject: Reply with quote

emerge --info
Back to top
View user's profile Send private message
Sakarias
n00b
n00b


Joined: 12 May 2007
Posts: 60

PostPosted: Fri Jul 22, 2016 8:04 pm    Post subject: Re: SDDM can't start Plasma Reply with quote

void1984 wrote:
Hi


What should I check next?


try eselect opengl and set xorg-x11


disable USE flags egl, gles2 if enabled and recompile
_________________
---
Sakarias
Back to top
View user's profile Send private message
void1984
n00b
n00b


Joined: 22 Jul 2016
Posts: 5

PostPosted: Sat Jul 23, 2016 8:53 am    Post subject: Reply with quote

Code:

# emerge --info
Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.4.0, glibc-2.23-r2, 4.6.4-gentoo x86_64)
=================================================================
System uname: Linux-4.6.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-4670_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16358460 total,  15125976 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 22 Jul 2016 16:30:02 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.0::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.2::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage                                                                                                                             
    priority: -1000                                                                                                                                                               
                                                                                                                                                                                   
xenon                                                                                                                                                                             
    location: /usr/local/portage                                                                                                                                                   
    masters: gentoo                                                                                                                                                               
    priority: 0                                                                                                                                                                   
                                                                                                                                                                                   
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                                                                                     
ACCEPT_LICENSE="*"                                                                                                                                                                 
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                                       
CFLAGS="-march=native -O2 -fno-stack-protector -pipe -fomit-frame-pointer"                                                                                                         
CHOST="x86_64-pc-linux-gnu"                                                                                                                                                       
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"                                                                   
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                                                 
CXXFLAGS="-march=native -O2 -fno-stack-protector -pipe"                                                                                                                           
DISTDIR="/usr/portage/distfiles"                                                                                                                                                   
EMERGE_DEFAULT_OPTS="--autounmask=n"                                                                                                                                               
FCFLAGS="-O2 -pipe"                                                                                                                                                               
FEATURES="assume-digests binpkg-logs 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"                                                                                       
FFLAGS="-O2 -pipe"                                                                                                                                                                 
GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"                                                                                       
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="/tmp"
USE="X a52 aac alsa amd64 berkdb bzip2 cdda cddb cdparanoia cli consolekit cracklib crypt cscope curl cxx dri dvd enca ffmpeg flac fortran gdbm gif gnutls gpm iconv imagemagick jpeg jpeg2k mad mmx mmxext modules mp3 mpeg musepack ncurses nptl ogg opengl openmp pam pcre png qt qt5 readline seccomp session sse sse2 ssh ssl svg tcpd theora tiff truetype unicode vorbis win32codecs x264 xvid zlib" ABI_X86="64" ALSA_CARDS="virtuoso" 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="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby20 ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
void1984
n00b
n00b


Joined: 22 Jul 2016
Posts: 5

PostPosted: Sat Jul 23, 2016 9:24 am    Post subject: Reply with quote

The only place that I have egl set is mesa package:
media-libs/mesa egl wayland
Back to top
View user's profile Send private message
void1984
n00b
n00b


Joined: 22 Jul 2016
Posts: 5

PostPosted: Sat Jul 23, 2016 10:25 am    Post subject: Re: SDDM can't start Plasma Reply with quote

Sakarias wrote:

try eselect opengl and set xorg-x11

That solution worked, but now I have no 3D acceleration.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sat Jul 23, 2016 10:48 am    Post subject: Reply with quote

If you're not fixed on using SDDM specifically, you could see if your installation will work with LightDM instead. I could not get SDDM to work with nvidia-drivers in Gentoo Stable, but I managed to get LightDM working with nvidia-drivers by doing the following:

1. Merge x11-misc/lightdm.
2. Re-merge kde-plasma/plasma-meta with USE="-sddm".
3. Remove the x11-misc/sddm package and kde-plasma/sddm-kcm package with "emerge --ask --depclean".
4. Edit the file /etc/lightdm/lightdm.conf to add the line "greeter-session=lightdm-kde-greeter" as specified in Gentoo Wiki article LightDM.
5. Edit the file /etc/lightdm/lightdm.conf to add the line "display-setup-script=/etc/X11/Sessions/plasma".
6. Create the above-mentioned Bash script /etc/X11/Sessions/plasma containing the following:

Code:
#!/bin/bash
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
void1984
n00b
n00b


Joined: 22 Jul 2016
Posts: 5

PostPosted: Sat Jul 23, 2016 7:35 pm    Post subject: Reply with quote

Thank you so much!
That was the solution.
It's worth nothing, for other potential readers, that lightdm pulls and uses gtk greeter by default.

I don't care about sddm, I've never used it before. I used kdm, but with Plasma it's gone.
Everything seems to works perfectly.

Somehow the Plasma session is listed twice on the list of possible environments.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sun Jul 24, 2016 12:38 pm    Post subject: Reply with quote

Glad to know you now have a working DM.

void1984 wrote:
It's worth noting, for other potential readers, that lightdm pulls and uses gtk greeter by default.

Indeed. These are the use flag settings on my laptop using LightDM with Plasma 5 (notice I merged it with USE="-gtk"):

Code:
fitzcarraldo@clevow230ss ~ $ eix -I lightdm
[I] x11-misc/lightdm
     Available versions:  1.10.5^t 1.16.7^t ~1.17.6^t ~1.18.1^t ~1.19.0^t ~1.19.3^t {audit +gnome +gtk +introspection kde qt4 qt5}
     Installed versions:  1.16.7^t(01:12:59 12/07/16)(introspection kde qt4 qt5 -audit -gnome -gtk)
     Homepage:            https://www.freedesktop.org/wiki/Software/LightDM
     Description:         A lightweight display manager

[I] x11-misc/lightdm-kde
     Available versions:  (4) 0.3.2.1-r1
       {aqua debug L10N="bs cs da de el es et fi fr ga gl hu it ja km lt mr nds nl pl pt pt-BR ro ru sk sl sv tr uk"}
     Installed versions:  0.3.2.1-r1(4)(01:13:13 12/07/16)(-aqua -debug L10N="pt-BR -bs -cs -da -de -el -es -et -fi -fr -ga -gl -hu -it -ja -km -lt -mr -nds -nl -pl -pt -ro -ru -sk -sl -sv -tr -uk")
     Homepage:            https://projects.kde.org/projects/playground/base/lightdm
     Description:         LightDM KDE greeter

Found 2 matches

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
christian_burger
n00b
n00b


Joined: 14 May 2003
Posts: 13

PostPosted: Sat Jan 28, 2017 6:58 pm    Post subject: Plasma is unable to start as it could not correctly use Open Reply with quote

1. THIS is the issue: the fact that Kwin won't start and throws this message: "Plasma is unable to start as it could not correctly use OpenGL 2."

2. That has NOTHING to do with sddm or whatever other "script" you're using to start Plasma5.

3. It has to do with the fact that Plasma 5 won't start if you're using the NVidia proprietary drivers / libraries.
There is a workaround for this problem which is pretty crippling to your system:
eselect opengl set xorg-x11
eselect opencl set mesa

4. The issue was not resolved and is still happening as of 2017-01-28, so this should obviously be submitted to Plasma 5 / KDE developers.
_________________
Christian Burger
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Thu Feb 02, 2017 1:35 pm    Post subject: Re: Plasma is unable to start as it could not correctly use Reply with quote

christian_burger wrote:
1. THIS is the issue: the fact that Kwin won't start and throws this message: "Plasma is unable to start as it could not correctly use OpenGL 2."

2. That has NOTHING to do with sddm or whatever other "script" you're using to start Plasma5.

3. It has to do with the fact that Plasma 5 won't start if you're using the NVidia proprietary drivers / libraries.
There is a workaround for this problem which is pretty crippling to your system:
eselect opengl set xorg-x11
eselect opencl set mesa

4. The issue was not resolved and is still happening as of 2017-01-28, so this should obviously be submitted to Plasma 5 / KDE developers.


Thank you for that post Christian... I have been wondering why this wasn't working. I've been banging my head against this wall for two months, figuring I had some old config or bit of debris on my system. Let's hope for a fix soon...

I'm not seeing anything at bugs.kde.org on this... but I'm willing to open one. What other references tot his problem have you found?
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
christian_burger
n00b
n00b


Joined: 14 May 2003
Posts: 13

PostPosted: Thu Feb 02, 2017 3:08 pm    Post subject: Re: Plasma is unable to start as it could not correctly use Reply with quote

grooveman wrote:
christian_burger wrote:
1. THIS is the issue: the fact that Kwin won't start and throws this message: "Plasma is unable to start as it could not correctly use OpenGL 2."

2. That has NOTHING to do with sddm or whatever other "script" you're using to start Plasma5.

3. It has to do with the fact that Plasma 5 won't start if you're using the NVidia proprietary drivers / libraries.
There is a workaround for this problem which is pretty crippling to your system:
eselect opengl set xorg-x11
eselect opencl set mesa

4. The issue was not resolved and is still happening as of 2017-01-28, so this should obviously be submitted to Plasma 5 / KDE developers.


Thank you for that post Christian... I have been wondering why this wasn't working. I've been banging my head against this wall for two months, figuring I had some old config or bit of debris on my system. Let's hope for a fix soon...

I'm not seeing anything at bugs.kde.org on this... but I'm willing to open one. What other references tot his problem have you found?


I'm glad this helped, I was very frustrated with that also ever since I migrated to plasma5.
There's a bug open in kde for this: https://bugs.kde.org/show_bug.cgi?id=375730

LxQt seems to be the answer to skip plasma for now.
Cheeers,
Christian
_________________
Christian Burger
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Thu Feb 02, 2017 3:53 pm    Post subject: Reply with quote

It is a bit puzzling what's going on with your Nvidia settings, since we clearly have users in IRC that are using Plasma-5 (and of course starting with sddm) just fine, using the binary blob.

It is also a bit sad that no one of the people who were able to solve their issue with nvidia-drivers have made it to the Gentoo KDE Wiki troubleshooting section yet.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Thu Feb 02, 2017 11:14 pm    Post subject: Reply with quote

I have been using nvidia-drivers with Plasma 5 since July last year, including working rendering and compositing (System Settings has 'Rendering backend: OpenGL 2.0'). However, I was never able to get SDDM working (despite faithfully following the instructions in the Gentoo Wiki) so I switched to using LightDM instead of SDDM, which works fine.

Code:
clevow230ss ~ # eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11
clevow230ss ~ # eselect opencl list
Available OpenCL implementations:
  [1]   nvidia *
clevow230ss ~ # grep -i opengl /var/log/Xorg.0.log
[   461.962] (**) ModulePath set to "/usr/lib32/xorg/modules,/usr/lib64/opengl/nvidia,/usr/lib64/xorg/modules"
[   461.963] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so
[   462.290] (II) glamor: OpenGL accelerated X.org driver based.
clevow230ss ~ # eix -I nvidia-drivers
[I] x11-drivers/nvidia-drivers
     Available versions:  [M]96.43.23-r1(0/96)^msd [M]173.14.39-r1(0/173)^msd [M]~173.14.39-r2(0/173)^msd 304.134(0/304)^md ~304.134-r1(0/304)^md 340.101(0/340)^md ~340.101-r1(0/340)^md 346.96-r6(0/346)^md ~346.96-r7(0/346)^md 352.79-r4(0/352)^md ~352.79-r5(0/352)^md 355.11-r4(0/355)^md ~355.11-r5(0/355)^md 358.16-r5(0/358)^md ~358.16-r6(0/358)^md 361.42(0/361)^md ~361.42-r1(0/361)^md ~361.45.18(0/361.45)^md ~361.45.18-r1(0/361.45)^md 364.19-r1(0/364)^md ~364.19-r2(0/364)^md 367.57-r1(0/367)^md ~367.57-r2(0/367)^md 370.28-r1(0/370)^md ~370.28-r2(0/370)^md 375.26(0/375)^md ~375.26-r3(0/375)^md ~378.09(0/378)^md {+X acpi compat custom-cflags +driver gtk gtk2 gtk3 +kms multilib pax_kernel static-libs (+)tools uvm wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="FreeBSD linux"}
     Installed versions:  375.26^md(01:31:21 29/12/16)(X acpi driver kms multilib tools uvm -compat -gtk3 -pax_kernel -static-libs -wayland KERNEL="linux -FreeBSD")
     Homepage:            http://www.nvidia.com/ http://www.nvidia.com/Download/Find.aspx
     Description:         NVIDIA Accelerated Graphics Driver

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Atmmac
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2013
Posts: 130
Location: Watertown, MA

PostPosted: Fri Feb 03, 2017 7:11 pm    Post subject: Reply with quote

Interesting I have SDDM working with plasma 5. The arch wiki actually has some information that you need to follow specifically for optimus cards.

Code:
For the SDDM display manager:
/usr/share/sddm/scripts/Xsetup
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto


You need to make sure you do this or it will give you a black screen everytime. After some SDDM updates as well this file gets replaced and you need to redo it by breaking out of X and fixing the file.

Give it a try if your bored. If not keep using LightDM its not really a big deal.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Fri Feb 03, 2017 10:32 pm    Post subject: Reply with quote

Atmmac wrote:
Interesting I have SDDM working with plasma 5. The arch wiki actually has some information that you need to follow specifically for optimus cards.

Code:
For the SDDM display manager:
/usr/share/sddm/scripts/Xsetup
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto


You need to make sure you do this or it will give you a black screen everytime. After some SDDM updates as well this file gets replaced and you need to redo it by breaking out of X and fixing the file.

Give it a try if your bored. If not keep using LightDM its not really a big deal.

Tried it already (it was in the original Gentoo Wiki article on upgrading to Plasma 5). Doesn't work in my case, I'm afraid. Actually I have to do something similar to that in order to get LightDM to work:

Code:
# cat /etc/X11/Sessions/plasma
#!/bin/bash
GPU=`eselect opengl list | grep \* | awk '{ print $2 }'`
if [ "$GPU" = "nvidia" ]; then
    xrandr --setprovideroutputsource modesetting NVIDIA-0
    xrandr --auto
fi

(The opengl test is because I can switch between Intel IGP and NVIDIA GPU: Switching between Intel and NVIDIA graphics processors on a laptop with NVIDIA Optimus hardware running Gentoo Linux).

It's not a problem: I find LightDM better than SDDM (SDDM runs on another of my laptops, which has an AMD GPU).
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
christian_burger
n00b
n00b


Joined: 14 May 2003
Posts: 13

PostPosted: Sat Feb 04, 2017 1:21 am    Post subject: NOT and SDDM issue Reply with quote

Fitzcarraldo wrote:
Atmmac wrote:
Interesting I have SDDM working with plasma 5. The arch wiki actually has some information that you need to follow specifically for optimus cards.

Code:
For the SDDM display manager:
/usr/share/sddm/scripts/Xsetup
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto


You need to make sure you do this or it will give you a black screen everytime. After some SDDM updates as well this file gets replaced and you need to redo it by breaking out of X and fixing the file.

Give it a try if your bored. If not keep using LightDM its not really a big deal.

Tried it already (it was in the original Gentoo Wiki article on upgrading to Plasma 5). Doesn't work in my case, I'm afraid. Actually I have to do something similar to that in order to get LightDM to work:

Code:
# cat /etc/X11/Sessions/plasma
#!/bin/bash
GPU=`eselect opengl list | grep \* | awk '{ print $2 }'`
if [ "$GPU" = "nvidia" ]; then
    xrandr --setprovideroutputsource modesetting NVIDIA-0
    xrandr --auto
fi

(The opengl test is because I can switch between Intel IGP and NVIDIA GPU: Switching between Intel and NVIDIA graphics processors on a laptop with NVIDIA Optimus hardware running Gentoo Linux).

It's not a problem: I find LightDM better than SDDM (SDDM runs on another of my laptops, which has an AMD GPU).



Like I said before, this is completely unrelated to whether you start your DE with SDDM or LightDM or whatever else.
So what you are saying is misleading to others that might think this is a solution.

The message: "Plasma is unable to start as it could not correctly use OpenGL 2." comes from within plasma5 code, there's a bug opened for it.
I rebuilt my whole system from ground up with a different set of flags and now everything is working with opengl set to nvidia, no problems.

This issue is deeply rooted in the confines of portage and package dependencies.
In my case here, I believe the flag that cleared the problem was "egl", but I cannot be sure at this time.
_________________
Christian Burger
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Sat Feb 04, 2017 12:04 pm    Post subject: Re: NOT and SDDM issue Reply with quote

christian_burger wrote:
This issue is deeply rooted in the confines of portage and package dependencies.
In my case here, I believe the flag that cleared the problem was "egl", but I cannot be sure at this time.

This topic will not have a final non-misleading conclusion until someone methodologically finds out on their Nvidia system. So far, gles2 is on the top of my list as it is the only flag in Qt that actually _disables_ something (notice description: 'Use GLES 2.0 or later instead of full OpenGL').
Back to top
View user's profile Send private message
the.root
Apprentice
Apprentice


Joined: 29 Apr 2007
Posts: 210
Location: -84.706059324915, -62.4843750666430

PostPosted: Tue Feb 07, 2017 4:42 am    Post subject: Reply with quote

I had this same issue with Plasma on a new build, first time I have seen it. After fooling around for a while I finally found the cause (embarrassingly) : I forgot to add my actual login user account to the "video" group.
_________________
Ps = (1.5 x 6 x .75) / {(4/3) (pi) [(31.039 x 10^15) (46.5 x 10^9)]^3}
Seems like a waste..
Back to top
View user's profile Send private message
milesrout
n00b
n00b


Joined: 10 Feb 2017
Posts: 1
Location: Middle Earth

PostPosted: Fri Feb 10, 2017 9:47 pm    Post subject: Reply with quote

My user account is in the video group and I get the same issue, so that can't be the only cause.
Back to top
View user's profile Send private message
Barthoz
n00b
n00b


Joined: 14 Feb 2017
Posts: 1

PostPosted: Tue Feb 14, 2017 12:54 am    Post subject: Reply with quote

The egl flag fixed this problem for me.
Back to top
View user's profile Send private message
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 439
Location: Maryland, US

PostPosted: Thu Feb 16, 2017 3:34 pm    Post subject: Reply with quote

FWIW, I have an nvidia (nvidia-drivers) system where as root I could start the KDE/Plasma DE, but as my user I could not. I received the "Plasma is unable to start as it could not correctly use OpenGL 2." popup message when I tried. Thinking it was a permission issue, I added my user account to the video group and tried again, but received the same message. So using Barthoz's suggestion I added egl to my global use flags, and a world update re-emerged the following;

dev-qt/qtgui-4.8.7
dev-qt/qtopengl-4.8.7
kde-frameworks/plasma-5.31.0
kde-plasma/kinfocenter-5.9.2

After logging back out and back in, my user account can now bring up the KDE/Plasma desktop without issue.

[Update]

After reading this thread, and then this bug report I removed both the egl and gles2 USE flags, and then re-emerged all qt, kde, and plasma components, and my user account can startup the KDE/Plasma DE without issue.

Thanks..


Last edited by jasn on Thu Feb 16, 2017 9:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
the.root
Apprentice
Apprentice


Joined: 29 Apr 2007
Posts: 210
Location: -84.706059324915, -62.4843750666430

PostPosted: Thu Feb 16, 2017 8:26 pm    Post subject: Reply with quote

jasn - is sddm in the video group as well? When I try to start sddm without it in the video group all I get is a black screen.

FWIW, I don't have the 'egl' or 'gles2' useflag set on either my laptop or desktop which are plasma/sddm/nvidia builds, so it's definitely not a requirement for my builds. Before I checked to see if my user and sddm were both in the video group I tried adding those individually and uDN world, but it didn't resolve.
_________________
Ps = (1.5 x 6 x .75) / {(4/3) (pi) [(31.039 x 10^15) (46.5 x 10^9)]^3}
Seems like a waste..
Back to top
View user's profile Send private message
jasn
Guru
Guru


Joined: 05 May 2005
Posts: 439
Location: Maryland, US

PostPosted: Thu Feb 16, 2017 8:46 pm    Post subject: Reply with quote

the.root wrote:
jasn - is sddm in the video group as well?

Yes, but I know now that you're right in that the issue must be something other than adding egl. In fact further reading of this thread, and then this bug report, had me recompile all of my qt, kde and plasma components without egl and gles2. (I had to leave the egl USE flag enabled for mesa, qtgui and qtwayland)

Once completed, I rebooted, logged in as my user, and I was able to start the KDE/Plasma desktop. I still get the blank screen when running SDDM, and I'm trying to narrow down what the issue may be there but at least KDE/Plasma is working.

I'm prepared to draw witchcraft symbols on the ground and put my laptop in the center while I emerge things, to see if that fixes things..

Thanks..
Back to top
View user's profile Send private message
clytle374
Apprentice
Apprentice


Joined: 01 Aug 2006
Posts: 221

PostPosted: Fri Feb 24, 2017 5:26 pm    Post subject: Reply with quote

This issue has been plaguing me forever now. I had another pair of issues come up in march that made a real mess of things. First off I had some lib issue that required my pulling the 2nd nvidia card out, it's a Lenovo y510p. So it's a optimus laptop with dual nvidia cards on top of that.

I was so deep in a work project I couldn't risk breaking the machine. I had found this last fall and ended up deciding that the nvidia card failed. I had problems getting the lighdm to work, just got lighdm working and that doesn't help. elg use doesn't help, trying the gles2 now.

At this point I've tried so many things that I have no idea where to start. I seem to get keep rotating through black screens and can't open opengl error.
_________________
NooB since RedHat 6.1
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
Goto page 1, 2  Next
Page 1 of 2

 
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