I have a monitor. The hardware can support 1024x768 at 85Hz. But don't know why my lubuntu system does not detect this highest refresh rate for the resolution mentioned above.
As per this I did the following:
abhishek@abhishek:~$ cvt 1024 768 85
# 1024x768 84.89 Hz (CVT 0.79M3) hsync: 68.68 kHz; pclk: 94.50 MHz
Modeline "1024x768_85.00" 94.50 1024 1096 1200 1376 768 771 775 809 -hsync +vsync
abhishek@abhishek:~$ xrandr --newmode "1024x768_85.00" 94.50 1024 1096 1200 1376 768 771 775 809 -hsync +vsync
abhishek@abhishek:~$ xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"
VGA-1
abhishek@abhishek:~$ xrandr --addmode VGA-1 1024x768_85.00
abhishek@abhishek:~$ xrandr
Screen 0: minimum 8 x 8, current 1024 x 768, maximum 32767 x 32767
VGA1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*
800x600 60.32 56.25
848x480 60.00
640x480 59.94
1024x768_85.00 84.89
DVI-D-1 disconnected (normal left inverted right x axis y axis)
abhishek@abhishek:~$
So with the above I could add the new frequency temporarily. After reboot, this work is not remembered.
So as said I tried to create a .xprofile file as shown:
abhishek@abhishek:~$
abhishek@abhishek:~$ vi ~/.xprofile
I wrote the content...
This is the output:
abhishek@abhishek:~$ cat .xprofile
#!/bin/sh
randr --newmode "1024x768_85.00" 94.50 1024 1096 1200 1376 768 771 775 809 -hsync +vsync
xrandr --addmode VGA-1 1024x768_85.00
abhishek@abhishek:~$
It is exactly as said here to add undetected resolutions permanently...
I made the .xprofile file executable as well, but, the problem is after reboot, the configuration is lost...
I am cannot understand what is wrong... Please can anyone help me?
abhishek@abhishek:~$ echo $0 /bin/bash abhishek@abhishek:~$