I can't boot my pc because the Xserver doesn't start. What's weird is that when I use SDDM it boots just fine. I also tried to use Lightdm a few months ago but it didn't want to boot, I'm guessing because of this problem.
I've had this problem for like a year but it never really bothered me because I always used SDDM. I'd like to stop using it so that's why I need this fixed.
OS: Arch Linux x86_64 Host: 80WK Lenovo Y520-15IKBN Kernel: 4.18.14-arch1-1-ARCH Uptime: 10 mins Packages: 1554 (pacman) Shell: zsh 5.6.2 Resolution: 1920x1080, 1920x1080 DE: KDE WM: KWin WM Theme: Breezemite Theme: Breeze [KDE], Adwaita [GTK2], X-Arc-Plus [GTK3] Icons: Papirus-Light [KDE], Adwaita [GTK2], Papirus [GTK3] Terminal: konsole Terminal Font: DejaVu Sans Mono 10 CPU: Intel i7-7700HQ (8) @ 3.800GHz GPU: Intel Device 591b Memory: 1758MiB / 7851MiB
I'm using the proprietary Nvidia driver. Not bumblebee or nouveau because of their performance hit.
uname -a : Linux ArchLinux 4.18.14-arch1-1-ARCH #1 SMP PREEMPT Sat Oct 13 13:42:37 UTC 2018 x86_64 GNU/Linux
pacman -Q nvidia :
I enabled KMS to eliminate screen tearing, but disabling it doesn't help. I don't have an xorg.conf file because when I do, even SDDM won't start.
nvidia-xconfig has never worked for me.
These are both executed with SDDM disabled, so I just log in to the first tty:
xinit : https://hastebin.com/muredinume
With SDDM enabled, so a normal boot: https://hastebin.com/anatocavur
(is hastebin the right place or should I upload them elsewhere?)
EDIT: this is what I see in the terminal when I execute:
Here's my .xinitrc:
#!/bin/sh userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap xsetroot -cursor_name left_ptr xrandr --output eDP-1 --primary xrandr --output HDMI-1 --above eDP-1 xrandr --dpi 96 # 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 sxhkd & statnot & feh --bg-fill ~/Pictures/DnA7hZgU8AAxfxC.jpg:large.jpg exec bspwm
As for the 'possible duplicate' from here, I tried their solutions and they didn't work. For me, SDDM can start when I have it enabled, but I want to use bspwm without a DM.
Disabling the NVIDIA GPU in my BIOS settings made
startx work, so that reveals that the problem is with NVIDIA. Are my drivers the problem? Is it something else?