Install Nvidia driver for Intel/ Nvidia Optimus

Forum Forums General Hardware Install Nvidia driver for Intel/ Nvidia Optimus

  • This topic has 8 replies, 3 voices, and was last updated Jun 1-11:04 am by caprea.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #83609
    Member
    symbol

      I am using antix linux on on Macbook with (Intel/ Nvidia GT 650M Optimus) actually I found that currently I still cannot get the correct why to install nvidia-driver (maybe I need an old version)
      I am trying to install nvidia-driver through Nvidia driver installer on antix Control Centre from the screenshot:
      /usr/bin/ddm-mx -i nvidia

      Then I can only install nvidia-legacy-390 while after the installation, I found even the nvidia-smi is not found, installed, then the installation seems not complete.

      1. Nvidia-card is active:
      I walked through this post to enable the nvidia connect on macbook:
      https://forums.developer.nvidia.com/t/couldnt-detect-external-monitor-in-ubuntu-18-04-5-with-nvidia-driver-455-38/159919
      So I am sure that the Nividia graphic card is active now: (according to this post: https://askubuntu.com/questions/68028/how-do-i-check-if-ubuntu-is-using-my-nvidia-graphics-card)

      lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
      00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
      01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GT 650M Mac Edition] [10de:0fd5] (rev a1) (prog-if 00 [VGA controller])
      

      2. ppa:graphics-drivers/ppa met 404 error

      However, I walked through some posts on the website but on adding **ppa:graphics-drivers/ppa** as ppa I met 404 error. Is this link archived?

      $ sudo add-apt-repository --remove ppa:graphics-drivers/ppa
      $ sudo apt update
      Hit:1 http://deb.debian.org/debian bullseye-backports InRelease
      Hit:2 http://security.debian.org bullseye-security InRelease                                                                                                                                                         
      Hit:3 http://mirrors.rit.edu/mxlinux/mx-packages/antix/bullseye bullseye InRelease                                                                                                                                   
      Ign:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu kinetic InRelease                                                                                                                
      Hit:5 http://ftp.de.debian.org/debian bullseye InRelease                              
      Err:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu kinetic Release                   
        404  Not Found [IP: 185.125.190.52 80]
      Hit:7 http://ftp.us.debian.org/debian bullseye-updates InRelease
      Reading package lists... Done
      E: The repository 'http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu kinetic Release' does not have a Release file.
      N: Updating from such a repository can't be done securely, and is therefore disabled by default.
      N: See apt-secure(8) manpage for repository creation and user configuration details
      

      3. xrandr only sees one graphic card

      $ xrandr --listproviders 
      Providers: number : 0

      Is there any way to install old nvidia driver properly and verfiy the installation.

      • This topic was modified 11 months, 2 weeks ago by symbol. Reason: Fix the title
      • This topic was modified 11 months, 2 weeks ago by symbol. Reason: Use a different outlink for verfication
      • This topic was modified 11 months, 2 weeks ago by symbol.
      #83635
      Moderator
      Brian Masinick
        Helpful
        Up
        1
        ::

        Just so you know, PPA, which are Personal Package Archives, are Ubuntu-specific archives. They are not even the standard package archives for Ubuntu and they definitely are not recommended here.

        You are free to use them if you wish but unless another forum participant knows what you are doing and chooses to respond, that is the only way you are going to get an answer here.

        You’re certainly welcome to do whatever you want with your system but this is not something we support.

        --
        Brian Masinick

        #83638
        Moderator
        caprea
          Helpful
          Up
          1
          ::

          PPAs are not supported on antiX, like Brian Masinick already mentioned and it’s not needed.

          I found even the nvidia-smi is not found, installed

          Is nvidia-legacy-390xx-smi installed on your system?
          Please post
          inxi -Gxxx

          primusrun inxi -G

          Afaik the installer from control-centre ddm-mx installs bumblebee.
          To run an application using the nVidia card, you have to use in terminal eg.
          primusrun firefox
          or alternately
          optirun firefox

          #83659
          Member
          symbol
            Helpful
            Up
            0
            ::

            I see. thanks!

            Just so you know, PPA, which are Personal Package Archives, are Ubuntu-specific archives. They are not even the standard package archives for Ubuntu and they definitely are not recommended here.

            You are free to use them if you wish but unless another forum participant knows what you are doing and chooses to respond, that is the only way you are going to get an answer here.

            You’re certainly welcome to do whatever you want with your system but this is not something we support.

            • This reply was modified 11 months, 2 weeks ago by symbol. Reason: Quote other people's comment
            #83660
            Member
            symbol
              Helpful
              Up
              0
              ::

              My inxi -Gxxx shows nvidia-390 driver is installed:

              $ inxi -Gxxx
              Graphics:  Device-1: Intel 3rd Gen Core processor Graphics vendor: Apple driver: N/A bus-ID: 00:02.0 chip-ID: 8086:0166 
                         class-ID: 0300 
                         Device-2: NVIDIA GK107M [GeForce GT 650M Mac Edition] vendor: Apple driver: nvidia v: 390.144 bus-ID: 01:00.0 
                         chip-ID: 10de:0fd5 class-ID: 0300 
                         Device-3: Apple FaceTime HD Camera (Built-in) type: USB driver: uvcvideo bus-ID: 1-1.1:3 chip-ID: 05ac:8510 
                         class-ID: 0e02 serial: DJHD41Z5F9DNYGB0 
                         Display: x11 server: X.Org 1.20.11 driver: loaded: nvidia note: n/a (using device driver) unloaded: fbdev 
                         resolution: 2880x1800 s-dpi: 96 
                         OpenGL: renderer: N/A v: N/A direct render: N/A 

              Thank you so much for hints, I then installed nvidia-legacy-390xx-smi manually:

              libegl-nvidia-legacy-390xx0/stable,now 390.144-1 amd64 [installed,automatic]
              libgl1-nvidia-legacy-390xx-glvnd-glx/stable,now 390.144-1 amd64 [installed,automatic]
              libglx-nvidia-legacy-390xx0/stable,now 390.144-1 amd64 [installed,automatic]
              libnvidia-legacy-390xx-compiler/stable,now 390.144-1 amd64 [installed,automatic]
              libnvidia-legacy-390xx-cuda1/stable,now 390.144-1 amd64 [installed,automatic]
              libnvidia-legacy-390xx-eglcore/stable,now 390.144-1 amd64 [installed,automatic]
              libnvidia-legacy-390xx-fatbinaryloader/stable,now 390.144-1 amd64 [installed,automatic]
              libnvidia-legacy-390xx-glcore/stable,now 390.144-1 amd64 [installed,automatic]
              libnvidia-legacy-390xx-ml1/stable,now 390.144-1 amd64 [installed,automatic]
              libnvidia-legacy-390xx-ptxjitcompiler1/stable,now 390.144-1 amd64 [installed,automatic]
              nvidia-legacy-390xx-alternative/stable,now 390.144-1 amd64 [installed,automatic]
              nvidia-legacy-390xx-driver-bin/stable,now 390.144-1 amd64 [installed,automatic]
              nvidia-legacy-390xx-driver-libs/stable,now 390.144-1 amd64 [installed,automatic]
              nvidia-legacy-390xx-driver/stable,now 390.144-1 amd64 [installed]
              nvidia-legacy-390xx-egl-icd/stable,now 390.144-1 amd64 [installed,automatic]
              nvidia-legacy-390xx-kernel-dkms/stable,now 390.144-1 amd64 [installed,automatic]
              nvidia-legacy-390xx-kernel-support/stable,now 390.144-1 amd64 [installed,automatic]
              nvidia-legacy-390xx-opencl-icd/stable,now 390.144-1 amd64 [installed]
              nvidia-legacy-390xx-smi/stable,now 390.144-1 amd64 [installed]
              nvidia-legacy-390xx-vdpau-driver/stable,now 390.144-1 amd64 [installed,automatic]
              nvidia-settings-legacy-390xx/stable,now 390.144-1 amd64 [installed]
              volumeicon-alsa-legacy/bullseye,now 0.4.6-2.4 amd64 [installed]
              xserver-xorg-video-nvidia-legacy-390xx/stable,now 390.144-1 amd64 [installed,automatic]

              I found my primusrun command crashes my screen.
              primusrun inxi -G

              Similarly my following command also crashes the screen
              optirun glxinfo | grep "OpenGL renderer"

              While without optirun my glxinfo look strange now

              $ glxinfo | grep "OpenGL renderer"
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Error: couldn't find RGB GLX visual or fbconfig
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".
              Xlib:  extension "GLX" missing on display ":0.0".

              PPAs are not supported on antiX, like Brian Masinick already mentioned and it’s not needed.

              I found even the nvidia-smi is not found, installed

              Is nvidia-legacy-390xx-smi installed on your system?
              Please post
              inxi -Gxxx

              primusrun inxi -G

              Afaik the installer from control-centre ddm-mx installs bumblebee.
              To run an application using the nVidia card, you have to use in terminal eg.
              primusrun firefox
              or alternately
              optirun firefox

              • This reply was modified 11 months, 2 weeks ago by symbol. Reason: Manage quotes
              #83663
              Member
              symbol
                Helpful
                Up
                0
                ::

                My nvidia-smi output does not look good with some persistent mode being off:

                +-----------------------------------------------------------------------------+
                | NVIDIA-SMI 390.144                Driver Version: 390.144                   |
                |-------------------------------+----------------------+----------------------+
                | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
                | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
                |===============================+======================+======================|
                |   0  GeForce GT 650M     Off  | 00000000:01:00.0 N/A |                  N/A |
                | N/A   57C    P0    N/A /  N/A |      0MiB /   981MiB |     N/A      Default |
                +-------------------------------+----------------------+----------------------+
                                                                                               
                +-----------------------------------------------------------------------------+
                | Processes:                                                       GPU Memory |
                |  GPU       PID   Type   Process name                             Usage      |
                |=============================================================================|
                |    0                    Not Supported                                       |
                +-----------------------------------------------------------------------------+

                PPAs are not supported on antiX, like Brian Masinick already mentioned and it’s not needed.

                I found even the nvidia-smi is not found, installed

                Is nvidia-legacy-390xx-smi installed on your system?
                Please post
                inxi -Gxxx

                primusrun inxi -G

                Afaik the installer from control-centre ddm-mx installs bumblebee.
                To run an application using the nVidia card, you have to use in terminal eg.
                primusrun firefox
                or alternately
                optirun firefox

                • This reply was modified 11 months, 2 weeks ago by symbol.
                #83719
                Moderator
                caprea
                  Helpful
                  Up
                  1
                  ::

                  I’m under the impression the problems you have are due to the fact that this is mac hardware.To be honest i probably can’t help you much here and also a web search doesn’t bring up anything really useful.
                  If you post the /var/log/ddm.log we can look after all if the nvidia driver installation was successful and no errors showed up.
                  Also you can go to synaptic and search for nvidia-legacy-390 and look if everything is installed.

                  Graphics: Device-1: Intel 3rd Gen Core processor Graphics vendor: Apple driver: N/A

                  It’s not clear to me why even the intel driver is not shown here correctly.

                  EDIT: You can also post the /etc/X11/xorg.conf
                  and the /var/log/Xorg.0.log

                  • This reply was modified 11 months, 2 weeks ago by caprea.
                  #83912
                  Member
                  symbol
                    Helpful
                    Up
                    2
                    ::

                    I found the solution if you have a Intel/ Nvidia Optimus graphics card.
                    0. (Optional) Firstly we need to make sure that on Macbook Nvidia graphic card is connected to PCI Express Bridge.
                    Follow the instructions described in this post:
                    https://askubuntu.com/questions/264247/proprietary-nvidia-drivers-with-efi-on-mac-to-prevent-overheating
                    or this one:
                    https://daanberg.net/wp-content/uploads/2020/09/proprietary_nvidia_drivers_with_efi_on_mac_to_prevent_overheating_-_ask_ubuntu.pdf

                    1. (Optional) Then install nvidia-detect to detect the correct driver version:

                    $ nvidia-detect
                    Detected NVIDIA GPUs:
                    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GT 650M Mac Edition] [10de:0fd5] (rev a1)
                    
                    Checking card:  NVIDIA Corporation GK107M [GeForce GT 650M Mac Edition] (rev a1)
                    Your card is only supported up to the 390 legacy drivers series.
                    Your card is also supported by the Tesla 418 drivers series.
                    It is recommended to install the
                        nvidia-legacy-390xx-driver
                    package.
                    

                    2. Install the correct version of the nvidia driver through Application Centre or package manager.
                    3. Install libnvidia-legacy-390xx-cfg1, nvidia-settings-legacy-390xx, nvidia-legacy-390xx-smi,
                    nvidia-xconfig
                    4. Set up PRIME with instruction from this post: http://us.download.nvidia.com/XFree86/Linux-x86_64/455.45.01/README/randr14.html
                    or this post https://forums.developer.nvidia.com/t/couldnt-detect-external-monitor-in-ubuntu-18-04-5-with-nvidia-driver-455-38/159919
                    5. Verify that the nvidia driver is working with nvidia-settings

                    #83919
                    Moderator
                    caprea
                      Helpful
                      Up
                      0
                      ::

                      @symbol, thank you very much for posting the solution here.

                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • You must be logged in to reply to this topic.