K-Tec

Linux redscreen trick

  • martinus
  • martinus's Avatar Topic Author
  • Offline
  • Main Sequence
  • Main Sequence
  • Posts: 274
  • Thank you received: 104

Linux redscreen trick was created by martinus

Hi guys, it struck me earlier that having to buy a red filter for the laptop screen seems a bit redundant given the configurability of Xorg. I've tested this on Debian and it works grand. Obviously you need to have xcalib installed.


xcalib -green .1 0 1 -alter
xcalib -blue .1 0 1 -alter

will make the screen red. To return it to default simply invoke

xcalib -clear


Instant red screen. :)

Hope this is of some use to someone.
The following user(s) said Thank You: wbean
11 years 3 months ago #90354

Please Log in or Create an account to join the conversation.

  • Posts: 9637
  • Thank you received: 544

Replied by Seanie_Morris on topic Re: Linux redscreen trick

That is such a handy tip!
Midlands Astronomy Club.
Radio Presenter (Midlands 103), Space Enthusiast, Astronomy Outreach Co-ordinator.
Former IFAS Chairperson and Secretary.
11 years 3 months ago #90377

Please Log in or Create an account to join the conversation.

  • martinus
  • martinus's Avatar Topic Author
  • Offline
  • Main Sequence
  • Main Sequence
  • Posts: 274
  • Thank you received: 104

Replied by martinus on topic Re: Linux redscreen trick

Hope I'm not being a pest by bumping this thread with more info, I'd forgotten to post my bash script for automating this.
#!/bin/bash

echo -e "Type R and hit return to make the screen red. "
read word

if [ "$word" = "R" ]; then
    echo `xcalib -green .1 0 1 -alter`
    echo `xcalib -blue .1 0 1 -alter`
else
    echo `xcalib -clear`
fi

Simply paste the code into a text document (mine's called redscreen.sh) and set the file permissions to make it executable.
You may need to verify where the bash executable is and amend the first line to reflect this as it can vary in linux distros.
10 years 2 months ago #94795

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 0

Replied by Janek on topic Re: Linux redscreen trick

Or you could use Compiz with Invert Plugin (turns white to black).
10 years 2 months ago #94837

Please Log in or Create an account to join the conversation.

  • martinus
  • martinus's Avatar Topic Author
  • Offline
  • Main Sequence
  • Main Sequence
  • Posts: 274
  • Thank you received: 104

Replied by martinus on topic Re: Linux redscreen trick

Agreed, I would suggest that the xcalib solution may be preferable, particularly where the system does not already have compiz installed. Installing compiz to do this rings of cracking a nut with a sledgehammer.

As with everything in Linux there are quite a few methods of acheiving the same result. :)
10 years 2 months ago #94841

Please Log in or Create an account to join the conversation.

  • Posts: 4173
  • Thank you received: 181

Replied by albertw on topic Re: Linux redscreen trick

Or put a sheet or red celophane or plastic that you can get in an art supplies shop over your screen.

Simple solution works well for Mac, Windows and Linux ;)
Albert White MSc FRAS
Chairperson, International Dark Sky Association - Irish Section
www.darksky.ie/
10 years 2 months ago #94843

Please Log in or Create an account to join the conversation.

Time to create page: 0.043 seconds
Powered by Kunena Forum