Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] SysRq - Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Wed Feb 27, 2013 3:08 pm    Post subject: [SOLVED] SysRq - Gentoo Reply with quote

Why "SysRq" doesn't work in Gentoo?

I'm running Nvidia driver: 310.32 with my GeForce GTS 450 kernle-3.1.6

but I've noticed it freezes my screen once a day or ever second day.
Mouse is moving but no icon is responding, nor can I use the keyboard (all frozen).
It must be a way of life with "nvidia" drivers, according to sticky post: X.org Lockups :-/
https://forums.gentoo.org/viewtopic-t-559068.html

I can login to the system over ssh. I've tried to restart/zap "xdm" it doesn't help.
<Ctrl><Alt><PrtSc> doesn't do anything.
<Ctrl><Alt><F1> doesn't work.

Maybe killing "/usr/bin/X" (when I login via ssh) will help. But for this I need remote connection.
What else can I do to restart "X"?


Last edited by Joseph_sys on Wed Feb 27, 2013 6:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Wed Feb 27, 2013 4:47 pm    Post subject: Reply with quote

Check /etc/sysctl.conf (or look in /etc/sysctl.d/*) for "kernel.sysrq" and make sure it either is set to "1" or is not set to "0".
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Wed Feb 27, 2013 4:57 pm    Post subject: Reply with quote

depontius wrote:
Check /etc/sysctl.conf (or look in /etc/sysctl.d/*) for "kernel.sysrq" and make sure it either is set to "1" or is not set to "0".


Thanks, yes it was commented out with "0" value.
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Wed Feb 27, 2013 5:57 pm    Post subject: Reply with quote

I enabled "sysrq" in kernel.sysrq
Code:
...
kernel.sysrq = 1

reboot the system but <Ctrl><Alt><PrtSc> is not responding.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Wed Feb 27, 2013 6:40 pm    Post subject: Reply with quote

Have you enabled it in your kernel?
Code:
CONFIG_MAGIC_SYSRQ=y

_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Wed Feb 27, 2013 6:47 pm    Post subject: Reply with quote

depontius wrote:
Have you enabled it in your kernel?
Code:
CONFIG_MAGIC_SYSRQ=y


That was it, thanks.

Is it safe to enable this key?
In kernel help menu:
Quote:
...
Don't say Y unless you really know what this hack does.


There must be a reason why in Gentoo this key is disable.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Thu Feb 28, 2013 12:00 am    Post subject: Reply with quote

I don't know why it's disabled by default. I consider it essential for my data. If there's any life at all left in the kernel, it lets you get your partitions sync'ed and remounted ro.

It's one of those things I do on every system I set up.

However the keystrokes make the old 3-finger salute seem easy.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum