Page 1 of 2
Session not restored after boot/reboot

Posted:
Jun 8th, '24, 16:39
by ylyco
Hi there,
I use KDE desktop, and the restore previous session setting does not seem to be working. I have to re-open all my programs. Every time I log in, I get a blank desktop.
The restore previous session radio button is checked in the desktop session settings.
“Start with manually saved session” doesn't work either.
The issue appears this morning after updating the system.
Anyone else is facing this behaviour ?
Thanks for any help.
Re: Session not restored after boot/reboot

Posted:
Jun 8th, '24, 22:43
by doktor5000
Hi there, some more information would be helpful. What Mageia release do you use, and which login manager do you use ?
Re: Session not restored after boot/reboot

Posted:
Jun 9th, '24, 08:50
by ylyco
Thank you doktor5000 for your help.
I use Mageia 9 which is up-to-date, and SDDM as login manager.
Re: Session not restored after boot/reboot

Posted:
Jun 9th, '24, 10:20
by bbfuller
I can confirm this behaviour.
I'm using an i3 processor with 12GB of memory. Mageia 9 with SDDM as the login manager.
As far as I can tell, it's as it was installed from the iso file with the addition of a few things like Vivaldi Browser and Google Earth. It has been kept regularly up to date.
Previously, and since I first started using Mageia at least as far back as Mageia 5 I have it set to session restore at startup. All of that time it has restored all of the programs that I leave open upon shutdown with the exception of Vivaldi.
That usually consists of Firefox, Midori, Thunderbird, multiple instances of Dolphin, Konsole and Okular.
Vivaldi browser doesn't reopen, but then it never has.
These last couple of days Firefox, Midori and Thunderbird continue to reopen, but none of the KDE programs do.
I can confirm that in "Session Restore", "On last logout" is still the option selected.
Edit I can confirm the same behaviour with my Ryzen 5 laptop.
Re: Session not restored after boot/reboot

Posted:
Jun 9th, '24, 18:53
by ylyco
Thanks bbfuller for your message.
I don't think it is realy relevant, but I am with a AMD Ryzen 7 5700G.
Re: Session not restored after boot/reboot

Posted:
Jun 10th, '24, 03:46
by huggabounce
bbfuller wrote:These last couple of days Firefox, Midori and Thunderbird continue to reopen, but none of the KDE programs do.
This is my experience as well in affecting the KDE apps.
I seem to have worked around this by downgrading plasma-workspace, which was updated recently as
https://bugs.mageia.org/show_bug.cgi?id=33272.
I'm using dnf here as an example how...
- Code: Select all
dnf --showduplicates list plasma-workspace
sudo dnf install plasma-workspace-5.27.10-1.mga9
sudo dnf versionlock exclude plasma-workspace-5.27.10-1.1.mga9
Here I have excluded explicitly the package version 5.27.10-1.1 so automatic updates don't reinstall it but also in the hope a future version will not have the same problem.
Given this is a security update for plasma-workspace i wouldn't recommend downgrading, though it does appear to be affecting other distros like Suse:
https://bugzilla.suse.com/show_bug.cgi?id=1225774#c5
Re: Session not restored after boot/reboot

Posted:
Jun 10th, '24, 10:15
by morgano
Thank you for the inputs.
I opened
https://bugs.mageia.org/show_bug.cgi?id=33279 - Plasma desktop session is not restored
Re: Session not restored after boot/reboot

Posted:
Jun 10th, '24, 16:09
by ylyco
Thank you all for your answers.
I tried your recipe, but the issue remains (sorry but the below messages system are in french) :
- Code: Select all
[regis@Asus2022 ~]$ dnf --showduplicates list plasma-workspace
google-chrome 17 kB/s | 3.6 kB 00:00
détermination du miroir le plus rapide (10 hôtes).. done. [=== ] --- B/s | 0 B --:-- ETA
Mageia 9 - x86_64 17 MB/s | 38 MB 00:02
détermination du miroir le plus rapide (5 hôtes).. done. [ === ] --- B/s | 0 B --:-- ETA
Mageia 9 - x86_64 - Updates 11 MB/s | 20 MB 00:01
History database cannot be created, using in-memory database instead: SQLite error on "/var/lib/dnf/history.sqlite": Open failed: unable to open database file
Paquets installés
plasma-workspace.x86_64 5.27.10-1.1.mga9 @System
Paquets disponibles
plasma-workspace.x86_64 5.27.5-2.mga9 mageia-x86_64
plasma-workspace.x86_64 5.27.5-2.1.mga9 updates-x86_64
plasma-workspace.x86_64 5.27.10-1.mga9 updates-x86_64
plasma-workspace.x86_64 5.27.10-1.1.mga9 updates-x86_64
[regis@Asus2022 ~]$ sudo dnf install plasma-workspace-5.27.10-1.mga9
[sudo] Mot de passe de regis :
Dernière vérification de l’expiration des métadonnées effectuée il y a 2:47:19 le lun. 10 juin 2024 12:53:31.
Dépendances résolues.
============================================================================================================================================================
Paquet Architecture Version Dépôt Taille
============================================================================================================================================================
Rétrogradation:
plasma-workspace x86_64 5.27.10-1.mga9 updates-x86_64 17 M
Résumé de la transaction
============================================================================================================================================================
Retrograder 1 Paquet
Taille totale des téléchargements : 17 M
Voulez-vous continuer ? [o/N] : o
Téléchargement des paquets :
plasma-workspace-5.27.10-1.mga9.x86_64.rpm 25 MB/s | 17 MB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 20 MB/s | 17 MB 00:00
Test de la transaction
La vérification de la transaction a réussi.
Lancement de la transaction de test
Transaction de test réussie.
Exécution de la transaction
Préparation : 1/1
Rétrogradation : plasma-workspace-5.27.10-1.mga9.x86_64 1/2
Nettoyage de : plasma-workspace-5.27.10-1.1.mga9.x86_64 2/2
Exécution du scriptlet: plasma-workspace-5.27.10-1.mga9.x86_64 2/2
Exécution du scriptlet: plasma-workspace-5.27.10-1.1.mga9.x86_64 2/2
Vérification de : plasma-workspace-5.27.10-1.mga9.x86_64 1/2
Vérification de : plasma-workspace-5.27.10-1.1.mga9.x86_64 2/2
Rétrogradé:
plasma-workspace-5.27.10-1.mga9.x86_64
Terminé !
[regis@Asus2022 ~]$ sudo dnf versionlock exclude plasma-workspace-5.27.10-1.1.mga9
Aucune commande telle que : versionlock. Veuillez utiliser /bin/dnf --help
Cela est peut-être une commande d’un module supplémentaire de DNF, essayez : « dnf install 'dnf-command(versionlock)' »
[regis@Asus2022 ~]$
[regis@Asus2022 ~]$ sudo dnf install 'dnf-command(versionlock)'
Dernière vérification de l’expiration des métadonnées effectuée il y a 2:49:52 le lun. 10 juin 2024 12:53:31.
Dépendances résolues.
============================================================================================================================================================
Paquet Architecture Version Dépôt Taille
============================================================================================================================================================
Installation:
python3-dnf-plugin-versionlock noarch 4.3.1-1.mga9 mageia-x86_64 19 k
Résumé de la transaction
============================================================================================================================================================
Installer 1 Paquet
Taille totale des téléchargements : 19 k
Taille des paquets installés : 23 k
Voulez-vous continuer ? [o/N] : o
Téléchargement des paquets :
python3-dnf-plugin-versionlock-4.3.1-1.mga9.noarch.rpm 50 kB/s | 19 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 35 kB/s | 19 kB 00:00
Test de la transaction
La vérification de la transaction a réussi.
Lancement de la transaction de test
Transaction de test réussie.
Exécution de la transaction
Préparation : 1/1
Installation : python3-dnf-plugin-versionlock-4.3.1-1.mga9.noarch 1/1
Exécution du scriptlet: python3-dnf-plugin-versionlock-4.3.1-1.mga9.noarch 1/1
Vérification de : python3-dnf-plugin-versionlock-4.3.1-1.mga9.noarch 1/1
Installé:
python3-dnf-plugin-versionlock-4.3.1-1.mga9.noarch
Terminé !
[regis@Asus2022 ~]$ sudo dnf versionlock exclude plasma-workspace-5.27.10-1.1.mga9
Dernière vérification de l’expiration des métadonnées effectuée il y a 2:50:10 le lun. 10 juin 2024 12:53:31.
Exclusion de : plasma-workspace-0:5.27.10-1.1.mga9.*
[regis@Asus2022 ~]$
After the system reboot, the issue is the same...
Did I forget anything ?
note :
the plasma-workspace version installed right now is the 5.27.10-1, and CCM propose me to update to 5.27.10-1.1, so I'm not sure the workaround has run fine...
Re: Session not restored after boot/reboot

Posted:
Jun 10th, '24, 17:47
by huggabounce
ylyco wrote:the plasma-workspace version installed right now is the 5.27.10-1, and CCM propose me to update to 5.27.10-1.1, so I'm not sure the workaround has run fine...
Sorry to hear my tips did not work for you. I have not done thorough testing, but for me, Konsole was not saving session and now it does with the downgrade of plasma-workspace.
Your output appears to have worked, but my examples assume
dnf is your preferred package tool as in
https://wiki.mageia.org/en/Using_DNF.
dnf is what I am used to, so I only use that.
It may be that something like CCM updated the package again without you realising (eg double-check with
rpm -q plasma-workspace), or that your specific system may need
all the packages from
https://bugs.mageia.org/show_bug.cgi?id=33272 downgraded. Someone else may be able to help you using other Mageia methods, or just wait for an upstream fix.

Re: Session not restored after boot/reboot

Posted:
Jun 10th, '24, 20:57
by ylyco
Thank you huggabounce anyway

Before and after your workaround, I still can't restore session about Dolphin windows, PDFs, images. Only Firefox and Thunderbird show up correctly.
I didn't try LibreOffice documents for now.
As I'm afraid to breakdown my system, I prefer waiting for a fix upgrade : this issue is not user-friendly but not a blocking one.
I stay in touch here.
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 12:45
by morgano
Please try updated packages in
https://bugs.mageia.org/show_bug.cgi?id=33279, and report there.
Is LibreOffice restoring supposed to work - did id ever?
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 13:34
by ylyco
Sorry to ask for this :
which source repository I have to activate so I can see these packages for install ?
(backports testing ?, tainted release debug ?, or other ?)
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 13:48
by morgano
.../media/core/updates_testing/
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 14:05
by ylyco
I activated the repository like this :
https://ibb.co/kS7xB4hBut the packages can't be found, here is what happens :
- Code: Select all
[regis@Asus2022 ~]$ sudo urpmi plasma-workspace-5.27.10-1.2.mga9
[sudo] Mot de passe de regis :
Pas de paquetage nommé plasma-workspace-5.27.10-1.2.mga9
[regis@Asus2022 ~]$
Translating : "no package named ... found"
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 16:15
by doktor5000
You may need to wait for your mirror to sync the newer packages.
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 20:07
by ylyco
doktor5000 wrote:You may need to wait for your mirror to sync the newer packages.
I still can't see any package, sorry for that : I can't try the packages so far...
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 20:25
by bbfuller
Hello ylyco
Like you, I'm waiting for the mirror I'm connected to to synchronise. I don't know if there's any way to tell how often individual mirrors do that.
I guess we'll have to wait patiently.
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 20:58
by morgano
See
https://mirrors.mageia.org/statusSome mirrors are currently lagging far behind.
It pays to select a mirror that seldom fall behind, but it also need to be fast enough seen from your place.
My favourite is umu.se despite some is closer than that one to me.
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 21:15
by bbfuller
Not even sure what mirror my machine uses.
The URL in the Control Centre just says "$MIRRORLIST"
I've never been aware of people talking about updates that I haven't had so I'll just be patient.
Re: Session not restored after boot/reboot

Posted:
Jun 11th, '24, 23:56
by Germ
Do you have the updates_testing media enabled?
Re: Session not restored after boot/reboot

Posted:
Jun 12th, '24, 02:14
by bbfuller
In Mageia Control Centre I have "Core Updates Testing" ticked in the enabled column on both my laptop and my main machine.
On the main machine, when I ask to edit the core updates testing entry it shows "$MIRRORLIST".
On the laptop doing the same thing shows
https://www.mirrorservice.org/sites/mag ... es_testingI think the former was an upgrade from Mageia , the latter was a fresh install from a live memory stick.
Interestingly, when "morgano" provided a link to the Mageia Mirror Status page, I took a look at that. I'm not sure what some of the descriptions refer to, but there is a row called reference. While I've been watching it, the date/time stamp for cauldron has advanced to 2024-06-11 23:40 while the similar entry for 9 has remained static at 2024-06-11 16:04.
It's been a long day and I'm off to bed. See what tomorrow brings.
Thanks for the input so far.
Re: Session not restored after boot/reboot

Posted:
Jun 12th, '24, 02:35
by doktor5000
"$MIRRORLIST" means it automatically selects a geographically close and fast mirror.
You can check the candidates at the top of /var/cache/urpmi/mirrors.cache
Re: Session not restored after boot/reboot

Posted:
Jun 12th, '24, 02:40
by Germ
Re: Session not restored after boot/reboot

Posted:
Jun 12th, '24, 02:45
by bbfuller
Haven't quite made it to bed yet.
I'm sure I can change the mirrors if I have to, but as both machines have been happily updating since I installed them I'm reluctant to do so.
Are we saying that the others who have had this problem are getting the testing update through OK?
This time, I will see what tomorrow (today) brings!
Re: Session not restored after boot/reboot

Posted:
Jun 12th, '24, 03:32
by Germ
I got the update OK on all three machines. I use the princeton.edu mirror here in the states.
distrib-coffee in France is also a good mirror. Updates fast.