[SOLVED] Xorg black screen - Slackware 14.2 Nvidia Proprietary driver, HP OMEN 15 5012na, Geforce GTX 860M / Intel HD hybrid
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Xorg black screen - Slackware 14.2 Nvidia Proprietary driver, HP OMEN 15 5012na, Geforce GTX 860M / Intel HD hybrid
It's first time I'm trying to set Slackware 14.2 (multilib enabled) up on this second hand HP OMEN 15 5012na. Installing of Nvidia binaries, either fails or makes Xorg to segfault afterwards.
However installing nvidia-driver via sboinstall goes smooth, it's just xorg.conf configuration which I think is the main issue because after installation sboinstall prompts something to not forget enabling nvidia in /etc/X11/xorg.conf. and I've found several suggestions on the internet but none of them worked. At best I was able to start xfce4 but it soon crashes after starting something like steam.
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
bash-4.3# lspci | grep 3D
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
bash-4.3# cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: No such file or directory
bash-4.3# lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
00:1c.5 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #6 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
07:00.0 SATA controller: Samsung Electronics Co Ltd XP941 PCIe SSD (rev 01)
08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
09:00.0 Network controller: Intel Corporation Wireless 7260 (rev c3)
Now I'm starting it again over fresh slackware 14.2 (multilib)
so I have no /etc/X11/xorg.conf , but 'sboinstall nvidia-driver' gonna place a default conf to /usr/share/X11/xorg.conf.d/10-nvidia.conf
Code:
bash-4.3# sboinstall nvidia-driver
This is the kernel-module needed by the proprietary binary nvidia driver.
You also need the nvidia-driver package from SlackBuilds.org.
To build the package for a kernel different from the running one,
start the script setting the KERNEL variable as in
KERNEL=4.6.3 ./nvidia-kernel.SlackBuild
A default config file is placed at /usr/share/X11/xorg.conf.d/10-nvidia.conf
to make sure that X loads the nvidia module. If you need to make changes,
move that file to /etc/X11/xorg.conf.d/ and edit the copy. You do not need
this file at all if you have a proper and complete xorg.conf.
The xf86-video-nouveau-blacklist package from /extra is required.
It looks like nvidia-kernel has options; would you like to set any when the slackbuild is run? [n]
This is the kernel-module needed by the proprietary binary nvidia driver.
You also need the nvidia-driver package from SlackBuilds.org.
To build the package for a kernel different from the running one,
start the script setting the KERNEL variable as in
KERNEL=4.6.3 ./nvidia-kernel.SlackBuild
A default config file is placed at /usr/share/X11/xorg.conf.d/10-nvidia.conf
to make sure that X loads the nvidia module. If you need to make changes,
move that file to /etc/X11/xorg.conf.d/ and edit the copy. You do not need
this file at all if you have a proper and complete xorg.conf.
The xf86-video-nouveau-blacklist package from /extra is required.
Proceed with nvidia-kernel? [y]
nvidia-kernel added to install queue.
This is the proprietary binary video driver from NVidia for the X.Org
X-server. This package does not include the kernel-module - it is a part
of the nvidia-kernel package at SlackBuilds.org.
NOTE: 64-bit x86_64 support ONLY for Slackware64. For x86 32-bit support,
use nvidia-legacy390-{driver,kernel}
Installing the 32-bit compatibility libraries is available: if desired, do:
COMPAT32="yes" ./nvidia-driver.SlackBuild
GLVND GLX client libraries are now the default. If these cause any
compatibility issues with older GLX sofware, either upgrade your software
or try:
GLVND="no" ./nvidia-driver.SlackBuild
Several useful utilities are included: nvidia-xsettings, nvidia-smi, and
nvidia-settings. Please refer to the Nvidia documentation and man pages
for details and usage.
For CUDA/OpenCL to work after reboot, and for utilites such as nvidia-smi,
you might need to include the following line in your /etc/rc.d/rc.local:
-------------8<---------------
# Create missing nvidia device nodes after reboot
/usr/bin/nvidia-modprobe -c 0 -u
------------->8---------------
Since this nvidia-driver conflicts with some files of xorg, it's a bit
complex to install/uninstall the driver. However, installation of the
nvidia-driver package itself backs up the conflicting files and puts
the nvidia-specific files into place.
Included is a script called nvidia-switch, which is used to switch from
the xorg driver to the nvidia driver, but it will not edit xorg.conf
for you; you have to do that manually. The nvidia-switch script is
installed to /usr/sbin. NOTE: Although nvidia-switch is aware of a
COMPAT32 environment, its use therein is not supported.
Usage of nvidia-switch:
nvidia-switch --install <--> install the nvidia files and save the
stock xorg files.
nvidia-switch --remove <--> remove the nvidia files and symlinks and
restore the stock xorg files.
You do NOT have to run nvidia-switch after installing the package.
Before uninstalling or upgrading this package, it is important that
you execute 'nvidia-switch --remove', which will switch back to the
stock xorg files and remove all links created by nvidia-switch during
installation. If you forget to do this, you might have to do the switch
manually, since 'nvidia-switch --install' may fail, resulting in xorg
not working. Here are the affected files:
/usr/lib[64]/libGL.so.1.2
/usr/lib[64]/libGL.la
/usr/lib[64]/libGLESv1_CM.so.1.0.0
/usr/lib[64]/libGLESv2.so.2.0.0
/usr/lib[64]/libEGL.so.1.0.0
/usr/lib[64]/xorg/modules/libwfb.so
/usr/lib[64]/xorg/modules/extensions/libglx.so
Simply remove the dead nvidia symlinks and and reinstall the mesa and
xorg-server packages. See 'nvidia-switch --help'.
It looks like nvidia-driver has options; would you like to set any when the slackbuild is run? [n]
This is the proprietary binary video driver from NVidia for the X.Org
X-server. This package does not include the kernel-module - it is a part
of the nvidia-kernel package at SlackBuilds.org.
NOTE: 64-bit x86_64 support ONLY for Slackware64. For x86 32-bit support,
use nvidia-legacy390-{driver,kernel}
Installing the 32-bit compatibility libraries is available: if desired, do:
COMPAT32="yes" ./nvidia-driver.SlackBuild
GLVND GLX client libraries are now the default. If these cause any
compatibility issues with older GLX sofware, either upgrade your software
or try:
GLVND="no" ./nvidia-driver.SlackBuild
Several useful utilities are included: nvidia-xsettings, nvidia-smi, and
nvidia-settings. Please refer to the Nvidia documentation and man pages
for details and usage.
For CUDA/OpenCL to work after reboot, and for utilites such as nvidia-smi,
you might need to include the following line in your /etc/rc.d/rc.local:
-------------8<---------------
# Create missing nvidia device nodes after reboot
/usr/bin/nvidia-modprobe -c 0 -u
------------->8---------------
Since this nvidia-driver conflicts with some files of xorg, it's a bit
complex to install/uninstall the driver. However, installation of the
nvidia-driver package itself backs up the conflicting files and puts
the nvidia-specific files into place.
Included is a script called nvidia-switch, which is used to switch from
the xorg driver to the nvidia driver, but it will not edit xorg.conf
for you; you have to do that manually. The nvidia-switch script is
installed to /usr/sbin. NOTE: Although nvidia-switch is aware of a
COMPAT32 environment, its use therein is not supported.
Usage of nvidia-switch:
nvidia-switch --install <--> install the nvidia files and save the
stock xorg files.
nvidia-switch --remove <--> remove the nvidia files and symlinks and
restore the stock xorg files.
You do NOT have to run nvidia-switch after installing the package.
Before uninstalling or upgrading this package, it is important that
you execute 'nvidia-switch --remove', which will switch back to the
stock xorg files and remove all links created by nvidia-switch during
installation. If you forget to do this, you might have to do the switch
manually, since 'nvidia-switch --install' may fail, resulting in xorg
not working. Here are the affected files:
/usr/lib[64]/libGL.so.1.2
/usr/lib[64]/libGL.la
/usr/lib[64]/libGLESv1_CM.so.1.0.0
/usr/lib[64]/libGLESv2.so.2.0.0
/usr/lib[64]/libEGL.so.1.0.0
/usr/lib[64]/xorg/modules/libwfb.so
/usr/lib[64]/xorg/modules/extensions/libglx.so
Simply remove the dead nvidia symlinks and and reinstall the mesa and
xorg-server packages. See 'nvidia-switch --help'.
Proceed with nvidia-driver? [y]
nvidia-driver added to install queue.
Install queue: nvidia-kernel nvidia-driver
Are you sure you wish to continue? [y]
Code:
+==============================================================================
| Installing new package /tmp/nvidia-driver-430.50-x86_64-1_SBo.tgz
+==============================================================================
Verifying package nvidia-driver-430.50-x86_64-1_SBo.tgz.
Installing package nvidia-driver-430.50-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
# nvidia-driver (Proprietary Binary Nvidia Video Driver)
#
# This is the proprietary binary video driver from nvidia for
# the x.org X server. This package does not include the kernel
# module - it is included in the nvidia-kernel package.
#
# See /usr/doc/nvidia-driver-430.50/README.Slackware
# for more information.
#
Executing install script for nvidia-driver-430.50-x86_64-1_SBo.tgz.
Installing to nvidia-driver files!
Make sure the nvidia driver is ENABLED in /etc/X11/xorg.conf
and in /etc/X11/xorg.conf.d.
Otherwise, this may lead to improperly working drivers.
Package nvidia-driver-430.50-x86_64-1_SBo.tgz installed.
Then I manually disable noveau by adding
Code:
blacklist nouveau
options nouveau modeset=0
to /etc/modprobe.d/disable_noveau.conf
Now I'm going to reboot and save Xorg.0.log to edit into this thread.
EDIT: after reboot runnig startx at first shows kde loading graphical screen like everything is ok and then turns to black screen with white cursor on the top left corner of screen with keyboard irresponsive, so I used power button to shut down and boot again and the contents of /var/log/Xorg.0.log.old are here in dpaste http://dpaste.com/1PV4Q3Q
I can get back into those pre black screen conditions, just tell me what information I should gather from runlevel 3. I'll stay with noveau till I get some responses.
$ fglrxinfo
display: :0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Radeon HD 5450
OpenGL version string: 4.2.12002 Compatibility Profile Context 9.012
I think, if it works well, don't do anything, KISS.
Greetings.
You're lucky with AMD I've heard that AMD open source drivers are awesome. I have nVidia, I'm less lucky I need to work around. Nouveau produces 60 fps with glxgears, nvidia binary drivers produces 12182 FPS, that's not just a tiny difference.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.