1

I'm using Ubuntu 13.10 with GNOME 3.10 on a Packard Bell EasyNote-TK37 (Intel GM45 Express graphics), and I've had significant problems with my backlight.

Initially, upon booting the backlight would not turn on, but if I shone a light at the screen I could see that it was being drawn correctly. I solved the issue using the commands in the following post:

https://stackoverflow.com/questions/8380688/linux-ubuntu-11-04-install-backlight-wont-turn-on

However, this didn't completely solve all issues. When the laptop sleeps, it's backlight turns off. This can be mitigated by setting the timer very high for sleeping, but when I lock the laptop the backlight still turns off, and will not turn back on.

Is there any way to force the backlight to remain on permanently?

Caffeine seems to fit that requirement, but it isn't working for me, at least on the current version of Ubuntu. A bash script would be extremely helpful, since I could add that to my backup script for when I have to reinstall Ubuntu.

If any clarification is needed please leave a comment below. Thanks.

1 Answers1

1

Here is a script that will move the mouse, wait 2 seconds, then move it back where it was before. This should keep your backlight on.

#!/bin/bash
#
# Required packages:  
#
# xdotool
#
#

eval  $(xdotool getmouselocation --shell)
xdotool mousemove 0 0
sleep 2
xdotool mousemove $X $Y

(It requires xdotool which you can get with sudo apt-get install xdotool)

Save it as a .sh file, then make it executable:

sudo chmod +x fileName.sh

If you want to automatically run it hourly put it in /etc/cron.hourly, or follow these directions to run it more often.

Seth
  • 58,122
  • an interesting script, but I don't think it solves the specific issue of the backlight turning off when my computer is locked; that looks like a solution to preventing the computer sleeping. – Róisín Grannell Dec 17 '13 at 18:41
  • @RyanGrannell Ah, seems I misunderstood the question. You want to lock the screen without turning the backlight off? – Seth Dec 17 '13 at 18:45