Try installing the program "xdotool", which will invert the state of the caps lock key without affecting the light on your keyboard. To install it, open a terminal (Ctrl+alt+t) and run:
Code:
sudo apt-get install xdotool
Then enter your password and hit Enter.
To switch the state of your caps lock key, run:
Code:
xdotool key Caps_Lock