LinuxQuestions.org
Visit Jeremy's Blog.
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 04-19-2020, 07:29 AM   #16
lukeer
Member
 
Registered: Feb 2013
Posts: 51

Original Poster
Rep: Reputation: Disabled

There's news to this issue:

SystemRescueCD works.
It's based on arch. Manjaro is also based on arch. I can boot a live Manjaro from USB flash drive.
Manjaro, booted live, works.
Manjaro, installed from that very USB flash drive, shows the same colour confusion that Debian 10.2 does.

I can get Debian to work if I first boot the Manjaro live system, reboot from there (without power cycling) into GRUB and then start Debian with the kernel parameter "video=1920x1080-32@60eD" instead of the "nomodeset" that I used earlier.

How can I find out what Manjaro (booted from the flash drive) does to the graphics card so it can later work with Debian?
 
Old 04-19-2020, 08:19 AM   #17
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,501

Rep: Reputation: 826Reputation: 826Reputation: 826Reputation: 826Reputation: 826Reputation: 826Reputation: 826
Quote:
Originally Posted by lukeer View Post
How can I find out what Manjaro (booted from the flash drive) does to the graphics card so it can later work with Debian?
You could try comparing the Xorg.0.logs each generates. Also check if either utilizes /etc/X11/xorg*.conf files for video configuration.
 
Old 04-21-2020, 01:00 AM   #18
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 14,512
Blog Entries: 9

Rep: Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038
Quote:
Originally Posted by lukeer View Post
Manjaro, booted live, works.
Manjaro, installed from that very USB flash drive, shows the same colour confusion that Debian 10.2 does.
(...)
How can I find out what Manjaro (booted from the flash drive) does to the graphics card so it can later work with Debian?
Compare what graphics drivers it uses.
I'm pretty sure the live system uses the fallback driver, and the installed system will use nouveau for Nvidia cards.
Nouveau (open source, reverse engineered) is known to not work so well with older cards.
You will most likely benefit from the suitable proprietary driver.

You can also try mrmazda's approach but I'm not too familiar with it.

Compare the output of this command (and also show us):
Code:
lspci -k | grep -iEA5 'vga|3d|display'
FWIW, I am about 99% sure that we're starting to go in circles here, you just need to settle on one distro and then fix the problem by following advice already given.
 
Old 04-21-2020, 02:11 AM   #19
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,501

Rep: Reputation: 826Reputation: 826Reputation: 826Reputation: 826Reputation: 826Reputation: 826Reputation: 826
Did you upgrade to 10.3 after installing 10.2?
 
Old 04-23-2020, 01:45 PM   #20
lukeer
Member
 
Registered: Feb 2013
Posts: 51

Original Poster
Rep: Reputation: Disabled
Another update: The kernel parameter "video=..." actually does not change anything. Booting a working configuration and rebooting from there suffices.
 
Old 04-23-2020, 01:48 PM   #21
lukeer
Member
 
Registered: Feb 2013
Posts: 51

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
You will most likely benefit from the suitable proprietary driver.
I'm afraid I'm out of luck here since the last proprietary driver that supports my card is not available any more. The last Debian version that came with it was 9.

Last edited by lukeer; 04-23-2020 at 02:23 PM.
 
Old 04-24-2020, 04:44 AM   #22
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 14,512
Blog Entries: 9

Rep: Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038
^ It doesn't have to "come with the Debian version".
You said yourself you need nvidia-legacy-304xx, that's still available from nvidia.com.
 
1 members found this post helpful.
Old 05-17-2020, 02:51 AM   #23
lukeer
Member
 
Registered: Feb 2013
Posts: 51

Original Poster
Rep: Reputation: Disabled
Thank you. As obvious as this seems, I didn't think of that one.

But it has its own issues:
That download from the nvidia site seems to be a script that needs to compile something on the target system. So I installed linux-source and linux-headers for my current kernel plus gcc and make. With all this, the script starts compiling but ends with an error. The log says this:
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri May 15 21:13:36 2020
installer version: 304.137

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> License accepted.
-> Installing NVIDIA driver version 304.137.
WARNING: The path to the `modprobe` utility reported by '/proc/sys/kernel/modprobe', `/sbin/modprobe`, differs from the path determined by `nvidia-installer`, `/usr/sbin/modprobe`.  Please verify that `/sbin/modprobe` works correctly and correct the path in '/proc/sys/kernel/modprobe' if it does not.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/4.19.0-9-amd64/source'
-> Kernel output path: '/lib/modules/4.19.0-9-amd64/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/4.19.0-9-amd64/source SYSOUT=/lib/modules/4.19.0-9-amd64/build'...
   NVIDIA: calling KBUILD...
(Many compiler warnings about comparing between different signed variables)
Code:
   /tmp/selfgz930/NVIDIA-Linux-x86_64-304.137/kernel/nv.c: In function ‘nv_start_rc_timer’:
   /tmp/selfgz930/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:3032:5: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
        init_timer(&nvl->rc_timer);
        ^~~~~~~~~~
        init_timers
   /tmp/selfgz930/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:3033:28: error: assignment to ‘void (*)(struct timer_list *)’ from incompatible pointer type ‘void (*)(long unsigned int)’ [-Werror=incompatible-pointer-types]
        nvl->rc_timer.function = nv_kern_rc_timer;
                               ^
   /tmp/selfgz930/NVIDIA-Linux-x86_64-304.137/kernel/nv.c:3034:18: error: ‘struct timer_list’ has no member named ‘data’
        nvl->rc_timer.data = (unsigned long) nv;
                     ^
   cc1: some warnings being treated as errors
   make[4]: *** [/usr/src/linux-headers-4.19.0-9-common/scripts/Makefile.build:309: /tmp/selfgz930/NVIDIA-Linux-x86_64-304.137/kernel/nv.o] Fehler 1
   make[3]: *** [/usr/src/linux-headers-4.19.0-9-common/Makefile:1537: _module_/tmp/selfgz930/NVIDIA-Linux-x86_64-304.137/kernel] Fehler 2
   make[2]: *** [Makefile:146: sub-make] Fehler 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [Makefile:261: module] Fehler 1
   make: *** [makefile:59: module] Fehler 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
Those two differing modprobes both seem to work.

Any thoughts on what went wrong with the installer here?
 
Old 05-17-2020, 03:16 AM   #24
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 14,512
Blog Entries: 9

Rep: Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038Reputation: 4038
Which download?
AFAIK Nvidia drivers are NOT open source so there's nothing to compile.
 
Old 05-17-2020, 04:39 AM   #25
lukeer
Member
 
Registered: Feb 2013
Posts: 51

Original Poster
Rep: Reputation: Disabled
I went to nvidia's website
https://www.nvidia.de/Download/drive...aspx/123843/de

and downloaded this one:
https://www.nvidia.de/content/Driver...e&type=GeForce

My wild guess: The driver itself may be closed source, but it requires some patch that is not included in the standard linux kernel. The installer script compiles that part on the target machine for the closed driver to work.

But your remark leads me to the assumption that this is not the usual behaviour?
 
  


Reply

Tags
driver, nvidia


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] After having a successful installation of Debian Buster, Lenovo computer refuses to boot into Debian Buster 10.2 PicardDefendingData Debian 4 12-21-2019 07:51 PM
LXer: Debian Outs First Linux Kernel Security Update for Debian GNU/Linux 10 "Buster" LXer Syndicated Linux News 0 07-30-2019 01:03 AM
LXer: SparkyLinux 5.4 "Nibiru" Operating System Released Based on Debian 10 "Buster" LXer Syndicated Linux News 0 06-11-2018 09:18 PM
LXer: Debian 11 "Bullseye" and Debian 12 "Bookworm" Are Coming After Debian 10 "Buster" LXer Syndicated Linux News 0 04-18-2018 12:26 PM
Installing Nvidia 6800 driver for ubuntu server bowbalitic Linux - Newbie 6 08-22-2009 11:06 AM

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

All times are GMT -5. The time now is 11:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration