LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-29-2016, 09:23 AM   #1
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Setting Video RAM for an Updated VMWare 12.x Linux Guest


All --

Posting this in case it might be helpful for others.

I moved an old VMWare Workstation 9.x Slackware Current Guest OS from an Old Laptop over to a New One with VMWare 12.1.1

In addition, I updated the Guest Version from 9.x to 12.1.1 over on the New Laptop.

On the Old System, I was able to run VESA Mode 0x367 ( 1920 x 1080 x 32 ).

I booted the newly copied Guest Image on my new Laptop and the LILO "Select a Video Mode" Dialog popped up.

No problem, I knew I would need to reinstall VMWare Tools so I did that and rebooted.

Still no joy. The best VESA Mode I could get was 1152 x 864 x 32 ( option z ).

It was small and ugly and worse, my gpm mouse couldn't reach the edge of the screen.

No matter what Options I set in the VMWare Host-Side GUI for the Slackware Current 64 Guest, I could not fix the VESA Mode.

The solution was here: https://communities.vmware.com/threa...art=0&tstart=0

I needed to calculate how much VRAM I wanted and then add this NEW line to the SlackwareCurrent-64.vmx File:
Code:
svga.minVRAMSize = "20971520"
I also modified each of these settings in the SlackwareCurrent-64.vmx with a text editor ( comments are OK ):
Code:
#
# kjh added svga.minVRAMSize and adjusted other Parms accordingly for 2560 x 2048 SVGA
#
vmotion.checkpointSVGAPrimarySize = "20971520"
svga.guestBackedPrimaryAware = "TRUE"
svga.minVRAMSize = "20971520"
svga.autodetect = "FALSE"
svga.maxWidth = "2560"
svga.maxHeight = "2048"
svga.vramSize = "20971520"
I came up with the 20971520 number by using VMWare's Video RAM Calculation for Windows:
Code:
MRAM = XRez * YRez * 4 / 65536
VRAM = ( int( MRAM ) + ( int( MRAM ) != MRAM )) * 65536
I wanted ( XRez = 2560 ) x ( YRez = 2048 ) so VRAM = 20971520

If you want 1920 x 1080, VRAM = 8323072

Here is an awk script ( replace 1920 and 1080 on the `echo` line with YOUR desired X Y resolution ):
Code:
echo 1920 1080 | 
gawk 'BEGIN{ 
   VRAM = ERR = 0 
}
{ 
   if ( NF < 2 )
   { 
      ERR = 2 
      print "needs 2 numeric args: XRez YRez )" 
      exit 1 
   } 
   MRAM = $1 * $2 * 4 / 65536 
   IRAM = int( MRAM ) 
   VRAM = ( IRAM + ( IRAM != MRAM )) * 65536
   
   printf( "%d\n", VRAM )

   ERR  = ( VRAM == 0 )
}
END{ 
   exit( ERR )
}'
After adjusting the settings for your desired VRAM, you should be able to set the LILO vga Mode to 'fill the screen' on the Linux Guest console or in X.

HTH.

-- kjh

Last edited by kjhambrick; 08-30-2016 at 03:09 AM. Reason: typo
 
Old 08-30-2016, 07:05 AM   #2
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Replying to my own [SOLVED] Post so it falls off the Zero-Reply Listing in the LQ Forum.

It was only an FYI for LQ Search / google.

-- kjh
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 5 Main os vmware 5 guest os winxp, Help setting up serial ports o lizard_king825 Linux - Hardware 1 08-06-2008 05:01 AM
Setting Free VMWare Server Guest IP Address Linux31 Linux - Networking 6 06-11-2007 04:42 PM
setting up bridged connection with guest OS in VMware jogurt666 Linux - Software 0 10-02-2005 07:53 AM
Setting up win98(guest vmware) network? hydro Linux - Networking 3 10-20-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration