Announcement

Collapse
No announcement yet.

External monitor not working after using boot repair

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    External monitor not working after using boot repair

    Good day everyone.

    I used boot repair yesterday and I can boot into my Kubuntu 24.04 system. However, I see that my external monitor doesn't work.

    What have I tried so far:
    - using the performance mode in Nvidian settings and rebooted
    - reinstalling the kernel with the old command sudo apt-get install --reinstall linux-image-etc-etc
    - purging nvidia*
    - reinstalling nvidia driver with sudo ubuntu-drivers autoinstall

    Every time rebooting. Unfortunately, it doesn't work. However, I see this output when installing the driver:
    Code:
    nvidia-drm.ko: OK
    nvidia-modeset.ko: OK
    nvidia-peermem.ko: OK
    nvidia-uvm.ko: OK
    nvidia.ko: OK
    [B]depmod: FATAL: could not load /boot/System.map-6.8.0-31-generic: No such file or directory[/B]
    Configurazione di nvidia-kernel-source-535 (535.171.04-0ubuntu2)...
    Configurazione di nvidia-settings (510.47.03-0ubuntu4)...
    Configurazione di nvidia-utils-535 (535.171.04-0ubuntu2)...
    Configurazione di linux-modules-nvidia-535-generic (6.8.0-31.31)...
    Configurazione di nvidia-driver-535 (535.171.04-0ubuntu2)...
    Elaborazione dei trigger per initramfs-tools (0.142ubuntu25)...
    update-initramfs: Generating /boot/initrd.img-6.8.0-31-generic
    
    ​
    Which I've never seen before. I am also sure that I flagged the option to reinstall the kernel when using boot-repair. I have a separate /boot/efi partition and another separate /boot partition which I think are working good. The /boot partition was to me necessary to use my devices that otherwise cannot boot. This /boot partition is in the internal SSD.

    Any suggestions? Thanks in advance.

    #2
    Not sure how the above applies to a non-working monitor. Are we to assume it worked before you used boot-repair?

    First, I would resolve the missing system map issue. Boot to (or install and boot to) a different kernel and remove and reinstall 6.8.0-31-generic. Hopefully that will address that problem.

    Then when you can cleanly boot to -31 again, run "dkms status" to verify the nvidia driver is installed.

    Then run "xrandr" and see if the monitor is detected.

    Since we don't know anything about your hardware, you might need to verify your external video port works with the nvidia GPU. I assume you are working with a laptop since you refer to an "external" monitor, but model and video info might be helpful.

    Please Read Me

    Comment


      #3
      Hello!
      I wanted to include more information, I eventually forgot, sorry for the inconvenience!

      Yes, it's a laptop and the monitor is working with Windows 11 and with any other GNU/Linux distro from Live USB.

      Now, I have done these steps:
      - purged nvidia*
      - installed a different kernel (chose the xanmod)
      - booted with this new kernel... the monitor works! Probably with open drivers I guess.
      - reinstalled the Ubuntu generic kernel with:


      Code:
      sudo apt-get install --reinstall linux-image-6.8.0-31-generic linux-headers-6.8.0-31 linux-he
      aders-6.8.0-31-generic
      However, when booting in, the monitor doesn't work again. After reading the output of the latest command, I can see this strange row:
      Code:
      /etc/kernel/postinst.d/initramfs-tools:
      update-initramfs: Generating /boot/initrd.img-6.8.0-31-generic
      W: Kernel configuration /boot/config-6.8.0-31-generic is missing,
      ​
      I guess that I can be happy with the xanmod kernel until Ubuntu releases a new version of theirs (-32 I guess) if this cannot be fixed :')



      EDIT: pardon, after installing the proprietary driver again, I have the same issue.
      Last edited by Snowhog; May 20, 2024, 12:39 PM.

      Comment


        #4
        With "any other Linux distribution" when booted from live USB - but not from a Kubuntu 24.04 LTS live USB?
        Which kernels and display servers (X11 or Wayland) do all those other Linux distributions use?
        Which drivers do all those other Linux distributions use for your Nvidia card (proprietary - which version? - or the Nouveau open source driver)?
        Which Nvidia GPU model do you use?
        Which proprietary Nvidia driver versions did you install and from where?

        Generally:
        Just don't install kernels like Xanmod or any other ones except the official *Ubuntu generic kernels if you want to use (proprietary) Nvidia drivers with as less ruffle and excitement as possible (and also only use the proprietary Nvidia drivers from the *Ubuntu repos for an *Ubuntu-based distribution…).
        Or else you will run into even more problems with Nvidia over time.


        PS: This started with "boot-repair"…
        Did you at least try to update your boot loader manually and/or reinstall it to the EFI system partition manually after the problems occured?
        Last edited by Schwarzer Kater; May 20, 2024, 09:39 AM. Reason: added PS
        Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
        Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

        get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
        install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

        Comment


          #5
          Schwarzer Kater

          I only tried Kubuntu 24.04 and Opensuse Tumbleweed Live KDE.
          Both with X11 and kernel 6.8
          Both with nouveau.
          GPU is RTX 4080.
          Proprietary driver is 535 from ubuntu-drivers autoinstall.

          For the kernel, how can I install a different Ubuntu generic kernel? I remember I could choose a different one by searching the packages in Synaptics, I don't feel sure how it works now.
          Last edited by Snowhog; May 20, 2024, 12:41 PM.

          Comment


            #6
            Good.

            So to be clear: the nvidia-driver-535 has never worked for your external display and Kubuntu 24.04 LTS? Or did it stop to work after using the "boot repair" (I intentionally set it in quotes…) program?

            If the nvidia-driver-535 has never worked with kernel 6.8.x for your Nvidia RTX 4080 GPU:
            First try to fix your boot and kernel issues (using the Nouveau open source driver).
            Second try to use the nvidia-driver-535 (again), if it does not work with your external monitor as before, purge it and try the nvidia-driver-545 driver. The nvidia-driver-550 driver does not seem to have been released for 24.04 LTS/the 6.8.x kernel yet (only for previous *Ubuntu releases).
            If the latter does not work either, use the Nouveau driver in the meantime or try using another distribution (like e.g. openSUSE Tumbleweed KDE, TUXEDO OS 3, Fedora KDE Spin, EndeavorOS…).
            I am sure with the 24.04.1 release the general problems (also with Nvidia) will become fewer. IMHO there are a reasons why upgrading from previous (K)ubuntu LTS versions doesn't officially work before the 24.04.1 release in August…


            PS:
            Yeah, well - there only is the one generic kernel for 24.04 at the moment…
            To be safe you should also do a sudo apt clean before your next sudo apt update and any re-installations like
            sudo apt reinstall linux-image-6.8.0-31-generic linux-headers-6.8.0-31 linux-headers-6.8.0-31-generic​ linux-modules-6.8.0-31-generic linux-modules-extra-6.8.0-31-generic
            Last edited by Schwarzer Kater; May 20, 2024, 10:31 AM. Reason: added PS
            Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
            Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

            get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
            install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

            Comment


              #7
              Schwarzer Kater

              Unfortunately I experienced the same outputs, except that at least nouveau worked on the generic -31 kernel too. After installing the proprietary driver, we're back with the monitor not working.

              Welp, I think I've reinstalled the whole OS a thousand times in a month. I'll go ahead again as soon as I have time. I'm starting to think that my configuration just doesn't want to get along with GNU/Linux. I'm also the only one who has performance issues with CPU being used a lot with videos, both X11 and worse on Wayland on any distro. Better give up for now and come back later.

              Thanks for your precious help and patience for now!
              Last edited by Snowhog; May 20, 2024, 12:42 PM.

              Comment

              Working...
              X