Printscreen mechanism

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

Printscreen mechanism

Post by dejvos »

Hello,

I wondering to know how the mechanism of printscreen works. Is screen readed from a buffer of a graphic card or another memory?
Can I discover this way, if the graphic card is OK? Or is another way? ( I can't see a screen )

Thanks!
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Printscreen mechanism

Post by jackpf »

I had a google, but I just found a bunch of idiots asking "Why doesn't print screen print the screen from my printer?"...fools.

But I don't know. I'd imagine it copies the screen buffer from ram or something. Although I could be completely wrong :dubious: so don't take my word for it....
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Printscreen mechanism

Post by Weirdan »

I guess it's copied from offscreen buffer. See this source for example: https://www.atmos.washington.edu/svn/iv ... dow_Dump.c
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

Re: Printscreen mechanism

Post by dejvos »

So it's look like that a printing screen is independent on functionality of a graphic card. Because printscreen reads buffer (object) in primary memroy (if I understand to malloc() well).

Is there any command, which I can use to explore if the graphic card on remote machine works correctly?
Post Reply