Page 1 of 1

How to recover graphic login? reset/re-do graphics? (Mga7)

PostPosted: Mar 24th, '21, 14:54
by codegazer
Running Mageia 7 on a PC with latest updates.

During a recent system update the graphics system was being updated but /boot/ filled 100% (I think it was updating Nvidia drivers or kernel modules).

After several attempts to reboot situation is: boot process does not seem to start the graphical login as before.
System is actually up and running but no login screen.

I can ssh into from a 2nd machine and have applied all the most recent updates available.


Question: how do I re-do or reset the Nvidia drivers update to get the graphical login back?
Alternatively, how to change to not use any additional Nvidia graphics card support - so back to simple graphics?

Environment: Mageia 7 running kernel 5.10.25-desktop-1.mga7
Code: Select all
# lspci | grep -ie nvidia
28:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
28:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)

$ df /boot/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5       484M  271M  184M  60% /boot



I could re-install but if there is a smarter way to recover then I would like to learn and understand how to do that.

Re: How to recover graphic login? reset/re-do graphics? (Mga

PostPosted: Mar 24th, '21, 18:21
by magic
Have you tried booting a different Kernel? (Under Advanced in GRUB)
No login prompt at all? Have you tried switching to, i.e., tty2? (Ctrl+Alt+F2)

You can run 'drakx11' as root to reconfigure X.

Re: How to recover graphic login? reset/re-do graphics? (Mga

PostPosted: Mar 24th, '21, 21:00
by codegazer
Things I tried but did not help: try a different kernel in "recovery mode".

Nearly got it working by:

a) ssh in from 2nd machine, run /bin/sudo drakconf and change the DISPLAY options to disable automatic graphical login.
b) reboot to non-graphic login prompt
c) login
d) run /bin/sudo drakconf and try different settings then test (leave auto graphic login disabled)
e) reboot
f) login
g) run startx and test if graphics working OK and if OK then enable auto graphic login.
h) reboot


I say "nearly got it working" because while graphics seemed to work in both the "test" option of (non-gui) drakconf of DISPLAY *and* startx seemed to work OK unfortunately after enabling auto graphic login there is no graphical login on reboot.

So I have to ssh in and disable auto graphic login using drakconf again.

For now, I have set not auto graphical login and when I do the text-only login followed by "echo /bin/mate-session > .xinitrc" then run "startx; exit" to get MATE up and running.

more fixing needed...
So, made some progress but not there yet.

Re: How to recover graphic login? reset/re-do graphics? (Mga

PostPosted: Mar 25th, '21, 18:11
by jiml8
What does /var/log/Xorg.0.log say?

Re: How to recover graphic login? reset/re-do graphics? (Mga

PostPosted: Apr 9th, '21, 00:49
by codegazer
jiml8 wrote:What does /var/log/Xorg.0.log say?


Too much and not enough. :-)

Re: How to recover graphic login? reset/re-do graphics? (Mga

PostPosted: Apr 9th, '21, 09:53
by morgano
what do journal say?
depending of what it say,
select a very simple graphics mode like xorg vesa
maybe uninstall nvidia
maybe install and configure a simple DM, choose it by running drakdm.

When you get a log in, install nvidia etc again to get back to what you prefer.