LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-09-2022, 08:53 PM   #1
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Rep: Reputation: 5
On the rare lock occasions - what's your way out (?)


For years, I've used Ctrl+Print Screen+R+E+I+S+U+B (holding down Ctrl and Print Screen while managing to press those 6 keys in order...

Just curious what others do, or perhaps what is safe(r)...
 
Old 07-09-2022, 08:58 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,366
Blog Entries: 28

Rep: Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161
I usually turn off lock screen, but, on the rare occasions I forget, I just log back in.

Or am I missing something in your question?
 
Old 07-09-2022, 09:28 PM   #3
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by frankbell View Post
I usually turn off lock screen, but, on the rare occasions I forget, I just log back in.

Or am I missing something in your question?
Yea I think you're missing something (smiles). I'm referring to a computer lock up...

I know one can Google this, but I'm curious as to what users here do...

Last edited by kernelhead; 07-09-2022 at 09:37 PM.
 
Old 07-09-2022, 09:33 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,366
Blog Entries: 28

Rep: Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161Reputation: 6161
Okay, thanks. I thought you were referring to a "lock screen."

If my GUI locks up, I usually use CTRL-F[#] to switch to a different workspace, login as root, and reboot.

If that doesn't work (and it always has so far), I power off and restart.
 
Old 07-10-2022, 06:37 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
I've tried the REISUB thing a few times but have never got it to work!

My solution, if I can't get a virtual console, is to turn off at the mains, then reboot. In the old days, that would lead to scolding about disks not being cleanly unmounted and you had to run fsck, but modern journalling filesystems don't seem to mind about that.

Last edited by hazel; 07-10-2022 at 06:38 AM.
 
Old 07-10-2022, 07:02 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Hmmm.

Most people don't even try I suspect. But you gotta get it to work - check the (kernel) config to ensure sysrq is enabled. Stomping on incomplete filesystem updates will come unstuck one day, mark my words.
The kernel devs (usually) try to give you the means to not shoot yourself in the foot - but it's your finger on the trigger.
 
Old 07-10-2022, 09:38 AM   #7
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Don't forget the famous (old?) Control Alt backspace

https://bbs.archlinux.org/viewtopic.php?id=73617

Also be sure (if you have another device on the network) to try the obvious thing of SSH and ping from another machine

Last edited by !!!; 07-10-2022 at 02:57 PM.
 
Old 07-10-2022, 09:42 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Quote:
Originally Posted by !!! View Post
Don't forget the famous (old?) Control Alt backspace
Always worth trying. But it won't work when your keyboard's locked up!
 
1 members found this post helpful.
Old 07-10-2022, 10:22 AM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,147

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by hazel View Post
I've tried the REISUB thing a few times but have never got it to work!
Some distros disable the SysRq key for some reason. Check /etc/sysctl.conf and make sure it has kernel.sysrq = 1. For more information, see https://wiki.archlinux.org/title/Keyboard_shortcuts
 
1 members found this post helpful.
Old 07-10-2022, 10:31 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Slackware doesn't have a built-in sysctl.conf but I checked /proc/sys/kernel/sysrq and it is set to 1.
 
Old 07-10-2022, 01:22 PM   #11
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,509

Rep: Reputation: Disabled
If my computer freezes up, it's time to switch off power, the journal will normally return it to a usable state quickly enough, but if it has corrupted the file system, fsck may come to the rescue, failing that, I'll just re install - I keep good backups of my data.
 
Old 07-10-2022, 02:19 PM   #12
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
I must be doing something right, because I haven't had a lockup in about a year. I resorted to the magic SysRq sequence once, and it did as expected. No dirty filesystem errors on reboot. But that's on my desktop. Never done it on a server.

It's important wait a period of time between each key, to give the kernel time to complete operations, especially filesystem syncing.
 
Old 07-11-2022, 03:54 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Quote:
Originally Posted by SlowCoder View Post
I must be doing something right, because I haven't had a lockup in about a year.
I had a couple of lockups when experimenting with vivaldi. There's a thread here maintained by its admirers so I thought I'd give it a try. When I saw that it locked up my machine, I dropped it like a hot brick. That was a couple of years ago and I haven't had any trouble since then.
Quote:
It's important wait a period of time between each key, to give the kernel time to complete operations, especially filesystem syncing.
Maybe that's why it wouldn't work for me. How long is one supposed to wait?
 
Old 07-11-2022, 06:01 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,552

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
I began using the REISUB method about a year ago and it has never failed for me. I've never had a problem with just typing the keys at a normal rate although I will say needs to be certain to press the key hard enough.
 
Old 07-11-2022, 06:12 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,996

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
https://en.wikipedia.org/wiki/Magic_SysRq_key
Quote:
Before the advent of journaled filesystems a common use of the magic SysRq key was to perform a safe reboot of a Linux computer which has otherwise locked up (abbr. REISUB), which avoided a risk of filesystem corruption. With modern filesystems, this practice is discouraged, offering no upsides over straight reBoot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Rare lock up - any program to check integrity of system? Michael Piziak Linux - Newbie 1 09-30-2021 02:46 AM
Flash Player Plugin 11 takes ages to load at some occasions VolvoxNo9 Slackware 5 06-08-2012 01:11 PM
deian yum lock [ ERR] Reading state information E: Could not get lock /var/lock/aptit jayakumar01 Linux - Server 1 12-05-2011 11:26 AM
LXer: Report: 8 Linux-based Live CD/DVD and USB Distros For All Occasions LXer Syndicated Linux News 0 06-21-2010 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration