| LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-18-2007, 06:37 PM
|
#1
|
|
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
|
What to do if the desktop freezes?
A new la entry has been added:
What to do if the desktop freezes?
Quote:
What to do if the desktop freezes?
In such a situation you dont always need the reset button. This could damage the filesystem or lead to loss of data. In any way the filesystem wont be clean after a hard reset (filesystem not clean). If nothing works, not even changing to a textconsole (alt-ctl-F1) or restarting the X-server (alt-ctl-backspace), there is still hope:
The SYSRQ-key (print-key, on the upper right side of the keyboard) will help you to cleanly reboot a frozen system.
The following sequence of key-combinations are possible:
|
|
|
|
|
02-18-2007, 08:23 PM
|
#2
|
|
Member
Registered: Aug 2006
Location: Aberdeen, Scotland
Distribution: OpenBSD
Posts: 164
Rep:
|
i have seen this before and I'm going to have to ask the question. What do i do if i don't have a print key??
|
|
|
|
03-14-2009, 05:08 AM
|
#3
|
|
LQ Newbie
Registered: Feb 2009
Posts: 20
Rep:
|
Quote:
Originally Posted by Indiestory
i have seen this before and I'm going to have to ask the question. What do i do if i don't have a print key??
|
make use of the print screen key on the keyboard.. most keyboards come with it now so you shoul have no worries with this prob..
|
|
|
|
04-27-2009, 11:55 PM
|
#4
|
|
Member
Registered: Aug 2007
Posts: 73
Rep:
|
this does not work on my desktop(RHE4)
Last edited by ozminh; 04-27-2009 at 11:57 PM.
|
|
|
|
06-09-2009, 10:54 AM
|
#5
|
|
Member
Registered: Jan 2009
Location: on my pc!
Distribution: openSUSE 11.2 opensolaris 2009.06
Posts: 218
Rep:
|
doesnt work for me
ive tried on a frozen one packard bell imedia j4500 with i microsoft 2000 set keyboard and mouse(wireless) kubuntu 9.04
|
|
|
|
06-13-2009, 06:47 AM
|
#6
|
|
Registered User
Registered: Dec 2006
Posts: 1,454
Rep:
|
Quote:
Originally Posted by ozminh
this does not work on my desktop(RHE4)
|
Considering the original post was in 2007, the info may be outdated.
|
|
|
|
06-13-2009, 07:27 AM
|
#7
|
|
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Original Poster
|
It sitll works but MAGIC_SYSRQ has to be compiled in your kernel.
Controlling the use of SysRq keys
There are some ways of controlling the use of SysRq keys(i.e. what can be used, enabling or disabling them completely), two ways of doing this are:-
1) Configuring the SysRq keys during kernel compilation itself.
There isn’t much here since you can only disable SysRq keys and not actually control or define what you can and can’t use. The option you are looking for is:-
MAGIC_SYSRQ
2) Using proc sysrq trigger calls.
This is much more flexible than changing the configuration of the kernel but this has one downside with security which is explained after(since it is very minor). You use the echo command to achieve this for ease but you could also use any normal text editor to achieve this. Now the command is(you will need root permissions):-
echo * > /proc/sys/kernel/sysrqwhere “*” is a number, which can be any one of these:-
0 – disable sysrq keys completely
1 – enable all functions of sysrq
2 – enable control of console logging level
4 – enable control of keyboard (SAK, unraw)
8 – enable debugging dumps of processes etc.
16 – enable sync command
32 – enable remount read-only
64 – enable signalling of processes (term, kill, oom-kill)
128 – allow reboot/poweroff
256 – allow nicing of all RT tasks(control the nice level(priority) of Real Time tasks)
So you can define what SysRq keys can be used, and also define whether they are all on or off.
Now for the “downside”. For example you disable SysRq keys when you want to stop people(local) from doing key presses and then shutting down or messing up the PC during an important task. Now with configuring the kernel, you can stop SysRq keys from being used at all from the beginning of the boot process right uptil the end, with calling the proc sysrq triggers however, your option only takes place when it is executed(i.e. after the system has booted up) so there is a certain area of vulnerability with calling the triggers whereas there is no such thing in configuring the kernel, some people are that desperate to secure their systems to care about a few seconds, however do not blame me for it.
If it doesn't work I would assume it is either not in the kernel or is disabled by something like selinux or some other security feature.
|
|
|
|
06-13-2009, 08:50 AM
|
#8
|
|
Senior Member
Registered: Dec 2003
Posts: 3,142
Rep: 
|
Sometimes (and surprisingly this happens more frequently than one might imagine) a freeze is a "hard-freeze" meaning which nothing you can do with the keyboard or mouse will work. You simply have to reset the machine.
Hard freezes occur either due to hardware trouble or a serious memory leak.
|
|
|
|
06-15-2011, 07:03 AM
|
#9
|
|
LQ Newbie
Registered: May 2011
Location: U.S.A.
Posts: 7
Rep:
|
Still Current?
Thank you for this useful info.
Any updates since the last post?
|
|
|
|
07-08-2011, 06:24 PM
|
#10
|
|
LQ Newbie
Registered: Jul 2011
Posts: 2
Rep: 
|
Simple Work's
Restart 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:16 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|