After I restarted my computer Linux boots to the terminal instead of the login manager. Attempting to start KDE with the startkde command results in the error “$DISPLAY is not set or cannot connect to the X server”. Logging in as root and starting icewm with “startx” works, also KDE can be started as root with “startx /usr/bin/startkde”.
I have Nvidia GTX 650 videocard, proprietary drivers installed.
That’s normal.
You cannot run “startkde” in text mode, it needs a graphical environment.
Logging in as root and starting icewm with “startx” works, also KDE can be started as root with “startx /usr/bin/startkde”.
Ok, then it seems to be rather a problem with the login manager.
Which one are you using?
Does “systemctl restart display-manager” start the login manager?
What does “systemctl status display-manager” say when the system boots to text mode?
And “systemctl get-default”?
Btw, you should get startx to work as user if you set Xorg suid-root:
sudo chmod +s /usr/bin/Xorg
May be helpful to know if startx can successfully start a KDE session as user.
Or switch to xdm, that should still work.
For this, set DISPLAYMANAGER=“xdm” in /etc/sysconfig/displaymanager.
I have Nvidia GTX 650 videocard, proprietary drivers installed.
Please post /var/log/Xorg.0.log, and the output of “glxinfo | grep render” (preferably as user, and you probably need to install Mesa-demo-x first).
Your system is set to boot to text mode for some reason.
Run “sudo systemctl set-default graphical.target”, or change the default target in YaST->System->Services Manager.
Xorg log appers to be too long to post ¯_(ツ)_/¯ I can probably upload it somewhere if it’s essential.
Not necessary any more.
There’s nothing wrong with Xorg or the login manager.
It just isn’t being started at boot.