Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-12-2012, 06:16 AM   #1
LQ Newbie
Registered: Jan 2011
Location: bangalore
Distribution: rhel,ubuntu,centos
Posts: 27

Rep: Reputation: 0
Resolution is getting changed after reboot in rhel5.1 desktop


once i do this xrandr -s 1024x768 resolution gets normal,
after reboot resolution gets changed again.

Red Hat Enterprise Linux Server release 5.1


# Xorg configuration created by system-config-display

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

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

Section "Device"
Identifier "Videocard0"
Driver "i810"

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
Old 09-12-2012, 11:39 PM   #2
Registered: Jun 2009
Posts: 87

Rep: Reputation: 17
While it's not a really esoteric solution, you could make a cron boot job or init script to run the command that fixes the resolution when you start up.

Last edited by orangesky; 09-12-2012 at 11:42 PM.
Old 09-12-2012, 11:40 PM   #3
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Are you sure you have an i810 video card? RHEL5.1 is a reasonable modern distro and the i810 is antique

Try to add a monitor section to your xorg.conf. Find the specs for your monitor and modify the HorizSync and VertRefresh accordingly. In the spec, the former is specified in kHz, the latter in Hz.

Section "Monitor"
    Identifier    "yourmonitor"
    HorizSync     31-101
    VertRefresh    60-160
Add the line in red italic to the screen section

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor        "yourmonitor"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
If you want 1024x768 as the default, remove the 1280x1024 or move it to the end of the line

Last edited by Wim Sturkenboom; 09-12-2012 at 11:54 PM. Reason: Changed RH to RHEL in first line
Old 09-13-2012, 05:56 AM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,790

Rep: Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538
Fixing the resolution is a multi step process. I've successfully used this to fix the resolution on RHEL6.
On RHEL5 the built-in GUI tool works just fine


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] resolution changed - can't return to normal resolution houndhen Linux - Hardware 3 11-21-2010 12:59 PM
after reboot computer time is changed powah Linux - General 2 03-16-2009 12:40 PM
pc name changed after regular reboot Lord of the Board Linux - Newbie 2 10-01-2006 03:24 PM
route settings get changed after reboot brynjarh Linux - Newbie 1 07-08-2004 01:03 PM > Forums > Linux Forums > Linux - Newbie

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

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