• Re: Re: nouveau on old NV GPUs (was: NVidia 340 video driver in Bookwor

    From Hans@21:1/5 to All on Wed Jul 3 23:30:01 2024
    This is a multi-part message in MIME format.

    Hi van Snyder,

    I believe I got a solution. However, you may not be happy with it, but maybe it will work.



    I am running the kernel 6.7.12+bpo-amd64 on my system. This is a backport kernel, but it
    might also work with other kernels, too.

    You also need to install the build environment, the easiest way is to use module-assistant.

    If you got this set and installed linux-headers and so on, then do the following:

    First, enter the line for sid into your /etc/apt/sources.list

    deb http://deb.debian.org/debian/ sid main contrib non-free non-free-firmware

    then do

    apt update

    apt install nvidia-legacy-340xx-driver firmware-misc-nonfree

    This should install all necessary files and build the kernel module. Here it did work. However, I
    had to use 390xx instead of 340xx, but both built here fine.

    After it, reboot and try again if it is working.

    Sometimes, nvidia-detect says, use 340xx-legacy, but I had some cases, where I in real had to
    use 390xx. So, if 340xx is not working, try 390xx.

    Note: Do NOT upgrade any other files! I suggest, after installing both packages as above,
    remove the sid entry from sources.list and do again an
    apt update. Thus you are not going into the danger, to install any more packages from sid.

    If you need bumblebee or primusrun, because you have two GPUs (one in the CPU and one
    extern), then use the packages from stable. This will work!

    My notebook is a Lenovo T520 with Intel CPU (and internal Intel GPU) and also NVidia GPU as
    external GPU (soldered on mainboard). I have to use optimus, to get my external GPU.

    I got my information from this site.

    https://wiki.debian.org/NvidiaGraphicsDrivers[1]

    Hope, this helps.

    Ah, and last but not least: Big thanks to the lads and guys, who made 340xx and 390xx
    buildable again, great work! Big big thank you!!!

    Here on my system, 390xx is working like a charm.

    Good luck!

    Hans

    --------
    [1] https://wiki.debian.org/NvidiaGraphicsDrivers

    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    </head>
    <body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hi van Snyder,</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I believe I got a solution. However, you may not be happy with it, but maybe it will work.</p>
    <br /><br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I am running the kernel 6.7.12+bpo-amd64 on my system. This is a backport kernel, but it might also work with other kernels, too.</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Verdana;">You also need to install the build environment, the easiest way is to use module-assistant.</span><br /></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">If you got this set and installed linux-headers and so on, then do the following:</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">First, enter the line for sid into your /etc/apt/sources.list</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;<span style="font-family:Hack;">deb http://deb.debian.org/debian/ sid main contrib non-free non-free-firmware</span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">then do </p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">apt update</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">apt install nvidia-legacy-340xx-driver firmware-misc-nonfree</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">This should install all necessary files and build the kernel module. Here it did work. However, I had to use 390xx instead of 340xx, but both built here fine.</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">After it, reboot and try again if it is working.</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Sometimes, nvidia-detect says, use 340xx-legacy, but I had some cases, where I in real had to use 390xx. So, if 340xx is not working, try 390xx.</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Note: Do NOT upgrade any other files! I suggest, after installing both packages as above, remove the sid entry from sources.list and do again an </p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">apt update. Thus you are not going into the danger, to install any more packages from sid.</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">If you need bumblebee or primusrun, because you have two GPUs (one in the CPU and one extern), then use the packages from stable. This will work!</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">My notebook is a Lenovo T520 with Intel CPU (and internal Intel GPU) and also NVidia GPU as external GPU (soldered on mainboard). I have to use optimus, to get my external GPU.</

    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I got my information from this site.</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="https://wiki.debian.org/NvidiaGraphicsDrivers">https://wiki.debian.org/NvidiaGraphicsDrivers</a></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hope, this helps. </p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Ah, and last but not least: Big thanks to the lads and guys, who made 340xx and 390xx buildable again, great work! Big big thank you!!! </p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Here on my system, 390xx is working like a charm.</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Good luck!</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hans </p>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew M.A. Cater@21:1/5 to Van Snyder on Thu Jul 4 23:00:02 2024
    On Thu, Jul 04, 2024 at 01:24:21PM -0700, Van Snyder wrote:
    On Wed, 2024-07-03 at 23:24 +0200, Hans wrote:
    Hi van Snyder,

    I believe I got a solution. However, you may not be happy with it,
    but maybe it will work.

    The solution did indeed allow to install the driver. But.... it removed
    at least KDE, and now it won't enter run level 5. I added
    nouveau.modeset=0 to the "linux" line in grub.cfg, but it's still
    running the nouveau driver, or at least that's what inxi -G reports:


    Hi,

    For the laptop - a clean install with nouveau _should_ work. Forget the
    Nvidia proprietary driver - it's no longer supported by them and if the Debian-packaged version is also obsolescent that's the end of it.


    I've been told that Mint includes NVidia drivers, so I'll try that
    next. I don't have a choice for my laptop, where the NVidia graphic
    chip is soldered to the mother board, but for my desktop if Mint
    doesn't work out, I'll give serious consideration to getting a
    supported video card from *not* NVidia.


    Linux Mint current version is based on Ubuntu 22.04 - so is also
    unlikely to have the drivers now. LMDE is based on Bookworm.
    The favoured desktop for Mint has always been Cinnamon, I think.

    Some older Nvidia cards for the desktop work relatively well with
    nouveau - I've got a 1050ti and a 1060? in two machines here which work
    well enough under GNOME.

     
    I got my information from this site.
     
    https://wiki.debian.org/NvidiaGraphicsDrivers


    The above is my usual go-to for Debian and Nvidia too

    Good luck and best wishes, however it all works out

    Andy
    (amacater@debian.org)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Van Snyder@21:1/5 to Hans on Thu Jul 4 22:30:01 2024
    On Wed, 2024-07-03 at 23:24 +0200, Hans wrote:
    Hi van Snyder,

    I believe I got a solution. However, you may not be happy with it,
    but maybe it will work.

    The solution did indeed allow to install the driver. But.... it removed
    at least KDE, and now it won't enter run level 5. I added
    nouveau.modeset=0 to the "linux" line in grub.cfg, but it's still
    running the nouveau driver, or at least that's what inxi -G reports:

    # inxi -G
    Graphics:
    Device-1: NVIDIA G86M [GeForce 8400M GS] driver: N/A
    Device-2: OmniVision OV2640 Webcam driver: uvcvideo type: USB
    Display: unspecified server: X.org v: 1.21.1.7 with: Xwayland v: 24.1.0
    driver: X: loaded: modesetting unloaded: fbdev,vesa dri: nouveau gpu:
    N/A
    API: EGL v: N/A drivers: N/A platforms: N/A
    API: OpenGL Message: GL data unavailable for root.

    I tried "apt install kde\*" but it refused, saying "you have held
    broken packages."

    I've been told that Mint includes NVidia drivers, so I'll try that
    next. I don't have a choice for my laptop, where the NVidia graphic
    chip is soldered to the mother board, but for my desktop if Mint
    doesn't work out, I'll give serious consideration to getting a
    supported video card from *not* NVidia.




    I am running the kernel 6.7.12+bpo-amd64 on my system. This is a
    backport kernel, but it might also work with other kernels, too.

    You also need to install the build environment, the easiest way is to
    use module-assistant.
    If you got this set and installed linux-headers and so on, then do
    the following:

    First, enter the line for sid into your /etc/apt/sources.list

     deb http://deb.debian.org/debian/ sid main contrib non-free non- free-firmware

    then do

    apt update

    apt install nvidia-legacy-340xx-driver firmware-misc-nonfree

    This should install all necessary files and build the kernel module.
    Here it did work. However, I had to use 390xx instead of 340xx, but
    both built here fine.

    After it, reboot and try again if it is working.

    Sometimes, nvidia-detect says, use 340xx-legacy, but I had some
    cases, where I in real had to use 390xx. So, if 340xx is not working,
    try 390xx.

    Note: Do NOT upgrade any other files! I suggest, after installing
    both packages as above, remove the sid entry from sources.list and do
    again an
    apt update. Thus you are not going into the danger, to install any
    more packages from sid.

    If you need bumblebee or primusrun, because you have two GPUs (one in
    the CPU and one extern), then use the packages from stable. This will
    work!

    My notebook is a Lenovo T520 with Intel CPU (and internal Intel GPU)
    and also NVidia GPU as external GPU (soldered on mainboard). I have
    to use optimus, to get my external GPU.
     
    I got my information from this site.
     
    https://wiki.debian.org/NvidiaGraphicsDrivers

    Hope, this helps.

    Ah, and last but not least: Big thanks to the lads and guys, who made
    340xx and 390xx buildable again, great work! Big big thank you!!!

    Here on my system, 390xx is working like a charm.

    Good luck!

    Hans


    <html><head>

    </head>
    <body><div>On Wed, 2024-07-03 at 23:24 +0200, Hans wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hi van Snyder,</p><div><
    </div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I believe I got a solution. However, you may not be happy with it, but maybe it will work.</p></blockquote><div><br></div><div>The solution did indeed allow to install the
    driver. But.... it removed at least KDE, and now it won't enter run level 5. I added nouveau.modeset=0 to the "linux" line in grub.cfg, but it's still running the nouveau driver, or at least that's what inxi -G reports:</div><div><br></div><div># inxi -G<
    /div><div>Graphics:</div><div> Device-1: NVIDIA G86M [GeForce 8400M GS] driver: N/A</div><div> Device-2: OmniVision OV2640 Webcam driver: uvcvideo type: USB</div><div> Display: unspecified server: X.org v: 1.21.1.7 with: Xwayland v: 24.1.0</div><div>
    driver: X: loaded: modesetting unloaded: fbdev,vesa dri: nouveau gpu: N/A</div><div> API: EGL v: N/A drivers: N/A platforms: N/A</div><div> API: OpenGL Message: GL data unavailable for root.</div><div><br></div><div>I tried "apt install kde\*" but it
    refused, saying "you have held broken packages."</div><div><br></div><div>I've been told that Mint includes NVidia drivers, so I'll try that next. I don't have a choice for my laptop, where the NVidia graphic chip is soldered to the mother board, but for
    my desktop if Mint doesn't work out, I'll give serious consideration to getting a supported video card from *not* NVidia.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br><br><
    </div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I am running the kernel 6.7.12+bpo-amd64 on my system. This is a backport kernel, but it might also work with other kernels, too.</p><div><br></div><p style="margin-top:0;
    margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Verdana;">You also need to install the build environment, the easiest way is to use module-assistant.</span><br></p><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:
    0;">If you got this set and installed linux-headers and so on, then do the following:</p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">First, enter the line for sid into your /etc/apt/sources.list</p><div><br></div><
    p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;<span style="font-family:Hack;">deb http://deb.debian.org/debian/ sid main contrib non-free non-free-firmware</span></p><div><br></div><p style="margin-top:0;margin-bottom:0;
    margin-left:0;margin-right:0;">then do </p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">apt update</p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">apt install nvidia-legacy-
    340xx-driver firmware-misc-nonfree</p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">This should install all necessary files and build the kernel module. Here it did work. However, I had to use 390xx instead of 340xx,
    but both built here fine.</p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">After it, reboot and try again if it is working.</p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">
    Sometimes, nvidia-detect says, use 340xx-legacy, but I had some cases, where I in real had to use 390xx. So, if 340xx is not working, try 390xx.</p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Note: Do NOT upgrade
    any other files! I suggest, after installing both packages as above, remove the sid entry from sources.list and do again an </p><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">apt update. Thus you are not going into the danger, to
    install any more packages from sid.</p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">If you need bumblebee or primusrun, because you have two GPUs (one in the CPU and one extern), then use the packages from stable.
    This will work!</p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">My notebook is a Lenovo T520 with Intel CPU (and internal Intel GPU) and also NVidia GPU as external GPU (soldered on mainboard). I have to use
    optimus, to get my external GPU.</p><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;</p><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I got my information from this site.</p><p style="margin-top:0;
    margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;</p><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="https://wiki.debian.org/NvidiaGraphicsDrivers">https://wiki.debian.org/NvidiaGraphicsDrivers</a></p><div><br></div><p
    style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hope, this helps. </p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Ah, and last but not least: Big thanks to the lads and guys, who made 340xx and
    390xx buildable again, great work! Big big thank you!!! </p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Here on my system, 390xx is working like a charm.</p><div><br></div><p style="margin-top:0;margin-bottom:0;
    margin-left:0;margin-right:0;">Good luck!</p><div><br></div><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hans </p></blockquote><div><br></div><div><span></span></div></body></html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)