Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: Medox on May 29, 2009, 01:45:52 PM

Title: Undefined video mode number: 312 [VMware]
Post by: Medox on May 29, 2009, 01:45:52 PM
This appears everytime I run my TC in VMware, in text mode with vga=786. I then press enter and select 33F (640x480 - how I need it) and it works great but when I add vga=33F to isolinux.cfg it switches to some other, even smaller, resolution (too small). How do I solve this?

(http://i79.photobucket.com/albums/j142/Medox2006/Screens/312vm.jpg)
Title: Re: Undefined video mode number: 312 [VMware]
Post by: mcewanw on May 29, 2009, 05:12:57 PM
vga=786 (in decimal) is vga=0x312 (in hexadecimal)

I don't know where you get the vga=33F from, but as a hexadecimal number 33F would need to be written 0x33F
Title: Re: Undefined video mode number: 312 [VMware]
Post by: Medox on May 29, 2009, 05:24:49 PM
vga=786 (in decimal) is vga=0x312 (in hexadecimal)

I don't know where you get the vga=33F from, but as a hexadecimal number 33F would need to be written 0x33F

vga=0x312 didn't work, in my case, but vga=0x33F did. Thanks!

p.s. 33F is from the list that appears after pressing enter (see first picture)

(http://i79.photobucket.com/albums/j142/Medox2006/Screens/312vm2.jpg)
Title: Re: [SOLVED] Undefined video mode number: 312 [VMware]
Post by: Medox on May 29, 2009, 05:42:39 PM
Ahm... new problem.
Now I get Undefined video mode number: 33f, in VirtualPC & Qemu... :-\

Any way to use both? So that every soft/pc would get the right video mode (0x33f/786/0x312)

(http://i79.photobucket.com/albums/j142/Medox2006/Screens/312vm3.jpg)

(http://i79.photobucket.com/albums/j142/Medox2006/Screens/312vm4.jpg)
Title: Re: Undefined video mode number: 312 [VMware]
Post by: curaga on May 30, 2009, 06:33:49 AM
What, VMware doesn't support the standard 640x480? *cough*

And instead of the standard, they have defined their mode to 0x33f aka 831, which on the other hand is *not* valid on any common video bios. You'll need to either use text mode, or find a mode that works everywhere (meaning a standard one that VMware also supports).
Title: Re: Undefined video mode number: 312 [VMware]
Post by: Medox on May 30, 2009, 07:34:55 AM
so there isn't any "patch" that would do something like:

if 786 ...
else 33f

?

or maybe with some recompiling and other crazy stuff!? :D
Title: Re: Undefined video mode number: 312 [VMware]
Post by: curaga on May 30, 2009, 07:41:46 AM
Sorry, no
Title: Re: Undefined video mode number: 312 [VMware]
Post by: Medox on May 30, 2009, 07:46:30 AM
But who/what generates this video mode message? Isolinux or something else? (sorry if it's a stupid question...)

I have in mind to remove the echo-kinda-something ("Press <ENTER> ...") with vga=786, in this case. Or the other way around... if not 312 then go to 33f instead of showing that press enter bla bla.
Title: Re: Undefined video mode number: 312 [VMware]
Post by: curaga on May 30, 2009, 08:56:28 AM
It's the linux kernel's framebuffer init. I'm not sure where it is, or whether it's C or asm.