I installed xcalib using:

sudo apt-get install xcalib

Then I could invert color using:

xcalib -i -a

However after I restarted my computer this is not working. Why?

I tried removing xcalib using both:

sudo apt-get remove xcalib


sudo apt-get purge xcalib

and re-installed xcalib.

Still xcalib isn't inverting colors. How do I fix this?


p.s.: My question is different from this as I don't get any error message.

  • When should the command be executed? After logging in, or before?
    – A.B.
    Sep 27, 2015 at 17:48
  • 1
    I would do it manually every time I log in: Go to the terminal and type the command. Sep 27, 2015 at 17:50
  • And there is no output in the terminal?
    – A.B.
    Sep 27, 2015 at 18:13
  • 1
    I accidentally made it work - I changed the driver for the graphics card. And suddenly it worked. But again on restarting it doesn't work. I am unable to understand, where could be the problem even! Sep 27, 2015 at 23:20
  • 1
    @Inspired_Blue, Could you edit the question and add the output of xrandr --verbose
    – user.dz
    Jan 6, 2017 at 16:11

2 Answers 2


I solved that problem by installing the newest version of xcalib, as detailed here:

Firstly, you need to have git, make, cmake, and some libraries:

sudo apt install git cmake make libx11-dev libxrandr-dev libxxf86vm-dev

Then do:

git clone https://github.com/OpenICC/xcalib.git
cd xcalib
cmake CMakeLists.txt
sudo make install

That works even if you do not get an error message. It works on Ubuntu 19.10 and 18.04. Also with Unity desktop manager.


I had all these same problems on ubuntu 18.4. The following worked (Easiest way to invert colors on Ubuntu 18.04):

git clone https://github.com/zoltanp/xrandr-invert-colors.git
cd xrandr-invert-colors
 # install dependency libxcb-randr0-dev :
sudo make deps-apt
sudo make install

... and run with /usr/local/bin/xrandr-invert-colors.

  • 1
    Welcome to this community. Please take a convenient moment to look at askubuntu.com/editing-help for tips how to improve the readability of your post; for example by separating code from normal text. This will help readers value your answer. Mar 21, 2020 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.