Skip to contentSkip to conversation

help: sysrq and X

DISCUSSION Eyal Lebedinsky 3 participants 3 messages Nov 21, 2004

lore
Share & tools
lore
#0 lore raw

I am trying to diagnose a hard lockup. The only way I can reproduce it is with mythtv. When the system locks up (no mouse, no activity in X, no message logged) I can use magic sysrq, but I cannot see the output.

Using 'r' does not enable console switching. However 'b' will boot the system, and I hope 's' and 'u' did something blindly.

I there a way to regain a text console in order to inspect the kernel?

I can connect a machine to the serial port if this will help - does sysrq work though the serial port? Which software should I use on the serial port (on the 'other' machine) for this purpose then?

Thanks

Signature · 1 line
Eyal Lebedinsky ([email protected]) <http://samba.org/eyal/>
#1 lore raw
Quoted 5 lines · Eyal Lebedinsky

I am trying to diagnose a hard lockup. The only way I can reproduce it is
with mythtv. When the system locks up (no mouse, no activity in X, no message logged) I can use magic sysrq, but I cannot see the output.

Quoted 8 lines

Using 'r' does not enable console switching. However 'b' will boot the system, and I hope 's' and 'u' did something blindly.

I there a way to regain a text console in order to inspect the kernel?

I can connect a machine to the serial port if this will help - does sysrq work though the serial port? Which software should I use on the serial port (on the 'other' machine) for this purpose then?

Yes, serial console is the best way to do this. Add console=ttyS0' to the kernel boot command line and use <break>t' to get an all-task backtrace.

If you're using minicom (spit) on the other end, Control-A F t is the combination to use.

#2 lore raw
In reply to Eyal Lebedinsky
Quoted 9 lines · Eyal Lebedinsky

I am trying to diagnose a hard lockup. The only way I can reproduce it is with mythtv. When the system locks up (no mouse, no activity in X, no message logged) I can use magic sysrq, but I cannot see the output.

Using 'r' does not enable console switching. However 'b' will boot the system, and I hope 's' and 'u' did something blindly.

I there a way to regain a text console in order to inspect the kernel?

Try use SysRQ+K (SAK) - 95% when my X server locks up I can use SAK and then killall -9 X and everythig is fine.

Signature · 1 line
Dmitry