Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Why do I need to edit grub in order to get video with 24.04?

  1. #1
    Join Date
    Oct 2013
    Location
    Colorado
    Beans
    567
    Distro
    Xubuntu 20.04 Focal Fossa

    Why do I need to edit grub in order to get video with 24.04?

    I have a fairly new Asus Tuf A16 laptop and when I installed either Xubuntu 24.04 or Ubuntu Cinnamon 24.04 on it, it will restart normally ONCE when the install finishes, but the 2nd time around I just get a blank screen. There don't seem to be any obvious error messages in the syslog. I found some postings talking about editing /etc/default/grub
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quite splash"
    and removing the "quiet splash" text and for some reason that solved the problem.

    What does that grub line have to do with whether I get video on 24.04?

    EDIT:

    If I boot in recovery mode I do get a nice VGA resolution desktop, but when I select "resume boot" the no-video problem comes back.
    Last edited by Keith_Helms; 2 Weeks Ago at 08:09 PM. Reason: additional info

  2. #2
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Why do I need to edit grub in order to get video with 24.04?

    I'm not sure, meaning "not positive".

    Usually that would be required if you had NVidia, but sometimes with AMD. Your laptop's specs say you have AMD right?

    To confirm what you have, please re-post the results of this within CODE Tags:
    Code:
    lspci -knnn | grep -A3 -E 'VGA|Display|3D'
    But even though AMD is opensource drivers, sometimes, depending on the hardware combination, it needs help by using some persistent kernel boot parameters to help it out. That is indicated by what is happening to you now.

    I should see that with what that output is...

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #3
    Join Date
    Oct 2013
    Location
    Colorado
    Beans
    567
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Why do I need to edit grub in order to get video with 24.04?

    Quote Originally Posted by MAFoElffen View Post
    I'm not sure, meaning "not positive".

    Usually that would be required if you had NVidia, but sometimes with AMD. Your laptop's specs say you have AMD right?

    To confirm what you have, please re-post the results of this within CODE Tags:
    Code:
    lspci -knnn | grep -A3 -E 'VGA|Display|3D'
    But even though AMD is opensource drivers, sometimes, depending on the hardware combination, it needs help by using some persistent kernel boot parameters to help it out. That is indicated by what is happening to you now.

    I should see that with what that output is...
    Here's the output from the command:

    Code:
    pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
    03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 33 [Radeon RX 7700S/7600/7600S/7600M XT/PRO W7600] [1002:7480] (rev c1)
        Subsystem: ASUSTeK Computer Inc. Navi 33 [Radeon RX 7700S/7600/7600S/7600M XT/PRO W7600] [1043:1523]
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
    --
    68:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev c1)
        Subsystem: ASUSTeK Computer Inc. Phoenix1 [1043:1523]
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu

  4. #4
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Why do I need to edit grub in order to get video with 24.04?

    Which Linux kernel? Which release? Which CPU? AMD 8000Z?

    Manually upgrade your Linux Firmware to the latest from the kernel.org github page... Do you need instrucytions on how to do that?

    Pheonix1 APU was just released and there are patches from AMD.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  5. #5
    Join Date
    Oct 2013
    Location
    Colorado
    Beans
    567
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Why do I need to edit grub in order to get video with 24.04?

    Quote Originally Posted by MAFoElffen View Post
    Which Linux kernel? Which release? Which CPU? AMD 8000Z?

    Manually upgrade your Linux Firmware to the latest from the kernel.org github page... Do you need instrucytions on how to do that?

    Pheonix1 APU was just released and there are patches from AMD.
    I've seen this problem with both the Xubuntu 24.04 and Ubuntu Cinnamon 24.04 installs, so that would be the 6.8.0-31 kernel. My laptop has an AMD Ryzen 9 7940HS w/ Radeon 780M Graphics.

    I'm not sure what URL you mean to update the firmware from. github.com? www.kernel.org? So yes, I need a bit more detailed instructions.

  6. #6
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Why do I need to edit grub in order to get video with 24.04?

    This is the original instructions: https://ubuntuforums.org/showthread....3#post14154483


    Here is the updated Instructions to get and install the latest amdgpu firmware
    Code:
    cd $HOME/Downloads
    wget -N -t 5 -T 10 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20240410.tar.gz
    sudo mv /usr/lib/firnware/amdgpu /usr/lib/firmware/amdgpu-bak
    sudo mkdir /usr/lib/firmware/amdgpu
    sudo tar -C /usr/lib/firmware/amdgpu linux-firmware-20240410/amdgpu -xvzf linux-firmware-20240410.tar.gz
    Then reinstall the latest kernel to rebuild the modules:
    Code:
    VERSION=$(apt list linux-image-{5,6}* --installed 2>/dev/null | tail -n 1 | awk -F "-" '// {print $3 "-" $4}')
    sudo apt install --reinstall -y linux-image-$VERSION-generic linux-headers-$VERSION-generic Linux-modules-$VERSION-generic linux-modules-extra-$VERSION-generic
    Last edited by MAFoElffen; 1 Week Ago at 11:39 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  7. #7
    Join Date
    Oct 2013
    Location
    Colorado
    Beans
    567
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Why do I need to edit grub in order to get video with 24.04?

    Code:
    sudo tar -C /usr/lib/firmware/amdgpu linux-firmware-20240410/amdgpu -xvzf linux-firmware-20240410.tar.gz
    Looks like you combined a couple of commands there. Can I assume I just need to extract the tar file into /usr/lib/firmware/amdgpu? Something like the following?
    Code:
    cd /usr/lib/firmware/amdgpu; sudo tar -xvzf /home/me/Download/linux-firmware-20240410/amdgpu/linux-firmware-20240410.tar.gz

  8. #8
    Join Date
    Oct 2013
    Location
    Colorado
    Beans
    567
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Why do I need to edit grub in order to get video with 24.04?

    Quote Originally Posted by MAFoElffen View Post
    This is the original instructions: https://ubuntuforums.org/showthread....3#post14154483


    Here is the updated Instructions to get and install the latest amdgpu firmware
    Code:
    cd $HOME/Downloads
    wget -N -t 5 -T 10  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20240410.tar.gz
    sudo mv /usr/lib/firnware/amdgpu /usr/lib/firmware/amdgpu-bak
    sudo mkdir /usr/lib/firmware/amdgpu
    sudo tar -C /usr/lib/firmware/amdgpu linux-firmware-20240410/amdgpu -xvzf linux-firmware-20240410.tar.gz
    Then reinstall the latest kernel to rebuild the modules:
    Code:
    VERSION=$(apt list linux-image-{5,6}* --installed 2>/dev/null | tail -n 1 | awk -F "-" '// {print $3 "-" $4}')
    sudo apt install --reinstall -y linux-image-$VERSION-generic linux-headers-$VERSION-generic Linux-modules*-$VERSION-generic
    Okay. I think I followed the instructions

    I downloaded the firmware tarfile and extracted it to /usr/lib/firmware/amdgpu using
    Code:
    sudo tar -C /usr/lib/firmware/amdgpu --strip-components=2 -xvzf  linux-firmware-20240410.tar.gz linux-firmware-20240410/amdgpu
    I then reinstalled the kernel using the commands listed except I had to remove the asterisk from Linux-modules*-$VERSION-generic because it was pulling in a bunch of NVIDIA modules and giving me errors.

    One thing that seemed odd is that previously all the files in the amdgpu directory had a .zst suffix and the new versions were all .bin files. Is that correct?

    After the reinstall I rebooted and I still get a blank screen if I pass the "splash" option to the kernel.

  9. #9
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Why do I need to edit grub in order to get video with 24.04?

    Yes. Should be .bin files. Well... Mine is all .bin files.

    The reason for the modules =the "*" was to try to also include linux-modules-extra-$VERSION-generic in that reinstall. I edited that podt for you to try to do that command once more.

    So what is the results of this posted within Code Tags:
    Code:
    grep . /proc/cmdline
    Add these to /etc/default/grub to change these two lines...
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="--- splash radeon.modeset=0 amdgpu.noretry=0 amdgpu.dc=1"
    GRUB_GFXMODE=auto
    Last edited by MAFoElffen; 1 Week Ago at 11:46 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  10. #10
    Join Date
    Oct 2013
    Location
    Colorado
    Beans
    567
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Why do I need to edit grub in order to get video with 24.04?

    Okay. I ran the kernel reinstall again and pulled in the linux-modules-extra version this time. I then tried rebooting with the options you listed for GRUB_CMDLINE_LINUX_DEFAULT and no go. Any time "splash" is in that list of options I get no video. If I add just "radeon.modeset=0 amdgpu.noretry=0 amdgpu.dc=1" without splash Xubuntu 24.04 starts normally. I can't tell any difference whether I use those options or not. As long as splash is not specified, the OS starts normally.

    The output from grep . /proc/cmdline is
    Code:
    BOOT_IMAGE=/boot/vmlinuz-6.8.0-31-generic  root=UUID=8a7cf40f-502d-46c5-9ce4-897eee0bb848 ro noresume quiet  radeon.modeset=0 amdgpu.noretry=0 amdgpu.dc=1
    At this point I'm willing to live without splash in the grub defaults. Unless you're just curious and want to try something else, Xubuntu 24.04 seems to be working with no major problems other than that.

    Getting Mint and Ubuntu working with this new laptop hardware has been a work in progress.

    1. When I tried to install Xubuntu 22.04/Mint 21 on it, the default 5.15 kernel didn't recognize the keyboard or touchpad. I had to use a USB keyboard and mouse to complete the install and then installed the linux-oem-22.04d package to pick up the 6.5 kernel. That got the keyboard and touchpad working. The remaining problem was I could not switch the video resolution from the default 2560x1600. Any other resolution resulted in corrupted graphics.
    2. I installed Xubuntu 23.10 which came with the 6.6 kernel and that allowed me to switch display resolutions, but of course that was a test release.
    3. With 24.04 and 6.8 I can switch display resolutions and have no obvious video problems other than that stupid splash option crashing something under the covers.

    Thanks for your help in trying to resolve this!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •