Recommended Posts

Hello,

 

I've had issues with monitor resolutions on Elementary OS, stable and the Freya beta.

 

I have eOS installed on my laptop which has an external monitor plugged in via VGA. Running the external monitor at 1080p makes the laptop run too hot (it is an old core2duo laptop) so I prefer to keep the monitor at 720p.

 

Unfortunately, the monitor configuration tool doesn't list 1280x720 in the list (the only 16:9 resolution is 1080p). No problems though, as I can just xrandr --newmode (cvt 1280x720). The monitor starts to run at 720p and everything is fine and dandy.

 

...until I restart, at which point I get a pop-up telling me that it can't restore the previous display profile, lists every single possible resolution (it's a long pop-up) and defaults to mirroring the monitors at 1024x768.

 

I've tried adding a bash script which sets the external monitor to the right display (including repeating the enter xrandr procedure) with no luck.

 

Can anyone suggest what I can do?

Use xrandr --addmode to add your own custom resolution.

 

To be clear, you have to use xrandr --newmode with the resolution details generated via cvt, then you have to xrandr --addmode the resolution to the specific monitor, then you have to xrandr --output to set the monitor to the specific resolution.

 

Doing this works fine, however, it doesn't persist after a restart, and instead I get various errors which force me to repeat the process from the beginning. 

Can't you define a custom X11/Xorg screen/display section?

$ vim /etc/X11/xorg.conf.d/10-monitor.conf
Section "Screen"
    Identifier             "Screen0"
    Device                 "Device0"
    Monitor                "Monitor0"
    DefaultDepth           24
    SubSection             "Display"
        Depth              24
        Modes              "1280x720"
    EndSubSection
EndSection

To be clear, you have to use xrandr --newmode with the resolution details generated via cvt, then you have to xrandr --addmode the resolution to the specific monitor, then you have to xrandr --output to set the monitor to the specific resolution.

 

Doing this works fine, however, it doesn't persist after a restart, and instead I get various errors which force me to repeat the process from the beginning. 

Sure you first have to add the new mode. It was explained under the link. :)

In order to keep this persistant, create a xorg.conf file and copy it into your X11 folder. Mine looks like this (You'll have to make changes to match your monitor setup / configuration):

Section "Monitor"
    Identifier      "HDMI2"
    Modeline        "1368x768_60.00"  85.86  1368 1440 1584 1800  768 769 772 795  -HSync +Vsync
    Option          "PreferredMode" "1368x768_60.00"
EndSection
Section "Device"
    Identifier      "ATI Technologies, Inc. M22 [Radeon Mobility M300]"
    Driver          "intel"
    Option          "HDMI2"
EndSection
Section "Screen"
    Identifier      "Primary Screen"
    Device          "ATI Technologies, Inc. M22 [Radeon Mobility M300]"
    DefaultDepth    24
    SubSection "Display"
        Depth           24
        Modes   "1368x768"
    EndSubSection
EndSection

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

Additionally, I made myself a xrandr.sh file, so, that I don't have to always redo everything after a fresh install or update but simply double-click the sh file:

xrandr --newmode "1368x768_60.00"  85.86  1368 1440 1584 1800  768 769 772 795  -HSync +Vsync
xrandr --addmode HDMI2 1368x768_60.00
xrandr --output HDMI2 --mode 1368x768_60.00

Sorry that I was very short in my initial reply. It's always difficult to determine the knowledge level of a user if you don't have communicated / worked with him before. ;)

This topic is now closed to further replies.
  • Posts

    • If the drive/memory is soldered to the board, which it probably is, then it's a no from me
    • Driver Genius 25.0.0.143 by Razvan Serea Driver Genius is a professional driver management tool features both driver management and hardware diagnostics. Driver Genius provides such practical functions as driver backup, restoration, update and removal for computer users. If you often reinstall your operating system, you may not forget such painful experiences of searching all around for all kinds of drivers. If unfortunately you have lost your driver CD, the search will be more troublesome and time-consuming. Driver Genius can automatically find drivers for a device when the system can't find a driver for it. It can recognize the name and vendor's information of the device, and directly provide download URL for the required driver. Driver Genius also supports online updates for drivers of existing hardware devices. Driver Genius customers can obtain information for latest drivers by Driver Genius's LiveUpdate program, which can synchronize to the database on Driver Genius site. Features at a glance: Find the latest drivers for your computer. One click to update all drivers silently. Automatically install driver updates silently. Make your drivers are always up to date. New rollback driver design for safer driver update. Free to backup all drivers now! Package all drivers to an executable auto installer. One click to restore all drivers. Remove invalid or useless drivers/devices, improve system performance and stability. New system information tool. Detailed hardware inventory. Hardware temperature monitor. Protect your CPU, GPU and HDD. New system transfer assistant. Upgrade/degrade your windows system easily. New SSD Speeder. Improve your disk performance and reliability. New System booster provides over 90 optimization options that make your computer run faster and smoother. New System Cleanup can help you to clean up the temporary files and cache files or other junk files in system. Driver Genius 25.0.0.143 changelog: Enhanced detection for Windows Runtime components. Update the hardware detection component to support more new hardware. Update the compression component to address security issues. Download: Driver Genius 25.0.0.143 | 20.7 MB (Shareware) View: Driver Genius Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • We do it all the time on our IT Service desk mailbox to add a reference, in the subject line, once it's been logged and then it's filed into the appropriate sub-folder. Other companies probably do the same thing.
    • "No. The "New Outlook for Windows" does not support non-cloud mailboxes (such as on-premises Exchange servers). Furthermore, because the New Outlook effectively functions as a web-based client, it requires all connected accounts—even standard IMAP or POP accounts—to route and cache data through Microsoft's cloud servers. You can verify the accepted account setups using the Microsoft Supported Account Types Guide." Built to fail "New" Outlook is basically just webmail in a window wrapper and it's usefulness reflects that.
  • Recent Achievements

    • One Month Later
      Carru_123 earned a badge
      One Month Later
    • Week One Done
      Dr Jared Dental Studio earned a badge
      Week One Done
    • Week One Done
      RG INVESTMENT GROUP earned a badge
      Week One Done
    • Very Popular
      The Norwegian Drone Pilot earned a badge
      Very Popular
    • Very Popular
      s0nic69 earned a badge
      Very Popular
  • Popular Contributors

    1. 1
      +primortal
      472
    2. 2
      PsYcHoKiLLa
      250
    3. 3
      Skyfrog
      79
    4. 4
      FloatingFatMan
      67
    5. 5
      Michael Scrip
      60
  • Tell a friend

    Love Neowin? Tell a friend!