How to set nvidia on hold?

If none of the more specific forums is the right place to ask

How to set nvidia on hold?

Postby kalle123 » 2019-03-13 17:28

Just learned, that my GPU does not support the nvidia 410.93-2 driver.

Have to set the 390.87-8 driver on hold.

Command should be like this
Code: Select all
~$ sudo apt-mark hold "package"


But I am not sure, what the exact command line should be.

A simple
Code: Select all
~$ sudo apt-mark hold nvidia-390


won't do.

Can someone please advise. :wink:
User avatar
kalle123
 
Posts: 229
Joined: 2015-03-21 11:17
Location: Rhineland - Germany

Re: How to set nvidia on hold?

Postby Head_on_a_Stick » 2019-03-13 18:55

Pin it.

See apt_preferences(5).
User avatar
Head_on_a_Stick
 
Posts: 10493
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to set nvidia on hold?

Postby Wheelerof4te » 2019-03-13 19:50

Switch to nouveau open-source driver.
Wheelerof4te
 
Posts: 1423
Joined: 2015-08-30 20:14

Re: How to set nvidia on hold?

Postby kalle123 » 2019-03-13 21:10

@Head_on_a_Stick

Seems, you pointed me in the right direction :D

Think, a
Code: Select all
Package: /(nvidia)/
Pin: release *
Pin-Priority: -5

did it.

@Wheelerof4te

Thank you. At least you did not advise me, to go back to Windows :lol:
User avatar
kalle123
 
Posts: 229
Joined: 2015-03-21 11:17
Location: Rhineland - Germany

Re: How to set nvidia on hold?

Postby Wheelerof4te » 2019-03-13 21:33

^I advised the switching because pinning can only get you so far. Someday you will need to upgrade. Nouveau maybe has worse performance, but it gives headache-free experience similar to current AMD drivers.
Wheelerof4te
 
Posts: 1423
Joined: 2015-08-30 20:14

Re: How to set nvidia on hold?

Postby kalle123 » 2019-03-14 05:55

After a long and trouble free time with nvidia under linux, at the moment, I am feed up with that company.

I'll change the graphic board in near future, but at the moment, it's ok with pinning.

Thinking of changing over to AMD.

Was keeps me away from the nouveau, is gpu fan control.
User avatar
kalle123
 
Posts: 229
Joined: 2015-03-21 11:17
Location: Rhineland - Germany

Re: How to set nvidia on hold?

Postby kalle123 » 2019-03-14 09:59

But let me ask, would a simple

Code: Select all
~$ sudo apt-mark hold *nvidia*


also be ok? Or is it advisable, to use

Code: Select all
Package: /(nvidia)/
Pin: release *
Pin-Priority: -5
User avatar
kalle123
 
Posts: 229
Joined: 2015-03-21 11:17
Location: Rhineland - Germany

Re: How to set nvidia on hold?

Postby Wheelerof4te » 2019-03-14 11:45

The driver you need is still present in Buster. The difference is that it's now considered legacy and labeled as such. You don't have to hold anything, just install the legacy driver recommended by nvidia-detect. Remove the current one first, of course.
Wheelerof4te
 
Posts: 1423
Joined: 2015-08-30 20:14

Re: How to set nvidia on hold?

Postby John812 » 2019-04-05 03:49

TL;DR Use this command:

Code: Select all
sudo apt-mark hold nvidia-346


Example:

Code: Select all
% sudo apt-mark hold nvidia-346 
nvidia-346 set on hold.


And the unhold:

sudo apt-mark unhold nvidia-346
Example:

Code: Select all
% sudo apt-mark unhold nvidia-346
Canceled hold on nvidia-346.


From man apt-mark

Code: Select all
hold
   hold is used to mark a package as held back, which will prevent the package from being automatically installed, upgraded or removed. The command is only a wrapper around dpkg --set-selections and the state is
   therefore maintained by dpkg(1) and not affected by the --file option.
unhold
   unhold is used to cancel a previously set hold on a package to allow all actions again.
John812
 
Posts: 1
Joined: 2019-04-05 03:45

Re: How to set nvidia on hold?

Postby stevepusser » 2019-04-06 19:39

John812 wrote:TL;DR Use this command:

Code: Select all
sudo apt-mark hold nvidia-346


Example:

Code: Select all
% sudo apt-mark hold nvidia-346 
nvidia-346 set on hold.


And the unhold:

sudo apt-mark unhold nvidia-346
Example:

Code: Select all
% sudo apt-mark unhold nvidia-346
Canceled hold on nvidia-346.


From man apt-mark

Code: Select all
hold
   hold is used to mark a package as held back, which will prevent the package from being automatically installed, upgraded or removed. The command is only a wrapper around dpkg --set-selections and the state is
   therefore maintained by dpkg(1) and not affected by the --file option.
unhold
   unhold is used to cancel a previously set hold on a package to allow all actions again.


Where on earth did you pull nvidia-346 from, since the OP never mentioned it and there's no such package?
Just asking... :roll:

Nividia-legacy-390xx drivers are the answer to the OP's problem, as noted already.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: llvm-8 toolchain, Rustc 1.36, wine-staging 4.16, Telegram-desktop 1.8.8, Pale Moon 28.7.1, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11159
Joined: 2009-10-06 05:53


Return to General Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable