• How can I setup an automatic screen resolution other than the default [SOLVED]


    lxrandr used to work from a desktop file once i commented out the line to use only in lxde

    ive tried creating a number of scripts with arandr to use with autostart, both as a desktop file and as a command in the openbox autostart file

    ive tried every gui in the repos but nothing works. What changed with antergos that this no longer works?

    lspci

    00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
    00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)
    00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
    00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
    00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
    00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (3) I218-V (rev 03)
    00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
    00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
    00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
    00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
    00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
    00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
    00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
    02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)
    #
    
  • ok so i setup an xorg.conf according to this website

    http://www.linuxquestions.org/questions/slackware-14/xfce-4-8-with-xrandr-autostart-on-13-1-a-864087/

    ozanbaba Try putting it at start of .xinitrc. That’s where I put my additions.

    and so i put this line at the bottom of .xinitrc

    #xrandr --output HDMI1 --mode 1440x900#

    and according to this website

    http://askubuntu.com/questions/63681/how-can-i-make-xrandr-customization-permanent

    I think you can add the display modes to /etc/X11/xorg.conf.

    If you don’t have a xorg.conf, then you can use the following as a basis. You need to replace the entries with the names Modeline, Driver and Modes with the correct entries for your system. Depending on your hardware, you may need additional entries, for example if your system has more than one graphic chip.

    Section "Monitor"
        Identifier    "Monitor0"
        Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
        Modeline "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
    EndSection
    
    Section "Screen"
        Identifier     "Screen0"
        Device         "Card0"
        Monitor        "Monitor0"
        SubSection "Display"
            Modes       "1280x1024_60.00" "1024x768_60.00"
        EndSubSection
    EndSection
    
    Section "Device"
        Identifier    "Card0"
        Driver        "nvidia"
    EndSection
    

    If you don’t know the name of the video driver that your system is using then you may get the name as follows (if you have an intel graphic chip, the driver name is just “intel”):

    lshw -class display | grep "driver"

    The modelines can be generated with cvt:

    cvt [refresh]

    this is what my intel version of xorg.conf looks like

    #Section "Monitor"
    Identifier "Monitor0"
    Modeline “1440x900_60.00” 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "HDMI1"
    SubSection "Display"
    Modes "1440x900_60.00"
    EndSubSection
    EndSection

    Section "Device"
    Identifier "Card0"
    Driver "intel"
    EndSection#

    and this is the cvt command i entered to get the modeline

    #cvt 1440 900

    1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz

    Modeline “1440x900_60.00” 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync

    I did them both and it worked for me. Not sure which is the solution but I have the resolution I wanted

  • @Lizzi

    Thanks for sharing it!

Posts 3Views 632
Log in to reply