Results 1 to 2 of 2

Thread: Using a Mac? Eliminate that blue tint!

  1. #1
    Join Date
    Mar 2009
    Beans
    191

    Using a Mac? Eliminate that blue tint!

    If you're running Ubuntu on your Mac, you may have noticed that your screen has this irritating blue tint. The instructions located in the Mactel installation guide here can fix that for you, but certain 3D applications (games for instance) still cause it to come back. I kludged my way around it with this shell script:
    Code:
    #!/bin/bash
    while [ 1 ]; do
    	xcalib /usr/local/etc/OSX_Colors.icc # Or wherever your .icc file is located.
    	sleep 10 # Wait ten seconds, then repeat the loop.
    done
    This is essentially an infinite loop. It calibrates the monitor, waits ten seconds, and repeats. There are probably much cleverer ways of doing this, but I have yet to find them.

    Set it to run at login (System > Preferences > Sessions) and you should be all set.

    Tested with the Quake3-based games Warsow and Nexuiz.

    [ EDIT ]

    Here is a much less kludgy solution. It involves creating two scripts: a "wrapper" to run a certain program and one similar to the above "infinite-loop" code.

    Code for the wrapper (in this case, xcalib-wrapper.sh):
    Code:
    #!/bin/bash
    /path/to/xcalib-loop.sh & # Run the infinite-loop file as a background process.
    xspid=$! # $! means the PID of the last command.
    $1 # Launch the command specified by argument 1. When it's done...
    kill $xspid # ...kill the xcalib script.
    To run Warsow, for example, do this: xcalib-wrapper.sh warsow

    Code for xcalib-loop.sh:
    Code:
    #!/bin/bash
    while [ 1 ]; do
    	xcalib /usr/local/etc/OSX_Colors.icc # Or wherever your .icc file is located.
    	sleep 10 # Wait ten seconds, then repeat the loop.
    done
    The idea of this solution is that you're only running the xcalib loop while the game is actually being played, so you don't waste precious system resources on calibrating the monitor for no reason.
    Last edited by Peasantoid; April 1st, 2009 at 03:57 AM.
    What doesn't kill you makes you stronger. What does kill you makes you dead.
    Arch Linux for the pwn!

  2. #2
    Join Date
    Mar 2009
    Beans
    191

    Re: Using a Mac? Eliminate that blue tint!

    I created a less kludgy solution. See original post.
    What doesn't kill you makes you stronger. What does kill you makes you dead.
    Arch Linux for the pwn!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •