Dual Monitor setup in Linux Mint 14 with xrandr
So I recently began dual booting Linux Mint 14 and Windows 7 on a Lenovo Ideapad Y580 (which was not a walk in the park, but also one of the simpler *nix installs I’ve ever done). Out of the box, Mint did not detect the correct resolution on my second monitor, maxing out at 1024×768 on the 1080p display. After wrangling with the NVIDIA proprietary drivers, I ended up installing bumblebee (I’ll try to post a complete guide on getting Linux Mint 14 working on dual boot on the Y580).
In the meantime, in order to get the monitor working in 1080p, I followed this tutorial: https://wiki.archlinux.org/index.php/Xrandr#Adding_undetected_resolutions. After successfully getting the modeline, I was able to get 1080p working, but instead of having to type those commands again, I made the following script, which you can save and use to activate your dual monitors as well.
#!/bin/sh xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr --addmode VGA1 1920x1080_60.00 xrandr --output VGA1 --mode 1920x1080_60.00 xrandr --output VGA1 --primary
The first line would have to be replaced with the output from the cvt command for your desire resolution, and VGA1 with the name of the display you want to set up. Use
to find the name of the display. The last line sets the second monitor as the primary display (with the application panels, etc). It can be commented if this is not what you want.
Simple, but I had some trouble finding a solution, so here you go.