Skip to content

Instantly share code, notes, and snippets.

@githubutilities
Created March 25, 2016 02:38
Show Gist options
  • Save githubutilities/6bad1d4d6591372ac809 to your computer and use it in GitHub Desktop.
Save githubutilities/6bad1d4d6591372ac809 to your computer and use it in GitHub Desktop.
Ubuntu Freeze

Ubuntu Freeze

1. kill command

2. sudo service lightdm restart

3.REISUB when freezes

Alt + SysReq + REISUB

R:  Switch to XLATE mode
F:  Kill processes one-by-one
K:  Kill all processes for one console
E:  Send Terminate signal to all processes except for init
I:  Send Kill signal to all processes except for init
S:  Sync all mounted file-systems
U:  Remount file-systems as read-only
B:  Reboot

Enable REISUB on Ubuntu

# 1. Change kernel config
sudo vim /etc/sysctl.d/10-magic-sysrq.conf
# Change the default 176 (128+32+16) to 244 (128+64+32+16+4)
#kernel.sysrq = 244

# 2. Change the running kernel setting
echo 244 | sudo tee /proc/sys/kernel/sysrq

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment