I am new to Ubuntu.I want to run this script every time my system reboots.Is there a way to do that?Thanks in advance for help.
# !/bin/bash
#fix resolution problem
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 - hsync +vsync
xrandr --addmode VGA1 1440x900_60.00
First of all make your file executable by using this command :
chmod +x file_name
after you go to the file location
then add this line to
/etc/rc.local
here is the line:
/path/to/file/file_name
next time you restart your PC i think it will work well.
No comments:
Post a Comment