You are not logged in.

#1 2013-07-12 08:46:35

geezee
Member
From: Lausanne
Registered: 2013-07-12
Posts: 11

Nvidia displaying black screen on boot

Hi everyone,

Yesterday I migrated to arch after 2 years on Ubuntu. I've wanted to move a long time ago but I moved now because I really needed the Nvidia driver to work (on Ubuntu it wasn't). I am doing research in my university which requires me to program in CUDA. I installed the nvidia and nvidia-utils packages successfully. I also ran nvidia-xconfig, installed CUDA and installed the samples that came with them. When I ran the `deviceQuery` that came with cuda to check the status of the drivers I used to get (on Ubuntu as well) that no devices exist. When I rebooted I saw a black screen. I switched to tty2 and killed spectrwm (my TWM) and ran `deviceQuery` and showed that I was indeed running a CUDA friendly GPU. So I'm really happy that CUDA finally worked.

There is something running in the background and there is a UI running but I can't see it. For example I went to a tty and ran vlc song.mp3 and heard the music.

However I would really love to have a UI instead of doing everything on a tty.

Some things I tried to do

  • Deleted the x config file or/and the 10-nvidia file and rebooting, but end up with an error: no screen detected (the reason I have the /etc/X11/xorg.conf.d/10-nvidia.conf file)

  • I couldn't locate an error the X log

More information:

lspci | grep -i vga


00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 630M] (rev a1)
/etc/X11/xorg.conf


# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.88  (buildmeister@swio-display-x86-rhel47-06)  Wed Mar 27 15:32:58 PDT 2013


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
/etc/X11/xorg.conf.d/10-nvidia.conf


Section "Device"
	Identifier	"Device0"
	Driver		"nvidia"
	VendorName	"NVIDIA Corporation"
	BusID		"PCI:1:0:0"
EndSection
/etc/modprobe.d/blacklist.conf


blacklist i915

EDIT
I have a .xinitrc file in my home directory and it is working

~/.xinitrc


#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

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

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

xrdb -load ~/.Xresources
xmodmap ~/.Xmodmap

exec spectrwm

Last edited by geezee (2013-07-12 15:14:13)

Offline

#2 2013-07-12 17:54:19

iamjerico
Member
Registered: 2012-12-10
Posts: 21

Re: Nvidia displaying black screen on boot

Looks like you have an Optimus setup.  Have a look at this wiki entry - sounds like your issue.

Offline

Board footer

Powered by FluxBB