From Processor To Display


 
Thread Tools Search this Thread
Top Forums Programming From Processor To Display
# 1  
Old 10-13-2010
From Processor To Display

What is the programming side of the keyboard's PrintScreen?
When I hit this button, what is the computer doing to give me the image that my monitor is displaying?

In the same arena, how does the computer tell the monitor what to display visually? I move the mouse and the cursor appears to be moving as a result of my manipulation, but I know it is some intricate process of programmed communication. What is happening here? not so much in lay men's terms but to the grit of it.

If I wanted to write code to alter what and how the monitor is told to display, and also how the mouse and keyboard receive their information and send it to the monitor... what languages and or avenues ought I look into? Is this all machine language? assembly? higher?
# 2  
Old 10-14-2010
Quote:
Originally Posted by ciNG
What is the programming side of the keyboard's PrintScreen?
Depends on your system. On a lot of systems printscreen doesn't do anything.
Quote:
When I hit this button, what is the computer doing to give me the image that my monitor is displaying?
The video screen is, ultimately, showing the contents of memory -- a special memory block on the video card itself. For 32-bit color, each four bytes is one pixel. The video card reads through 60+ times a second and blasts the raw data to your screen, over and over. Whenever its contents change, the new pixels will show up the next redraw.

This memory is special of course, but the computer can still use it like ordinary memory. That's why video cards need such fast buses, so the CPU can transfer data across it almost as fast as its own memory. Your computer can and does write to it whenever it pleases, and can read from it too. So printscreen just grabs its contents(or, more likely, tells the OS to grab its contents.) It might even just grab a copy of what it kept from last time instead of grabbing from video memory itself...
Quote:
In the same arena, how does the computer tell the monitor what to display visually? I move the mouse and the cursor appears to be moving as a result of my manipulation, but I know it is some intricate process of programmed communication. What is happening here? not so much in lay men's terms but to the grit of it.
The GUI goes through a list of windows and their contents, and from them creates a block of memory representing pixels, then copies it into video memory. Next time the video card redraws the screen it'll redraw that new information.

Sometimes, if there's just a small change happening like the mouse moving. the GUI can get away with only changing a square surrounding the area that's changed, which is a whole lot faster than updating the whole thing.
Quote:
If I wanted to write code to alter what and how the monitor is told to display, and also how the mouse and keyboard receive their information and send it to the monitor... what languages and or avenues ought I look into? Is this all machine language? assembly? higher?
If you're using a GUI you can talk to it in a variety of languages. You'd just be using the usual GUI toolkits and so forth. If you want to talk to it raw, you'd use something like SDL which can either jump through the correct hoops in whatever your OS is to give you raw video memory or, if it can't(plenty of GUI's don't give you direct access), give you something that acts as close to real video memory as it can.

Last edited by Corona688; 10-14-2010 at 03:16 AM..
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 10-18-2010
Thanks Be In Order

Thanks for your time Corona688. I really appreciate the response you wrote.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help for processor

hello Admins, how to find number of processor in unix machine. (2 Replies)
Discussion started by: vipinkumarr89
2 Replies

2. Shell Programming and Scripting

m4 processor (how to use)

hi, what plugins i need to install to run m4 processor in bash shell. Also, what is the file extension for m4 processor ( like .cc in c ). Thanks (1 Reply)
Discussion started by: Learnerabc
1 Replies

3. UNIX for Dummies Questions & Answers

Processor id/name

How to find out whether the system has multiple processors. In multiprocessor system how to get their names or ids How to send command to a particular processor ( can we use rsh) (6 Replies)
Discussion started by: anjum
6 Replies

4. AIX

Processor and processor core

Guys... Hows it going??? I have been going through the hardware spec of IBM system p systems.. and here i am confused for IBM Power 520 Express it says Processor cores: One, two or four 64-bit 4.2 GHz POWER6 with AltiVec™ SIMD and Hardware Decimal Floating-Point acceleration ... (1 Reply)
Discussion started by: balaji_prk
1 Replies

5. UNIX for Dummies Questions & Answers

Cores on a processor

Hi All, What is the command to identify whether a processor is single core / dual core in solaris ? Thanks. (2 Replies)
Discussion started by: RAA
2 Replies

6. UNIX for Dummies Questions & Answers

How to use ps to display processor number

I'm on a Unix 5.2 server and I want to be able to see my processes to verify they are active and which processor they are running on. ps -l will show me the status of process (active/stopped/idle) but to see which processor the process is assigned to I don't know how. Manpages show -o... (1 Reply)
Discussion started by: tumblez
1 Replies

7. AIX

LPAR processor/virtual processor settings

Question is on setting of Physical and Virtual processors for LPARs to make proper use of virtualization capabilities. Environment is a 8-way p570 with 4 LPARs. lparVIO1 and lparVIO2: AIX 5300-04-01 Mode/Type= Shared-SMT/Capped Minimum Processors= 0.10 Desired Processors= 0.50 Maximum... (1 Reply)
Discussion started by: guttew
1 Replies

8. Shell Programming and Scripting

How to get Processor Id

Hi Everyone I am new to unix. I ahve few quries that i would like to post. Is there any way by which i get the unique processor Id. Actually i am unable to find any logic and method to get access to Processor Id. Is it possible to get it. I read it on Intel site that the new processor do no... (1 Reply)
Discussion started by: atul.saxena
1 Replies

9. UNIX for Dummies Questions & Answers

Processor

From a PROM ok prompt I have typed banner. This returned this info SunSPARCStation20 (1X390Z50) ...... Okay, I read that the 1x390z50 is the processor type. How can I found out the speed of these processor? Is it 50mhz? Don't know but I am curious. Thanks (5 Replies)
Discussion started by: jwbrown
5 Replies
Login or Register to Ask a Question