Advertisement
Guest User

Untitled

a guest
Jul 13th, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1.  
  2. 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.
  3. Open the terminal and run the following commands
  4.  
  5. First you need to enter the following command
  6.  
  7. $ xrandr
  8.  
  9. This will display the allowed resolutions
  10.  
  11. Sample output
  12.  
  13. Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
  14. VGA1 connected 800×600+0+0 (normal left inverted right x axis y axis) 267mm x 200mm
  15. 800×600 85.1* +
  16. 640×480 75.0 60.0
  17. 720×400 70.1
  18.  
  19. If you want to add a mode with resolution 1024X768, you can enter the following command: (The output is shown following.)
  20.  
  21. $ cvt 1024 768
  22.  
  23. Sample output
  24.  
  25. # 1024×768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz
  26. Modeline "1024x768_60.00″ 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
  27.  
  28. Now you need to create a modeline
  29.  
  30. $ xrandr --newmode <Modeline>
  31.  
  32. copy the modeline of the previous output to the place mode line
  33.  
  34. $ xrandr --newmode "1024x768_60.00″ 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
  35.  
  36. Now you need to add the above mode using the following command
  37.  
  38. $ xrandr --addmode VGA1 1024x768_60.00
  39.  
  40. here for VGA1 you have to use what ever that was there for $ xrandr output
  41.  
  42. $ xrandr --output VGA1 --mode 1024x768_60.00
  43.  
  44. Running these would change your resolution but this is temporary.these steps were done to make sure that these commands work
  45.  
  46. Now we need to make these changes permanent
  47.  
  48. Now you need to edit the default file
  49.  
  50. $gksudo gedit /etc/gdm/Init/Default
  51.  
  52. Look for the following lines
  53.  
  54. PATH=/usr/bin:$PATH
  55. OLD_IFS=$IFS
  56.  
  57. and Add the the following lines below them
  58.  
  59. xrandr --newmode "1024×768″ 70.00 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
  60.  
  61. xrandr --addmode VGA1 1024x768_60.00
  62.  
  63. xrandr --output VGA1 --mode 1024×768
  64.  
  65. Save and exit the file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement