Wednesday, July 18, 2012

Gaming: Increasing the Brightness for Urban Terror in Ubuntu 12.04

The only game I ever play is Urban Terror, but since Ubuntu 11.04, 11.10 and now 12.04 LTS, even the maximum brightness setting in UT is still very dim on my laptop. So I ended up using a script to start the program with the following settings to increase the brightness.

In the assumption you have installed UT in the ~/Games/UrbanTerror folder, type at the command prompt: (substitute the correct folder if yours is different)
 



gedit ~/Games/UrbanTerror/utstart


copy and paste the following code and save/exit.


#!/bin/bash
xgamma -gamma 2.2
~/Games/UrbanTerror/./ioq3-urt
xgamma -gamma 1


If "-gamma 2.2" is not bright enough for you, you can increase this value.



Adding this script-file to the Menu so you can fire it up from the dashboard:
open main menu editor and add and item in the games section:



In our case the command is: ~/Games/UrbanTerror/./utstart































enjoy the game.





No comments:

Post a Comment

Please be courteous, even if you do not share the same view.