Re: console lost to Ctrl+Alt+F$n in 2.6.0-test5
From: Michael Frank
Date: Sat Sep 13 2003 - 09:55:29 EST
Don't think this is a keyboard problem and have seen
this several times related to video drivers in particular
when switching back to X.
The script below switches every $wait (5) seconds between
VT $vt (1) and X @vt$x (7). It logs to $log (log=/tmp/_vt)
syncs and waits before doing the switch to allow data to
reach the disk. So if it dies, you should know quite
accurately when and where and if it also happens wo KB.
Put this into a file and make it executable. It must
be run as root unless chvt is in sudoers or suid root.
#rm -f $log
echo Starting VT <> X test
while ((1)); do
echo Cycle $cycle switching to VT $vt >> $log
echo Cycle $cycle switching to X >> $log
echo Cycle $cycle
((cycle += 1))
On Saturday 13 September 2003 21:38, Pat LaVarre wrote:
> > What video are you using?
> > I'm guessing you've got a framebuffer console?
> > VESA by any chance?
> I do not yet know how to answer such questions confidently.
> I see (redhat-config-xfree86 --> tab Advanced) reports:
> Video Card
> Video Card Type = Intel 865
> Memory Size = 16 megabytes
> Driver = i810
> Enable Hardware 3D Acceleration = no
> > > Yes, thank you, Ctrl+Alt+F$n now works
> > > if only I CONFIG_DEBUG_SPINLOCK_SLEEP=n.
> Please allow me to disavow that first impression.
> With CONFIG_DEBUG_SPINLOCK_SLEEP=y, I've now been counting keystrokes
> til crash. I count each of Ctrl+Alt+F5 and Ctrl+Alt+F7 as one stroke.
> Sometimes I crash, sometimes I do not. I began logging life more
> carefully when first I saw a few strokes cause a crash, and thereafter,
> per boot:
> 8 strokes crashed.
> 60 strokes did not crash, so I gave up and rebooted to try again.
> 4 strokes crashed. The first 2 seeming had logged me out, killing my
> cat /proc/kmsg process.
> 8 strokes crashed.
> 26 strokes crashed.
> The only consistency I see is that always an even number of strokes
> cause a crash i.e. always the Ctrl+Alt+F7 switch back to my X console,
> not the switch to a text console.
> To prepare to crash, I only know of: sync umount ext3. For me as yet
> "Checking ... filesystem..." wastes less than three minutes per crash,
> and I haven't yet perceptibly lost a disk.
> > > I wonder if somehow /proc/kmsg now working is a clue?
> Meanwhile, whether `sudo cat /proc/kmsg | tee ...` displays printk
> intact or not also varies, without clearly correlating with whether a
> crash will or will not occur.
> So far, with CONFIG_DEBUG_SPINLOCK_SLEEP=y, trying `sudo cat /proc/kmsg
> | tee ...` has never run well enough to capture the cause of the crash.
> > > I could easily check ... ssh ...
> Remote ssh freezes and remote ping starts losing all packets.
> Pat LaVarre
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/