need help changing the vga mode


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers need help changing the vga mode
# 1  
Old 01-30-2011
need help changing the vga mode

hello all,
I am trying to interface the VGA, however, it appears to be in text mode. I want to get it into mode 13h (320x240) but I can't seem to achieve this I looked at here to see which registers I need to set but I've for some reason I cant get it to work. Are these all the registers I need to set and are the values correct?

Last edited by neur0n; 02-03-2011 at 07:20 PM..
# 2  
Old 02-03-2011
anyone?
# 3  
Old 02-03-2011
As usual your question is entirely too vague to help you. You want help with assembly language and haven't even told us anything about your programming environment and boot environment.

Please explain in detail what you are doing, in what way, on what platform, in what kernel, posting the relevant part of code you have and explaining where you put it.

Unless you're 100% sure your card is completely VGA complaint however -- I wouldn't set video modes manually, but use BIOS calls instead. What little I remember about banging my head against that is that there were protection registers I needed to unprotect but never did manage to find.
# 4  
Old 02-03-2011
OK you want the full details here they are. I am using an L4 microkernel (pistachio), so I don't know how you came to the assumption that I was using assembly in the first place, not because I asked about assembly in my latter posts. Anyways, because of this, I need to access exact memory addresses and I am on an x86 platform, using grub, thus, there is no programming environment as such. Now does it make much of a difference knowing this information??? And beside, if the registers and register values are in fact correct this information wouldn't be necessary now would it? But never mind anyway, I got it to work.
# 5  
Old 02-04-2011
Quote:
Originally Posted by neur0n
OK you want the full details here they are. I am using an L4 microkernel (pistachio), so I don't know how you came to the assumption that I was using assembly in the first place
Mostly because it's going to be very difficult to not use assembly when dealing with hardware registers and/or raw BIOS calls.
Quote:
Anyways, because of this, I need to access exact memory addresses and I am on an x86 platform, using grub
So you are modifying grub's source code to write hardware registers? Or what?
Quote:
thus, there is no programming environment as such.
There must be something, somewhere that builds this program, even if your microkernel environment can't build it itself.
Quote:
But never mind anyway, I got it to work.
That's good, because you've still told me nothing useful and showed me no code and given me no clues to what you're actually trying to do in what manner where how.

We've spent entire threads trying to figure out the shape of the elephant when you've asked questions before. BE SPECIFIC.
# 6  
Old 02-04-2011
Not to be rude but if you understand the microkernel concept, you would grasp more of what is going on. And, also, if I showed you code from an L4 microkernel program would you understand it? The reason I asked the question in such a way is because the info that I'm looking for is mostly universal. And one more thing I'm not modifying the grub source I am booting using grub, you asked for boot environment, I assumed this is what you were talking about.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Hardware

VGA distributor hardware detection

Hi, I am trying to find the monitor information attach to my system. To get the detail I have decoded the information available in edid file using edid-decode utility. The file is available at /sys/devices/pci0000:00/0000:00:01.0/drm/card0/card0-VGA-1/edid After decoding edid file I get... (4 Replies)
Discussion started by: diehard
4 Replies

2. Linux

Vga passtrough with only one monitor,is possible?

I have one monitor,two vga cards,one is nvidia(host) the other ati rs450(guest),I use this script for use a vm windows with a native gpu(the ati rs450) I see this video and seems to be possible using only one monitor,but I don't understand how to do The video QEMU VGA passthrough without a... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

3. AIX

No VGA card and I need to know server IP

Dear All, I have Power7 server, and I want to know its IP address. The server have no VGA card, only serial port. Kindly tell me how to know its IP using serial cable? Thanks a lot (5 Replies)
Discussion started by: Mohannad
5 Replies

4. Linux

UNIX - FTP changing the mode while transfering the files

Hi, I have to transfer my files using FTP. Few files are in Zipped format (.Z) and few are in .PX format . For zipped files, we need to change the mode to binary while transferring the files whereas for the px files the mode should be ascii. Eg: sample1.z sample2.z sample3.z sample.px ... (2 Replies)
Discussion started by: vidlaks
2 Replies

5. Programming

vga assembly question

Im trying to make a vga program for linux Im wondering if anyone knows of a simple document on the subject or if someone could show me some basics. What system calls should I use what parameters should I give them. How do I draw a line of pixels green after in vga mode. I prefer nasm but I can use... (2 Replies)
Discussion started by: Errigour
2 Replies

6. UNIX for Dummies Questions & Answers

changing mode of files in subdirectories

Hi I actually need to change the mode to 777 in the current directory as well as subdirectories how to achieve that. I have /usr/sol/home/workfold as the main directory there are many directies and files in the workfold directory . I need to chmod 777 to all the directories and files under... (2 Replies)
Discussion started by: ssuresh1999
2 Replies

7. Solaris

changing time in cluster mode sun solaris

Howdy experts, I am using two Sun-Fire-T200 which is in Cluster mode (sun cluster 3.1). Also Oracle RAC is running on those. A daylight saving i need to apply in both servers. I am not using any ntp server. I just plan to change the date with simple date command. Change date in 1st node.... (3 Replies)
Discussion started by: thepurple
3 Replies

8. Solaris

Ultra 10 -> VGA Monitor Help

I have a vga card in my Ultra 10. How can I activate it in my Ultra 10 box which is currently still running off the Sun CRT Monitor port? (2 Replies)
Discussion started by: revzalot
2 Replies

9. UNIX Desktop Questions & Answers

Vga Installation

what is the procedure of installing a vga on the unix desktop? i have a dell machine optiplex gx 520 and it doesnt pick the vga i tryed other vga s but graphics are so poor? pls help. (2 Replies)
Discussion started by: Linus Aloo
2 Replies

10. Solaris

VGA to 13W UPA graphics

Hello, I have a Sun Ultra2 with a 13W type Creator Graphics card. My old Sun monitor has failed. Is the an adaptor or cable that I could find which will allow me to use a VGA type monitor? If so who sells them? Thanks, Jim (2 Replies)
Discussion started by: stocksj
2 Replies
Login or Register to Ask a Question