SysRq键不能用

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
templars
帖子: 151
注册时间: 2007-12-14 21:19

SysRq键不能用

#1

帖子 templars » 2008-11-19 10:37

已经echo "1" > /proc/sys/kernel/sysrq
可是还是不能用SysRq,我想用用Alt+SysRq+K来重启X,有时X会失去响应,重启电脑没有Alt+SysRq+K来得快。
内核是2.6.27-8。
Here I am, and will rock you like a hurricane!!!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: SysRq键不能用

#2

帖子 eexpress » 2008-11-19 10:42

ctrl-alt-backspace 试过没。

bt才用sysrq序列呢
● 鸣学
头像
templars
帖子: 151
注册时间: 2007-12-14 21:19

Re: SysRq键不能用

#3

帖子 templars » 2008-11-19 10:51

eexpress 写了:ctrl-alt-backspace 试过没。

bt才用sysrq序列呢
主要是有时它死的不对它响应 :em20
Here I am, and will rock you like a hurricane!!!
头像
templars
帖子: 151
注册时间: 2007-12-14 21:19

Re: SysRq键不能用

#4

帖子 templars » 2008-11-19 11:01

自己网上搜了下:
167 * I hit SysRq, but nothing seems to happen, what's wrong?
168 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
169 There are some keyboards that send different scancodes for SysRq than the
170 pre-defined 0x54. So if SysRq doesn't work out of the box for a certain
171 keyboard, run 'showkey -s' to find out the proper scancode sequence. Then
172 use 'setkeycodes <sequence> 84' to define this sequence to the usual SysRq
173 code (84 is decimal for 0x54). It's probably best to put this command in a
174 boot script. Oh, and by the way, you exit 'showkey' by not typing anything
175 for ten seconds.
我的SysRq键的scancode的确不是0x54,而是一长串0xe0 0x2a 0xe0 0x37 0xe0 0xaa 0xe0 0xb7,而且整个键盘上没有Scancode是0x54的键。
难倒是我的键盘布局有问题?可是以前在8.04能用SysRq键的,现在SysRq键也能正常响应PrintScreen,我用的是USA键盘布局。
上次由 templars 在 2008-11-19 11:17,总共编辑 1 次。
Here I am, and will rock you like a hurricane!!!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: SysRq键不能用

#5

帖子 eexpress » 2008-11-19 11:05

KeyPress event, serial 32, synthetic NO, window 0x1e00001,
root 0x1a6, subw 0x0, time 5936794, (163,-13), root:(979,19),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x1e00001,
root 0x1a6, subw 0x0, time 5936870, (163,-13), root:(979,19),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

使用xev查看下吧。
☎ grep ':FF61' /usr/share/X11/XKeysymDB
SunPrint_Screen :FF61
● 鸣学
头像
templars
帖子: 151
注册时间: 2007-12-14 21:19

Re: SysRq键不能用

#6

帖子 templars » 2008-11-19 11:16

eexpress 写了:KeyPress event, serial 32, synthetic NO, window 0x1e00001,
root 0x1a6, subw 0x0, time 5936794, (163,-13), root:(979,19),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x1e00001,
root 0x1a6, subw 0x0, time 5936870, (163,-13), root:(979,19),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

使用xev查看下吧。
☎ grep ':FF61' /usr/share/X11/XKeysymDB
SunPrint_Screen :FF61
前面的不懂,不过grep输出结果一样。
Here I am, and will rock you like a hurricane!!!
头像
templars
帖子: 151
注册时间: 2007-12-14 21:19

Re: SysRq键不能用

#7

帖子 templars » 2008-11-19 11:26

还有个SunSys_Req :1005FF60
不知是那个
附件
Screenshot-Terminal.png
Here I am, and will rock you like a hurricane!!!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: SysRq键不能用

#8

帖子 eexpress » 2008-11-19 11:34

前面的,就是xev测试的结果啊。如果你grep结果一样,键盘设置没问题了。
觉得啊。你需要重启X就不正常了,应该从这找原因。我重启X的次数,估计1年碰1次。
那sysrq序列的使用。论坛有人总结过的。那序列,不稳定的。一旦进入,有后遗症的。 :em09
● 鸣学
头像
templars
帖子: 151
注册时间: 2007-12-14 21:19

Re: SysRq键不能用

#9

帖子 templars » 2008-11-19 11:40

一旦进入,有后遗症的。
不是中招了吧 :em20
Here I am, and will rock you like a hurricane!!!
头像
templars
帖子: 151
注册时间: 2007-12-14 21:19

Re: SysRq键不能用

#10

帖子 templars » 2008-11-19 11:47

KeyPress event, serial 34, synthetic NO, window 0x2c00001,
root 0x1a6, subw 0x2c00002, time 6600638, (49,54), root:(52,76),
state 0x10, keycode 11 (keysym 0x32, 2), same_screen YES,
XLookupString gives 1 bytes: (32) "2"
XmbLookupString gives 1 bytes: (32) "2"
XFilterEvent returns: False

下面是按SysRq后的输出(一按就截图了)
KeymapNotify event, serial 34, synthetic NO, window 0x0,
keys: 4294967206 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Here I am, and will rock you like a hurricane!!!
头像
templars
帖子: 151
注册时间: 2007-12-14 21:19

Re: SysRq键不能用

#11

帖子 templars » 2008-11-19 11:58

你需要重启X就不正常了,应该从这找原因。我重启X的次数,估计1年碰1次。
不知是不是重启X,也好像是系统僵死了,可以用SysRq+K结束所有进程,重回到登录界面,不然就得按机箱的Reset了。
Here I am, and will rock you like a hurricane!!!
回复