You are not logged in.

#26 2013-11-22 09:07:25

mangus
Member
From: Bologna, Italy
Registered: 2007-04-07
Posts: 289

Re: NVidia upgrade from 325 to 331 stuck at tty1

workaround doesn't always work here. It's probably the nvidia device that needs to be waited

Offline

#27 2013-11-22 16:10:07

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: NVidia upgrade from 325 to 331 stuck at tty1

As I said before, you cannot wait for the nvidia device, since it doesn't properly register with the kernel and thus is unknown to udev.

Offline

#28 2013-11-22 22:30:13

mangus
Member
From: Bologna, Italy
Registered: 2007-04-07
Posts: 289

Re: NVidia upgrade from 325 to 331 stuck at tty1

For some reasons it's not enough here, I had to add

ExecStartPre=/bin/bash -c 'sleep 2'

to /etc/systemd/system/kdm.service.d/10-wait-for-card.conf service file.

Now, I don't know if I should be pleased for my system performances or pissed off with nvidia or systemd. lol

Offline

#29 2013-11-23 09:20:48

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: NVidia upgrade from 325 to 331 stuck at tty1

Shouldn't adding MODULES="nvidia" to /etc/mkinitcpio.conf and rebuilding initramfs with #mkinitcpio -p linux work, too?

Offline

#30 2013-11-23 09:43:11

mangus
Member
From: Bologna, Italy
Registered: 2007-04-07
Posts: 289

Re: NVidia upgrade from 325 to 331 stuck at tty1

blackout23 wrote:

Shouldn't adding MODULES="nvidia" to /etc/mkinitcpio.conf and rebuilding initramfs with #mkinitcpio -p linux work, too?

yeah, sure it works thank you, much better than my horrible hack.
So, in my case, it's just a matter of adding nvidia module to the mkinitcpio modules array for an early device creation.
I have kms and drm disabled in my system so the files posted by brain0 are not relevant in my case , I think.
Thanks to everyone

Offline

#31 2013-11-23 09:48:50

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: NVidia upgrade from 325 to 331 stuck at tty1

mangus wrote:
blackout23 wrote:

Shouldn't adding MODULES="nvidia" to /etc/mkinitcpio.conf and rebuilding initramfs with #mkinitcpio -p linux work, too?

yeah, sure it works thank you, much better than my horrible hack.
So, in my case, it's just a matter of adding nvidia module to the mkinitcpio modules array for an early device creation.
I have kms and drm disabled in my system so the files posted by brain0 are not relevant in my case , I think.
Thanks to everyone

Just remember that you have it in there. When you pacman -Syu and you get an update for nvidia and linux it might install linux first and run mkinitcpio before having the new nvidia module installed which will cause mkinitcpio to fail. So you simply have to run mkinitcpio again after -Syu is finished and the new nvidia module is installed.

I use this method on both my computers and never had an issue with nvidia and the kernel in years.

Last edited by blackout23 (2013-11-23 09:50:11)

Offline

#32 2013-11-23 13:07:37

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,421

Re: NVidia upgrade from 325 to 331 stuck at tty1

@blackout23
What a beautiful and simple idea, thanks for sharing.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#33 2013-11-23 17:05:08

mangus
Member
From: Bologna, Italy
Registered: 2007-04-07
Posts: 289

Re: NVidia upgrade from 325 to 331 stuck at tty1

blackout23 wrote:
mangus wrote:
blackout23 wrote:

Shouldn't adding MODULES="nvidia" to /etc/mkinitcpio.conf and rebuilding initramfs with #mkinitcpio -p linux work, too?

yeah, sure it works thank you, much better than my horrible hack.
So, in my case, it's just a matter of adding nvidia module to the mkinitcpio modules array for an early device creation.
I have kms and drm disabled in my system so the files posted by brain0 are not relevant in my case , I think.
Thanks to everyone

Just remember that you have it in there. When you pacman -Syu and you get an update for nvidia and linux it might install linux first and run mkinitcpio before having the new nvidia module installed which will cause mkinitcpio to fail. So you simply have to run mkinitcpio again after -Syu is finished and the new nvidia module is installed.

I use this method on both my computers and never had an issue with nvidia and the kernel in years.


yay, thanks for the tip! give this man a thank button pls!

Offline

#34 2013-12-01 12:24:24

jesusrop
Member
Registered: 2013-10-19
Posts: 14

Re: NVidia upgrade from 325 to 331 stuck at tty1

brain0 wrote:
saty wrote:

When I was trying to figure this on my own I found some "Your system is not currently configured to drive a VGA console on the primary VGA device. The NVIDIA Linux graphics driver requires the use of a text-mode VGA console." messages in the log files. They probably have been there forever but I haven't bothered with them since now.

That is normal and you should remember it when you get actual instabilities. I run nvidia together with efifb and experience no problems so far.

Anyway, I seem to have solved the problem for me, just create two files:

# /etc/udev/rules.d/99-make-udev-drm-aware.rules

SUBSYSTEM=="drm", TAG+="systemd"
# /etc/systemd/system/kdm.service.d/10-wait-for-card.conf

[Unit]
Wants=dev-dri-card0.device
After=dev-dri-card0.device

If you have more than one nvidia card, also plug in card1 etc.

Your workarround worked also (sort of) for me.

The file /etc/systemd/system/kdm.service.d/10-wait-for-card.conf didn't exist for me, so I had to add the contents of that file to the [Unit] sections of my /etc/systemd/system/display-manager.service

[Unit]
Description=K Display Manager
After=systemd-user-sessions.service
Wants=dev-dri-card0.device
After=dev-dri-card0.device

[Service]
ExecStart=/usr/bin/kdm -nodaemon

[Install]
Alias=display-manager.service

Offline

#35 2013-12-02 09:54:11

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: NVidia upgrade from 325 to 331 stuck at tty1

jesusrop wrote:

The file /etc/systemd/system/kdm.service.d/10-wait-for-card.conf didn't exist for me, so I had to add the contents of that file to the [Unit] sections of my /etc/systemd/system/display-manager.service

[Unit]
Description=K Display Manager
After=systemd-user-sessions.service
Wants=dev-dri-card0.device
After=dev-dri-card0.device

[Service]
ExecStart=/usr/bin/kdm -nodaemon

[Install]
Alias=display-manager.service

Please learn to read. You are supposed to create the file, and you are supposed to add exactly the contents I posted, not blindly copy the whole kdm.service unit.

Offline

#36 2013-12-02 11:33:16

king.flasher.dave
Member
From: Berlin
Registered: 2008-11-25
Posts: 140
Website

Re: NVidia upgrade from 325 to 331 stuck at tty1

mangus wrote:
blackout23 wrote:
mangus wrote:

yeah, sure it works thank you, much better than my horrible hack.
So, in my case, it's just a matter of adding nvidia module to the mkinitcpio modules array for an early device creation.
I have kms and drm disabled in my system so the files posted by brain0 are not relevant in my case , I think.
Thanks to everyone

Just remember that you have it in there. When you pacman -Syu and you get an update for nvidia and linux it might install linux first and run mkinitcpio before having the new nvidia module installed which will cause mkinitcpio to fail. So you simply have to run mkinitcpio again after -Syu is finished and the new nvidia module is installed.

I use this method on both my computers and never had an issue with nvidia and the kernel in years.


yay, thanks for the tip! give this man a thank button pls!

As pointed out: This also works. You just have to remember rebuilding your init image, when your driver is being updated!


Speak when you are angry and you will make the best speech you'll ever regret.

Offline

#37 2013-12-06 10:04:07

tumas
Member
Registered: 2012-02-08
Posts: 89

Re: NVidia upgrade from 325 to 331 stuck at tty1

I was hoping the updated nvidia driver from the testing repo would have fixed the bug, but it did not. Now the hack with the kdm.service.d file & udev rule alone does not work, but i also had to add nvidia as a module in mkinitpio.conf in order to boot into kdm. So basically the new version only made it worse so far ....

Edit: Actually now it is enough to add nvidia as a module; i deleted the two other files.

Edit2: The new nvidia Version from the official repo seems to work fine without any hack necessary

Last edited by tumas (2013-12-07 09:04:30)

Offline

#38 2014-01-19 08:27:07

pekka
Member
Registered: 2011-07-21
Posts: 104

Re: NVidia upgrade from 325 to 331 stuck at tty1

New fresh install.
and kdm not start.

kdm [399]: X server died during startup
kdm [399]: X server for display :0 cannot be started, session disabled

Is this still bug ??

Solution is add nvidia as a module in mkinitpio.conf

Offline

#39 2014-01-19 11:43:49

pekka
Member
Registered: 2011-07-21
Posts: 104

Re: NVidia upgrade from 325 to 331 stuck at tty1

I solved problems

Too quickly system


Fresh installation , no ntfs4 mount in fstab

But added ntfs4 mount in fstab ,boot prosses slow bit and kdm start rigt.

Amazing i have too quick speed the ligt speed system.

Offline

#40 2014-02-05 17:27:17

dwightjl
Member
Registered: 2013-10-23
Posts: 8

Re: NVidia upgrade from 325 to 331 stuck at tty1

I encountered this same issue last night when I tried a fresh Arch install. I tried the fixes in this thread, but without success. I'm not using KDM, but GDM and Gnome 3, so maybe those fixes don't apply to me.

The 304.xx drivers work fine. Is there any word on a real fix for this problem? Ubuntu 14.04 with Kernel 3.13.1 and the 331.38 drivers works fine, why not Arch? Lots of new users will be discouraged by this problem.

Is this something NVIDIA has to fix, or is it on our end?

Last edited by dwightjl (2014-02-05 17:28:29)

Offline

#41 2014-02-17 16:34:45

sirdeiu
Member
Registered: 2013-03-11
Posts: 10

Re: NVidia upgrade from 325 to 331 stuck at tty1

dwightjl wrote:

I encountered this same issue last night when I tried a fresh Arch install. I tried the fixes in this thread, but without success. I'm not using KDM, but GDM and Gnome 3, so maybe those fixes don't apply to me.

The 304.xx drivers work fine. Is there any word on a real fix for this problem? Ubuntu 14.04 with Kernel 3.13.1 and the 331.38 drivers works fine, why not Arch? Lots of new users will be discouraged by this problem.

Is this something NVIDIA has to fix, or is it on our end?

I'd like to know this also. Is this a NVIDIA driver problem or just systemd / kernel ?

Offline

#42 2014-02-17 20:32:05

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

Re: NVidia upgrade from 325 to 331 stuck at tty1

dwightjl wrote:

I encountered this same issue last night when I tried a fresh Arch install. I tried the fixes in this thread, but without success. I'm not using KDM, but GDM and Gnome 3, so maybe those fixes don't apply to me.

The 304.xx drivers work fine. Is there any word on a real fix for this problem? Ubuntu 14.04 with Kernel 3.13.1 and the 331.38 drivers works fine, why not Arch? Lots of new users will be discouraged by this problem.

Is this something NVIDIA has to fix, or is it on our end?

Are you sure you have the same problem? I also have GDM/Gnome and adding nvidia to the modules in /etc/mkinitcpio.conf and rebuild the kernel image solved the problem for me perfectly. Have you done all steps?

Offline

#43 2014-02-18 09:07:43

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: NVidia upgrade from 325 to 331 stuck at tty1

dwightjl wrote:

Is this something NVIDIA has to fix, or is it on our end?

If in doubt, it's nvidia's fault.

Offline

#44 2014-02-18 20:41:04

sirdeiu
Member
Registered: 2013-03-11
Posts: 10

Re: NVidia upgrade from 325 to 331 stuck at tty1

brain0 wrote:
dwightjl wrote:

Is this something NVIDIA has to fix, or is it on our end?

If in doubt, it's nvidia's fault.


But why did it work OK before ?

Offline

#45 2014-02-19 09:32:29

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: NVidia upgrade from 325 to 331 stuck at tty1

sirdeiu wrote:
brain0 wrote:
dwightjl wrote:

Is this something NVIDIA has to fix, or is it on our end?

If in doubt, it's nvidia's fault.


But why did it work OK before ?

Ask nvidia.

Offline

#46 2017-02-27 04:54:07

m33b0
Member
Registered: 2017-02-27
Posts: 10

Re: NVidia upgrade from 325 to 331 stuck at tty1

brain0 wrote:

That is normal and you should remember it when you get actual instabilities. I run nvidia together with efifb and experience no problems so far.

Anyway, I seem to have solved the problem for me, just create two files:

# /etc/udev/rules.d/99-make-udev-drm-aware.rules

SUBSYSTEM=="drm", TAG+="systemd"
# /etc/systemd/system/kdm.service.d/10-wait-for-card.conf

[Unit]
Wants=dev-dri-card0.device
After=dev-dri-card0.device

I do apologize for bumping an old thread, but I cannot find this answer anywhere I've looked. I do not use KDE nor kdm, thus I have "kdm.service.d" directory. So where exactly should I put the 10-wait-for-card.conf file so that it starts automatically with systemd? Thanks for any help.

Offline

#47 2017-02-27 05:38:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: NVidia upgrade from 325 to 331 stuck at tty1

You have been warned once about necrobumping. This is your last warning.


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB