LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-12-2012, 06:16 AM   #1
prasanth.george
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


Hi,

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

Red Hat Enterprise Linux Server release 5.1

/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 "Device"
Identifier "Videocard0"
Driver "i810"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
 
Old 09-12-2012, 11:39 PM   #2
orangesky
Member
 
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.

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

Code:
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor        "yourmonitor"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
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
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
Fixing the resolution is a multi step process. I've successfully used this https://wiki.archlinux.org/index.php/Xrandr to fix the resolution on RHEL6.
On RHEL5 the built-in GUI tool works just fine http://www.linuxtopia.org/online_boo...h-xconfig.html
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:52 AM.

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