From d61510308902f8a6d539297fddb006a213dddba3 Mon Sep 17 00:00:00 2001
From: Francis Rowe <info@gluglug.org.uk>
Date: Sat, 11 Oct 2014 14:59:43 -0400
Subject: X60: enable legacy brightness controls

---
diff --git a/docs/index.html b/docs/index.html
index e00aec3..e89e831 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -131,6 +131,7 @@
 			<li><a href="#x60_wifi">ThinkPad X60: Enable or disable wifi</a></li>
 			<li><a href="#x60_bluetooth">ThinkPad X60: Enable or disable bluetooth</a></li>
 			<li><a href="#x60_trackpoint">ThinkPad X60: Enable or disable trackpoint</a></li>
+			<li><a href="#x60_backlight">ThinkPad X60: Prevent scrolling backlight</a></li>
 			<li><a href="#high_pitch_trisquel">High Pitched Whining Noise on Idle (how to remove in Trisquel)</a>
 				<ul>
 					<li><a href="#howtouse_powertop">Powertop - how to use</a></li>
@@ -1693,6 +1694,23 @@ EndSection
 		<p>The next time you boot, trackpoint will be enabled.</p>
 		<p><a href="#pagetop">Back to top of page</a></p>
 
+	<h1 id="x60_backlight">ThinkPad X60: Prevent scrolling backlight</h1>
+		<p>
+			<a href="#build_dependencies">Install the build dependencies</a> and then build nvramtool.<br/>
+			nvramtool is in coreboot or libreboot source tree under util/:<br/>
+			<b>$ cd libreboot_src/coreboot/util/nvramtool</b><br/>
+			(nvramtool is also in libreboot_bin/nvramtool)<br/>
+			<b>$ make</b><br/>
+			Enable wifi:<br/>
+			<b>$ sudo ./nvramtool -w tft_brightness=0xff</b><br/>
+			If that doesn't work, try one of these instead:<br/>
+			<b>$ sudo ./nvramtool -y ../../src/mainboard/lenovo/x60/cmos.layout -w tft_brightness=0xff</b><br/>
+			If you are using libreboot_bin, do that instead:<br/>
+			<b>$ sudo ./nvramtool -y ../x60cmos.layout -w tft_brightness=0xff</b>
+		</p>
+		<p>Change will apply the next time you boot.</p>
+		<p><a href="#pagetop">Back to top of page</a></p>
+
 <hr/>
 
 	<h1 id="high_pitch_trisquel">High Pitched Whining Noise on Idle (how to remove in Trisquel)</h1>
diff --git a/getcb b/getcb
index 21ee490..a1cbf60 100755
--- a/getcb
+++ b/getcb
@@ -50,6 +50,9 @@ git reset --hard 23aad4a83c3390dc39f7d1c1f5422f7ac54a80f3
 # Text mode patch for X60 native graphics (main patch already merged in coreboot. See 6723 on coreboot gerrit)
 git fetch http://review.coreboot.org/coreboot refs/changes/25/6725/3 && git cherry-pick FETCH_HEAD
 
+# lenovo/x60: Enable legacy brightness controls (native graphics)
+git fetch http://review.coreboot.org/coreboot refs/changes/48/7048/4 && git cherry-pick FETCH_HEAD
+
 ## Enable T60 native graphics
 # git fetch http://review.coreboot.org/coreboot refs/changes/45/5345/8 && git cherry-pick FETCH_HEAD
 # ^ the above is not needed, because 7050 (see below) uses it
--
cgit v0.9.1