#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
brt=`cat /sys/devices/virtual/backlight/acpi_video0/brightness`
abrt=`cat /sys/devices/virtual/backlight/acpi_video0/actual_brightness`
if (( $brt != $abrt )) ; then
echo $abrt > /sys/devices/virtual/backlight/acpi_video0/brightness
fi
but the problem is that the display is still dim after reloging from hibernate or suspend.
Does anyone have any ideas?
velitchko@ VELITCHKO- PC:~$ find /sys/ -iname '*bright*' virtual/ leds/hp: :hddprotect/ brightness virtual/ leds/hp: :hddprotect/ max_brightness virtual/ backlight/ acpi_video0/ brightness virtual/ backlight/ acpi_video0/ actual_ brightness virtual/ backlight/ acpi_video0/ max_brightness pci0000: 00/0000: 00:1c.1/ 0000:03: 00.0/leds/ iwl-phy0: :radio/ brightness pci0000: 00/0000: 00:1c.1/ 0000:03: 00.0/leds/ iwl-phy0: :radio/ max_brightness pci0000: 00/0000: 00:1c.1/ 0000:03: 00.0/leds/ iwl-phy0: :assoc/ brightness pci0000: 00/0000: 00:1c.1/ 0000:03: 00.0/leds/ iwl-phy0: :assoc/ max_brightness pci0000: 00/0000: 00:1c.1/ 0000:03: 00.0/leds/ iwl-phy0: :RX/brightness pci0000: 00/0000: 00:1c.1/ 0000:03: 00.0/leds/ iwl-phy0: :RX/max_ brightness pci0000: 00/0000: 00:1c.1/ 0000:03: 00.0/leds/ iwl-phy0: :TX/brightness pci0000: 00/0000: 00:1c.1/ 0000:03: 00.0/leds/ iwl-phy0: :TX/max_ brightness pci0000: 00/0000: 00:1e.0/ 0000:86: 09.1/leds/ mmc0::/ brightness pci0000: 00/0000: 00:1e.0/ 0000:86: 09.1/leds/ mmc0::/ max_brightness video/parameter s/brightness_ switch_ enabled
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/devices/
/sys/module/
and my rc.local file looks like this
#!/bin/sh -e virtual/ backlight/ acpi_video0/ brightness` virtual/ backlight/ acpi_video0/ actual_ brightness` virtual/ backlight/ acpi_video0/ brightness
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
brt=`cat /sys/devices/
abrt=`cat /sys/devices/
if (( $brt != $abrt )) ; then
echo $abrt > /sys/devices/
fi
but the problem is that the display is still dim after reloging from hibernate or suspend.
Does anyone have any ideas?