I have a problem with my new LG 21:9 monitor. I can't add 2560 x 1080 resolution.
PC Dell Optiplex 7010, integrated Intel HD Graphics 2500 + LG 25" 25UM58-P monitor.
I've just found a nice code here script I changed it a little for my needs:
gtf 2560 1080 50
# 2560x1080 @ 50.00 Hz (GTF) hsync: 55.60 kHz; pclk: 188.60 MHz
Modeline "2560x1080_50.00" 188.60 2560 2704 2976 3392 1080 1081 1084 1112 -HSync +Vsync
xrandr --newmode "TEST" 188.60 2560 2704 2976 3392 1080 1081 1084 1112 -HSync +Vsync
xrandr --addmode HDMI-1 "TEST"
xrandr --output HDMI-1 --mode "TEST"
And when I run it in terminal it works perfectly.
Then I created file .xprofile and saved it:
sudo gedit ~/.xprofile
#!/bin/sh
MODE_NAME="ULTRAWIDE"
OUTPUT="HDMI-1"
CONNECTED_OUTPUT=$(xrandr --current | grep -i $OUTPUT | cut -f2 -d' ')
if [ "$CONNECTED_OUTPUT" == "connected" ];
then
# SET 2560x1080 50 HZ
xrandr --newmode "$MODE_NAME" 188.60 2560 2704 2976 3392 1080 1081 1084 1112 -HSync +Vsync
xrandr --addmode HDMI-1 "$MODE_NAME"
xrandr --output HDMI-1 --mode "$MODE_NAME"
xrandr --output HDMI-1 --primary
else
echo "ULTRAWIDE IS NOT DETECTED !"
fi
but there's an error:
** (gedit:11640): WARNING **: 15:20:09.130: Set document metadata failed
[sudo] user password tomasz:
** (gedit: 11640): WARNING **: 15: 20: 09.130: Set document metadata failed: Setting the metadata attribute :: gedit-spell-language is not supported
And after rebooting the new resolution 2560 x 1080 didn't work.
Thanks in advance :)