Video drivers in pretty much any OS are areas of potential grief as they are a pain in the ass to write and operate at a low level. As a result they often cause problems, even in Windows. One of the most common issues with Linux is that the full range of screen resolutions are not properly discovered and you can end up with a boring low resolution when your hardware is capable of much more.
All the documentation I've found is very techie and you have to plough through a load of guff just to get to a simple answer - press this! This simpler version should help resolve common problems such as resolutions not detected/lost after upgrade(s).
First, find out what your hardware is capable of. The monitor is easy, read the model, Google. The graphics card is not so easy as you may have to pull the machine apart first, unless you do this:
All this does is dump to screen what has been detected on the PCI bus, the output is piped to 'grep' which finds and outputs the VGA element. Mine produced this:Code:Only registered members can view code.
My graphics card is an Intel 82945G/GZ. I know this can do 1270x1024 at 70Hz so I'll use xrandr and gtf to do this as Xorg.conf is deprecated. These should be available by default on most distributions.Code:Only registered members can view code.
First, use xrandr to ensure your frame buffer size allows the resolution you need:
I got this:Code:Only registered members can view code.
Now use gtf to generate a modeline (resolution):Code:Only registered members can view code.
The syntax is 'gtf horizontal-resolution vertical-resolution refresh-rate'Code:Only registered members can view code.
The output I got was:
Which gives me the values I need for xrandr, first add a new mode:Code:Only registered members can view code.
Now, run xrandr without any arguments to determine the display name:Code:Only registered members can view code.
From the above output mine is VGA1 so we add the new mode to this screen:Code:Only registered members can view code.
Activate the new mode by:Code:Only registered members can view code.
If you used values supported by both graphics card and monitor the new resolution should now be active. You'll probably lose this after a reboot however...Code:Only registered members can view code.
I just created a file and placed it on the desktop like this:
Give it a .sh extension and add the execution bit with a 'chmod +x' and you can just run it after the system has started. Alternatively, put this at the end of the /etc/rc.local file like this:Code:Only registered members can view code.
Remember to make the script executable with a 'chmod +x' as it doesn't run by default.Code:Only registered members can view code.



1Likes
LinkBack URL
About LinkBacks




Reply With Quote

Bookmarks