23

I can use a Windows machine for 10 hours straight without the slightest problem, but after around 15-30 minutes of using ubuntu my eyes become sore and dried out.

I currently have 11.04 installed with a dual-boot Windows XP. Same hardware, eyestrain only with ubuntu.

I've also tried different versions of ubuntu on two different machines. Same eyestrain problem. I've tried combinations of fonts and font rendering and installed the microsoft fonts, although I'm not sure it is related to the fonts anyway because I think the fonts look quite nice.

xrandr shows the monitor refresh rate set at 60hz (the only option for my laptop lcd).

Is there anything else I can try? I'd like to use ubuntu, not windows...

fossfreedom
  • 174,526
Kim
  • 391

9 Answers9

6

Eye strain is caused in most cases, by tiredness of the ocular muscles. There's a lot of hype that has been spread about various kind of screens, eye drops, blue light lenses etc. But I've found that most of that is just marketing hype. The right way to cure the strain is to not try and treat the symptoms. You have to get to the root cause. I've found this article to be rather insightful and sensible. It highlights for the need for following three solutions to get rid of eye strain over a period of many months.

  1. Ensure you get 8 hours uninterrupted sleep each night.

  2. Close your eyes and relax your face muscles and neck muscles for a few minutes after 20 minutes of computer use.

  3. Ensure you get a well balanced diet of properly cooked food. Especially proteins (for the eye muscles).

In terms of software to assist you in doing this, there's Workrave and Redshift.

Julian
  • 173
  • 1
  • 8
5

If you work at night you can try using redshift. This adjusts the color temperature of your screen so that it get's more redish the later it is. Of course this doesn't really help explain the difference between Windows and Ubuntu but it does reduce stain. Do

sudo add-apt-repository ppa:jonls/redshift-ppa

sudo apt-get update && sudo apt-get install redshift

to install it. There are other programs that do just the same thing as well.

There's also an older version in the repos so sudo apt-get install redshift will suffice.

turbo
  • 4,712
2

For anyone interested this answer might provide solution to eye strain problem on various Linux distro with LCD displays: Laptop screen causes eye strain on all linux distros except Ubuntu and elementary OS

I already found what the problem is. LCD displays uses a frequency known as PWM (Pulse widht modulation). The screen backlight flashes to this frequency, on most monitors is between 200hz - 500hz range.

My Linux distro sets a low PWM frequency by default, that's why all the eyestrain. Luckily Intel gpu drivers can change the PWM frequency.

You need to install intel-gpu-tools

First you need to know your reference clock, this is stored on address 0xC6204. You can read values with the command intel_reg_read, so to read the value you can use the command:

intel_reg_read 0xC6204

Once you know your reference clock you can use the calculator on this page to calculate your desired value. I used 500mhz, so I got 0x7a107a1.

The address for the PWM value is 0xC8254, You can set values with intel_reg_write, so you can use:

intel_reg_write 0xC8254 0x7a107a1

You can see immediately changes. (Sometimes the screen brightness could change, but this is ok, the PWM frequency changes also)

I hope that this info could be helpful to anyone who need it.

1

this functionality has been added for ubuntu 17.10 and later

On Ubuntu 23, you can enable it in Settings -> Display -> Night Light -> Night Light. d https://www.omgubuntu.co.uk/2017/10/enable-night-light-mode-on-ubuntu

mr.loop
  • 227
1

For Ubuntu and similar Linux distros, I prefer to use a software called safe eyes(https://slgobinath.github.io/SafeEyes/), It compels you to take short breaks at regular intervals and gives useful tips. You have option to skip breaks too, but for your good eyesight I say don't skip and follow the instructions as far as possible. For all currently supported versions of Ubuntu follow these steps.

sudo add-apt-repository ppa:slgobinath/safeeyes
sudo apt update
sudo apt install safeeyes
1

It may looks rediculous, but I suggest using sharp fonts. It can be a particular perception of smoothed (read 'fuzzy') fonts by your eyes. You may find instructions of how to install sharp fonts here: Script to install sharp fonts

Good luck and repose for your eyes :)

Vincenzo
  • 2,685
1

I cannot solve your issue. However, I have a similar problem and knowing about this might help you.

On a HP 2230s laptop (matte display, intel graphics), the screen flickers when using Linux and the display is dimmed. Whether the flickering is noticed depends strongly on colours, green background is horrible. I don't always notice the flicker. Some people never see it.

Using the preinstalled Windows Vista, there is no such flicker. At full brightness, the display is fine for me (with Linux).

This effect does not appear to depend on the Linux distribution or version as long as the brightness control works.

Please, document this issue as good as you can. Contact the manufacturer. File a bug against your distribution. Ask friends to describe the quality of your display.

Jan
  • 3,658
0

Try different font rendering in System>Preferences>Appearance tab Fonts. For the same font, different subpixel hinting can have a huge impact on how the font is percieved. If you have an LCD screen, open Details and try different Hinting to see which works best for you. I like "Slight".

The effect on text in Firefox 3 is different from the effect on the rest of the desktop. Restart Firefox after changing Hinting.

0

I've found that I suffer from this (especially early in the morning or late at night). The solution I used was f.lux by Michael and Lorna Herf included with the f.lux indicator applet by Kilian Valkhof

Installation:

sudo add-apt-repository ppa:kilian/f.lux
sudo apt-get update
sudo apt-get install fluxgui

Configuration: Launch the f.lux indicator applet and enter your latitude and optionally your longitude. In the U.S.A. you can simply use your zip code.

f.lux

Conclusion:

You'll note that I've chosen to autostart the applet at boot. I've also chosen 2700k as my nighttime color temp as the default was a bit much for my eyes this morning. flux makes the color temperature of your computer's display adapt to the time of day, warm at night and like sunlight during the day.

Elder Geek
  • 36,752