Can't login after nvidia driver install

Running 12.3, installed the proprietary nvidia drivers using 1 click and now I can’t login. Whenever I try to login, it just loops back to the login screen. I am not sure where to look to troubleshoot since I haven’t found much information on this issue. I was able to open nvidia-settings and it is configured to use my card (GT 220).

Can you login to a different session, f.e. IceWM or twm?
Can you login as root?

Try to add your user to the “video” group, see openSUSE 12.3 Release Notes

Fixed! Ok, so I couldn’t login to twm but could login to root. So then from that, your advice of adding the user to the video group was spot on. What I ran as root:

usermod -a -G video my_username

Thanks for the help! Maybe this should be added to the wiki?

Well, it is in the Release Notes…:wink:
And if you installed all the online updates, this shouldn’t be necessary anymore.

Could you post the output of:

ls -a /dev/nvidia*

Maybe I should start reading those…
I installed all updates during the install since I had it wired.

The output:

/dev/nvidia0  /dev/nvidiactl

Well, then it should work without adding your user to the “video” group. (the bug is still there if your card is /dev/nvidia1 or higher, that’s why I asked)
What version of the package “systemd” do you have installed?

rpm -qi systemd

Is your user session listed when you run “loginctl”?

What’s the output of:

getfacl /dev/nvidia*

Output of

rpm -qi systemd
Name        : systemd
Version     : 195
Release     : 13.11.1

Yes, my user is listed in the session.

Output of

getfacl /dev/nvidia*
getfacl: Removing leading '/' from absolute path names
# file: dev/nvidia0
# owner: root
# group: video
user::rw-
group::rw-
other::---

# file: dev/nvidiactl
# owner: root
# group: video
user::rw-
group::rw-
other::---

Am I wrong in thinking that the nvidia driver works, and login to KDE is OK now?

Yes it is. I just wanted to find out the cause of his problem, since adding the user to the video group shouldn’t be needed anymore…

Yeah, right. That’s an older version that doesn’t yet contain the fix. That’s why your user didn’t have permissions to access the nvidia devices and you had to add it to the video group.
So please install the latest online updates!:wink:
The rest seems to be ok.

Hi there,

I’ve got the same problem, and tried your solution. I logged in (failsafe) as root and tried:

usermod -a -G video my_username 

however, it didn’t work. I’ve checked for any updates to “systemd” and I have the most recent version. Finally, I ran “loginctl” and my user session isn’t there. Are there any solutions?

Scratch that part, my mistake. The session appears just fine.

And what exactly is your problem? You can’t login?
Have you tried to login to a different session like twm or IceWM?

And what graphics card are you using?
That “usermod” command is only needed with the proprietary nvidia driver, and shouldn’t be needed anymore with the latest systemd, which you seem to have installed.

Yes, my problem is the same as reported in this thread. I installed the nVidia drivers following the instructions here:SDB:NVIDIA drivers - openSUSE Wiki and used the zypper method.
After I restarted the pc, I couldnt log in to KDE and every time I tried, it looped back to the login screen.

I tried to login to twm, but it just showed a purple empty screen. The problem now is that this (twm session) is the default way of login. Before, when the kde attempted to login, the login looped back to the beginning, whereas now (as twm attempts to login) there is no loop, just the purple screen. I tried using “init 3” from Ctrl+Alt+F1 console to terminate twm, but I dont know how to restart the kde. I figured this wont be a problem if I fix the drivers issue.

I have the GeForce GTX 460 SE graphics card. I checked my user, and he is in the “video” group. Can I uninstall the nVidia drivers from zypper? Also, if I remember correctly, I had installed the Nouveau drivers before that. Could this be the issue?

Sorry if I forget to mention something, I just recently started using openSUSE and linux in general. Thanks for trying to help! :slight_smile:

Well, that’s how twm looks like. Try clicking on the desktop to get a menu.

The problem now is that this (twm session) is the default way of login. Before, when the kde attempted to login, the login looped back to the beginning, whereas now (as twm attempts to login) there is no loop, just the purple screen. I tried using “init 3” from Ctrl+Alt+F1 console to terminate twm, but I dont know how to restart the kde. I figured this wont be a problem if I fix the drivers issue.

Do you have auto-login activated? Then left-click on the desktop and select “Exit”. You should get back to the login screen then.

I have the GeForce GTX 460 SE graphics card. I checked my user, and he is in the “video” group. Can I uninstall the nVidia drivers from zypper? Also, if I remember correctly, I had installed the Nouveau drivers before that. Could this be the issue?

No. But maybe the nvidia driver is not working correctly.
Please open a console window (“Xterm” in twm’s menu) and run the following:

sudo zypper in Mesa-demo-x
glxinfo | grep render

Then post the output you get.

Please note that in twm you have to click on the place where you want to open a window before it actually opens. You could also use IceWM that should behave more the way you would expect I guess.

Yeah, you were right, thanks! :slight_smile:

Ok, the command “sudo zypper in Mesa-demo-x” found the package “Mesa-demo-x” and installed it.
the command “glxinfo | grep render” prints:

direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: GeForce GTX 460 SE/PCIe/SSE2
       GL_OES_element_index_unit, GL_OES_fbo_render_mipmap,

then, I also tried: “LIBGL_DEBUG=verbose glxinfo|grep render”, but the output was exactly the same as before.

So your nvidia driver is not working correctly.
Please post the file /var/log/Xorg.0.log and the output of:

rpm -qa | grep nvidia

the file /var/log/Xorg.0.log is this: https://www.dropbox.com/s/aiglwzyoz93rxk8/Xorg.0.log

and “rpm -qa | grep nvidia” prints:

nvidia-computeG03-319.17-12.1.x86_64
nvidia-gfxG03-kmp-desktop-310.44_k3.7.10_1.1-11.1.x86_64
x11-video-nvidiaG02-304.88-25.1.x86_64
nvidia-gfxG03-kmp-desktop-319.17_k3.7.10_1.1-12.1.x86_64
nvidia-gfxG02-kmp-desktop-304.88_k3.7.10_1.1-24.1.x86_64
x11-video-nvidiaG03-319.17-12.1.x86_64
oyranos-monitor-nvidia-0.9.1-2.1.1.x86_64
nvidia-computeG02-304.88-25.1.x86_64

There is no error in there, but:

and “rpm -qa | grep nvidia” prints:

nvidia-computeG03-319.17-12.1.x86_64
nvidia-gfxG03-kmp-desktop-310.44_k3.7.10_1.1-11.1.x86_64
x11-video-nvidiaG02-304.88-25.1.x86_64
nvidia-gfxG03-kmp-desktop-319.17_k3.7.10_1.1-12.1.x86_64
nvidia-gfxG02-kmp-desktop-304.88_k3.7.10_1.1-24.1.x86_64
x11-video-nvidiaG03-319.17-12.1.x86_64
oyranos-monitor-nvidia-0.9.1-2.1.1.x86_64
nvidia-computeG02-304.88-25.1.x86_64

You have both the G02 and the G03 driver installed. This won’t work (because they include the same files) and is likely causing your problem.

Please do the following to fix your driver installation:

sudo zypper rm nvidia-computeG03 nvidia-gfxG03-kmp-desktop x11-video-nvidiaG02 nvidia-gfxG02-kmp-desktop x11-video-nvidiaG03 nvidia-computeG02
sudo zypper in nvidia-computeG03 nvidia-gfxG03-kmp-desktop x11-video-nvidiaG03

Then after a reboot KDE should work again, I hope.

Yes! You were absolutely right! lol! Everything is back to normal. Thanks a lot for all your help!

Just one last question about this: These (G03) are the optimal nvidia drivers for my card? And also is there anything more that I can do to help KDE run more smoothly? Because I think that sometimes the KDE animations etc are a bit laggy, and until now I thought this was due to wrong drivers.

Yes, that’s the latest one.

And also is there anything more that I can do to help KDE run more smoothly? Because I think that sometimes the KDE animations etc are a bit laggy, and until now I thought this was due to wrong drivers.

Check your desktop effects settings. (Configure Desktop->Desktop Effects)
On the “Advanced” tab, “composite type” should be set to “OpenGL” and “Qt graphic system” to “Raster”.