You are not logged in.
Hey guys. Fresh installation of Arch this morning. Trying to get my window manager set up again with my dotfiles which work perfectly fine on an earlier install of arch (had to switch temporarily to another distro for a weekend which was a couple weeks ago since I was too lazy to put arch back together right away). Installation has gone perfectly up until now. I have my dotfiles pulled down from github and sitting on my machine. I installed xorg-server and xorg-xinit, bspwm and sxhkd (my wm), and the nvidia-grsec driver (grsec kernel with bad pax option disabled).
Upon running 'startx', Xorg starts, throws its startup text on the screen, then completely freezes my system. No key combination works, not ctrl + c or ctrl + alt + bckspc, not sxhkd's key combo to stop xorg (super + alt + esc). I have to power cycle my laptop in order to get functionality again. I have bumblebee enabled and appears to be working perfectly fine. Xorg was configured by nvidia-xconfig, all my dotfiles worked on my previous system with the same hardware and general setup.
I basically have no idea where to go from here. I was going to see if I could install a previous version of xorg (as seen in this forum post) to see if some new feature is broken and just has yet to be fixed. This is xorg-server version 1.19.3-1.
Following this stack exchange post, I tried just running $ X and the same problem occurred. Complete freeze up of my system. Anything that was on my screen stayed (didn't switch to another screen or black screen, etc.) and the cursor doesn't blink. This is what is leading me to believe that xorg is broken (or some config I have not yet touched needs to be configured). It's also worth noting that Xorg doesn't generate its log file as it never actually closes with or without an error. Possible infinite loop accidentally in the code?
Xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 378.13 (buildmeister@swio-display-x86-rhel47-05) Tue Feb 7 19:37:00 PST 2017
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
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
.xinitrc:
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# Use GTK widgets in place of QT
export QT_STYLE_OVERRIDE=GTK+
# 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 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
# keyboard shortcuts for bspwm
sxhkd &
# screen temperature adjustment
# redshift -r -l 35.22:-80.84 &
# desktop wallpaper
sh ~/.fehbg &
# hide x11 cursor
#unclutter &
# urxvt daemon
#urxvtd -q -f -o &
# window manager
exec bspwm
bspwmrc:
#! /bin/sh
bspc config border_width 3
bspc config window_gap 10
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
bspc monitor -d 1 2 3 4 5 6 7 8
bspc config normal_border_color '#768588'
bspc config focused_border_color '#458588'
bspc rule -a Gimp follow=on floating=on
bspc rule -a mplayer2 floating=on
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
$HOME/.config/polybar/launch.sh
Thanks in advance for anyone that is able to lend a hand.
Offline
This is your problem:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
nvidia-xconfig just breaks thiings, don't use it.
Offline
I tried running 'Xorg :0 -configure' according to the Xorg wiki page which resulted in a segmentation fault:
(EE)
(EE) Backtrace:
(EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x59c209]
(EE) 1: /usr/lib/libpthread.so.0 (__restore_rt+0x0) [0x3521ec0efdf]
(EE) 2: /usr/lib/xorg-server/Xorg (xf86PlatformMatchDriver+0x2a4) [0x4967f4]
(EE) 3: /usr/lib/xorg-server/Xorg (xf86BusProbe+0x9) [0x46e1d9]
(EE) 4: /usr/lib/xorg-server/Xorg (InitOutput+0x77c) [0x47cdec]
(EE) 5: /usr/lib/xorg-server/Xorg (InitFonts+0x216) [0x43a796]
(EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xf1) [0x3521e879511]
(EE) 7: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x42464a]
(EE) 8: ? (?+0x2a) [0x2a]
(EE)
(EE) Segmentation fault at address 0x50
(EE)
Fatal server error
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)
(EE)
I deleted /etc/X11/xorg.conf and ran 'Xorg :0 -configure' again, this time Xorg crashes.
Created an empty xorg.conf file and ran the configure command again, same segfault as above.
Offline
why not wayland? if you use i3, use sway with wayland, works just as well.
Offline
Does the issue also occur with linux 4.10.8-1 and nvidia 378.13-5?
Offline
why not wayland? if you use i3, use sway with wayland, works just as well.
Since NVIDIA causes crashes with linux 4.10 when KMS is enabled (which is required for wayland), and nouveau performance isn't great. Plus I wasn't aware it was finally receiving the support it should have been getting by other developers. Bumblebee also doesn't support nouveau however I guess there is prime...
Does the issue also occur with linux 4.10.8-1 and nvidia 378.13-5?
I installed the stock nvidia driver and booted into vanilla linux kernel. Still no luck. Crashes the machine.
Last edited by Zorbik (2017-04-07 02:51:12)
Offline
Why are you running any xorg configuration command anyway? they all are broken, as evident. Remove all /etc/X11/(xorg.conf.d)/)xorg.conf files, then startx. Then define what your endgoal is, if you want to forgo power saving features of your intel card and exclusively use Nvidia, add the following to your .xinitrc before the exec line
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
If you want to continue to use the intel card and only use Nvidia on an as needed basis, follow https://wiki.archlinux.org/index.php/Bumblebee
Note that for either of these options to work correctly and as intended, it is absolutely paramount that you don't have any conflicting configuration in /etc/X11 which nvidia-xconfig or xorg configure would create.
Last edited by V1del (2017-04-07 07:39:55)
Offline
Just a quick update, Since I was running low on time, I tried installing other distros. Mainly Antergos and Manjaro. Both froze when graphics started. Even tried Mint, same thing. Finally resorted to digging up my win10 iso because I have no other options. Need my laptop working for this weekend. Windows worked. Will test the other installers again when I have time to see if something Windows does somehow fixed the issue or if it's a hardware issue.
Offline
Why are you running any xorg configuration command anyway? they all are broken, as evident. Remove all /etc/X11/(xorg.conf.d)/)xorg.conf files, then startx. Then define what your endgoal is, if you want to forgo power saving features of your intel card and exclusively use Nvidia, add the following to your .xinitrc before the exec line
xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto
If you want to continue to use the intel card and only use Nvidia on an as needed basis, follow https://wiki.archlinux.org/index.php/Bumblebee
Note that for either of these options to work correctly and as intended, it is absolutely paramount that you don't have any conflicting configuration in /etc/X11 which nvidia-xconfig or xorg configure would create.
Thank you! I had the same problem and this worked for me when starting Plasma with startx, later with sddm had to configure bumblebee but this saved me
Offline
Although this is a bit of a thread hijack, you can do the same for SDDM, you will have to add the configuration at a different place, see here: https://wiki.archlinux.org/index.php/NV … timus#SDDM
Offline