LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-05-2011, 05:28 PM   #1
1qaz
LQ Newbie
 
Registered: May 2006
Location: Virginia
Posts: 8

Rep: Reputation: 0
How to set resolution and refresh rate for user shared workstation


OS version:
Red Hat Enterprise Linux Server release 5.3 (Tikanga)

User Request:
"We need to set the resolution to 1280 X 1024 and the refresh rate to 60 Hz. There are two monitors"

Note: each user can change the settings, but settings are lost when they logout (they are not root).

User states resolution and refresh rate can be set but it's not the default (settings lost after logoff).

Question:
How can I set a default resolution (1280x1024) and refresh rate (60 Hz) remotely so all users don't have to set every time they login. This box is dedicated to 1 function and i have root access remotely but not the desktop gui.

Info:
/sbin/lspci | grep -i vga
02:00.0 VGA compatible controller: nVidia Corporation G80 [Quadro FX 5600] (rev a2)

cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 256.53 Fri Aug 27 20:27:48 PDT 2010
GCC version: gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
cat /proc/driver/nvidia/cards/0
Model: Quadro FX 5600
IRQ: 177
Video BIOS: 60.80.13.00.01
Card Type: PCI-E
DMA Size: 40 bits
DMA Mask: 0xffffffffff
Bus Location: 0000:02.00.0

/etc/X11/xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 256.53 (buildmeister@builder97.nvidia.com) Fri Aug 27 20:55:22 PDT 2010

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
InputDevice "stylus" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "pad"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "InputDevice"

# generated from data in "/etc/sysconfig/mouse"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

# generated from data in "/etc/sysconfig/keyboard"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "TVResolution" "UnkownDefaults"
Option "ScreenNo" "0"
Option "TwinView" "horizontal"
Option "USB" "on"
# Option "ForceDevice" "ISDV4"
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "TVResolution" "UnkownDefaults"
Option "ScreenNo" "0"
Option "TwinView" "horizontal"
Option "USB" "on"
# Option "ForceDevice" "ISDV4"
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "TVResolution" "UnkownDefaults"
Option "ScreenNo" "0"
Option "TwinView" "horizontal"
Option "USB" "on"
# Option "ForceDevice" "ISDV4"
EndSection

Section "InputDevice"
Identifier "pad"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "pad"
Option "USB" "on"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 30.0 - 110.0
VertRefresh 50.0 - 150.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "BackingStore" "on"
Option "TwinView" "True"
Option "MetaModes" "nvidia-auto-select, nvidia-auto-select"
SubSection "Display"
Depth 24
Modes "1280x1024" <<- this is what i added
EndSubSection
EndSection

Thank you for your responses in advance. Appreciated!
 
Old 08-06-2011, 12:00 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 3 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,293

Rep: Reputation: 205Reputation: 205Reputation: 205
Google RandR.
 
0 members found this post helpful.
  


Reply

Tags
nvidia, refresh, resolution


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor refresh rate and resolution emer_son Ubuntu 1 11-24-2007 07:23 PM
Resolution and refresh rate phantom_cyph Fedora 9 09-28-2007 09:26 PM
screen resolution and refresh rate tramni1980 Slackware 5 11-16-2006 01:44 PM
resolution and refresh rate... Decepticon22 Linux - Newbie 6 02-03-2005 03:51 PM
Refresh Rate + Resolution issues pureevil4 Slackware 6 04-16-2004 03:11 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration