Page 1 of 1

(SOLVED) - What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 2:23 am
by Pascal Illustrator
Hello,
It already happened that my mouse cursor and keyboard sudenly didn't responded in Linux Mint 19.1.
To solve this I use the reset button on my computer to reboot, but I think this isn't the best solution.
Are there better ways to get out of such a situation? And how?

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 2:32 am
by WiltshireJon
Press and hold down alt-prt scrn together.

While holding down these two keys slowly type r e i s u b in succession (ie one at a time maybe one second apart).

Should close everything and reboot.

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 3:54 am
by Pascal Illustrator
Thank you.

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 4:13 am
by Pierre
you can also try using Ctrl - Alt - Backspace - - to restart the X graphical server.
- - which should dump you back to the Log-in Screen.

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 4:30 am
by Pascal Illustrator
Thank you.

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 5:29 am
by decrepit
What even if the keyboard isn't working?

If you have no mouse and no keyboard, what do you have beside the reset button?

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 8:36 am
by Hoser Rob
decrepit wrote:
Wed Jul 17, 2019 5:29 am
What even if the keyboard isn't working?

If you have no mouse and no keyboard, what do you have beside the reset button?
It is possible to lose mouse & KB input, but in Linux NEVER EVER hit the reset button. It's an excellent way to lose data. When desktop machines with reset buttons were more common, Linux geeks used to tape it over to prevent its use.

If ctl-alt-F1 doesn't get you to a TTY prompt it's best to hold down the power button until it shuts down.

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 9:24 am
by Pascal Illustrator
The keyboard is a Logitech K120 Azerty.
The mouse is a Logitech M110s
My screen is also an input device since it's a Wacom Cintiq and this has a pen.

Isn't using the power button worse than the reset button then?
What does TTY mean?

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 10:11 am
by Hoser Rob
Pascal Illustrator wrote:
Wed Jul 17, 2019 9:24 am
Isn't using the power button worse than the reset button then?
NO. Absolutely not. NEVER use the reset button.
What does TTY mean?
Teletype, the screen would go black and you bet a prompt just like the terminal, and works the same except you have to relogin.

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 11:01 am
by JoeFootball
Just fyi, as an alternative to the above r e i s u b sequence is r e i s u o, where the b will reboot a system, and the o will shutoff a system. More info here and here.

I mention this because sometimes a reboot will not reset peripheral components because they're not powered down. After a scenario where I need to invoke the above, I want to bring everything up from a powered off state.

Joe

Re: What to do when Linux 'freezes' ?

Posted: Wed Jul 17, 2019 3:05 pm
by LuvNix
Ideally you address whatever software or possibly hardware problems are causing the issues. That situation would drive me nuts, thus wouldn't stop diagnosing until cause was found and fixed. Do your research with searches like this.

Re: What to do when Linux 'freezes' ?

Posted: Thu Jul 18, 2019 3:23 am
by Pascal Illustrator
Thank you.

Re: What to do when Linux 'freezes' ?

Posted: Thu Jul 18, 2019 4:45 am
by Pjotr
Please generate an overview of your system like this:
- Launch a terminal window (this is how to launch a terminal window);
- make the terminal window full screen, to avoid chopped lines;
- Copy/paste this command into the terminal:

Code: Select all

inxi -Fxz
(if you type: the letter F is a capital letter)

Press Enter.

Copy/paste the output in your next message.

Re: What to do when Linux 'freezes' ?

Posted: Thu Jul 18, 2019 10:07 pm
by murray
Pascal Illustrator wrote:
Wed Jul 17, 2019 9:24 am
The keyboard is a Logitech K120 Azerty.
The mouse is a Logitech M110s
I assume these are wireless and use a Logitech unifying receiver dongle plugged into a USB port? If so then try pulling the dongle out and reinserting it. I've had to do this a couple of times when my mouse and keyboard suddenly stopped working (or didn't work on power up) and it's always fixed my problem.

Re: What to do when Linux 'freezes' ?

Posted: Thu Jul 18, 2019 11:45 pm
by decrepit
murray wrote:
Thu Jul 18, 2019 10:07 pm
>>>>>>>

I assume these are wireless and use a Logitech unifying receiver dongle plugged into a USB port? If so then try pulling the dongle out and reinserting it. I've had to do this a couple of times when my mouse and keyboard suddenly stopped working (or didn't work on power up) and it's always fixed my problem.
Why didn't I think of that, makes perfect sense.

Re: What to do when Linux 'freezes' ?

Posted: Fri Jul 19, 2019 10:18 am
by Pascal Illustrator
At this moment the cursor works fine. I only had to know what other things I could do instead of 'reset' in case of freezes.
I think I have enough information for now to continue. Thanks everybody.
Ps: The logitech K120 and M110s are with wire.