LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Setting the xrandr setting permanently (http://www.linuxquestions.org/questions/linux-hardware-18/setting-the-xrandr-setting-permanently-385137/)

dazdaz 11-21-2005 08:44 AM

Setting the xrandr setting permanently
 
Hi there,

I'm in the final stages of configuring my X server.

I want to set the xrandr settings in my /etc/X11/xorf.conf file to number 4.

I can do this manually by using

# xrandr -s 4

But i'd like to set this permanently within the X configuration.

How do I do that ?? I can't find any clear reference so far to this.

I believe this part should be enabled in xorg.conf, but how do I select option number 4 ?

Section "ServerFlags"
Option "RandR" "On"
EndSection


[root@blahblah ~]# xrandr -q
SZ: Pixels Physical Refresh
0 1400 x 1050 ( 382mm x 281mm ) 85 75
1 1280 x 1024 ( 382mm x 281mm ) 85 75
2 1280 x 960 ( 382mm x 281mm ) 85
3 1152 x 864 ( 382mm x 281mm ) 85 75
*4 1024 x 768 ( 382mm x 281mm ) *85 75
5 832 x 624 ( 382mm x 281mm ) 75
6 800 x 600 ( 382mm x 281mm ) 85 75
7 700 x 525 ( 382mm x 281mm ) 85 75
8 640 x 512 ( 382mm x 281mm ) 85 75
9 640 x 480 ( 382mm x 281mm ) 85
10 576 x 432 ( 382mm x 281mm ) 85 75
11 512 x 384 ( 382mm x 281mm ) 85 75
12 416 x 312 ( 382mm x 281mm ) 75
13 400 x 300 ( 382mm x 281mm ) 85 75
14 320 x 240 ( 382mm x 281mm ) 85
Current rotation - normal
Current reflection - none
Rotations possible - normal
Reflections possible - none


Thanks !

PS I can post my entire X config, but I don't think it's necessary.

acid_kewpie 11-22-2005 05:51 PM

well you wouldn't select "4" as "4" is just an arbitrary enumeration that xrandr provides. open /etc/X11/xorg.conf find the screen section, find the display subsection relevant to your chosen colordepth and just move your preferred resolution to be the first in the list. e.g.
Code:

    Subsection "Display"
        Depth      8
        Modes      "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection

here it's first come first served, so by default i'll get 1280x1024, followed by 1024....yada yada yada

dazdaz 11-24-2005 02:57 AM

That worked, thanks !!


All times are GMT -5. The time now is 08:50 PM.