Re: Request for updated Nvidia RPMS to 1.0-9631

Jon Nettleton <[email protected]>
Newsgroups gmane.linux.freshrpms.user
Message-ID <1166140373.2459.13.camel@averatec>
On Thu, 2006-12-14 at 19:44 -0200, Andre Costa wrote:
> On Wed, 13 Dec 2006 22:28:26 -0500
> Edward Rudd <[email protected]> wrote:
> 
> > Andre Costa wrote:
> > > On Wed, 13 Dec 2006 11:30:10 +0100
> > > Matthias Saou
> > > <thias@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net>
> > > wrote:
> > > 
> > >> Andre Costa wrote :
> > >>
> > >>> This brings me to the question: is there anyway to upgrade to a
> > >>> new nvidia driver without rebooting the machine? Using the .run
> > >>> file I know I can drop to runlevel 2 or 3 and run xxx.run -aqn
> > >>> and old driver will be replaced, going back to runlevel 5 uses
> > >>> the updated version. Is something similar possible with dkms? Or
> > >>> is reboot the only way?
> > >> I haven't tried it, but switching to runlevel 2 or 3, then doing :
> > >>
> > >> modprobe -r nvidia
> > >> lsmod | grep nvidia
> > >>
> > >> And checking that the old module is no longer loaded, then
> > >> switching back to runlevel 5 should be enough.
> > > 
> > > Mmmh... indeed, looks like it could do it. I'll give it a try next
> > > time. Thks =)
> > 
> > I do that all the time.  Well Technically I just upgrade the package,
> > then log out and wait while X fails to start a few times and GDM
> > catches it and says "Hey, X is crashing alot! Do you want to look at
> > the logs??" Then I choose "no a few times" switch to console 1, log
> > in rmmod nvidia, then modprobe nvidia, and then finally "gdm-restart"
> > 
> 
> Cool, now I know it works =)
> 

If you want to be all crazy at some point, I have a script that to take
care of this.  Basically it backs up /etc/sysconfig/desktop and replaces
it with my file that sets DISPLAYMANAGER to nvidia-reload, and then
calls gdm-safe-restart.  When inittab reloads the inittab
calls /etc/X11/prefdm.  That script runs nvidia-reload, which unloads
the nvidia module and sets the /etc/sysconfig/desktop script back to the
original.  

It sounds complex but gets the upgrade done with a single command.
Calling gdm-safe-restart actually makes the whole upgrade process hang
out until all users log out.  I can post all that if anyone is
interested.

Jon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.