Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Black screen with nvidia-drivers on Quadro M2000M
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
MarcusXP
Apprentice
Apprentice


Joined: 18 Apr 2007
Posts: 237
Location: Toronto, ON, Canada

PostPosted: Fri Jun 03, 2016 1:01 am    Post subject: [SOLVED] Black screen with nvidia-drivers on Quadro M2000M Reply with quote

Trying to get Plasma 5 working on my new Thinkpad P50 laptop which has Nvidia Quadro M2000M graphics card.
I set in bios discrete graphics only, so it doesn't run on optimus.
I've been trying to get this working for the last two days.. I had various issue which I fixed in the meanwhile, but got stuck on this one
With DISPLAYMANAGER="sddm" in conf.d/xdm the screen goes black when trying to load the graphical interface. I can't go back into console, I have to power off the machine.
If I set DISPLAYMANAGER="xdm" in conf.d/xdm I can get to the login screen, mouse works, but not the keyboard.

any help would be greatly appreciated.

here's the output of lspci -k

Code:
P50 / # lspci -k
00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM Registers (rev 07)
   Subsystem: Lenovo Sky Lake Host Bridge/DRAM Registers
lspci: Unable to load libkmod resources: error -12
00:01.0 PCI bridge: Intel Corporation Sky Lake PCIe Controller (x16) (rev 07)
   Kernel driver in use: pcieport
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
   Subsystem: Lenovo Sunrise Point-H USB 3.0 xHCI Controller
   Kernel driver in use: xhci_hcd
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
   Subsystem: Lenovo Sunrise Point-H Thermal subsystem
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
   Subsystem: Lenovo Sunrise Point-H CSME HECI
   Kernel driver in use: mei_me
00:17.0 SATA controller: Intel Corporation Device a102 (rev 31)
   Subsystem: Lenovo Device 222e
   Kernel driver in use: ahci
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #1 (rev f1)
   Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #3 (rev f1)
   Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #5 (rev f1)
   Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #13 (rev f1)
   Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
   Subsystem: Lenovo Sunrise Point-H LPC Controller
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
   Subsystem: Lenovo Sunrise Point-H PMC
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
   Subsystem: Lenovo Sunrise Point-H HD Audio
   Kernel driver in use: snd_hda_intel
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
   Subsystem: Lenovo Sunrise Point-H SMBus
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-LM (rev 31)
   Subsystem: Lenovo Ethernet Connection (2) I219-LM
   Kernel driver in use: e1000e
01:00.0 VGA compatible controller: NVIDIA Corporation GM107GLM [Quadro M2000M] (rev a2)
   Subsystem: Lenovo GM107GLM [Quadro M2000M]
   Kernel driver in use: nvidia
01:00.1 Audio device: NVIDIA Corporation Device 0fbc (rev a1)
   Kernel driver in use: snd_hda_intel
04:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)
   Subsystem: Intel Corporation Wireless 8260
   Kernel driver in use: iwlwifi
3e:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 525a (rev 01)
   Subsystem: Lenovo Device 222e


here's the output of emerge --info

Code:
P50 / # emerge --info
Portage 2.3.0_rc1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r4, 4.4.0-22-generic x86_64)
=================================================================
System uname: Linux-4.4.0-22-generic-x86_64-Intel-R-_Xeon-R-_CPU_E3-1505M_v5_@_2.80GHz-with-gentoo-2.2
KiB Mem:    65421120 total,  63540000 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 02 Jun 2016 12:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

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

seden
    location: /var/lib/layman/seden
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /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/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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 apng berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran freerdp gd gdbm gif glamor gpm gtk iconv introspection jpeg kde kipi lcms ldap libnotify mad minizip mmx mmxext mng modemmanager modules mp3 mp4 mpeg mysql ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session smp spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vnc vorbis vte widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xmp xscreensaver xv xvid zip 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="mmx mmxext sse sse2" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Last edited by MarcusXP on Wed Jun 08, 2016 2:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 193
Location: Bavaria

PostPosted: Fri Jun 03, 2016 8:42 am    Post subject: Reply with quote

I had a similar porblem that was caused by incompatibility of the OpenGL from nvidia with plasma/sddm.
You could try
eselect opengl set xorg-x11
Back to top
View user's profile Send private message
MarcusXP
Apprentice
Apprentice


Joined: 18 Apr 2007
Posts: 237
Location: Toronto, ON, Canada

PostPosted: Fri Jun 03, 2016 12:33 pm    Post subject: Reply with quote

I installed Kubuntu 16.04 last night, it is using nvidia-drivers and sddm (as far as I know).
How do they make it work?
Back to top
View user's profile Send private message
muddle
n00b
n00b


Joined: 01 May 2007
Posts: 20

PostPosted: Sun Jun 05, 2016 1:50 am    Post subject: Reply with quote

I think, Kubuntu uses the nouveau driver by default. You could also try this one.

If you want to try the nvidia driver:
Try to boot into the console and start xdm manually. Then post the log messages you get.

To do this, you could, e.g.:
Code:

rc-update delete xdm

reboot

startx
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3577
Location: Germany

PostPosted: Sun Jun 05, 2016 8:15 am    Post subject: Reply with quote

MarcusXP wrote:
With DISPLAYMANAGER="sddm" in conf.d/xdm the screen goes black when trying to load the graphical interface.

Try it with the "sddm" user in the "video" group.
See https://wiki.gentoo.org/wiki/KDE/Plasma_5_upgrade#SDDM_display_issues

After
Code:
gpasswd --add sddm video
it should work :)
Back to top
View user's profile Send private message
MarcusXP
Apprentice
Apprentice


Joined: 18 Apr 2007
Posts: 237
Location: Toronto, ON, Canada

PostPosted: Sun Jun 05, 2016 8:30 am    Post subject: Reply with quote

Josef.95 wrote:
MarcusXP wrote:
With DISPLAYMANAGER="sddm" in conf.d/xdm the screen goes black when trying to load the graphical interface.

Try it with the "sddm" user in the "video" group.
See https://wiki.gentoo.org/wiki/KDE/Plasma_5_upgrade#SDDM_display_issues

After
Code:
gpasswd --add sddm video
it should work :)


Wow, I can't believe it works!
Thanks a lot, buddy, I owe you a beer :)
Back to top
View user's profile Send private message
MarcusXP
Apprentice
Apprentice


Joined: 18 Apr 2007
Posts: 237
Location: Toronto, ON, Canada

PostPosted: Sun Jun 05, 2016 8:34 am    Post subject: Reply with quote

Now an unrelated question:

Do I need to emerge kde-meta for plasma to work properly?
It doesn't seem there is a requirement for it, but a lot of things seem to be missing, an obvious one is 'konsole'
Back to top
View user's profile Send private message
MarcusXP
Apprentice
Apprentice


Joined: 18 Apr 2007
Posts: 237
Location: Toronto, ON, Canada

PostPosted: Sun Jun 05, 2016 8:37 am    Post subject: Reply with quote

It seems it was a bit too early to celebrate.. lol
Opengl doesn't seem to be working properly, somehow.
I can't enable desktop effects and in System Settings > Display and Monitor > Compositor > OpenGL interface, I can't select anything there, there are no options to choose from...
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3577
Location: Germany

PostPosted: Sun Jun 05, 2016 8:51 am    Post subject: Reply with quote

Hm, try
Code:
eselelect opengl set nvidia
and use a relogin - it should work :)
Back to top
View user's profile Send private message
MarcusXP
Apprentice
Apprentice


Joined: 18 Apr 2007
Posts: 237
Location: Toronto, ON, Canada

PostPosted: Sun Jun 05, 2016 8:53 am    Post subject: Reply with quote

Josef.95 wrote:
Hm, try
Code:
eselelect opengl set nvidia
and use a relogin - it should work :)


Already done that, it is using nvidia opengl, according to eselect..
Back to top
View user's profile Send private message
MarcusXP
Apprentice
Apprentice


Joined: 18 Apr 2007
Posts: 237
Location: Toronto, ON, Canada

PostPosted: Sun Jun 05, 2016 9:00 am    Post subject: Reply with quote

Do you think I need to finish installing kde-meta first?
It is installed only plasma-meta now and a lot of stuff seems to be missing from the KDE..
Maybe this would fix it?

Also, there seem to be a problem with the fonts, they are too big sometimes, even in the sddm login screen, my username is exceeding the size of the box. Is this related to nvidia-drivers? Bevause I didn't have this issue when I was using nouveau..
Back to top
View user's profile Send private message
MarcusXP
Apprentice
Apprentice


Joined: 18 Apr 2007
Posts: 237
Location: Toronto, ON, Canada

PostPosted: Sun Jun 05, 2016 3:05 pm    Post subject: Reply with quote

Update:

- finished installing kde-meta, now all usual programs are back. I copied the ~/.config and ~/.kde4 folders from my all laptop, and I have all settings just as before
- updated nvidia-drivers to latest version - 367.18 -> this fixed the missing OpenGL issue in KDE, now all effects are enabled. I think I could have just re-emerged the previous version, it could have worked
- I set "Force Font DPI = 96" in System Settings > Fonts; this fixed the messed up font size after logging in KDE.

However, in the SDDM login window, the font is still messed-up, the font used for username is too big, which causes it to be displayed incomplete.
Any ideas on how to fix that?

I think this font fiasco comes from nvidia-drivers, maybe there is another place to fix it.. any clues?
On my old laptops I was using nouveau, and I never had this issue.

thanks!!
Back to top
View user's profile Send private message
muddle
n00b
n00b


Joined: 01 May 2007
Posts: 20

PostPosted: Wed Jun 08, 2016 6:06 am    Post subject: Reply with quote

In /etc/sddm.conf you can change/add the setting for dpi:
Code:

[XDisplay]
ServerArguments=-dpi 168
Back to top
View user's profile Send private message
MarcusXP
Apprentice
Apprentice


Joined: 18 Apr 2007
Posts: 237
Location: Toronto, ON, Canada

PostPosted: Wed Jun 08, 2016 2:07 pm    Post subject: Reply with quote

muddle wrote:
In /etc/sddm.conf you can change/add the setting for dpi:
Code:

[XDisplay]
ServerArguments=-dpi 168


That was it, thank you!
Will mark the thread as resolved, I still have some issues but unrelated to this topic.
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