The officially official Devuan Forum!

You are not logged in.

#1 2020-10-12 17:01:44

kapqa
Member
Registered: 2019-01-02
Posts: 214  

Changing from amd to nvidia card

alright, now i have everything installed, and next problem comes up:

how can i properly switch to nvidia card?
i have two monitors setup, and triple boot /(devuan , windows 7, ubuntu 18.04).

after changing from amd to nvidia card, only devuan seems to boot.

now, i suppose, i need to just to deinstall the firmware-amd-graphics on devuan and install nvidia driver package?
but what to do on ubuntu, if it would not boot properly, and on windows?

do i need to put the other card back in and preopare already the machine with the nvidia drivers in place?

thank you.

EDIT: i understand that the nouveau driver functions also so as it is,
but i tried with display manager on xfce to change the monitor setup, and the result was that i could not longer access most part of the screens that seemed somhow frozen and could only be maneauvred by clicking in the leftover part, practically clicking blind over the place -

Last edited by kapqa (2020-10-12 17:05:34)

Offline

#2 2020-10-12 17:07:51

kapqa
Member
Registered: 2019-01-02
Posts: 214  

Re: Changing from amd to nvidia card

the graphics is rtx 1650

 lspci -nn | egrep -i "3d|display|vga"
07:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1f82] (rev a1)

and debian wiki says

The proprietary "NVIDIA Accelerated Linux Graphics Driver" provides optimized hardware acceleration of OpenGL and Vulkan applications through either Xorg or Wayland. It is a binary-only driver requiring a Linux kernel module for its use.

Multiple precompiled driver versions are available for Debian 10 "Buster":

    Version 450.66 (supported devices)
        Supports Kepler, Maxwell, Pascal, and all current Turing GPUs. Supports Vulkan 1.2 and OpenGL 4.6.
        Note that 450.66 is currently only available in buster-backports.

Offline

#3 2020-10-12 17:24:32

blackhole
Member
Registered: 2020-03-16
Posts: 29  

Re: Changing from amd to nvidia card

That kind of output from lspci usually inidicates unsupported hardware.

You'll need the proprietary driver from backports and likely a new kernel as well... as this is recent hardware.

Last edited by blackhole (2020-10-12 17:30:49)

Offline

#4 2020-10-12 17:55:45

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,142  
Website

Re: Changing from amd to nvidia card

kapqa wrote:

after changing from amd to nvidia card

You should probably open a new thread for the NVIDIA card, it is off-topic for this one.

If you use the "report" button on your post and ask nicely @admin might split it out for you.


Black Lives Matter

Offline

#5 2020-10-12 19:54:07

kapqa
Member
Registered: 2019-01-02
Posts: 214  

Re: Changing from amd to nvidia card

@head_on_a_Stick, thanks, good suggestion.

@blackhole, yes, probably unsupported, as i just installed devuan beowulf anew (with nividia 1650)
and it would not go into "X"; so i was greeted with terminal window instead;

installing

nvidia-driver

does not resolve, well at least it gives a graphical desktop, but blocks the terminal thereafter with "nvidia-persistenced".

if i need backports, i will try those.

EDIT: tried also installing the drivers from bakcports,
i am still getting "nvidia-persistenced" error.


please someone write a small guide on how to properly install nvidia-drivers, not just the legacy ones.

Last edited by kapqa (2020-10-12 20:00:33)

Offline

#6 2020-10-12 22:08:24

Marjorie
Member
From: Teignmouth, UK
Registered: 2019-06-09
Posts: 90  

Re: Changing from amd to nvidia card

Unless you want to use CUDA you don't need nvidia-persistenced. Delete or disable it.
I also have a fix for one of the problems you can have with it. Of course, your problem may be different.

See https://dev1galaxy.org/viewtopic.php?pid=24457#p24457

Offline

#7 2020-10-13 03:43:59

GlennW
Member
Registered: 2019-07-18
Posts: 47  

Re: Changing from amd to nvidia card

I've just put this together, I hope it helps :-)

Installing nVidia drivers from nVidia.com .run blob.

The first thing I do after installing a new kernel and headers (and sometimes the source too)
and any firmware packages you may require for your motherboard/chipset maker is

remove any nvidia packages... see Majorie's instuctions above to do that. Thank you Majorie :-)

get the nvidia binary blob...go to:

https://www.nvidia.com/Download/index.aspx?lang=en-us

(I'm in Australia, so US english is close to the language we use here ;-) ymmv

The latest one I have is: NVIDIA-Linux-x86_64-450.80.02.run

I have a GeForce GTX 1060 grapgics card

I'm running kernel version from Devuan 3.0 Beowulf back ports (bpo)

uname -a : Linux GamesBox 5.8.0-0.bpo.2-amd64 #1 SMP Debian 5.8.10-1~bpo10+1 (2020-09-26) x86_64 GNU/Linux

edit grub to nullify the nouveau driver (kernel module) and set the screen size so it's workable with out a gui.

I do that by editing grub at boot,

you will have to be quick to interupt the automagic booting of the system.

Just use the arrow key to interup it.

with the down arrow key (v) goto:

*Advanced Options for Devuan GNU/Linux

and hit enter

use the arrow again to select "your kernel (recovery mode)" line, mine is,

Devuan GNU/Linux, with Linux 5.8.0-0.bpo.2.amd64 (recovery mode)

and hit "e" to edit

Next thing you should see is the grub file... use the arrow key to move down to the "linux" line

it says something like this but your UUID and kernel name may be different,

linux	/boot/vmlinuz-5.8.0-0.bpo.2-amd64 root=UUID=c2e432ce-5ac7-46f7-a00d-1982f970d1d1 ro single

Add these commands to the end of the line:

nokmsboot nouveau.modeset=0 vga=794

then press ctrl-x or F10 to boot

login as root, type in the password and hit enter

ctrl-d will just let the system keep booting, so watch out for that.

cd to the directory where you saved the nvidia .run file

type

sh NVIDIA-Linux-x86_64-450.80.02.run

and hit enter and follow the directions.

reboot the system and hopefully you should be presented with your desktop gui.


note: I use this backup of the grub(2) default file in /etc after the system is running to keep the settings:

the file, /etc/default/grub

add these commands to the line GRUB_CMDLINE_LINUX_DEFAULT=

GRUB_CMDLINE_LINUX_DEFAULT="nokmsboot nouveau.modeset=0 console=tty12 vga=794"

you may not need the console=tty12 part, but I use it to see what's going on if something breaks.

rsync -avh /home/glenn/local/other/backup/backup-etc-sys/etc/default/grub /etc/default/
chown root:root /etc/default/grub
chmod a+rx /etc/default/grub
update-grub

any questions or errors? please post back here.

regards Glenn

Offline

#8 2020-10-13 06:42:51

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,142  
Website

Re: Changing from amd to nvidia card

GlennW wrote:

Installing nVidia drivers from nVidia.com .run blob.

Note that the kernel module will have to be rebuilt manually every time the kernel is updated. The nvidia-driver package in the repositories will do this automatically via DKMS (v450.66 is currently available from beowulf-backports).


Black Lives Matter

Offline

#9 2020-10-13 11:36:11

GlennW
Member
Registered: 2019-07-18
Posts: 47  

Re: Changing from amd to nvidia card

Head_on_a_Stick wrote:
GlennW wrote:

Installing nVidia drivers from nVidia.com .run blob.

Note that the kernel module will have to be rebuilt manually every time the kernel is updated. The nvidia-driver package in the repositories will do this automatically via DKMS (v450.66 is currently available from beowulf-backports).

The nvidia installer gives you an option to build with dkms support. :-) to aid when upgrading the kernel.

Offline

#10 2020-11-04 18:08:20

kapqa
Member
Registered: 2019-01-02
Posts: 214  

Re: Changing from amd to nvidia card

@GlennW , thank you, i tried your method, and it brought me a functioning desktop. However there were some error messages, one notably

WARNING: Unable to determine the path to install the libglvnd EGL vendor library config files. Check that you have pkg-config and the libglvnd development libraries installed, or specify a path with --glvnd -egl -config-path.

Offline

Board footer