LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Centos resolution in vmware (https://www.linuxquestions.org/questions/linux-newbie-8/centos-resolution-in-vmware-849903/)

noony123 12-13-2010 06:04 AM

Centos resolution in vmware
 
Hi all. I am using windows XP as host machine with vm workstation 6.

I want my Gui resolution to be changed to 1024x768 but i am not getting any idea as how to solve it. According to my research, following are the relevant results for you guys to look into

[root@WAN-Admin ~]# cat /var/log/Xorg.0.log | grep -i x11
Build ID: xorg-x11-server 1.1.1-48.76.el5
(==) Using config file: "/etc/X11/xorg.conf"
(==) RgbPath set to "/usr/share/X11/rgb"
[root@WAN-Admin ~]#

[root@WAN-Admin ~]# cat /etc/X11/xorg.conf
# Xorg configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "vmware"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection

[root@WAN-Admin ~]#

In my .vmx file, i also entered the following

svga.vmSize= "33554432"

But no result. When i restarted the machine (vm machine) and checked the logs, this is what i got

[root@WAN-Admin ~]# cat /var/log/Xorg.0.log | grep 1024
(II) VMWARE(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
(II) VMWARE(0): Not using default mode "1024x768" (hsync out of range)
(II) VMWARE(0): Not using default mode "1024x768" (hsync out of range)
(II) VMWARE(0): Not using default mode "1024x768" (hsync out of range)
(II) VMWARE(0): Not using default mode "1024x768" (hsync out of range)
(II) VMWARE(0): Not using default mode "1280x1024" (hsync out of range)
(II) VMWARE(0): Not using default mode "1280x1024" (hsync out of range)
(II) VMWARE(0): Not using default mode "1280x1024" (hsync out of range)
(II) VMWARE(0): Not using default mode "1600x1024" (hsync out of range)
(II) VMWARE(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
(II) VMWARE(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
(II) VMWARE(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
(II) VMWARE(0): Not using mode "1280x1024" (no mode of this name)
(II) VMWARE(0): Modeline "800x600" 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync
[root@WAN-Admin ~]#

Kindly guide me, what shall i do

noony123 12-13-2010 08:22 AM

Ok guys, solved this one too

After searching over the net, i found the working xorg.conf file. I am writing the solution here so whoever finds it can benefit from it.

Note- All the following steps are performed under Gnome. If you are in shell mode, type gdm to start gnome

1) Vmware workstation 6.0.2
2) Vmware Tools NOT installed
3) Following is the xorg.conf file in /etc/X11/

------------------------------------------------------------
[root@WAN-Admin ~]# cat /etc/X11/xorg.conf
# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "Monitor"

### Comment all HorizSync and VertSync values to use DDC:
Identifier "vmware"
VendorName "VMware, Inc"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 1.0 - 10000.0
VertRefresh 1.0 - 10000.0
ModeLine "640x480" 100.0 640 700 800 900 480 500 600 700
ModeLine "800x600" 100.0 800 900 1000 1100 600 700 800 900
ModeLine "1024x768" 100.0 1024 1100 1200 1300 768 800 900 1000
ModeLine "1152x864" 100.0 1152 1200 1300 1400 864 900 1000 1100
ModeLine "1280x1024" 100.0 1280 1300 1400 1500 1024 1100 1200 1300
ModeLine "1600x1200" 100.0 1600 1700 1800 1900 1200 1300 1400 1500
EndSection

Section "Device"
Identifier "VMware SVGA"
Driver "vmware"
EndSection

Section "Screen"
Identifier "Screen0"
Device "VMware SVGA"
Monitor "vmware"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 4
Modes "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "800x600" "1024x768" "1280x1024" "1600x1200"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Modes "800x600" "1024x768" "1280x1024" "1600x1200"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "1024x768" "1280x1024" "1600x1200"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

[root@WAN-Admin ~]#

---------------------------------------------------------------

I would recommend taking the backup of original xorg file.

4) type gdm-restart
5) Now type system-config-display. This shall open the display window. Now you should be able to see different resolutions in drag-down menu. Choose the one thats suits you :-) After choosing, type gdm-restart to make it take effect.

Thanks


All times are GMT -5. The time now is 07:54 AM.