Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

From my past experience (using Win-Xp), this particular monitor works only on 60Hz , Best resolution being 1024x768.

I have "installed and configured" Ubuntu 12.04 Minimal (on USB stick) so that most of the time terminal is used, however, whenever there is a need to enter GUI, I may issue startx command to go into gnome.

However the problem is that on this particular system, issuing this command poses problem because its default refresh rate won't synchronize with the monitor. The display keep on flickering and utterly unreadable. It is visible that gnome has been loaded and default wallpaper and desktop items are visible. But the problem is due to refresh rate different than 60Hz.

I am looking for a command attribute to startx command which will force the refresh rate to 60Hz and resolution preferably to 1204x768

I can open terminals with Ctrl+Alt+T and enter commands.

Key combinations like Ctrl+Alt+NumPlus works flawlessly in distributions like solaris, but it's not working for me. Also the commands like xrandr -r 60 60 being refresh rate wont work.

The same problem is faced even when I boot from a live CD

share|improve this question
    
xorg.log please –  Mitch Jun 25 '12 at 11:24
    
Not sure this can be done with startx itself, but you can probably set up the appropriate xrandr command in an .xinitrc to do it. –  Bryce Jun 26 '12 at 17:11
    
@Mitch How may i get the log from a live CD??? moreover its almost impossible to store and post this log from a live CD for I am not having any GUI to get to a browser to approach the storage device to store the log –  Z9iT Jun 28 '12 at 5:48
1  
@Bryce I tried xrander as an attribute, How should i incorporate it on the .xinitrc file?? 60Hz ~ 1024*768 will be perfect! –  Z9iT Jun 28 '12 at 5:50
    
I think just appending the line 'xrandr --output VGA1 --mode 1024x768_60' into ~/.xinitrc ought to do it. –  Bryce Jun 28 '12 at 7:25

2 Answers 2

Before saying anything, I should recommend you backup xorg.conf file using the command

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

Next, to make any changes it is recommended to stop Xorg (which will bring you to a text-only screen) using the command

sudo /etc/init.d/lightdm stop

(Hopefully you are running Ubuntu 12.04 or 11.10. If not, just substitute lightdm for gdm or kdm if running kde). After that, you can edit your configuration file via

sudo nano /etc/X11/xorg.conf

From there, look for the Subsection Display, then navigate down to modes where you will type in your custom resolution with the refresh rate. Then save it, and restart X.

If none of that worked, and I completely screwed your xorg over, you can restore the backup (thank god for backups) using the command

sudo /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
share|improve this answer

If you are using nvidia drivers read my answer 22 at this link

share|improve this answer
    
I am talking for generic systems... even tough mine is AMD readron on one and Intel on other –  Z9iT Dec 23 '12 at 8:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.