I regularly use a screen that my fedora install doesn’t recognize. I mean, it can’t find the right resolution. And that’s annoying. Luckily there is xrandr to solve such problems. But always using 4 commands is rather annoying, so I made a small script for it.
#!/bin/bash CVT=$(cvt $1 $2) if [ -n "$3" ] then DISPLAYNR=$3 else DISPLAYNR="VGA1" fi xrandr --newmode ${CVT:78} xrandr --addmode $DISPLAYNR ${CVT:78:17} xrandr --output $DISPLAYNR --mode ${CVT:78:17}
Just put this code in a file, and make it executable (chmod +x [[file]]). Then run it like this (if the filename is ‘screenreso’):
# ./screenreso 1920 1200 VGA1
where ‘VGA1′ is optionally, the script defaults to VGA1 Image may be NSFW.
Clik here to view.