[SOLVED]Black screen or distorted login screen

[SOLVED]Black screen or distorted login screen

Postby mackowiakp » Dec 3rd, '23, 16:42

According to thread https://forums.mageia.org/en/viewtopic.php?f=23&t=15159&p=88854#p88854

Fresh M9 installation with /root and /home formatting.
I changed the login theme to another one available in the desktop settings option.
After rebooting the system, a black screen appeared with only the mouse pointer instead of the login screen. I waited a few minutes but nothing changed.
I changed the SDDM configuration file, disabling the new login screen option and forcing it to default theme.
I did the work with CLI (Alt+Ctrl+F2).
Code: Select all
[maciek@Piotr ~]$ cat /etc/sddm.conf.d/kde_settings.conf
[Autologin]
Relogin=false
Session=.desktop
User=

[General]
HaltCommand=
RebootCommand=

[Theme]
#Current=breeze

[Users]
MaximumUid=60000
MinimumUid=500

After reloaded the system, the black screen appeared again, but after a few minutes a distorted login image appeared. However, it was possible to enter the password and the Plasma desktop showed up correctly.
Attached to this post are logs from this boot run obtained with the command:
Code: Select all
journalctl -ab > /tmp/journal.log

Currently, sometimes the screen appears correctly and without delay, other times there is a black screen and, after a long while, a distorted login screen.
However, it is not possible to use a previously configured login screen.
If I use automatic login, the PC works without a problem, but there is no login screen of course.
Do the attached logs say anything about the cause of the problem?
Attachments
journal.log
(250.15 KiB) Downloaded 279 times
Last edited by mackowiakp on Dec 5th, '23, 01:26, edited 1 time in total.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Black screen or distorted login screen

Postby doktor5000 » Dec 3rd, '23, 18:38

You should seriously rethink again what you're doing during bootup, and how you're doing it.
E.g. you recursively remove all systemd service storage during the time they're running/starting ( rm -rf /var/tmp/*private*/ ).
systemd-logind is one of those services and relevant for login and session handling.


Code: Select all
gru 03 08:48:10 Piotr CROND[3744]: (root) CMD (/home/maciek/Pobrane/kas_var_tmp >/dev/null 2>/dev/null&)
gru 03 08:48:10 Piotr systemd[3621]: Reached target paths.target.
gru 03 08:48:10 Piotr CROND[3488]: (root) CMDEND (/home/maciek/Pobrane/kas_var_tmp >/dev/null 2>/dev/null&)
gru 03 08:48:10 Piotr systemd[3621]: Reached target timers.target.
gru 03 08:48:10 Piotr CROND[3749]: (root) CMD (rm -f /home/maciek/back/.VirtualBox/Machines/WIN\ XP/Logs/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3628]: Created slice app.slice.
gru 03 08:48:10 Piotr CROND[3754]: (root) CMD (rm -f /home/maciek/Dokumenty/C\:* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3628]: Reached target paths.target.
gru 03 08:48:10 Piotr CROND[3489]: (root) CMDEND (rm -f /home/maciek/back/.VirtualBox/Machines/WIN\ XP/Logs/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3628]: Reached target timers.target.
gru 03 08:48:10 Piotr CROND[3758]: (root) CMD (sleep 30;/home/maciek/Pobrane/ee&)
gru 03 08:48:10 Piotr systemd[3621]: Starting dbus.socket...
gru 03 08:48:10 Piotr CROND[3761]: (root) CMD (sleep 90;/bin/rm -rf /home/maciek/Obrazy/.recent/*&)
gru 03 08:48:10 Piotr systemd[3621]: pulseaudio.socket was skipped because of an unmet condition check (ConditionUser=!root).
gru 03 08:48:10 Piotr CROND[3767]: (root) CMD (/bin/rm -r /var/log/samba/* > /dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3628]: Starting dbus.socket...
gru 03 08:48:10 Piotr CROND[3771]: (root) CMD (sleep 90 ; ethtool -s eno1 wol g >/dev/null&)
gru 03 08:48:10 Piotr systemd[3628]: Listening on pulseaudio.socket.
gru 03 08:48:10 Piotr CROND[3503]: (root) CMDEND (/bin/rm -r /var/log/samba/* > /dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3621]: Listening on dbus.socket.
gru 03 08:48:10 Piotr CROND[3777]: (root) CMD (sleep 90;/sbin/hdparm -S 240 /dev/sdb > /dev/null 2>&1 ; /sbin/hdparm -S 60 /dev/sdc > /dev/null 2>/dev/null 2>&1 ; /bin/cat /dev/null > /root/dead.letter &)
gru 03 08:48:10 Piotr systemd[3621]: Reached target sockets.target.
gru 03 08:48:10 Piotr CROND[3780]: (root) CMD (rm -rf /var/tmp/*private* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3621]: Reached target basic.target.
gru 03 08:48:10 Piotr CROND[3784]: (root) CMD (rm -f /var/log/httpd/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3621]: Reached target default.target.
gru 03 08:48:10 Piotr CROND[3491]: (root) CMDEND (rm -rf /var/tmp/*private* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3621]: Startup finished in 189ms.
gru 03 08:48:10 Piotr CROND[3789]: (root) CMD (rm -f /var/log/clamav/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[1]: Started user@0.service.
gru 03 08:48:10 Piotr CROND[3493]: (root) CMDEND (rm -f /var/log/httpd/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[1]: Started session-12.scope.
gru 03 08:48:10 Piotr CROND[3794]: (root) CMD (rm -rf /opt/teamviewer9/logfiles/* > /dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3628]: Listening on dbus.socket.
gru 03 08:48:10 Piotr CROND[3497]: (root) CMDEND (rm -f /var/log/clamav/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr systemd[3628]: Reached target sockets.target.
gru 03 08:48:10 Piotr systemd[3628]: Reached target basic.target.
gru 03 08:48:10 Piotr systemd[3628]: Reached target default.target.
gru 03 08:48:10 Piotr systemd[3628]: Startup finished in 189ms.
[...]
gru 03 08:48:10 Piotr CROND[3800]: (root) CMD (rm -f /var/log/mail/*log.* >/dev/null 2>/dev/null)
[...]
gru 03 08:48:10 Piotr CROND[3505]: (root) CMDEND (rm -rf /opt/teamviewer9/logfiles/* > /dev/null 2>/dev/null)
[...]
gru 03 08:48:10 Piotr CROND[3805]: (root) CMD (rm -f /var/log/samba/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3490]: (root) CMDEND (rm -f /var/log/mail/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3810]: (root) CMD (chmod 666 /dev/ttyUSB* 2>/dev/null ;chmod 666 /dev/ttyS*)
gru 03 08:48:10 Piotr CROND[3496]: (root) CMDEND (rm -f /var/log/samba/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3487]: (root) CMDEND (rm -f /home/maciek/Dokumenty/C\:* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3817]: (root) CMD (/home/maciek/Pobrane/kasowanie /home/maciek/back/WIRUSY/ 30)
gru 03 08:48:10 Piotr CROND[3485]: (root) CMDEND (chmod 666 /dev/ttyUSB* 2>/dev/null ;chmod 666 /dev/ttyS*)
gru 03 08:48:10 Piotr CROND[3821]: (root) CMD (rm -f /var/log/daemons/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3829]: (root) CMD (rm -f /var/log/cron/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3494]: (root) CMDEND (rm -f /var/log/daemons/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3832]: (root) CMD (/bin/rm -rf /home/smbprint/tmp/* > /dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3495]: (root) CMDEND (rm -f /var/log/cron/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3839]: (root) CMD (rm -f /var/log/kernel/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3502]: (root) CMDEND (/bin/rm -rf /home/smbprint/tmp/* > /dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3842]: (root) CMD (/bin/rm -rf /home/maciek/Obrazy/.Trash* > /dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3492]: (root) CMDEND (rm -f /var/log/kernel/*log.* >/dev/null 2>/dev/null)
gru 03 08:48:10 Piotr CROND[3847]: (maciek) CMD (rm -f /home/maciek/.mozilla/firefox/py25le2p.default/.parentlock)
gru 03 08:48:10 Piotr CROND[3851]: (maciek) CMD (sleep 90 ; find /home/maciek/.config/Nextcloud/ -type f -mtime +3 -name 'nextcloud.cfg.backup_*' -execdir rm -- '{}' \;)
gru 03 08:48:10 Piotr CROND[3484]: (maciek) CMDEND (rm -f /home/maciek/.mozilla/firefox/py25le2p.default/.parentlock)
gru 03 08:48:10 Piotr CROND[3854]: (maciek) CMD (sleep 180;cp -a ~/Dropbox/Dokumenty/* ~/Dokumenty/ > /dev/null 2>/dev/null&)
gru 03 08:48:10 Piotr CROND[3860]: (maciek) CMD (sleep 10;/bin/rm -f /home/maciek/tmp/apple 2>/dev/null&)
gru 03 08:48:10 Piotr CROND[3863]: (maciek) CMD (sleep 90;/bin/rm -f /home/maciek/dead.letter 2>/dev/null&)
gru 03 08:48:10 Piotr CROND[3880]: (maciek) CMD (rm -f /home/maciek/.mozilla/firefox/py25le2p.default/.parentlock 2>/dev/null)


The sddm greeter seems to have an issue with the nouveau driver:
Code: Select all
gru 03 08:48:10 Piotr kernel: nouveau 0000:02:00.0: fifo: DMA_PUSHER - ch 6 [sddm-greeter[3943]] get 000021e000 put 000021e088 ib_get 00000007 ib_put 00000008 state 80000024 (err: INVALID_CMD) push 00400040
gru 03 08:48:10 Piotr kernel: nouveau 0000:02:00.0: fifo: DMA_PUSHER - ch 6 [sddm-greeter[3943]] get 000021e088 put 000021fa3c ib_get 00000009 ib_put 0000000a state 80000024 (err: INVALID_CMD) push 00400040
gru 03 08:48:10 Piotr kernel: nouveau 0000:02:00.0: fifo: DMA_PUSHER - ch 6 [sddm-greeter[3943]] get 000021fa3c put 0000220bd8 ib_get 0000000b ib_put 0000000c state 80000024 (err: INVALID_CMD) push 00400040


There are quite a few reports about this:
https://gitlab.freedesktop.org/xorg/dri ... issues/477
https://forum.manjaro.org/t/nouveau-nvi ... d/152424/9
https://bbs.archlinux.org/viewtopic.php?id=288830
https://www.reddit.com/r/archlinux/comm ... qt5_51203/
Either use an older non-6.5 kernel, or switch to the proprietary nvidia driver or use something else then nouveau with the current kernel.
Or try with nouveau.noaccel=1 kernel option if you want to keep using nouveau.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Black screen or distorted login screen

Postby mackowiakp » Dec 4th, '23, 04:49

The procedures performed during boot did not appear to cause the problems. I turned them off but nothing changed.
I changed the nouveau driver to no hardware acceleration. SDDM worked correctly, but the Plasma graphic interface reacted with significant delays.
I changed the driver to modesetting, but it also required turning off hardware acceleration.
Now everything seems to work OK and without lags.
My graphics card is quite old - NVIDIA GT218/GEForce210. I don't know if the latest proprietary nvidia driver in the M9 repo supports it. Is it worth compiling a new kernel? I haven't done this before so I'm a little scared.
Besides, I don't need high graphics performance because I don't play any games. I need 95% of the computing power for biochemical calculations (so 6 core 12 treads) which have no special graphics requirements.
Is it worth "playing" with the proprietary nvidia driver? And if so, how to do it?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Black screen or distorted login screen

Postby morgano » Dec 4th, '23, 08:20

I believe that proprietary driver would be 340?
Does not sound easy https://wiki.mageia.org/en/Setup_the_gr ... ia_drivers
Probably better to buy a used less old card.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden


Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest