Re: which is the best script in which I can put the code to set the resolution of scr
Kernel mode setting is not working correctly ?
I found some code which can enable the high resoltion. After excuting the following command, my screen shows the resoltion of 1680*1050 now.
cvt 1680 1050
xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
xrandr --addmode VGA1 "1680x1050_60.00"
xrandr --output VGA1 --mode "1680x1050_60.00"
At this point the xserver is not running so xrandr will not work.
However, I hope the above script can be excuted automatically. I am expecting the script can be excuted after I login. I tried rc.local and it doesn't work. In which script should I put above code ?
I would put your script in ~/.xsession in your home directory.
Open a terminal and type
Copy and paste the above lines into it.
Remember to make the script executable.
Hopefully that should get you going.
chmod 755 .xsession
Post back on efficacy as i am not surrently using Unity.
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain