You are not logged in.

#1 2016-03-29 01:48:49

reb9302
Member
Registered: 2016-03-29
Posts: 3

Strange Problem: Black Screen with every DM

Hello to all the Arch LInux community! i need a bit of help.

Every time that i am trying to use systemctl start "a specficic dm" (like lxdm, gdm, else), it doesnt start; it shows a total Black Screen with nothing (is like my notebook screen shuted down u.u)
Its a strange problem because if i use, as example, "startx" (which starts xfce4; i configured it as that in my xinitrc), it starts normally and i can use it without any problem. My unique problem is the DM sad.

I use the Nvidia Propietary driver (even being a notebook with Optimus, because i know that sometimes can have better performance than Optimus or primusrun in games like Dota2 -yeah, i am into gaming-); so i dont use Bumblebee.

THis is my xorg.conf (which i use for run startx normally)

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 361.28  (buildmeister@swio-display-x64-rhel04-04)  Wed Feb  3 16:27:53 PST 2016

Section "ServerLayout"
    Identifier      "layout"
    Screen          1 "nvidia"
    Inactive        "intel"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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 "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration" "Yes"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "Yes"
EndSection

Section "Device"
    Identifier  "intel"
    Driver      "modesetting"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod"  "sna"
    #Option      "TearFree" "True"
    #Option      "Tiling" "True"
    #Option      "SwapbuffersWait" "True"
EndSection

Section "Screen"   
    Identifier "intel"
    Device "intel"
EndSection

And this is my .xinitrc:


#!/bin/sh

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

# 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

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

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec startxfce4

So if someone can help me with this strange question, i would thank it. If you need some more data from this problem i will try to help.
Clue: when i used journalctl -xe after cancelling the black screen (using all key combination that i could hahaha) from LXDM session it appeared the phase "this pci device is not a vga device".

Thank you, sorry for my bad english and short knowdlenge about archlinux (being a newbie) big_smile

Offline

#2 2016-03-29 14:11:40

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Strange Problem: Black Screen with every DM

The problem is probably that those 2 xrandr commands are needed to prevent the black screen issue.

Try configuring one of the DMs to execute them before showing the login screen

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

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2016-04-07 03:53:12

reb9302
Member
Registered: 2016-03-29
Posts: 3

Re: Strange Problem: Black Screen with every DM

Lone_Wolf wrote:

The problem is probably that those 2 xrandr commands are needed to prevent the black screen issue.

Try configuring one of the DMs to execute them before showing the login screen

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

Done, and solved! Thank you very much!

Offline

#4 2016-04-07 05:44:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Strange Problem: Black Screen with every DM

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB