• Re: nvidia package 340xx

    From Richmond@21:1/5 to Richmond on Fri Aug 23 13:10:02 2024
    Richmond <[email protected]> writes:

    Hans <[email protected]> writes:

    Am Samstag, 20. Mai 2023, 19:15:18 CEST schrieb Richmond:

    Hans <[email protected]> writes:




    As far as I remember the problem in Nvidia does not support kernels

    above 4. This is why my laptop is stuck on Debian 10, although I
    did

    wonder if Debian 11 can run with kernel 4.



    (Nouveaux is no good to me).


    Hi Richmond,


    regarding to debian/sid the package supports kernels up to 6.2.


    However, there are some issues, so it will segfault any
    qt-windowmangers (at the moment) and got some security issues.


    I succcessfully could build the sources with kernel-headers 6.0.1-9
    (which with former kernels later than 5.10-22 did not work).


    But sadly in the end I did not succced at all, as it did not load the
    kernel modul and additionally it breaked my acceleration from the
    inbuilt gpu of the intel processor.


    So it was more a disappointment. On the other hand it could be, I
    made some mistakes and should upgrade additional libs from unstable.


    There is another thing, I also might done wrong (I wrote about some
    weeks ago in this forum): lspci says it is


    NVIDIA Corporation GF119M [Quadro NVS 4200M] (rev a1)


    and nvidia-detect (and some other sources, are telling me, that for
    this chipset NOT 340xx but 390xx should be used.


    Thisis wrong, as I could prove, that only 340xx (with kernel 5.10-22)
    is working. Installing 390xx, the kernel says: Wrong module, you have
    to use 340xx.


    This is the state at the moment. As I have only this laptop and no
    spare harddrive at the moment, I could not install debian/unstable
    for testing purposes. Maybe some time I will, or maybe some other guy
    will do it.


    Hope this makes some things clearer.

    Not really, but I found this website which says the driver supports
    kernels "up to" 5.4 which I guess means up to and including.

    https://nvidia.custhelp.com/app/answers/detail/a_id/3142/

    But debian seems to drop after debian 10 because kernel is 5.10 ?

    https://wiki.debian.org/NvidiaGraphicsDrivers

    I see here someone has patched the drivers:

    https://github.com/MeowIce/nvidia-legacy

    :-?

    Ubuntu 20.04 supports kernel 5.4 until 2025. So I might try that after
    debian 10 expires.

    https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Linux_Kernel

    My card:

    nvidia-detect
    Detected NVIDIA GPUs:
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G86M
    [GeForce 8400M GS] [10de:0427] (rev a1)

    Checking card: NVIDIA Corporation G86M [GeForce 8400M GS] (rev a1)
    Your card is only supported up to the 340 legacy drivers series.
    It is recommended to install the
    nvidia-legacy-340xx-driver
    package.

    I should read my own posts. I have now installed Ubuntu 22 with Kernel
    5.4 and it is working with the above Nvidia card. But I have only kicked
    the can down the road to April. I wonder if it will be possible to run
    Debian 12 or 11 with a 5.4 kernel and nvidia-legacy-340xx-driver?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans@21:1/5 to All on Fri Aug 23 14:00:02 2024
    This is a multi-part message in MIME format.

    I should read my own posts. I have now installed Ubuntu 22 with Kernel
    5.4 and it is working with the above Nvidia card. But I have only kicked
    the can down the road to April. I wonder if it will be possible to run
    Debian 12 or 11 with a 5.4 kernel and nvidia-legacy-340xx-driver?

    Should work.

    I am running 6.9.7+bpo-amd64 with 340xx. I made a description, how I did, this should also
    work on 6.1. kernel. Although I aready sent it here, I repeat it (with some minor additions).


    --------------------
    Attention: 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.

    Do it exactly in this order desribed below and you may read this site before.

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



    1. Install module-assistant

    2. Enter the line for sid into your /etc/apt/sources.list
    deb http://deb.debian.org/debian/[2][1] sid main contrib non-free non-free- firmware

    3. apt update

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

    This should install all necessary files and build the kernel module. Here it did work.

    5. Do NOT upgrade any other files! Do NOT aot upgrade or aptitude upgrade now although it
    will install many other packages. Ignore that! It will break your system!!

    7. Remove the sid entry from sources.list! (Very important!!!)

    8. Do again an apt update.

    Thus you are not going into the danger, to install any more packages from sid.

    9. 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 (NVidis) running.


    --------------------

    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.

    Please feel free to ask for more.

    Good luck!

    Hans



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

    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    </head>
    <body><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; I should read my own posts. I have now installed Ubuntu 22 with Kernel</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 5.4 and it is working with the above Nvidia card. But I have only kicked</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; the can down the road to April. I wonder if it will be possible to run</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; Debian 12 or 11 with a 5.4 kernel and nvidia-legacy-340xx-driver?</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Should work.</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I am running <span style="background-color:#ffffff;"><span style="font-family:monospace;"><span style="color:#000000;">6.9.7+bpo-amd64 with 340xx. I made a description, how I did,
    this should also work on 6.1. kernel. Although I aready sent it here, I repeat it (with some minor additions).</span></span></span></p>
    <br /><br /><hr />
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="font-family:Noto Sans;"><span style="color:#31363b;">Attention: Sometimes, nvidia-detect says, use 340xx-legacy, but I had some
    cases, where I in real had to use 390xx. </span></span></span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">So, if 340xx is not working, try 390xx.</span></span><br /></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Do it exactly in this order desribed below and you may read<span style="background-color:#fafafa;"><span style="color:#31363b;">&nbsp;this site before.</span></span></p>
    <br /><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><span style="color:#31363b;">[2][1]</span></p>
    <br /><br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:monospace;">1. Install module-assistant</span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="font-family:Noto Sans;"><span style="color:#31363b;">2. Enter the line for sid into your /etc/apt/sources.list </span></span><
    /span></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="color:#31363b;"><span style="background-color:#fafafa;">deb</span> </span><a href="http://deb.debian.org/debian/">http://deb.debian.org/debian/</a><span style="color:#
    31363b;">[1] 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;"><span style="background-color:#fafafa;"><span style="color:#31363b;">3. apt update </span></span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">4. apt install nvidia-legacy-340xx-driver firmware-misc-nonfree </span></span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">This should install all necessary files and build the kernel module. Here it did work.</span></span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">5. Do NOT upgrade any other files! Do NOT aot upgrade or aptitude upgrade now although it will install many
    other packages. Ignore that! It will break your system!!&nbsp;  </span></span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">7. Remove the sid entry from sources.list! (Very important!!!) </span></span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">8. Do again an  apt update. </span></span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">Thus you are not going into the danger, to install any more packages from sid.</span></span></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">&nbsp;</span></span></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">9. 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!</span></span></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">&nbsp;</span></span></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">My notebook is a Lenovo T520 with Intel CPU (and internal Intel GPU) and also NVidia GPU as external GPU (soldered
    on mainboard). </span></span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">I have to use optimus, to get my external GPU (NVidis) running.</span></span></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;"> </span></span></p>
    <br /><hr />
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">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!!!  </span></span></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="background-color:#fafafa;"><span style="color:#31363b;">Here on my system, 390xx is working like a charm.</span></span></p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Please feel free to ask for more.</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>
    <p>&nbsp;</p>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richmond@21:1/5 to Hans on Fri Aug 23 16:10:02 2024
    I tried something similar, but it didn't work, although...

    Hans <[email protected]> writes:





    1. Install module-assistant

    I didn't do this.


    2. Enter the line for sid into your /etc/apt/sources.list

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


    3. apt update


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

    At this point many packages were installed, I didn't get a choice, I am
    not sure why.

    Then system failed to boot X, so I scrapped it all.

    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 a Dell Inspiron 1720. I may have another go in April.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans@21:1/5 to All on Fri Aug 23 16:50:01 2024
    Am Freitag, 23. August 2024, 15:55:40 CEST schrieb Richmond:
    I tried something similar, but it didn't work, although...

    Hans <[email protected]> writes:
    1. Install module-assistant

    I didn't do this.

    2. Enter the line for sid into your /etc/apt/sources.list

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


    3. apt update


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

    At this point many packages were installed, I didn't get a choice, I am
    not sure why.

    Then system failed to boot X, so I scrapped it all.

    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 a Dell Inspiron 1720. I may have another go in April.
    You need module-assistant for making sure, you got the kernel headers and compilers you need.

    Running module-assistant is the easiest way to make sure of it.

    I could write a new step-by-step procedure for bloddy noobs, but I am sure, I would annoying people with it.

    Most problem is, people are installing other packages as recommended, because they believe, there are dependencies. Apt does show them.

    So as I advices, just install only the packages from sid for nvidia, nothing else. If not sure, download them manually and install with dpkg.

    Just to explain: Enteringt sid into sources list and do an apt update will
    read the sourcs fropm list., then install only the two packages from sid (the needed dependencies from sid will be automatically installed). After this remove the entry of sid in sources.list and do an apt update again. This will remove all entries from the package list of sid in the cache of apt.

    Now you can eecute module-assistant and get the kernel headers and compilers for compiling of your runninjg debian/stable.

    As you have already downloaded the sources from sid, which has the higher version, these will be compiled.

    If it compiles correctly without any crashes, you are good. Compiling is the main point here.

    After compilation you must reboot, to unload nouveau driver an load kernel module 340x.

    To test, remove all login managers temporarly out of the way and in prompt do "startx". If X is now starting you are good, other wise you see, what fails.

    If you have two graphic cards (one in the CPU mostly Intel, and the other NVidia), you need to switch it using bumblebee and primusrun. If bumblebee and primusrun are installed, you need to reboot, to activate it.

    Then, when X is started, check it with "primusrun glxgears" in kconsole or xterm as normal user and see the output.

    Note: If X is NOT started, you may try with 390xx, even when nvidia-detect and also the NVidia website is telling, your chip is 340x. I have two graphic cards, which di NOT run with 340xx (as recommended) but perfectly with 390xx.

    Hope this helps.

    Last time I compiled the 390xx is about a month ago, so it maybe something has changed, I did not recheck in the last weeks!

    Best

    Hans

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