MX Linux boot problems!

My MX23ahs Linux would not boot tonight. I get a blank screen after I choose MX on the grub menu.
Everything else (Void and Devuan) boots OK
So grub is OK and the hardware is OK.
I tried editing the grub menu and adding ‘nomodeset’ as a boot parameter for MX.
Then it boots, and I get a low resolution (VGA) screen.
So there has to be something wrong with the ‘amdgpu’ graphics driver.
There were some updates waiting, so I did those … no difference, it still will not boot without ‘nomodeset’
I did update-grub and it made a new initramfs, but that did not help.
There must have been an update yesterday ( I cant remember) that caused this.
There is only one kernel 6.5.0. Maybe I should install another kernel.

Cant think of what to try next. Trying to reverse the updates is something I have never practiced.
I think if it does not self fix, I will be changing to something that works. MX was supposed to be my reliable base distro.

2 Likes

Hi Neville, :wave:

what about timeshift snapshots?
Do you have any of them available?

Cheers from Rosika :slightly_smiling_face:

3 Likes

No snapshots. I have clonezilla images, quite recent.
That is certainly one option.

Another option is to get out of MXahs and do a fresh install of normal MX.
I went to ahs originally because of issues with a new amd graphics card. That problem is gone, I should be able to use normal MX today.

5 Likes

If you had a snapshot from before the update, it would be soooo easy! :smiley:
Well, I found this bash-snippet:

for file_list in `ls -rt /var/lib/dpkg/info/*.list`; do \
    stat_result=$(stat --format=%y "$file_list"); \
    printf "%-50s %s\n" $(basename $file_list .list) "$stat_result"; \
done

That works on my Debian, and lists packages, and when they were installed.

Looks like:

base-files                                         2024-09-03 08:17:02.560763953 +0200
libc6-dbg:amd64                                    2024-09-03 08:17:03.460763974 +0200
libc6-i386                                         2024-09-03 08:17:03.888763984 +0200
libc-devtools                                      2024-09-03 08:17:04.092763988 +0200
libc6-dev:amd64                                    2024-09-03 08:17:04.444763997 +0200
libc-dev-bin                                       2024-09-03 08:17:04.568764000 +0200
linux-libc-dev:amd64                               2024-09-03 08:17:04.876764007 +0200
libc6:amd64                                        2024-09-03 08:17:05.408764019 +0200
libc-bin                                           2024-09-03 08:17:06.356764041 +0200
systemd-sysv                                       2024-09-03 08:17:06.880764054 +0200
libpam-systemd:amd64                               2024-09-03 08:17:07.148764060 +0200
libssl-dev:amd64                                   2024-09-03 08:17:07.516764068 +0200
libssl3:amd64                                      2024-09-03 08:17:07.788764075 +0200
systemd                                            2024-09-03 08:17:08.512764092 +0200
libsystemd-shared:amd64                            2024-09-03 08:17:08.828764099 +0200
libsystemd0:amd64                                  2024-09-03 08:17:09.008764103 +0200
cups-ipp-utils                                     2024-09-03 08:17:09.432764113 +0200
cups-common                                        2024-09-03 08:17:09.672764119 +0200
cups-bsd                                           2024-09-03 08:17:09.900764124 +0200
cups-client                                        2024-09-03 08:17:10.120764129 +0200
cups-core-drivers                                  2024-09-03 08:17:10.344764134 +0200
cups-ppdc                                          2024-09-03 08:17:10.520764138 +0200
cups-server-common                                 2024-09-03 08:17:10.752764144 +0200
cups-daemon                                        2024-09-03 08:17:11.012764150 +0200
cups                                               2024-09-03 08:17:11.240764155 +0200
libcupsimage2:amd64                                2024-09-03 08:17:11.460764160 +0200
libcups2:amd64                                     2024-09-03 08:17:11.648764165 +0200
libcurl3-gnutls:amd64                              2024-09-03 08:17:11.820764169 +0200
curl                                               2024-09-03 08:17:12.052764174 +0200
libcurl4:amd64                                     2024-09-03 08:17:12.256764179 +0200
libgail-3-0:amd64                                  2024-09-03 08:17:12.464764184 +0200
libgtk-3-common                                    2024-09-03 08:17:12.952764195 +0200
libgtk-3-0:amd64                                   2024-09-03 08:17:13.388764205 +0200
google-chrome-stable                               2024-09-03 08:17:18.756764331 +0200
libimage-magick-q16-perl                           2024-09-03 08:17:19.016764337 +0200
libimage-magick-perl                               2024-09-03 08:17:19.176764341 +0200
imagemagick-6-common                               2024-09-03 08:17:19.304764344 +0200
libmagickcore-6.q16-6:amd64                        2024-09-03 08:17:19.532764349 +0200
libmagickwand-6.q16-6:amd64                        2024-09-03 08:17:19.720764353 +0200
udev                                               2024-09-03 08:17:20.012764360 +0200
libudev1:amd64                                     2024-09-03 08:17:20.256764366 +0200
amd64-microcode                                    2024-09-03 08:17:20.736764377 +0200
intel-microcode                                    2024-09-03 08:17:21.124764386 +0200
libc-l10n                                          2024-09-03 08:17:21.328764391 +0200
locales                                            2024-09-03 08:17:21.776764401 +0200
calibre-bin                                        2024-09-03 08:17:22.068764408 +0200
calibre                                            2024-09-03 08:17:23.384764439 +0200
libgail-common:amd64                               2024-09-03 08:17:23.584764444 +0200
libgail18:amd64                                    2024-09-03 08:17:23.700764446 +0200
gtk-update-icon-cache                              2024-09-03 08:17:23.816764449 +0200
libgtk2.0-common                                   2024-09-03 08:17:24.120764456 +0200
libgtk2.0-bin                                      2024-09-03 08:17:24.380764462 +0200
libgtk2.0-dev:amd64                                2024-09-03 08:17:24.584764467 +0200
libgtk2.0-0:amd64                                  2024-09-03 08:17:24.904764474 +0200
gir1.2-gtk-2.0:amd64                               2024-09-03 08:17:25.120764479 +0200
gir1.2-gtk-3.0:amd64                               2024-09-03 08:17:25.324764484 +0200
libgraphviz-dev:amd64                              2024-09-03 08:17:25.560764490 +0200
libcgraph6:amd64                                   2024-09-03 08:17:25.768764495 +0200
libpathplan4:amd64                                 2024-09-03 08:17:26.008764500 +0200
libgvc6                                            2024-09-03 08:17:26.196764505 +0200
libgvpr2:amd64                                     2024-09-03 08:17:26.388764509 +0200
libxdot4:amd64                                     2024-09-03 08:17:26.544764513 +0200
liblab-gamut1:amd64                                2024-09-03 08:17:26.756764518 +0200
libgvc6-plugins-gtk                                2024-09-03 08:17:27.000764523 +0200
libcdt5:amd64                                      2024-09-03 08:17:27.148764527 +0200
graphviz                                           2024-09-03 08:17:27.392764532 +0200
gtk2-engines-pixbuf:amd64                          2024-09-03 08:17:27.604764537 +0200
imagemagick-6.q16                                  2024-09-03 08:17:27.844764543 +0200
imagemagick                                        2024-09-03 08:17:27.992764546 +0200
initramfs-tools                                    2024-09-03 08:17:28.144764550 +0200
initramfs-tools-core                               2024-09-03 08:17:28.284764553 +0200
libgtk-3-bin                                       2024-09-03 08:17:28.432764557 +0200
libmagick++-6.q16-8:amd64                          2024-09-03 08:17:28.656764562 +0200
libmagickcore-6.q16-6-extra:amd64                  2024-09-03 08:17:28.904764568 +0200
libnss-myhostname:amd64                            2024-09-03 08:17:29.124764573 +0200
linux-compiler-gcc-12-x86                          2024-09-03 08:17:29.240764576 +0200
linux-headers-6.1.0-25-common                      2024-09-03 08:17:31.012764617 +0200
linux-kbuild-6.1                                   2024-09-03 08:17:31.216764622 +0200
linux-headers-6.1.0-25-amd64                       2024-09-03 08:17:32.980764663 +0200
linux-headers-amd64                                2024-09-03 08:17:33.176764668 +0200
linux-image-6.1.0-25-amd64                         2024-09-03 08:17:35.028764711 +0200
linux-image-amd64                                  2024-09-03 08:17:35.200764715 +0200
openssl                                            2024-09-03 08:17:35.440764720 +0200
python3-numpy                                      2024-09-03 08:17:36.136764737 +0200
shim-unsigned:amd64                                2024-09-03 08:17:36.376764742 +0200
shim-helpers-amd64-signed                          2024-09-03 08:17:36.632764748 +0200
shim-signed-common                                 2024-09-03 08:17:36.800764752 +0200
shim-signed:amd64                                  2024-09-03 08:17:37.108764759 +0200
teamviewer                                         2024-09-03 08:17:41.308764857 +0200
usb.ids                                            2024-09-03 08:17:41.544764863 +0200

Create your list, and check which were installed recently.
You may downgrade those packages you suspect to be the culprit.
One-by-one, and whenever you find the package, which is really the cause of the problem, you can apt-mark hold the previous, still working package.

5 Likes

Systemback 4ever :smiley:

2 Likes

Hi László, :wave:

thanks for the suggestion.

But I guess Neville wouldn´t benfit from it at that point because he would´ve had to create a “snapshot” with it before the problem materialized, right?

BTW:

I looked it up here.

It says:

Simple system backup and restore application with extra features

Systemback makes it easy to create backups of the system and the users configuration files.

In case of problems you can easily restore the previous state of the system. There are extra features like system copying, system installation and Live system creation.

In your opinion: does it offer more functionality that timeshift?
From what you said I gather your prefer systemback.

Cheers from Rosika :slightly_smiling_face:

4 Likes

Not really…

I mean this one:

It’s “just” a script, so it’s useful for all my desktops, laptops, as well as for servers, be it a VPS or the headless Odroid.

I can script the creation of restore points.

What you found is an ancient previous thing.

Right. :slight_smile:

Well, I don’t know really Timeshift.
But this script can run on different architectures (I use it on amd64, armhf, arm64), does not depend on GUI, is scriptable, configurable what to back up, what not, the flexibility is infinite…
Yes, I prefer systemback :wink:

4 Likes

I have a recent clonezilla image

It should work in MX… it is Debian based… uses apt.
That is worth a try… if I can just get the mouse to copy it!
I suspect amdgpu firmware.

OK , cant do any harm trying that.

5 Likes

Hi László, :wave:

thanks for recommending this script.
I´ll defintively have a look at it.

Looking at the author´s first name I suspect he´s Hungarian. Nice. :wink:

Many greetings from Rosika :slightly_smiling_face:

4 Likes

Yes, it’s made in Hungary :slight_smile:

5 Likes

Hi, @nevj

I’m glad it is not just my MX that went from perfect working to not working. Mine did boot, it’s just everything was gone from my workspace settings. I have 6 desktops and there was now only one labeled “workspace.” Mine had names.

I tried using Timeshift all the way back to over a week prior, both daily & hourly and that did not change anything. Cannot figure out why. My last image (CZ) was August 1, so I may have no choice but to use that.

Like you, I may have to switch distros as I cannot have the system just lose settings after updates. I did not look at any of the other settings yet, so not sure what else was affected. I was beginning to think hardware failure on one of my newest laptops, but I don’t think so.

Sheila

3 Likes

Hi Sheila,
It may not be that drastic.
I solved my issue by changing kernels
I had 6.5.0-1mx-ahs-amd64
I changed to 6.9.12-am64
ie
to non-ahs and a later kernel.

That got me a new set of amdgpu drivers, and it seems to have solved
the issue.

So, before you dispair, try another kernel.
Regards
Neville

Thank you to all who responded
@Rosika, @kovacslt , did I miss anyone?
I tried your script Laszlo… 2450 lines of output
I think this was the culprit

firmware-linux                                     2024-08-31 18:44:00.459996115 +1000
firmware-amd-graphics                              2024-08-31 18:44:01.152004445 +1000

Newer kernel would have brought in new firmware.

Do you mean Xfce session saving was gone?
It should not lose settings with updates, I agree.
Today I had an issue with Void , where an update changed the name of the ethernet interface ( enp12s0 became enp17s0). That mucked up my network settings.
So it can happen.
Did you install anything new? That might do it… eg a whole new DE would chsnge everything.

4 Likes

In an other thread there was discussion about plagirarism :wink: , so to credit: it’s not my script, I found it online somewhere before, but can’t remember where it is from…
But it’s in my collection of scripts and snippets :slight_smile:

4 Likes

I think the ethics would say that is OK. We all copy bits of code and it is easy to lose track. The Australian expression is
“it fell off the back of a truck”
Anyway , it is a really useful script, thank you.

4 Likes

:laughing:

I LOVE that expression!

:smiley:

3 Likes

Yes. All of my desktop items did not open on their individual spaces, but one thing, a MAJOR thing I forgot to mention: all windows opened in the uppermost left corner where the menu bar was hidden. There was no way to get out of the windows as even opening Task Manager and clicking on the PID to kill did not work. They all stacked on top of one another and left me with an unusable system. Start menu worked, but I had to scroll and use the mouse to select anything as trying to type in an item to search for, nothing typed.

I did not try a different kernel. I will have to check which one is the current. And I had made no changes, only updated as I always do when alerted that some are available. I only use the Xfce desktop and I do have the AHS install as this laptop has the Nvidia 3060.

I found it strange that timeshift could not resolve the desktop issue. Each reboot after rolling back in time–the same issues remained. I have not booted into it since the last of 6 attempts failed. I was debating on restoring the image, but not sure if I have installed any other apps since then. Thankfully, my home folders reside on a separate disk, so the image restore would not affect personal files.

Which log would I find useful for tracking down the culprit?

Thanks,
Sheila

1 Like

Hi Sheila,
That is indeed strange… you rolled back to a snapshot of a working system… and it did not work?
I can only think of a few things that might do that

  • hardware problem
  • something changed in the BIOS
  • CMOS battery failing

Can you do a test… Try MX from a live flash drive that you know works… eg the one you installed from.

I dont think a new kernel will help, but it is easy to try
and I dont think it is an upgrade problem either

Regards
Neville

1 Like

Hi @nevj

I am attaching the screenshot of available kernels in GRUB. I thought when they list those it was because they are older than the current one.

I chose the 2nd one 6.5 and still had the issue. The issue with the windows all lying on top of each other is below. When this happens, the header bar at the top is unreachable so you cannot right click to close, move, etc. and the min/max/close are also hidden. Each new window opened moves to the same spot on top of the last one making all those behind it invisible/inaccessible.

The Barrier window is over the Firefox (which opened in a tiny rectangle) and even if I select the menu Barrier and Exit, that window stays there. As you can see half of my panel is hidden, so those icons I can access, I can right click and close the Barrier window. And for some reason, the Firefox window has the header available to click X to close. But after that, no getting rid of those hiding the upper portion of my panel.

I can boot into a live session, anything from the USB cause that is how I accessed Clonezilla thinking I might need to restore the image. And I do have a dual boot system, so from Arch I was able to access folders on the external drive where home folders & images are saved, so that is how I knew the most recent MX image was a month old.

I am going to see how far back I can go with Timeshift and the issue remain. I’d rather lay the image back on than do a fresh install and have to set it up all over again, but I took that image before installing Arch as dual boot, so it will wipe that off of the drive. I have an image of the Arch partition itself, but I don’t think I can restore that alongside the restored MX Linux. I did not want to take a complete disk image with MX messed up like this.

Thanks,
Sheila

1 Like

You only have 6.5.0-ahs kernel… the same one I had trouble with

To install another kernel

  • go to the MX package manager… in MX Tools
  • choose current enabled repo
  • search for linux
  • scroll down until you see all the available kernels listed
  • choose one ( I picked 6.9.0-amd64 ie not an ahs kernel)
  • click install it should finish with an update-grub
  • when it finishes reboot… you will get the new kernel at top of grub menu

I am not sure that will fix it. You problem is different to mine

2 Likes

You mean a live usb does not have the window manager problems? Right?

OK… if that is right you do not have a hardware problem

It seems your window manager has been interfered with somehow…
but
I dont understand how a timeshift rollback would not fix it… does timeshift not restore the settings in your home directory?.. if that is the case you need to go to Clonezilla… you may be able to sekectively restore just your home directory if it is on a separate partition… otherwise you have to restore the lot.
and
in future, think about having your dot files included in timeshift… that is rather useless without the dot files… they are part of the system.

Oh Dear, life is never easy

2 Likes