[RESOLVED] Ubuntu Studio on Framework 16 with AMD Ryzen 7040

I have enjoyed Ubuntu Studio for many years because of the music processing and graphics uses. I had planned to put it on my Framework 16 but the project is not going well. I wondered if anyone here knew what might be going wrong?

I can install Ubuntu Studio 24.04 LTS without a problem. On first boot, after prompting me to remove my UBS stick, I’m in and it all works and looks great.

Then I run:

sudo apt update
sudo apt upgrade

When I reboot I get a black screen. Only the power light is on.

I tried downloading the .iso again, making a fresh bootable USB and checking it, reinstalling. Same exact result.

Is there a specific order I should be performing the updates, that would avoid this problem (i.e. graphics card first, then kernel). If so, how do I try this step by step to find out where the problem is? I do definitely want to be able to update my system regularly with stable releases.

Any help much appreciated, until then I’ll be using standard Ubuntu 22.04 LTS.

Try doing a sudo apt update && sudo apt dist-upgrade - the upgrade may not take all required things/dependencies into account.
Also, check which kernel version is installed.
If it is booting, and the screen remains black, hit the ESC key to let it show you what is going on (text screen) and post a screen-shot.

Thanks @Jorg_Mertin

Unfortunately same result with sudo apt dist-upgrade

When I hit Esc during booting I get:

select a boot option

GNU GRUB version 2.12

Minimal BASH-line line editing is supported. For the first word, TAB lists possible command completions…

grub>

I don’t know what this means :slight_smile:

I can boot to the BIOS and it lists the AMD Ryzen and the DRAM correctly

The kernel is 6.8.0-31-lowlatency

Hmmm. If you are in grub, means it breaks the efi entry.
When you install it, when finished, after the reboot, and before you apply the updates, have a look at the existing entries. Should look like the below.

$ efibootmgr 
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0004,0006,0000
Boot0000* P4: INTEL SSDMCEAC060B3       
Boot0001* ubuntu
Boot0004* UEFI OS
Boot0006* ubuntu

It should be possible to also rescue the existing system by booting the rescue image from USB-Stick, but that is quite complex and is not something we could explain in detail here (because it requires details).

Here’s what I got:

efibootmgr

BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,2001,2002,2003
Boot0001* Windows Boot Manager HD(2,GPT,d164f3ab-8c53-41eb-a9fb-bb57b7c9245c,0xa00800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0002* EFI PXE 0 for IPv4 (0C-37-96-80-1C-E5) PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(6,0)/USB(2,0)/MAC(0c3796801ce5,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0003* ubuntu HD(1,GPT,048b5696-9030-492b-9a6f-ffe5e08e84a2,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* Windows Boot Manager HD(2,GPT,d164f3ab-8c53-41eb-a9fb-bb57b7c9245c,0xa00800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000044000100000010000000040000007fff0400
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC

After that I had a look at the boot log

sudo cat /va/log/boot.log

------------ Thu May 02 15:10:45 UTC 2024 ------------
/dev/nvme0n1p2: clean, 433803/60981248 files, 8179425/243914752 blocks
[ 4.165449] cloud-init[744]: Cloud-init v. 24.1.3-0ubuntu3 running ‘init-local’ at Thu, 02 May 2024 15:10:44 +0000. Up 4.15 seconds.
[ OK ] Finished plymouth-read-write.servi…Plymouth To Write Out Runtime Data.
[ OK ] Finished systemd-tmpfiles-setup.se…ate Volatile Files and Directories.
[ OK ] Mounted proc-sys-fs-binfmt_misc.mo…xecutable File Formats File System.
Starting systemd-journal-catalog-u…ervice - Rebuild Journal Catalog…
Starting systemd-resolved.service - Network Name Resolution…
Starting systemd-timesyncd.service - Network Time Synchronization…
Starting systemd-update-utmp.servi…ord System Boot/Shutdown in UTMP…
[ OK ] Finished systemd-binfmt.service - Set Up Additional Binary Formats.
[ OK ] Finished systemd-journal-catalog-u….service - Rebuild Journal Catalog.
[ OK ] Finished systemd-update-utmp.servi…ecord System Boot/Shutdown in UTMP.
[ OK ] Started systemd-timesyncd.service - Network Time Synchronization.
[ OK ] Reached target time-set.target - System Time Set.
[ OK ] Started systemd-resolved.service - Network Name Resolution.
[ OK ] Reached target nss-lookup.target - Host and Network Name Lookups.
[ OK ] Finished ldconfig.service - Rebuild Dynamic Linker Cache.
Starting systemd-update-done.service - Update is Completed…
[ OK ] Finished systemd-update-done.service - Update is Completed.
[ OK ] Finished apparmor.service - Load AppArmor profiles.
Starting snapd.apparmor.service - …iles managed internally by snapd…
[ OK ] Finished snapd.apparmor.service - …ofiles managed internally by snapd.
[ OK ] Reached target sysinit.target - System Initialization.
[ OK ] Started cups.path - CUPS Scheduler.
[ OK ] Started whoopsie.path - Start whoo…cation of the /var/crash directory.
[ OK ] Started anacron.timer - Trigger anacron every hour.
[ OK ] Started apt-daily.timer - Daily apt download activities.
[ OK ] Started apt-daily-upgrade.timer - …y apt upgrade and clean activities.
[ OK ] Started apt-xapian-index.timer - Update APT-Xapian-Index.
[ OK ] Started dpkg-db-backup.timer - Daily dpkg database backup timer.
[ OK ] Started e2scrub_all.timer - Period…Metadata Check for All Filesystems.
[ OK ] Started fstrim.timer - Discard unused filesystem blocks once a week.
[ OK ] Started fwupd-refresh.timer - Refresh fwupd metadata regularly.
[ OK ] Started logrotate.timer - Daily rotation of log files.
[ OK ] Started man-db.timer - Daily man-db regeneration.
[ OK ] Started motd-news.timer - Message of the Day.
[ OK ] Started plocate-updatedb.timer - Update the plocate database daily.
[ OK ] Started sysstat-collect.timer - Ru…y accounting tool every 10 minutes.
[ OK ] Started sysstat-summary.timer - Ge… of yesterday’s process accounting.
[ OK ] Started systemd-tmpfiles-clean.tim…y Cleanup of Temporary Directories.
[ OK ] Reached target paths.target - Path Units.
[ OK ] Listening on avahi-daemon.socket -…DNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on cloud-init-hotplugd.s…t - cloud-init hotplug hook socket.
[ OK ] Listening on cups.socket - CUPS Scheduler.
[ OK ] Listening on dbus.socket - D-Bus System Message Bus Socket.
Starting snapd.socket - Socket activation for snappy daemon…
[ OK ] Listening on uuidd.socket - UUID daemon activation socket.
[ OK ] Listening on snapd.socket - Socket activation for snappy daemon.
[ OK ] Reached target sockets.target - Socket Units.
[ OK ] Reached target basic.target - Basic System.
Starting systemd-logind.service - User Login Management…
Starting accounts-daemon.service - Accounts Service…
[ OK ] Started anacron.service - Run anacron jobs.
Starting apport.service - automatic crash report generation…
Starting avahi-daemon.service - Avahi mDNS/DNS-SD Stack…
Starting bluetooth.service - Bluetooth service…
[ OK ] Started cron.service - Regular background program processing daemon.
Starting dbus.service - D-Bus System Message Bus…
[ OK ] Started dmesg.service - Save initial kernel messages after boot.
Starting e2scrub_reap.service - Re…ne ext4 Metadata Check Snapshots…
[ OK ] Reached target getty.target - Login Prompts.
Starting gpu-manager.service - Det…and deal with any system changes…
Starting grub-common.service - Record successful boot for GRUB…
Starting iio-sensor-proxy.service - IIO Sensor Proxy service…
[ OK ] Started minidlna.service - MiniDLNA lightweight DLNA/UPnP-AV server.
[ OK ] Started osspd.service - OSS Proxy Daemon.
Starting polkit.service - Authorization Manager…
Starting power-profiles-daemon.service - Power Profiles daemon…
Starting rsyslog.service - System Logging Service…
Starting rtirq.service - LSB: Realtime IRQ thread tunning…
Starting secureboot-db.service - Secure Boot updates for DB and DBX…
Starting smartmontools.service - S…orting Technology (SMART) Daemon…
[ OK ] Reached target getty-pre.target - Preparation for Logins.
Starting snapd.seeded.service - Wait until snapd is fully seeded…
Starting snapd.service - Snap Daemon…
Starting ssl-cert.service - Generate snakeoil SSL keypair…
Starting switcheroo-control.servic…Switcheroo Control Proxy service…
Starting sysstat.service - Resets System Activity Logs…
Starting thermald.service - Thermal Daemon Service…
Starting udisks2.service - Disk Manager…
[ OK ] Started systemd-logind.service - User Login Management.
[ OK ] Started dbus.service - D-Bus System Message Bus.
[ OK ] Finished e2scrub_reap.service - Re…line ext4 Metadata Check Snapshots.
[ OK ] Started smartmontools.service - Se…eporting Technology (SMART) Daemon.
[ OK ] Finished sysstat.service - Resets System Activity Logs.
[ OK ] Started thermald.service - Thermal Daemon Service.
[ OK ] Started switcheroo-control.service - Switcheroo Control Proxy service.
[ OK ] Started bluetooth.service - Bluetooth service.
[ OK ] Started avahi-daemon.service - Avahi mDNS/DNS-SD Stack.
[ OK ] Reached target bluetooth.target - Bluetooth Support.
Starting NetworkManager.service - Network Manager…
Starting alsa-restore.service - Save/Restore Sound Card State…
Starting wpa_supplicant.service - WPA supplicant…
[ OK ] Finished grub-common.service - Record successful boot for GRUB.
Starting grub-initrd-fallback.service - GRUB failed boot detection…
[ OK ] Started wpa_supplicant.service - WPA supplicant.
Starting systemd-hostnamed.service - Hostname Service…
[ OK ] Finished grub-initrd-fallback.service - GRUB failed boot detection.
[ OK ] Finished secureboot-db.service - Secure Boot updates for DB and DBX.
[ OK ] Finished gpu-manager.service - Det…s and deal with any system changes.
[ OK ] Started polkit.service - Authorization Manager.
[ OK ] Started rsyslog.service - System Logging Service.
Starting ModemManager.service - Modem Manager…
Starting bolt.service - Thunderbolt system service…
[ OK ] Started accounts-daemon.service - Accounts Service.
[ OK ] Started power-profiles-daemon.service - Power Profiles daemon.
[ OK ] Started iio-sensor-proxy.service - IIO Sensor Proxy service.
[ OK ] Started systemd-hostnamed.service - Hostname Service.
Starting NetworkManager-dispatcher…anager Script Dispatcher Service…
[ OK ] Started udisks2.service - Disk Manager.
[ OK ] Started NetworkManager-dispatcher.… Manager Script Dispatcher Service.
[ OK ] Finished apport.service - automatic crash report generation.
[ OK ] Started bolt.service - Thunderbolt system service.
[ OK ] Started ModemManager.service - Modem Manager.
[ OK ] Started rtirq.service - LSB: Realtime IRQ thread tunning…
[ OK ] Finished ssl-cert.service - Generate snakeoil SSL keypair.
[ OK ] Finished alsa-restore.service - Save/Restore Sound Card State.
[ OK ] Created slice system-systemd\x2dba… - Slice /system/systemd-backlight.
[ OK ] Reached target sound.target - Sound Card.
Starting systemd-backlight@backlig…ightness of backlight:amdgpu_bl2…
[ OK ] Finished systemd-backlight@backlig…Brightness of backlight:amdgpu_bl2.
[ OK ] Started snapd.service - Snap Daemon.
[ OK ] Started NetworkManager.service - Network Manager.
[ OK ] Reached target network.target - Network.
Starting NetworkManager-wait-onlin…ce - Network Manager Wait Online…
Starting cups.service - CUPS Scheduler…
[ OK ] Started unattended-upgrades.service - Unattended Upgrades Shutdown.
[ OK ] Started cups.service - CUPS Scheduler.
[ OK ] Started snap.firefox.hook.connect-…-1923-457b-894c-f86751abe5af.scope.
Mounting var-snap-firefox-common-h… revision 4173 via mount-control…
[ OK ] Mounted var-snap-firefox-common-ho…x, revision 4173 via mount-control.
[ OK ] Started snap.firefox.hook.configur…-17ec-4e68-9ff6-7b913b21e661.scope.
[ OK ] Finished NetworkManager-wait-onlin…vice - Network Manager Wait Online.
Starting cloud-init.service - Init…t job (metadata service crawler)…
[ 12.262552] cloud-init[2180]: Cloud-init v. 24.1.3-0ubuntu3 running ‘init’ at Thu, 02 May 2024 15:10:52 +0000. Up 12.25 seconds.
[ 12.270062] cloud-init[2180]: ci-info: +++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++
[ 12.270140] cloud-init[2180]: ci-info: ±-------±------±----------±----------±------±------------------+
[ 12.270184] cloud-init[2180]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
[ 12.270223] cloud-init[2180]: ci-info: ±-------±------±----------±----------±------±------------------+
[ 12.270282] cloud-init[2180]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
[ 12.270321] cloud-init[2180]: ci-info: | lo | True | ::1/128 | . | host | . |
[ 12.270358] cloud-init[2180]: ci-info: | wlp4s0 | False | . | . | . | 4c:82:a9:4c:d2:ad |
[ 12.270395] cloud-init[2180]: ci-info: ±-------±------±----------±----------±------±------------------+
[ 12.270431] cloud-init[2180]: ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++
[ 12.270468] cloud-init[2180]: ci-info: ±------±------------±--------±----------±------+
[ 12.270505] cloud-init[2180]: ci-info: | Route | Destination | Gateway | Interface | Flags |
[ 12.270544] cloud-init[2180]: ci-info: ±------±------------±--------±----------±------+
[ 12.270583] cloud-init[2180]: ci-info: ±------±------------±--------±----------±------+
[ 12.690542] cloud-init[2180]: 2024-05-02 15:10:52,722 - activators.py[WARNING]: Running [‘netplan’, ‘apply’] resulted in stderr output:
[ 12.690647] cloud-init[2180]: ** (generate:2188): WARNING **: 15:10:52.413: Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others.
[ 12.690695] cloud-init[2180]: ** (process:2187): WARNING **: 15:10:52.603: Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others.
[ 12.690736] cloud-init[2180]: ** (process:2187): WARNING *: 15:10:52.710: Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others.
[ 13.160468] cloud-init[2180]: Generating public/private rsa key pair.
[ 13.160569] cloud-init[2180]: Your identification has been saved in /etc/ssh/ssh_host_rsa_key
[ 13.160621] cloud-init[2180]: Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub
[ 13.160668] cloud-init[2180]: The key fingerprint is:
[ 13.160712] cloud-init[2180]: SHA256:Zul0iuPxrhniTCY/i5U8qyokojdcwNadrDfCR/zkkWg root@nick-burke-Laptop-16-AMD-Ryzen-7040-Series
[ 13.160757] cloud-init[2180]: The key’s randomart image is:
[ 13.160800] cloud-init[2180]: ±–[RSA 3072]----+
[ 13.160842] cloud-init[2180]: | |
[ 13.160881] cloud-init[2180]: | |
[ 13.160920] cloud-init[2180]: | . . + o . |
[ 13.160979] cloud-init[2180]: | + . E +. |
[ 13.161036] cloud-init[2180]: | . o + +S… |
[ 13.161078] cloud-init[2180]: |o. .=.+oo |
[ 13.161119] cloud-init[2180]: |=…O+=.o |
[ 13.161170] cloud-init[2180]: |o +X.= * |
[ 13.161211] cloud-init[2180]: |oooo
o+oo |
[ 13.161243] cloud-init[2180]: ±—[SHA256]-----+
[ 13.161260] cloud-init[2180]: Generating public/private ecdsa key pair.
[ 13.161276] cloud-init[2180]: Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key
[ 13.161293] cloud-init[2180]: Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub
[ 13.161309] cloud-init[2180]: The key fingerprint is:
[ 13.161365] cloud-init[2180]: SHA256:ex7Doov8ie9OdaIgcgxbqTl1P+U4K/TAgpTQ/ncY1sc root@nick-burke-Laptop-16-AMD-Ryzen-7040-Series
[ 13.161384] cloud-init[2180]: The key’s randomart image is:
[ 13.161400] cloud-init[2180]: ±–[ECDSA 256]—+
[ 13.161416] cloud-init[2180]: |… |
[ 13.161433] cloud-init[2180]: |. o. |
[ 13.161449] cloud-init[2180]: |.++ . … |
[ 13.161465] cloud-init[2180]: |.X.o .o+. E |
[ 13.161481] cloud-init[2180]: |B =.=.=oS… |
[ 13.161500] cloud-init[2180]: | + +.+o
.= |
[ 13.161519] cloud-init[2180]: | …=.o = |
[ 13.161535] cloud-init[2180]: | . = o + o |
[ 13.161551] cloud-init[2180]: | +=O. . |
[ 13.161567] cloud-init[2180]: ±—[SHA256]-----+
[ 13.161583] cloud-init[2180]: Generating public/private ed25519 key pair.
[ 13.161599] cloud-init[2180]: Your identification has been saved in /etc/ssh/ssh_host_ed25519_key
[ 13.161616] cloud-init[2180]: Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub
[ 13.161632] cloud-init[2180]: The key fingerprint is:
[ 13.161647] cloud-init[2180]: SHA256:MSJCQxbylPOcFUz/RP49h/zWydr8HxqjC0vki9jmNps root@nick-burke-Laptop-16-AMD-Ryzen-7040-Series
[ 13.161664] cloud-init[2180]: The key’s randomart image is:
[ 13.161679] cloud-init[2180]: ±-[ED25519 256]–+
[ 13.161695] cloud-init[2180]: |…Bo oo. . |
[ 13.161713] cloud-init[2180]: | *o. o. o |
[ 13.161728] cloud-init[2180]: | o+.o. + o |
[ 13.161745] cloud-init[2180]: | .+. . = . o . |
[ 13.161763] cloud-init[2180]: | S… . = .|
[ 13.161779] cloud-init[2180]: | o .+o|
[ 13.161795] cloud-init[2180]: | + o ++|
[ 13.161811] cloud-init[2180]: | o++ + . B…|
[ 13.161829] cloud-init[2180]: | .+Eoo o.o o=|
[ 13.161846] cloud-init[2180]: ±—[SHA256]-----+
[ OK ] Finished cloud-init.service - Init…nit job (metadata service crawler).
[ OK ] Reached target cloud-config.target - Cloud-config availability.
[ OK ] Reached target network-online.target - Network is Online.
[ OK ] Started update-notifier-download.t…hat failed at package install time.
[ OK ] Started update-notifier-motd.timer… a new version of Ubuntu available.
[ OK ] Reached target timers.target - Timer Units.
Starting cloud-config.service - Ap…ttings specified in cloud-config…
[ OK ] Started cups-browsed.service - Mak…te CUPS printers available locally.
Starting kerneloops.service - Tool…d submit kernel crash signatures…
[ OK ] Started whoopsie.service - crash report submission.
[ OK ] Started kerneloops.service - Tool …and submit kernel crash signatures.
[ 13.389965] cloud-init[2295]: Cloud-init v. 24.1.3-0ubuntu3 running ‘modules:config’ at Thu, 02 May 2024 15:10:53 +0000. Up 13.37 seconds.
[ 13.416711] cloud-init[2295]: Generating locales (this might take a while)…
[ 14.195117] cloud-init[2295]: en_US.UTF-8… done
[ 14.195575] cloud-init[2295]: Generation complete.

Apologies if I included too much detail here. I don’t know what’s relevant or not!?

This is the log before I run any updates. I don’t know how to generate a log of what happened when the boot fails.

Thanks again for responses so far :slight_smile:

Update: I tried a reboot without running any updates at all and it went straight to black screen.

Actually, it seems it is booting, only not into X-Windows.
Could be the kernel you are using has no hooks for the amdgpu.
What you can do is use: Ctrl-Alt-F3 and go to a console and see if you can go on troubleshooting from there (would be a regular text console).

Before you do that though, go into /etc/default/ and edit the file “grub” and change the timeout settings:

GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=3
GRUB_CMDLINE_LINUX_DEFAULT=""

First line will present you a menu of found systems. It should also let you boot into recovery.
Second line will give you the time to actually see the boot menu (you can set it to 5 also).
Third line will tell it to be verbose. To show you stuff on the screen.

Once the file is edited, run:

$ sudo update-grub2

It should regenerate the grub boot loader with these options.

PS: That will only work after you rebooted after the installation, as during the installation, the / filesystem is mounted somewhere else for installation.

PPS: If you can get into the CLI with Ctrl-Alt-F3 - you can also apply the changes to the grub configuation!

1 Like

Jorg has already addressed what occurs to me.

I know the project lead for the project, I may need to investigate getting them sorted on their end with hardware. I will see what is possible.

In the short term, booting to the CLI prompt.

sudo nano /etc/default/grub

Make sure your set to:

GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=3
GRUB_CMDLINE_LINUX_DEFAULT=“”

Then run this command:

sudo update-grub2

Reboot

Thank you so much @Jorg_Mertin and @Matt_Hartley this fix works for me, I could go on to update and upgrade everything including the BIOS and drivers as well. Whilst I don’t understand the verbose output of the boot sequence, it’s kind of fun to see all the green [yes] boxes and have an additional menu should I need that in the future when I learn more about these things. I’m very happy to have Ubuntu Studio again because I really love this distro :heart:

1 Like

Glad it worked.
The boot sequence shows the kernel initialization, then all the services that start up.
for me it is a sign - when going over to the services - that the kernel has booted fine and the init daemon (nowadays systemd) took over to continue starting the system.

And yes, if grub is not installed correctly, it can make some problems if you don’t know what happens under the surface.

Maybe I’ll check out Ubuntu studio myself, as we all play at least a music instrument in the family and it is time we start recording some ;D

2 Likes

Delighted to hear it, marking resolved.