Comment 42 for bug 765438

Revision history for this message
Skeewiff (marcelo-pm) wrote : Re: On startup, the backlight is off on laptop

Based on the info available here and how to set up a script to run during the startup process and the resume process (from suspend/hiberate modes), here it goes a work around for this bug:

1) create a script under /etc/init.d by the following command:
sudo gedit /etc/init.d/fix_backlinght

With the content above:
#! /bin/sh
echo "Fixing backlight for Gateway NV78"
setpci -s 00:02.0 F4.B=00
exit 0

2) register the new script so it will be executed during the start up process:
sudo update-rc.d fix_backlight enable 0

3) create a script under /etc/pm/sleep.d/ by the following command:
sudo gedit /etc/pm/sleep.d/10_fix_backlinght

With the content above:
#!/bin/sh
# Fix Gateway NV78 backlight
PATH=/sbin:/usr/sbin:/bin:/usr/bin
if [ ! -x /etc/init.d/fix_backlight ]; then
  exit 0
fi
/etc/init.d/fix_backlight

4) Make sure to make the created scripts executable:
sudo chmod 755 /etc/init.d/fix_backlight;
sudo chmod 755 /etc/pm/sleep.d/10_fix_backlight;