You are not logged in.

#1 2018-09-07 15:11:00

CatMasterrace
Member
Registered: 2018-09-07
Posts: 2

[SOLVED] startx with Nvidia drivers causes blackscreen

I know this is a common problem but none of the solutions I've seen so far have worked.
I'm using a Geforce GT 730M card and have recently done a fresh install of Arch (keeping an old /home partition). I got Xorg to work using Nouveau drivers however when I try to install Nvidias proprietary drivers and blacklist nouveau in /etc/modprobe.d/blacklist.conf running startx in a tty only causes a blackscreen and the following error message after I log into another tty and kill Xorg:

X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
Build Operating System: Linux Arch Linux
Current Operating System: Linux archlinux 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=d59762f9-2e06-40c9-81fe-b4238216a103 rw quiet rcutree.rcu_idle_gp_delay=1
Build Date: 09 August 2018  06:37:34PM
 
Current version of pixman: 0.34.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Sep  7 14:55:58 2018
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
/home/lilguy/.xinitrc: line 8: xrandr: command not found
/home/lilguy/.config/awesome/runstuff.sh: line 3: pulseaudio: command not found
/home/lilguy/.config/awesome/runstuff.sh: line 4: comptopn: command not found

(nm-applet:620): nm-applet-WARNING **: 14:55:59.419: NetworkManager is not running
2018-09-07 14:56:44 E: awesome: a_xcb_io_cb:397: X server connection broke (error 1)
Gdk-Message: 14:56:44.594: nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.

xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

running xterm from tty causes no blackscreen and returns the following error

xterm: Xt error: Can't open display: 
xterm: DISPLAY is not set

Solutions tried so far:

- creating the following /etc/X11/xorg.conf.d/20-nvidia.conf - file (Nouveau only works without .conf files)

Section "Device"
	Identifier "Nvidia Card"
	Driver "nvidia"
	VendorName "NVIDIA Corporation"
	BoardName "GeForce GT 730M"
EndSection

- adding the nvidia module to /etc/mkinitcpio.conf

- running

modprobe nvidia

- adding the kernel parameter (and regenerating /boot/grub/grub.conf)

rcutree.rcu_idle_gp_delay=1

- removing awesome (window manager) from the ~/.xinitrc file

- adding the line 'xrandr --auto' to the top of ~/.xinitrc

- -Rns ing and reinstalling the packages
nvidia
nvidia-utils
lib32-nvidia-utils
mesa
xorg-server
xorg-xinit
as well as the entire fscking operating system multiple times

...I rebooted the system after every change and tried to run startx resulting in a blackscreen everytime

possibly relevant stuff

~/.xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

xrandr --auto

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs


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

exec awesome


twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

output of 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 04)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)
00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 (rev d4)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d4)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM87 Express LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GK208M [GeForce GT 730M] (rev a1)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
04:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)

Last edited by CatMasterrace (2018-09-07 15:53:35)

Offline

#2 2018-09-07 15:16:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] startx with Nvidia drivers causes blackscreen

Check your BIOS if there's a switch to solely enable the nvidia card as the only active GPU. If not, read https://wiki.archlinux.org/index.php/NV … ing_nvidia

As for the most stand out error in the log, you will want to install https://www.archlinux.org/packages/extr … rg-xrandr/ however don't add it at a random location like that preferably place it after the session files have been sourced before exec awesome.

Last edited by V1del (2018-09-07 15:19:31)

Offline

#3 2018-09-07 15:53:15

CatMasterrace
Member
Registered: 2018-09-07
Posts: 2

Re: [SOLVED] startx with Nvidia drivers causes blackscreen

V1del wrote:

Check your BIOS if there's a switch to solely enable the nvidia card as the only active GPU. If not, read https://wiki.archlinux.org/index.php/NV … ing_nvidia

As for the most stand out error in the log, you will want to install https://www.archlinux.org/packages/extr … rg-xrandr/ however don't add it at a random location like that preferably place it after the session files have been sourced before exec awesome.

I don't have that BIOS option but installing xorg-xrandr and adding the lines

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

to .xinitrc directly above 'exec awesome' did the trick. Thank you tovarish :3

Offline

Board footer

Powered by FluxBB