On 02/02/2013 02:17 PM, Jon Ingason wrote:
> 2013-01-28 01:31, poma skrev:
> 
>>
>> Automation in da display manager style:
>> /etc/lightdm/lightdm.conf:
>> display-setup-script=/usr/bin/RandR
>> …
> 
> Where can I put such scipt if I am running gdm in F18 (Gnome 3.x)?
> 

/etc/gdm/Init/Default:
…

PATH="/usr/bin:$PATH"
OLD_IFS=$IFS

# ViewSonic VX2035wm - Gigabyte IGP
xrandr --newmode "1680x1050R" 119.00 1680 1728 1760 1840 1050 1053 1059
1080 +hsync -vsync >/dev/null 2>&1
xrandr --addmode VGA-0 1680x1050R >/dev/null 2>&1
xrandr --output VGA-0 --mode 1680x1050R >/dev/null 2>&1

gdmwhich () {
…

If it works with xrandr, it is good practice to tailor xorg.conf thereafter.
/etc/X11/xorg.conf:
Section "Monitor"
    Identifier  "ViewSonic VX2035wm"
    Modeline    "1680x1050R" 119.00 1680 1728 1760 1840 1050 1053 1059
1080 +HSync -VSync
    Option      "PreferredMode" "1680x1050R"
EndSection

Section "Device"
    Identifier  "Gigabyte IGP"
    Driver      "driver"
    Option      "Monitor-VGA-0" "ViewSonic VX2035wm"
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Device      "Gigabyte IGP"
    Monitor     "ViewSonic VX2035wm"
EndSection

Section "ServerLayout"
   Identifier  "Default Layout"
   Screen      "Default Screen"
EndSection

man xorg.conf - MONITOR SECTION


>>
>> /usr/bin/RandR:
>> #!/bin/sh
>> # ViewSonic VX2035wm
>> xrandr --newmode "1680x1050R" 119.00 1680 1728 1760 1840 1050 1053 1059
>> 1080 +hsync -vsync >/dev/null 2>&1
>> xrandr --addmode VGA-0 1680x1050R >/dev/null 2>&1
>> xrandr --output VGA-0 --mode 1680x1050R >/dev/null 2>&1
>> exit 0
>>
>>
>> Cheers,
>> poma
>>
> 
> 

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to