Whenever I login, the screen resolution is always set to 1024 x 768. With a 1366 x 768 monitor, I end up with two large black bars on the sides of the screen, and I have to manually set the resolution back to 1366 x 768 via system settings. This does not affect the Ubuntu login screen; it occurs only after I log in. How can I make my computer automatically start up at the correct resolution?
You can make a script:
#!/bin/bash gnome-terminal -e "bash -c \"xrandr -s 1366x768; exit; exec bash\"" exit 0
Make it executable:
And then put it at startup applications:
The script says:
In the first answer I think the problem was that we invoke the start up script with a shortcut
|show 4 more comments|