LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Resolution is getting changed after reboot in rhel5.1 desktop (https://www.linuxquestions.org/questions/linux-newbie-8/resolution-is-getting-changed-after-reboot-in-rhel5-1-desktop-4175426843/)

prasanth.george 09-12-2012 06:16 AM

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

orangesky 09-12-2012 11:39 PM

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.

Wim Sturkenboom 09-12-2012 11:40 PM

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

chrism01 09-13-2012 05:56 AM

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


All times are GMT -5. The time now is 07:40 PM.