View previous topic :: View next topic |
Author |
Message |
Emperor n00b
Joined: 09 Jul 2002 Posts: 54 Location: Enschede, The Netherlands
|
Posted: Fri Aug 23, 2002 7:06 am Post subject: Making a "screenshot" of console |
|
|
Is there any way to dump the current output on my text console to a file?
The reason i ask:
I have a massive problem with the nvidia kernel drivers. Every so often (sereral times a day) when i switch video modes, the kernel hangs, and my filesystem tends to corrupt a bit. Tonight i finally got a cool dump on my console saying "kernel bug" with all the flags etc. But since i did not know how to save this info, i feel valueble info was lost _________________ What is this "signature" thing you are talking about? |
|
Back to top |
|
|
water Guru
Joined: 19 Jun 2002 Posts: 387 Location: Zierikzee, The Netherlands
|
Posted: Fri Aug 23, 2002 8:51 am Post subject: |
|
|
I think if you use some logger (sysklogd, metalog, or something) error messages from the kernel will be logged somewhere in /var/log/messages _________________ Groeten uit Holland |
|
Back to top |
|
|
Emperor n00b
Joined: 09 Jul 2002 Posts: 54 Location: Enschede, The Netherlands
|
Posted: Fri Aug 23, 2002 5:08 pm Post subject: |
|
|
Maybe. when i had this error i realized i had not yet put syslog-ng in the default runlevel (arg dumb mistake).
But besides from that, i still would like to know if it is possible, and if so, how. _________________ What is this "signature" thing you are talking about? |
|
Back to top |
|
|
Silhouette n00b
Joined: 23 Aug 2002 Posts: 46
|
Posted: Fri Aug 23, 2002 6:54 pm Post subject: |
|
|
you could use the script dameon. i.e.
$script [optional output file, otherwise typescript]
yada yada... run all your commands
$exit
Then the input/output from the session is saved in the ouput file, by default typescript. |
|
Back to top |
|
|
Emperor n00b
Joined: 09 Jul 2002 Posts: 54 Location: Enschede, The Netherlands
|
Posted: Fri Aug 23, 2002 7:41 pm Post subject: |
|
|
Mmm That is usefull. But then i'd have to start every console with this and pray the nvidia driver crashes (hows that for reverse world )
But i guess i could do it. _________________ What is this "signature" thing you are talking about? |
|
Back to top |
|
|
sa Guru
Joined: 10 Jun 2002 Posts: 450
|
Posted: Sat Aug 24, 2002 1:16 am Post subject: |
|
|
how bout compiling your kernel with the following:
Code: | Kernel hacking --->
[*] Kernel debugging
[*] Magic SysRq key (NEW)
|
CONFIG_MAGIC_SYSRQ:
If you say Y here, you will have some control over the system even
if the system crashes for example during kernel debugging (e.g., you
will be able to flush the buffer cache to disk, reboot the system
immediately or dump some status information). This is accomplished
by pressing various keys while holding SysRq (Alt+PrintScreen). It
also works on a serial console (on PC hardware at least), if you
send a BREAK and then within 5 seconds a command keypress. The
keys are documented in Documentation/sysrq.txt. Don't say Y
unless you really know what this hack does. |
|
Back to top |
|
|
johnd Guest
|
Posted: Sun Aug 25, 2002 7:19 am Post subject: Re: Making a "screenshot" of console |
|
|
Emperor wrote: | Is there any way to dump the current output on my text console to a file?
The reason i ask:
I have a massive problem with the nvidia kernel drivers. Every so often (sereral times a day) when i switch video modes, the kernel hangs, and my filesystem tends to corrupt a bit. Tonight i finally got a cool dump on my console saying "kernel bug" with all the flags etc. But since i did not know how to save this info, i feel valueble info was lost |
what about selecting the text with gpm and just pasting it into vi? |
|
Back to top |
|
|
wbsoft n00b
Joined: 26 Aug 2002 Posts: 73 Location: the Netherlands
|
Posted: Sun Sep 15, 2002 11:50 am Post subject: |
|
|
When you don't use GPM you can catch the contents of a console as follows: login as root on another console and type (say the cool BUG is on console 2) :
cat /dev/vcs2 > screenshot.txt
change the '2' to the appropriate console number. If you use vcsa2 instead of vcs2 the attributes (color etc) are saved as well. |
|
Back to top |
|
|
tkdack n00b
Joined: 12 Apr 2002 Posts: 44 Location: Sydney, Australia
|
Posted: Wed Sep 18, 2002 5:40 am Post subject: Re: Making a "screenshot" of console |
|
|
Emperor wrote: |
I have a massive problem with the nvidia kernel drivers. Every so often (sereral times a day) when i switch video modes, the kernel hangs, and my filesystem tends to corrupt a bit. |
Are you getting this using a normal console or a framebuffer console?
I was getting this with the framebuffer until I re-compiled the kernel and only selected VESA as the framebuffer "driver". Using the kernel provided nvidia framebuffer friver resulted in lots of pain when switching between X and console.
Unfortunately if you are using the NVidia binary drivers then you won't get much (any) help out of kernel developers in trying to fix this.
One of the things that your kernel bug will probably output is the fact that your kernel is "tainted" because of the NVidia drivers. As a result kernel bug reports that come in with "tainted" in them are pretty much discarded. _________________ Troy
http://linux.tkdack.com
Former Gentoo contributor TaD |
|
Back to top |
|
|
|