In a terminal type
sudo apt-get install lxrand
sudo lxrand
========================
Source
Use this xorg.conf
Section "Screen"
# The Identifier, Device and Monitor lines must be present
Identifier "Screen 1"
Device "VESA"
Monitor "Generic Monitor"
#Option "AddARGBGLXVisuals" "true"
# The favoured Depth and/or Bpp may be specified here
DefaultDepth 24
SubSection "Display"
Depth 8
ViewPort 0 0
Modes "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 16
ViewPort 0 0
Modes "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 24
ViewPort 0 0
Modes "800x600" "640x480"
EndSubsection
EndSection
As you can see the defaul Depth is 24, and in that mode "800x600" is the first option, so it will be my startup resolution.
============================
http://ubuntuforums.org/showthread.php?t=1877757
============================
How change display resolution settings using xrandr
Xrandr is used to set the size, orientation and/or reflection of the outputs for a screen. It can also set the screen size. There are a few global options; the rest modify a particular output and follow the specification of that output on the command line.
Open the terminal and run the following commands
First you need to enter the following command
$ xrandrThis will display the allowed resolutions
Sample output
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096If you want to add a mode with resolution 1024X768, you can enter the following command: (The output is shown following.)
VGA1 connected 800×600+0+0 (normal left inverted right x axis y axis) 267mm x 200mm
800×600 85.1* +
640×480 75.0 60.0
720×400 70.1
$ cvt 1024 768Sample output
# 1024×768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHzNow you need to create a modeline
Modeline “1024x768_60.00″ 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
$ xrandr --newmodecopy the modeline of the previous output to the place mode line
$ xrandr --newmode “1024x768_60.00″ 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsyncNow you need to add the above mode using the following command
$ xrandr --addmode VGA1 1024x768_60.00here for VGA1 you have to use what ever that was there for $ xrandr output
$ xrandr --output VGA1 --mode 1024x768_60.00Running these would change your resolution but this is temporary.these steps were done to make sure that these commands work
Now we need to make these changes permanent
Now you need to edit the default file
$gksudo gedit /etc/gdm/Init/DefaultLook for the following lines
PATH=/usr/bin:$PATHand Add the the following lines below them
OLD_IFS=$IFS
xrandr --newmode “1024×768″ 70.00 1024 1072 1176 1328 768 771 775 798 -hsync +vsyncSave and exit the file
xrandr --addmode VGA1 1024x768_60.00
xrandr --output VGA1 --mode 1024×768
Credit goes here
No comments:
Post a Comment