LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-22-2009, 07:28 AM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Rep: Reputation: 33
Updating nVidia driver.


I've just downloaded the latest nVidia driver for my 7300 graphic card. So, I would like to update the driver I have installed now.

The driver I downloaded is: NVIDIA-Linux-x86_64-185.18.36-pkg2.run

What are the best steps I should follow to update the driver?

Thanks!
 
Old 08-22-2009, 07:56 AM   #2
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
su
m-a update
m-a prepare
sh NVIDIA-Linux-x86_64-185.18.36-pkg2.run
 
Old 08-22-2009, 10:44 PM   #3
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by war1025 View Post
su
m-a update
m-a prepare
sh NVIDIA-Linux-x86_64-185.18.36-pkg2.run
Sorry for my poor knowledge but What does m-a mean?

Thanks again,
 
Old 08-22-2009, 10:55 PM   #4
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
I would do something different if upgrading my Nvidia driver...

I would switch to another tty (ctrl-alt-F3) then run these commands:

Code:
sudo su
Code:
killall -9 gdm
substitute GDM with KDM if using KDE

then
Code:
modprobe -r nvidia
this removes the nvidia module

then run
Code:
sh NVIDIA-Linux-x86_64-185.18.36-pkg2.run
and follow the Nvidia prompts.

I've done this many times when I used Debian. Worked always.

restart GDM or KDM

Code:
# /etc/init.d/gdm restart
then (ctrl-alt-F7) to return to desktop

Last edited by manwithaplan; 08-22-2009 at 10:56 PM.
 
Old 08-22-2009, 11:30 PM   #5
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by manwithaplan View Post
I would do something different if upgrading my Nvidia driver...

I would switch to another tty (ctrl-alt-F3) then run these commands:

Code:
sudo su
Code:
killall -9 gdm
substitute GDM with KDM if using KDE

then
Code:
modprobe -r nvidia
this removes the nvidia module

then run
Code:
sh NVIDIA-Linux-x86_64-185.18.36-pkg2.run
and follow the Nvidia prompts.

I've done this many times when I used Debian. Worked always.

restart GDM or KDM

Code:
# /etc/init.d/gdm restart
then (ctrl-alt-F7) to return to desktop
Thanks for your suggestion.

I've tried to use your solution but after the command:

# modprobe -r nvidia

I get the following message:

module nvidia is in use

What am I missing?
 
Old 08-22-2009, 11:35 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
That means that the driver is still in use, because either one of Xorg, or GDM, or KDM, or XDM, are still running.

Depending on the OS, you need to switch to a runlevel where the graphical desktop environment is not turned on.

Commonly, init 4 is the graphical runlevel, so anything less than 4 is suitable for installing the nvidia driver.

On some Debian systems and Ubuntu, I believe init 5 is the graphical runlevel, so you need to be in init 4 or 3 or 2 and then kill all processes related to X, before removing the running driver and executing the nvidia installer.

You might try:

/etc/init.d/gdm stop

in place of the killall -9 gdm command. Might work.

Sasha

Last edited by GrapefruiTgirl; 08-22-2009 at 11:36 PM.
 
Old 08-22-2009, 11:40 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
PS - another option, if your kernel supports it, would be:

modprobe -rf nvidia

which tries to FORCE the module to unload. It isn't recommended, and may cause undesired behaviour, so it's not near the top of the list of things to try

Sasha
 
Old 08-22-2009, 11:56 PM   #8
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Are you using Gnome or KDE..? you need to ctrl-alt-F3 then follow GrapefruiTgirl advice and

Code:
/etc/init.d/gdm stop
or
Code:
/etc/init.d/kdm stop
or
Code:
killall -9 gdm
or
Code:
 killall -9 kdm
You need to end the X session.

then after the driver update do
Code:
/etc/init.d/gdm start
or
Code:
/etc/init.d/kdm start
then switch to the default tty ctrl-alt-F7

Last edited by manwithaplan; 08-22-2009 at 11:58 PM.
 
Old 08-23-2009, 12:00 AM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Right, and in further addition to what manwithaplan and I have written, issuing a final "killall X" after the above, would be a good additional measure -- gotta make sure all that X stuff is dead!!

Sasha
 
Old 08-24-2009, 09:13 AM   #10
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
He could also do this:

apt-get install module-assistant
m-a update
m-a prepare
m-a a-i nvidia

If that doesn't work then I'd try downloading the nvidia driver and runnign it. To get out of X you do need to stop gdm/kdm but he also needs to stop the desktop itself? ctrl+alt+backspace? I haven't used gdm/kdm in such a long time, does it still let the WM run even if you kill it?
 
Old 08-24-2009, 09:23 AM   #11
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Easiest way use smxi. Logout out of your desktop, ctrl+al+F1 login as root run smxi .
 
Old 08-24-2009, 09:39 AM   #12
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Maybe there should be a sticky regarding the install of Nvidia drivers for the Debian forum.
Looking at this thread there are three different methods mentioned.
If i was new to Linux and Debian in particular,i'd be really confused.
I'd be willing to write a how-to if it would help.
Perhaps one of the 'mods could comment here?.
 
Old 08-24-2009, 09:46 AM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Debian nVidia driver tutorial.

Quote:
Originally Posted by the trooper View Post
Maybe there should be a sticky regarding the install of Nvidia drivers for the Debian forum.
Looking at this thread there are three different methods mentioned.
If i was new to Linux and Debian in particular,i'd be really confused.
I'd be willing to write a how-to if it would help.
Perhaps one of the 'mods could comment here?.
I agree about the potential for confusion. I for one don't use Debian, and haven't used Ubuntu for a long time, so there are likely details I (for one) an unaware of regarding this install.

I'm not sure a sticky would be the way to go, but certainly a tutorial or article in the Wiki or "Linux Answers" department(s) would be ideal.

@ Trooper, thanks for the offer; if you'd like to write one, it would be appreciated by many, surely. We'd decide where to put it later.


Sasha
 
Old 08-24-2009, 09:46 AM   #14
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
Quote:
Originally Posted by the trooper View Post
Maybe there should be a sticky regarding the install of Nvidia drivers for the Debian forum.
Looking at this thread there are three different methods mentioned.
If i was new to Linux and Debian in particular,i'd be really confused.
I'd be willing to write a how-to if it would help.
Perhaps one of the 'mods could comment here?.
All of this is ran in root or sudo.

If your running debian the first method you try is the debian way which is this:

apt-get update
apt-get install module-assistant
m-a update
m-a prepare
m-a a-i nvidia

wait for it to compile and install and then run

apt-get install nvidia-glx

The other way is to use the nvidia drivers from the website, which you might still want to do the first half of the above just because it's easier.
apt-get update
apt-get install module-assistant
m-a update
m-a prepare

sh NVIDIA-Linux-x86_64-185.18.36-pkg2.run

Now if you do it that way you might get an error if xorg-xserver is running, so your going to have to kill gdm/kdm and any other X servers. Once they are stopped you can run 'sh NVIDIA-Linux-x86_64-185.18.36-pkg2.run' again.

The smxi I haven't seen in any debian tutorials, though I haven't really searched in a while for about 4 years now. lol Once I found out about module-assistant it all became pretty simple.

[edit]
http://wiki.debian.org/NvidiaGraphicsDrivers

Wiki says there are 4 ways, now I shortened the module-assistant commands, the method I posted is the latest.

The wiki seems old =( You can download the source.deb or .tar files but you can also just run the installer via 'sh NVIDIA-Linux-x86_64-185.18.36-pkg2.run' and that would cover building it from source.

http://www.mepis.org/docs/en/index.p...ian/Nvidia_way

Last edited by mushroomboy; 08-24-2009 at 09:54 AM.
 
Old 08-24-2009, 10:15 AM   #15
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
@ Trooper, thanks for the offer; if you'd like to write one, it would be appreciated by many, surely. We'd decide where to put it later
No problem.
Would it be best to start a new thread for the how-to,or post it onto this one?.
Although it looks like mushroomboy has done half the work already!.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot use projector after updating xorg and nvidia driver laissezfaire Linux - Hardware 6 10-09-2007 09:19 AM
Updating NVidia Driver - Linux RySk8er30 Mandriva 4 02-07-2005 06:48 AM
Can't start X after updating Nvidia driver with YOU. maxrussell SUSE / openSUSE 3 10-27-2004 06:44 PM
Updating Driver For Nvidia Geforce FX 5200 DozenEggs Linux - Hardware 2 07-17-2004 09:25 PM
installing nvidia driver - updating confirmation bigjohn Linux - Newbie 1 02-29-2004 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration