<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Runbei</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Runbei"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Runbei"/>
	<updated>2026-05-16T19:47:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Problem_with_LCD_backlight_remaining_on_during_ACPI_sleep&amp;diff=50276</id>
		<title>Problem with LCD backlight remaining on during ACPI sleep</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Problem_with_LCD_backlight_remaining_on_during_ACPI_sleep&amp;diff=50276"/>
		<updated>2011-01-14T17:47:49Z</updated>

		<summary type="html">&lt;p&gt;Runbei: Add solution for X32 and OpenSuse 11.3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Problem description==&lt;br /&gt;
On some models the LCD backlight remains on during ACPI sleep.&lt;br /&gt;
&lt;br /&gt;
==Affected Models==&lt;br /&gt;
*ThinkPad {{390X}} with kernel boot option ACPI=force&lt;br /&gt;
*ThinkPad {{A30}}&lt;br /&gt;
*ThinkPad {{A31p}}&lt;br /&gt;
*ThinkPad {{T30}}&lt;br /&gt;
*ThinkPad {{X31}},{{X32}}&lt;br /&gt;
*ThinkPad {{R51}}&lt;br /&gt;
(according to the relevant bug on the Kernel bug tracker ([http://bugzilla.kernel.org/show_bug.cgi?id=2576 bug 2576]))&lt;br /&gt;
&lt;br /&gt;
==Partial solution==&lt;br /&gt;
If the ThinkPad has a radeon video chip, then switching off the light with the command&lt;br /&gt;
  radeontool light off&lt;br /&gt;
will work, but only in a text-mode virtual terminal.  If X is running, the light apparently comes back on when the kernel switches to text mode prior to sleeping.  The solution in that case it to switch to a text mode console first.&lt;br /&gt;
&lt;br /&gt;
 logger &amp;quot;Software suspend to ram.&amp;quot;&lt;br /&gt;
 FGCONSOLE=`fgconsole`&lt;br /&gt;
 chvt 1&lt;br /&gt;
 radeontool light off&lt;br /&gt;
 echo -n 3 &amp;gt;/proc/acpi/sleep&lt;br /&gt;
 logger &amp;quot;Woke up from suspend.&amp;quot;&lt;br /&gt;
 radeontool light on&lt;br /&gt;
 chvt $FGCONSOLE&lt;br /&gt;
&lt;br /&gt;
Improvements are clearly possible. :-)&lt;br /&gt;
&lt;br /&gt;
On the X32, at least, the bios will switch off the screen by default on a lid close, and suspending to ram interrupts this, and the screen will turn back on.  This can be fixed by simply adding &amp;quot;sleep 5&amp;quot; before &amp;quot;echo -n 3 &amp;gt; /proc/acpi/sleep&amp;quot;.  The suspend will take longer, but the screen will remain off.&lt;br /&gt;
&lt;br /&gt;
A similar script can be found on the [[How to configure acpid|acpid configuration HOWTO]] page.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|In Debian Testing (and maybe other Distributions/Debian versions using the hibernate-tool) you can simply uncomment the &amp;quot;RadeonTool yes&amp;quot; line in /etc/hibernate/ram.conf}}&lt;br /&gt;
&lt;br /&gt;
==Using Powersaved==&lt;br /&gt;
&lt;br /&gt;
If you use powersaved you can just edit the two scripts prepare_suspend_to_ram and restore_after_suspend_to_ram which are stored in /usr/lib/powersave/scripts/&lt;br /&gt;
&lt;br /&gt;
add two lines to prepare_suspend_to_ram nearly at the end of the script:&lt;br /&gt;
&lt;br /&gt;
  # insert the next two lines:&lt;br /&gt;
  chvt 1&lt;br /&gt;
  radeontool light off&lt;br /&gt;
  # this changes to a console nr. 1 and switches the light off&lt;br /&gt;
  &lt;br /&gt;
  progress_finish&lt;br /&gt;
  $SCRIPT_RETURN $EV_ID 0 &amp;quot;prepare_sleep finished successfully for $1&amp;quot;&lt;br /&gt;
  EXIT 0&lt;br /&gt;
&lt;br /&gt;
and to restore_after_suspend_to_ram&lt;br /&gt;
  # insert the next two lines:&lt;br /&gt;
  radeontool light on&lt;br /&gt;
  chvt 7&lt;br /&gt;
  # this switching the light on and changes to display #7 (where the x-server runs) - &lt;br /&gt;
  #you can change it to another display if you want... &lt;br /&gt;
  #(the way doing this with a variable like in the script above doesn't work, because it can't be stored between&lt;br /&gt;
  #the two different scripts.&lt;br /&gt;
  &lt;br /&gt;
  # $SCRIPT_RETURN is called in restore_after_sleep.&lt;br /&gt;
  EXIT 0&lt;br /&gt;
&lt;br /&gt;
Than you can suspend to ram with /usr/bin/powersave -u or just configure powersaved in a way that it suspends to ram when your notebook is closed. (As a frontend kpowersave is recomended).&lt;br /&gt;
&lt;br /&gt;
==Using s2ram==&lt;br /&gt;
&lt;br /&gt;
Just using the s2ram command from the uswsusp (Userspace Suspend) package should do the trick by appending the &amp;quot;-r&amp;quot; option (-r, --radeontool: turn off the backlight on radeons before suspending.).&lt;br /&gt;
&lt;br /&gt;
==Editing menu.lst in OpenSuse==&lt;br /&gt;
&lt;br /&gt;
A simple change in a start-up file in OpenSuse 11.3 corrected this problem&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and type gnomesu gedit /etc/grub/menu.lst. When prompted, type root password and click OK. &lt;br /&gt;
&lt;br /&gt;
2. Gedit opens with the menu.lst file displayed. Down the page a bit, there are several sections that begin with &amp;quot;###Don't change this comment&amp;quot; &lt;br /&gt;
&lt;br /&gt;
3. The first section gives details for the default boot operating system. Somewhere in this long spec, find &amp;quot;vga=0x314&amp;quot; or vga=(something specific to your system). &lt;br /&gt;
&lt;br /&gt;
4. Just before or after this vga spec, type &amp;quot;nomodeset&amp;quot; separated from the vga spec by a space.&lt;br /&gt;
&lt;br /&gt;
5. Save the file and reboot. In OpenSuse, suspend/resume now works normally.&lt;/div&gt;</summary>
		<author><name>Runbei</name></author>
		
	</entry>
</feed>