Login Manager stopped working

Hello!

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).

Thank you for your reply!

I’m using kdm, and “systemctl restart display-manager” does indeed start login manager.

systemctl status display-manager:

● display-manager.service - X Display Manager   Loaded: loaded (/usr/lib/systemd/system/display-manager.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2016-10-14 01:25:57 +05; 13min ago
  Process: 1745 ExecStart=/usr/lib/X11/display-manager start (code=exited, status=0/SUCCESS)
 Main PID: 1766 (kdm)
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/display-manager.service
           └─1766 /usr/bin/kdm

systemctl get-default:

multi-user.target

It does now!

Here is glxinfo:

direct rendering: YesOpenGL renderer string: GeForce GTX 650/PCIe/SSE2
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
    GL_KTX_buffer_region, GL_NVX_conditional_render, GL_NVX_gpu_memory_info, 
    GL_NV_compute_program5, GL_NV_conditional_render, 
    GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite, 
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, 
    GL_KTX_buffer_region, GL_NVX_conditional_render, GL_NVX_gpu_memory_info, 
    GL_NV_compute_program5, GL_NV_conditional_render, 
    GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite, 
    GL_EXT_primitive_bounding_box, GL_EXT_render_snorm, GL_EXT_robustness, 
    GL_NV_conditional_render, GL_NV_copy_buffer, GL_NV_copy_image, 
    GL_NV_packed_float_linear, GL_NV_path_rendering, 
    GL_OES_fbo_render_mipmap, GL_OES_geometry_point_size, 



Xorg log appers to be too long to post ¯_(ツ)_/¯ I can probably upload it somewhere if it’s essential.

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.

Well, that did it. Thank you for your help, much appreciated!