Ubuntu 24.04.1 will not boot properly

Hello! First time posting here and I am quite desperate! :sob:

I started using my new laptop, Acer Aspire 5, a few days ago. It came with Windows 11 preinstalled. I installed Ubuntu Mate 24.04.1 from the Live CD after partitioning the hard drive with Gparted.

The issue I am facing is that nothing happens when I turn on my laptop and select Ubuntu from the Grub menu. The screen turns gray and it stays like that. I am then forced to power down the computer and turn it on again. After I do that, everything works normally. Sometimes I have to do that twice or thrice. I do not know why.

I am afraid that this might create issues with the hard drive in the long run, and I sincerely want to avoid that.

I will appreciate all the help I can get to fix this issue.

PS: Sometimes this issue also occurs when I reboot after a software update. I am puzzled. I would expect this behaviour from an old laptop, not a new one.

PPS: I tried using the Live USB to run fsck and the file system is clean! :thinking:

1 Like

Hi, @akaichi and welcome to the Ubuntu MATE Community!

1 Like

Sometimes, the newer PCs are more problematic because of

  • delay from manufacturers in providing Linux driver support, or

  • Linux code not yet updated to handle ramifications of newer hardware properties.

Please provide the report from the following command (use Live CD to obtain and send if necessary):

inxi -F -xxx

This will give the Community a full picture of what you are dealing with.

1 Like
System:
  Host: marcolino Kernel: 6.8.0-48-generic arch: x86_64 bits: 64 compiler: gcc
    v: 13.2.0 clocksource: tsc
  Desktop: MATE v: 1.26.2 wm: marco v: 1.26.2 with: mate-panel
    tools: mate-screensaver vt: 7 dm: LightDM v: 1.30.0 Distro: MATE 24.04.1
    LTS (Noble Numbat) base: Ubuntu
Machine:
  Type: Laptop System: Acer product: Aspire A515-57G v: V1.27
    serial: <superuser required>
  Mobo: ADL model: Ganymede_ADU v: V1.27 serial: <superuser required>
    part-nu: 0000000000000000 uuid: <superuser required> UEFI: Insyde v: 1.27
    date: 02/15/2024
Battery:
  ID-1: BAT1 charge: 53.7 Wh (100.0%) condition: 53.7/52.8 Wh (101.7%)
    volts: 12.8 min: 11.2 model: SMP AP23A7L type: Li-ion serial: 4820
    status: full
CPU:
  Info: 10-core (2-mt/8-st) model: 12th Gen Intel Core i5-1235U bits: 64
    type: MST AMCP smt: enabled arch: Alder Lake rev: 4 cache: L1: 928 KiB
    L2: 6.5 MiB L3: 12 MiB
  Speed (MHz): avg: 448 high: 612 min/max: 400/4400:3300 cores: 1: 400
    2: 612 3: 600 4: 400 5: 567 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400
    12: 400 bogomips: 59904
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-UP3 GT2 [UHD Graphics]
    vendor: Acer Incorporated ALI driver: i915 v: kernel arch: Gen-12.2 ports:
    active: eDP-1 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 0000:00:02.0
    chip-ID: 8086:4628 class-ID: 0300
  Device-2: NVIDIA GA107M [GeForce RTX 2050] vendor: Acer Incorporated ALI
    driver: nvidia v: 550.120 arch: Turing bus-ID: 0000:01:00.0
    chip-ID: 10de:25a9 class-ID: 0302
  Device-3: Quanta ACER HD User Facing driver: N/A type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-7:3 chip-ID: 0408:4033 class-ID: fe01
    serial: 01.00.00
  Display: x11 server: X.Org v: 21.1.11 compositor: marco v: 1.26.2 driver:
    X: loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa dri: iris
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 98 s-size: 499x280mm (19.65x11.02")
    s-diag: 572mm (22.53")
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x15e7 res: 1920x1080 hz: 60
    dpi: 142 size: 344x193mm (13.54x7.6") diag: 394mm (15.5") modes: 1920x1080
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 2 drv: iris device: 3 drv: swrast gbm: drv: nvidia
    surfaceless: drv: nvidia x11: drv: iris inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.0.9-0ubuntu0.2
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel Graphics (ADL GT2)
    device-ID: 8086:4628
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    vendor: Acer Incorporated ALI driver: sof-audio-pci-intel-tgl
    bus-ID: 0000:00:1f.3 chip-ID: 8086:51c8 class-ID: 0401
  API: ALSA v: k6.8.0-48-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 0000:00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: dc:97:ba:3a:f4:21
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Acer Incorporated ALI RTL8111/8168/8411 driver: r8169 v: kernel
    port: 3000 bus-ID: 0000:2b:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp43s0 state: down mac: 40:c2:ba:fa:d4:86
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-10:5 chip-ID: 8087:0026 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: DC:97:BA:3A:F4:25
    bt-v: 5.2 lmp-v: 11 sub-v: 363c hci-v: 11 rev: 363c class-ID: 7c010c
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:467f rev: class-ID: 0104
Drives:
  Local Storage: total: 476.94 GiB used: 17.57 GiB (3.7%)
  ID-1: /dev/nvme0n1 vendor: Micron model: 2450 MTFDKBA512TFK
    size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 tech: SSD serial: 235045941545
    fw-rev: V5MA010 temp: 23.9 C scheme: GPT
Partition:
  ID-1: / size: 97.87 GiB used: 17.5 GiB (17.9%) fs: ext4 dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 62 MiB (24.2%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) priority: -2
    file: /swap.img
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.33 GiB used: 4.16 GiB (27.1%)
  Processes: 330 Power: uptime: 2h 15m states: freeze,mem suspend: s2idle
    wakeups: 0 hibernate: disabled Init: systemd v: 255 target: graphical (5)
    default: graphical
  Packages: 2218 pm: dpkg pkgs: 2205 pm: snap pkgs: 13 Compilers:
    gcc: 13.2.0 Shell: Bash v: 5.2.21 running-in: mate-terminal inxi: 3.3.34

Many times, such problems can be resolved by adding specific modifiers to the various parameters in

/etc/default/grub

Given today's hardware, the following are often useful, if you don't have those set:

GRUB_TERMINAL=gfxterm
GRUB_GFXMODE="1440x900,1280x1024,auto"
GRUB_GFXPAYLOAD_LINUX="keep"

The first is used instead of "GRUB_TERMINAL=console".

The second gives the progression of resolutions to try, if the first (preferred resolution) fails.

The last ensures that the "boot" is not let to its own devices, using the "lessons learned" from grub to influence settings/recognition used by the Linux kernel.

As a first try, let's hope those can help!

1 Like

Do I have to open it with Gedit?

Also, should I turn off secure boot or is it important?

I can't help regarding "secure boot".

You can use any text editor of your choice.

Mine is Gvim.
Default Pluma is OK, but nothing fancy.
Gedit is fine as well, but not mandatory.

1 Like

Hi akaichi, I stumble upon your post again!

I've experienced this issue in Xubuntu 24.04 and Ubuntu Mate 24.04.1 too. I recently opened a post here regarding mine as well. I've tried multiple advices from the community (Discord) but to no avail.

I've mentioned, though I doubt it will help permanently to fix this issue, I deal with it by opening my laptop's one-time boot menu (F12 in my 0932VT). Booting to BIOS will work too, and Grub (Esc >> Advanced options) using an older kernel.

I've had this for a couple of months now, I don't see any serious effects whatsoever, particularly on the drive.

1 Like

Hi, @akaichi :slight_smile:

(Usual disclaimer: please note that I'm just another Forum user here. I'm NOT an Ubuntu developer or an Ubuntu MATE developer)

You've asked:

Usually, it's NOT necessary to disable "Secure Boot" to run Ubuntu... BUT I think that at least some of the "Acer Aspire" laptops are a bit of a special case, in the sense that it's possible that you may need to either:

A) Disable "Secure Boot"

- OR -

B) Follow the procedure described in the following "It's FOSS" article, published on 24th Jan 2023, that was written based on a scenario using an "Acer Aspire R13":

I hope this helps. Please, keep us posted :slight_smile:

3 Likes

Thanks, Ric and Keiaa! :slight_smile:

After all this pain, I am seriously considering installing 22.04. This is becoming too much trouble for an operating system. No Ubuntu version was without flaws; this one is a colossal mess. I will try your suggestion(s), though!

1 Like

You might find clues in the system log if you are able to boot the system up; e.g.:

journalctl -b -1 -r

will show the previous boot with the latest message at the top, that might help identify where the system is getting stuck - or what happened when it crashed.

[edit] you can add --dmesg for the kernel log specifically [/edit]

When you say 'forced' to power down the computer, do you mean you cannot access another terminal either when the screen goes grey (e.g. via Ctrl + Alt + F2)? Also, for a slightly gentler reboot, you could try a REISUB (see Keyboard shortcuts - ArchWiki). This usually means holding Alt + PrintScr then typing R E I S U B.

3 Likes

Actually installing 22.04 is not a bad idea if you sign up for Ubuntu Pro that extends the life of the OS. That would get you past 24.04 to the next LTS release. I was having problems with the installer and had considered doing just that, but then they worked on the installer and I got it installed. I am not sure, but I would guess you might have to do that before EOL for 22.04. We know 22.04 was a very good release. Even with24.04 I signed up for Ubuntu Pro, I love the longer OS life.

3 Likes

Hello, everyone! :blush:

First, thank you very much for your time trying to help me! I appreciated it! :face_holding_back_tears:

I am now running Ubuntu Mate 22.04.5. So far, so good. Touching wood, etc. etc. :crossed_fingers:t2:

Thanks, Jymm, I might sign up for Ubuntu Pro in the future! Right now all I want is to use my new laptop without hassle!

Stephen Wade, when I meant "forced to power down the computer", I was referring to pressing the off button on the laptop.

3 Likes

That didn't explicitly answer my question, but I will assume you mean that you tried opening another terminal (and failed), and that you also tried a REISUB, and that also failed, therefore had to power down.

REISUB is by default disabled on debian and therefore also on Ubuntu and flavours. :pensive:

2 Likes

True - kinda, it's not exactly enabled on MATE 24.04.1, consider the output on my machine of:

cat /proc/sys/kernel/sysrq
> 176

This allows sync, remount, and reboot signals according to the guide here: Linux Magic System Request Key Hacks — The Linux Kernel documentation. I believe this means it won't:

  • R: Turns off keyboard raw mode and sets it to XLATE.
  • E: Send a SIGTERM to all processes, except for init, and;
  • I: Send a SIGKILL to all processes, except for init.

But it will reboot (slightly more calmly).

The value is set by sysctl, and on my 24.04.1 machine it is set via /etc/sysctl.d/10-magic-sysrq.conf with the line:

kernel.sysrq=176

To enable the E and I, I guess, I could set kernel.sysrq to 240 (the bitwise OR of 176 and 64). Or I could enable all signals by setting it to 1.

Either way, it does do a somewhat gentler reboot.

1 Like