Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Making a "screenshot" of console
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Emperor
n00b
n00b


Joined: 09 Jul 2002
Posts: 54
Location: Enschede, The Netherlands

PostPosted: Fri Aug 23, 2002 7:06 am    Post subject: Making a "screenshot" of console Reply with quote

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 :P
_________________
What is this "signature" thing you are talking about?
Back to top
View user's profile Send private message
water
Guru
Guru


Joined: 19 Jun 2002
Posts: 387
Location: Zierikzee, The Netherlands

PostPosted: Fri Aug 23, 2002 8:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Emperor
n00b
n00b


Joined: 09 Jul 2002
Posts: 54
Location: Enschede, The Netherlands

PostPosted: Fri Aug 23, 2002 5:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Silhouette
n00b
n00b


Joined: 23 Aug 2002
Posts: 46

PostPosted: Fri Aug 23, 2002 6:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Emperor
n00b
n00b


Joined: 09 Jul 2002
Posts: 54
Location: Enschede, The Netherlands

PostPosted: Fri Aug 23, 2002 7:41 pm    Post subject: Reply with quote

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 :roll: )

But i guess i could do it.
_________________
What is this "signature" thing you are talking about?
Back to top
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Sat Aug 24, 2002 1:16 am    Post subject: Reply with quote

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
View user's profile Send private message
johnd
Guest





PostPosted: Sun Aug 25, 2002 7:19 am    Post subject: Re: Making a "screenshot" of console Reply with quote

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 :P


what about selecting the text with gpm and just pasting it into vi?
Back to top
wbsoft
n00b
n00b


Joined: 26 Aug 2002
Posts: 73
Location: the Netherlands

PostPosted: Sun Sep 15, 2002 11:50 am    Post subject: Reply with quote

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
View user's profile Send private message
tkdack
n00b
n00b


Joined: 12 Apr 2002
Posts: 44
Location: Sydney, Australia

PostPosted: Wed Sep 18, 2002 5:40 am    Post subject: Re: Making a "screenshot" of console Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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