How to restart xorg on login screen

6 réponses [Dernière contribution]
linuc
Hors ligne
A rejoint: 10/17/2021

I have SIS driver installed and sometimes it is not booted correctly. I then either get the wrong resolution, already at the login screen...or much worse, I only see a white screen!

How can I restart "blind" at login screen xorg? I need a keyboard shortcut. It would be better than just pressing the power off switch.

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

Ctrl+Alt+F3 (for instance) should give you a text session. Log in and, assuming LightDM is your display manager, execute:
$ sudo systemctl restart lightdm

linuc
Hors ligne
A rejoint: 10/17/2021

Thank you! I will test it. Hopefully it works even if I only see a white screen.

linuc
Hors ligne
A rejoint: 10/17/2021

I tested it. It works when I can see something and only the resolution is wrong. If the screen only shows white, it is a bit difficult not to type wrong. And, unfortunately, it also does not solve the problem. There must be a solution that restarts the X server. Or maybe a new session?

Unfortunately, the problem is rapidly increasing. Apparently it's not really a software problem, but probably the cable to the screen of the laptop :-( And it's already the second old laptop where I have this problem. I don't have the money for a repair. Hopefully it will work for a while and I will find an old laptop somewhere again, for free! I just leave the laptop open and don't close the lid anymore.

andyprough
Hors ligne
A rejoint: 02/12/2015

You should be able to create a bash alias so that you only have to type the short alias word instead of the entire command.

Open your ~/.bashrc file in nano to edit it:
nano ~/.bashrc

Insert a line like the following in the aliases section:
alias dmrestart='sudo systemctl restart lightdm'

Then hit ctrl-o to save the .bashrc file, and ctrl-x to exit nano. Exit your current tty or terminal login and then log back in, and just by typing 'dmrestart' you should be sending the entire command 'sudo systemctl restart lightdm'. You could even make the alias a simpler short term, like 'dmr', or 'dmr1' or something, so you would have even less chance of a mis-spelling.

linuc
Hors ligne
A rejoint: 10/17/2021

Thanks for the further tip! Fortunately, I managed to at least stabilize the problem with the broken screen cable. Now it boots correctly again. The case of the computer now lacks a small piece of plastic and the screen cable can be guided more directly, without 20 curves :-) However, I can no longer close the notebook without the cable shifting. But at least I always find my way back to the correct position of the cable. So I just leave it open until I have to transport the notebook. At some point it will be really broken, hopefully not so soon. My notebook is now a virtual desktop! ;-)

andyprough
Hors ligne
A rejoint: 02/12/2015

>"At some point it will be really broken, hopefully not so soon. My notebook is now a virtual desktop! ;-)"

We probably all have old systems that are somewhat broken from a hardware sense. My favorite older laptop has a basically dead display and is fed to an external monitor full-time. Four of my older laptops have various states of broken speakers, including one that I ripped the entire speaker system out because it was popping and making noises.