<?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=Berto</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=Berto"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Berto"/>
	<updated>2026-05-05T15:15:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=56687</id>
		<title>BIOS Upgrade</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=56687"/>
		<updated>2015-12-22T15:22:44Z</updated>

		<summary type="html">&lt;p&gt;Berto: /* Manually creating a USB Flash drive in Linux */ I flashed an X230 using this USB Flash drive method.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
This page is meant to describe ways to update the BIOS on a ThinkPad that only runs Linux for users that don't have ready access to Windows. If you have Windows on your ThinkPad you can just boot into it and follow instructions on the Lenovo website.&lt;br /&gt;
&lt;br /&gt;
Updating the BIOS in Linux (with few exceptions) '''is not officially supported''' by Lenovo.  However there are work arounds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems.&lt;br /&gt;
&lt;br /&gt;
'''Proceed at your own risk!'''}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= [[Custom BIOS]] =&lt;br /&gt;
&lt;br /&gt;
Some ThinkPad fans have created Custom BIOSes to remove whitelists, disable annoying errors, do Fn-Ctrl keyswaps, and add more functionality. Check the [[Custom BIOS]] wikipage for more information.&lt;br /&gt;
&lt;br /&gt;
* '''X200, X60, T60, Macbook 2,1''' - [http://libreboot.org Libreboot] - Based on Coreboot, this BIOS (approved by the FSF) removes all proprietary blobs to create Free Libre Open Source Laptops, where everything from the motherboard to the computer can use Open Source Software. Richard Stallman famously uses a Libreboot X60.&lt;br /&gt;
* Sovem's Whitelist Removed BIOSes - A famous user from BIOS-mods.com, that removes mPCI whitelists from BIOSes upon request.&lt;br /&gt;
* '''T61, R61, X61/X61s/X61T, X300''' - [[Middleton's BIOS]] - Enables SATAII, removes whitelist, thermal fixes, Fn-Ctrl swap.&lt;br /&gt;
* '''T43/T43p, R52, X41/X41T''' - [[Problem with non-ThinkPad hard disks#Use unofficial modified BIOS|TTav134's BIOS]] - Removes Error 2010 for aftermarket hard drives, and the BIOS whitelist.&lt;br /&gt;
&lt;br /&gt;
== [[Middleton's BIOS]] ==&lt;br /&gt;
&lt;br /&gt;
A user on NotebookReview named 'Middleton' made these alternative BIOSes to enable SATA2 on certain Thinkpad models (X61/T61/R61/X300). These ThinkPads are limited to SATA1 in their BIOS even though the hardware is SATA2. This is a huge drawback for anyone wanting to use SSDs, because it is so much slower.&lt;br /&gt;
&lt;br /&gt;
Also, it is not possible to install some wireless cards, because only certain models are whitelisted by IBM/Lenovo. [[Middleton's BIOS]] removes this limitation as well.&lt;br /&gt;
&lt;br /&gt;
'''See the wikipage [[Middleton's BIOS]] for installation instructions, downloads, and more description.'''&lt;br /&gt;
&lt;br /&gt;
Note: If your BIOS-Update tool says that no update is needed, then simply downgrade the Bios first: On Lenovo's drivers download page, the old Bios files are listed at the very bottom of the page.&lt;br /&gt;
&lt;br /&gt;
= Downloading New Firmware =&lt;br /&gt;
{{WARN|Flashing the wrong firmware for your hardware may cause permanent damage to your ThinkPad.  It is up to you to confirm that the firmware you are using is correct.}}&lt;br /&gt;
&lt;br /&gt;
A list of links to firmware downloads can be found at [[BIOS Upgrade Downloads]] for most Thinkpad models.  You can also check the Lenovo Support website's [http://support.lenovo.com/en_US/downloads/default.page?#|ThinkPad driver matrix].&lt;br /&gt;
&lt;br /&gt;
Lenovo/IBM provides firmware upgrades in a variety of packages:&lt;br /&gt;
* Diskette&lt;br /&gt;
* Non-diskette&lt;br /&gt;
* Linux diskette&lt;br /&gt;
* BIOS Utility&lt;br /&gt;
* Bootable CD&lt;br /&gt;
&lt;br /&gt;
Not every type of package is available for every model.&lt;br /&gt;
&lt;br /&gt;
The ''BIOS Utility'' and ''Bootable CD'' packages combine the BIOS and ECP firmwares.  For the other packages, there is one for each firmware.&lt;br /&gt;
{| align=&amp;quot;right&amp;quot; style=&amp;quot;width:20em;&amp;quot;&lt;br /&gt;
| {{HELP|Can an image be extracted from a &amp;quot;Linux diskette&amp;quot; .exe file?}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The ''Linux diskette'' is just the ''Diskette'' package that runs on Linux instead of Windows/DOS.  It's unknown if a boot image can be extracted from it.  &lt;br /&gt;
&lt;br /&gt;
You may need to try different packages to find the one from which you can extract a boot image.&lt;br /&gt;
&lt;br /&gt;
== Two Firmwares: BIOS and ECP ==&lt;br /&gt;
{{WARN|Flashing incompatible firmwares, or flashing them in the wrong order, may cause permanent damage to your ThinkPad.}}&lt;br /&gt;
&lt;br /&gt;
It is important to understand that Thinkpads from IBM have two separate firmwares: the BIOS, and the Embedded Controller Program (ECP).&lt;br /&gt;
&lt;br /&gt;
A given BIOS version will require a certain version of the ECP.  You must read the Lenovo website and/or .txt files to confirm which BIOS is compatible with which ECP, and '''the order in which to update them'''.  &lt;br /&gt;
&lt;br /&gt;
=== Update Order ===&lt;br /&gt;
The Lenovo/IBM documentation is sometimes unclear about the order in which these two firmwares should be updated.  When in doubt (i.e. IBM didn't provide specific instructions for your model or a particular firmware update), '''update the ECP first, and then the BIOS'''.  Also, make sure to do the two updates '''immediately one after the other'''.&lt;br /&gt;
&lt;br /&gt;
The EC firmware is usually much better at backwards compatibility than the BIOS.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|Updaters for newer models take care of both BIOS and EC, and use automatically whatever sequence is needed, so you don't have to worry about it.}}&lt;br /&gt;
&lt;br /&gt;
== Installed Firmware ==&lt;br /&gt;
You can check the current BIOS and ECP versions on your ThinkPad by using '''dmidecode'''. For example:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|dmidecode -s bios-version}}&lt;br /&gt;
&lt;br /&gt;
 1RETDRWW (3.23 )&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|dmidecode -t 11}}&lt;br /&gt;
&lt;br /&gt;
 # dmidecode 2.9&lt;br /&gt;
 SMBIOS 2.33 present.&lt;br /&gt;
 Handle 0x0029, DMI type 11, 5 bytes&lt;br /&gt;
 OEM Strings&lt;br /&gt;
         String 1: IBM ThinkPad Embedded Controller -[1RHT71WW-3.04    ]-&lt;br /&gt;
&lt;br /&gt;
Showing BIOS version 3.23 (1RETDRWW) and ECP version 3.04 (1RHT71WW).&lt;br /&gt;
&lt;br /&gt;
===DMI IDs===&lt;br /&gt;
Please consider updating the [[List of DMI IDs]] before (and after) updating your BIOS.&lt;br /&gt;
&lt;br /&gt;
= Updating Firmware =&lt;br /&gt;
 &lt;br /&gt;
Firmware flasher program can run on DOS (Lenovo PC DOS) or Windows but, unfortunately, not Linux. So ''in theory'' there are two basic steps to update the firmware (either the BIOS or the ECP) on a ThinkPad not running Windows:&lt;br /&gt;
# Get or create a bootable image with supported OS&lt;br /&gt;
# Boot that image and, if not started automatically, ran flasher program&lt;br /&gt;
&lt;br /&gt;
Recent Thinkpads have firmwares available as ''Bootable CD'' image, e.g., FILENAME.iso. If you have an optical drive there is no need to read this page any further: just download .iso image, burn it and boot to flash bios. If you are not that lucky, read on.&lt;br /&gt;
&lt;br /&gt;
First you need to realize that there are different ways to boot DOS on PC (theoretically it is possible to boot Windows to ran flasher, but why?...): from internal hard drive, CD drive, USB Flash drive or, as the last resort, floppy drive. Easiest way is from internal hard drive, but you'd better avoid touching it until you don't want to loose files there. [[Booting from a Floppy]] is not recommended, so there are two best options to boot: CD drive or USB Flash drive.&lt;br /&gt;
&lt;br /&gt;
Sparse instructions below provide you guidance how to do different parts of this pazzle but it's your duty to understand what to do and how to do that.&lt;br /&gt;
&lt;br /&gt;
== Create a bootable image ==&lt;br /&gt;
&lt;br /&gt;
In case Lenovo does not provide your laptop with ''Bootable CD'' it is possible to create one from *discket packages.&lt;br /&gt;
&lt;br /&gt;
=== Extracting an update image ===&lt;br /&gt;
{{WARN|Though this process has been successfully tested on many versions of .exe files found on IBMs website, that doesn't mean it will work for all of them.  '''Proceed at your own risk'''.  Consult the testing tables farther down of this page to see other users' experience with your model Thinkpad.}}&lt;br /&gt;
{{NOTE|Lenovo has changed the packaging format. Old bios can be extracted with [http://freshmeat.net/projects/cabextract/ '''cabextract'''], new ones with [http://innoextract.constexpr.org/ '''innoextract'''].}}&lt;br /&gt;
Older .exe installers from Lenovo mostly appear to be just a wrapper license program around Windows .cab files (see [[How_to_change_the_BIOS_bootsplash_screen|BIOS-Bootsplash]]). If you install the Linux program [http://freshmeat.net/projects/cabextract/ '''cabextract'''] you can expand these .cab files directly.  For example, if you downloaded {{path|1iuj13us.exe}} from Lenovo:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|cabextract 1iuj13us.exe}}&lt;br /&gt;
&lt;br /&gt;
 Extracting cabinet: 1iuj13us.exe&lt;br /&gt;
  extracting 1IUJ13US.IMG&lt;br /&gt;
  extracting BIOSUPTP.EXE&lt;br /&gt;
  extracting DOBOOT.EXE&lt;br /&gt;
  extracting DOSBOOT.COM&lt;br /&gt;
  extracting DOSBOOT.SYS&lt;br /&gt;
  extracting DOSBOOT.VXD&lt;br /&gt;
  extracting DOSBOOT2.COM&lt;br /&gt;
  extracting ECTLUPTP.EXE&lt;br /&gt;
  extracting EFLASHAS.SYS&lt;br /&gt;
  extracting HDFWUPTP.EXE&lt;br /&gt;
  extracting IBMTPI.XML&lt;br /&gt;
 All done, no errors.&lt;br /&gt;
&lt;br /&gt;
The file we want is '''FILENAME.IMG''', with &amp;quot;FILENAME&amp;quot; being the .exe. you downloaded.  E.g., {{path|1IUJ13US.IMG}}.&lt;br /&gt;
&lt;br /&gt;
If this does not work for the Non-diskette .exe, try it on the Diskette .exe.  It's reported, for example, that the Non-diskette .exe for BIOS version 3.23 for the T41p was not extractable, but the Diskette .exe worked perfectly, with {{cmduser|cabextract}} delivering a .IMG file.&lt;br /&gt;
&lt;br /&gt;
==== If cabeextract/innoextract fails ====&lt;br /&gt;
&lt;br /&gt;
Diskette .exe for some older models can't be extracted using cabextract. For example for the latest BIOS of 390E one gets&lt;br /&gt;
 spsdilc9.exe: no valid cabinets found&lt;br /&gt;
There is a simple way to solve this, by stripping the header off from the Non-diskette version. To do this, first you need to find the index for the first occurance of '''MSCF''' in the downloaded executable. This can be done with the following&lt;br /&gt;
 strings -a -t d NO-DISKETT.EXE | awk 'offset=index($2,&amp;quot;MSCF&amp;quot;), (offset != 0) {print $1+offset-1}' | head --lines 1&lt;br /&gt;
 4196&lt;br /&gt;
The command adds the byte offset of the matching line plus the index for the start of the '''MSCF''' on that line, thus the byte offset of '''MSCF''', this number is usually '''4196''' Now we need to cut these header bytes off, this is done by a standard dd cut, the following cuts away the first 4196 bytes.&lt;br /&gt;
 dd if=NO-DISKETTE.EXE of=out.cab iflag=skip_bytes skip=4196&lt;br /&gt;
The newly created '''out.cab''' should now work with '''cabextract'''&lt;br /&gt;
 cabextract out.cab&lt;br /&gt;
&lt;br /&gt;
A second alternative is to use Windows XP (works in VirtualBox too) together with [http://sourceforge.net/projects/vfd/ Virtual Floppy Drive]. Rund vfdwin.exe, go to the Driver tab and hit Install and Start. Then go to the Drive0 tab, click on Change and select A:. Finally, click on Open/Create, and click Create. This should give you a virtual floppy drive the .exe file will extract files to.&lt;br /&gt;
&lt;br /&gt;
A third solution is to use QEMU with a DOS diskette image to run the disk extractor.&lt;br /&gt;
&lt;br /&gt;
==== Testing the Image ====&lt;br /&gt;
&lt;br /&gt;
You can test that FILENAME.IMG is really a floppy image by running:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|mkdir /tmp/mntfloppy}}&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|mount -o loop FILENAME.IMG /tmp/mntfloppy}}&lt;br /&gt;
&lt;br /&gt;
If a '''ls''' command on the image returns what looks like a DOS floppy, and no read errors were displayed, you have a pretty good chance that the image is usable.  For example:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|ls /tmp/mntfloppy}}&lt;br /&gt;
 $0195000.FL1  069580.PAT  06d2.HSH     IBMDOS.COM    TPCHKS.EXE&lt;br /&gt;
 0691.HSH      06D0.PAT    06d6.HSH     LOGO.BAT      UPDTFLSH.EXE&lt;br /&gt;
 0691.PAT      06D1.PAT    06d8.HSH     LOGO.SCR      UPDTMN.EXE&lt;br /&gt;
 0694.HSH      06D2.PAT    CHKBMP.EXE   PHLASH16.EXE  USERINT.EXE&lt;br /&gt;
 0694.PAT      06D6.PAT    COMMAND.COM  PREPARE.EXE   UTILINFO.EXE&lt;br /&gt;
 0695.HSH      06D8.PAT    CONFIG.SYS   PROD.dat      lcreflsh.bat&lt;br /&gt;
 0695.PAT      06d0.HSH    FLASH2.EXE   QKFLASH.EXE&lt;br /&gt;
 069580.HSH    06d1.HSH    IBMBIO.COM   README.TXT&lt;br /&gt;
&lt;br /&gt;
Unmount the image after you are done testing:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|umount /tmp/mntfloppy}}&lt;br /&gt;
&lt;br /&gt;
== Booting from update image ==&lt;br /&gt;
Now that you have a bootable image for the correct update for you hardware, you need to do is boot from that image to install the update.&lt;br /&gt;
&lt;br /&gt;
There are different ways to do that:&lt;br /&gt;
* [[#Booting from a CD|Boot from a CD]]&lt;br /&gt;
* [[#Booting_using_GRUB|Boot image using bootloader (e.g. GRUB)]]&lt;br /&gt;
* [[#Booting_from_a_USB_Flash_drive|Boot from a USB Flash drive]]&lt;br /&gt;
* [[#Booting_from_a_floppy|Boot from a floppy]]&lt;br /&gt;
&lt;br /&gt;
=== Booting from a CD ===&lt;br /&gt;
{| align=&amp;quot;right&amp;quot; style=&amp;quot;width:40em;&amp;quot;&lt;br /&gt;
|{{HINT|If there is a ''Bootable CD'' image available, e.g., FILENAME.iso, just download that, instead of mucking around with image files.}}&lt;br /&gt;
|}&lt;br /&gt;
If you are going to update the firmware by booting from a CD, you need to turn FILENAME.IMG that you extracted above into an .iso file.&lt;br /&gt;
&lt;br /&gt;
The [http://en.wikipedia.org/wiki/El_Torito_%28CD-ROM_standard%29 El Torito Bootable CD Specification] is a wonderful thing.  Thanks to it, a bootable CD can be made with a bootable floppy image in such as way that the CD believes that it is a 2.88 MB floppy drive.  This allows you to replace a boot floppy by a boot CD in nearly all situations.&lt;br /&gt;
&lt;br /&gt;
It is very easy to create such a bootable CD ISO image in Linux using the '''mkisofs''' tool{{footnote|1}}.  Run a command as follows:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|genisoimage -b 1WUJ25US.IMG -c boot.catalog -o bootcd.iso 1WUJ25US.IMG}} #or older mkisofs&lt;br /&gt;
&lt;br /&gt;
Where *.IMG is the name of the image file extracted above.  This creates a CD with one file on it and marks that file as the boot image.&lt;br /&gt;
&lt;br /&gt;
You can now burn the {{path|bootcd.iso}} to a CD in your favorite CD-burning program.&lt;br /&gt;
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems.  '''Proceed at your own risk!'''}}&lt;br /&gt;
&lt;br /&gt;
Boot from the CD to update your firmware.  Remember to have [[BIOS_Upgrade#Two_Firmwares:_BIOS_and_ECP|both BIOS and ECP firmware boot-CDs]] ready, as needed, and use them in the [[BIOS_Upgrade#Update_Order|proper order]].&lt;br /&gt;
&lt;br /&gt;
{| align=&amp;quot;center&amp;quot;&lt;br /&gt;
| {{HELP|Please, report your success/failure with flashing BIOS from the manually cooked CD (from .IMG file) here: [[BIOS_Upgrade_success_failure#Booting_from_CD]]}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Booting using GRUB ===&lt;br /&gt;
{|&lt;br /&gt;
| style=&amp;quot;width:75%&amp;quot; | {{WARN|Many have warned '''not''' to use the SYSLINUX image-loader '''memdisk''' to boot firmware update images.}}&lt;br /&gt;
| style=&amp;quot;font-size:80%&amp;quot; | {{HELP|Who are these &amp;quot;many&amp;quot;?  Link to a discussion?}}&lt;br /&gt;
|}&lt;br /&gt;
Once the bootable image, FILENAME.IMG, is extracted from the .exe, it can be booted directly through GRUB without the need of burning a CD, using the [http://syslinux.zytor.com/ SYSLINUX] image-loader '''[http://syslinux.zytor.com/memdisk.php memdisk]'''.&lt;br /&gt;
&lt;br /&gt;
Locate the '''memdisk''' file from the syslinux package. You can search for it with '''find''': &lt;br /&gt;
&lt;br /&gt;
{{cmdroot|find /usr -name memdisk}} #or just use &amp;quot;dlocate memdisk&amp;quot; or &amp;quot;locate memdisk&amp;quot; if these programs are installed&lt;br /&gt;
&lt;br /&gt;
If {{path|/usr/.../memdisk}} is not present, syslinux is not installed.  You will need to install it to boot a .IMG from GRUB.&lt;br /&gt;
&lt;br /&gt;
Copy both the '''FILENAME.IMG''' and '''memdisk''' files into {{path|/boot}} directory.  For example:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|cp ./FILENAME.IMG /usr/share/syslinux/memdisk /boot/}}&lt;br /&gt;
&lt;br /&gt;
Open {{path|/boot/grub/menu.lst}} in your favourite editor.  '''Copy''' the active section into a '''new section''', and edit the new section:&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Instructions&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| ''title''  || Pick a name for the new section.  This will show up in the GRUB boot menu. || &amp;lt;tt&amp;gt;title IBM ECP Update&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| ''root''   || Do not change.  This is the partition containing the {{path|/boot}} directory       || &amp;lt;tt&amp;gt;root (hd0,0)&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| ''kernel'' || '''/boot/memdisk''' will allow you to boot an image file.                  || &amp;lt;tt&amp;gt;kernel /boot/memdisk&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| ''initrd'' || This is the name of the firmware-updater image file, e.g., 1IUJ13US.IMG    || &amp;lt;tt&amp;gt;initrd /boot/1IUJ13US.IMG&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Do '''not''' modify the original section in {{path|/boot/grub/menu.lst}}, or you might not be able to boot back to the operating system.&lt;br /&gt;
&lt;br /&gt;
If you have [[#Two_Firmwares:_BIOS_and_ECP|two firmware updates to do]], you will need a section for each firmware's FILENAME.IMG in {{path|/boot/grub/menu.lst}}.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|If both BIOS and ECP are to be updated, be sure to update them in the [[#Proper_Order|proper order]].}}&lt;br /&gt;
&lt;br /&gt;
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems.  '''Proceed at your own risk!'''}}&lt;br /&gt;
&lt;br /&gt;
Reboot your computer, entering the GRUB menu and selecting ''IBM BIOS Update'', or whatever you named the new section in {{path|/boot/grub/menu.lst}}.&lt;br /&gt;
&lt;br /&gt;
==== Booting image with GRUB2 ====&lt;br /&gt;
===== GRUB2: booting floppy Image =====&lt;br /&gt;
With grub2, one would ''append'' the following to ''/boot/grub/grub.cfg'' :&lt;br /&gt;
 menuentry &amp;quot;My BIOS Upgrade&amp;quot; {&lt;br /&gt;
 set root=(hd0,0) #should match the others in your grub.cfg&lt;br /&gt;
 linux16 /boot/memdisk&lt;br /&gt;
 initrd16 /boot/1WUJ25US.IMG #or whatever yours is&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
{| align=&amp;quot;center&amp;quot;&lt;br /&gt;
| {{HELP|Please, report your success/failure with flashing BIOS from the manually cooked CD (from .IMG file) here: [[BIOS_Upgrade_success_failure#GRUB2:_Booting_floppy_Image]]}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== GRUB2: booting CD Image =====&lt;br /&gt;
You must first download the bootable iso file from the Lenovo Website.&lt;br /&gt;
&lt;br /&gt;
===== On Debian and Ubuntu ===== &lt;br /&gt;
Then, on Debian and Ubuntu, you can install the grub-imageboot package, then you just have to copy the iso file in /boot/images and run update-grub:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install grub-imageboot&lt;br /&gt;
sudo mkdir -p /boot/images&lt;br /&gt;
sudo cp /home/youruser/Downloads/6uuj12uc.iso /boot/images&lt;br /&gt;
sudo update-grub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Manual method =====&lt;br /&gt;
Otherwise, copy the file 'memdisk' from the syslinux package to /boot. Also create a symlink, so you do not have to change the grub configuration for each bios upgrade:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo su -&lt;br /&gt;
cd /boot&lt;br /&gt;
cp /home/youruser/Downloads/6uuj12uc.iso .&lt;br /&gt;
cp /usr/share/syslinux/memdisk .&lt;br /&gt;
ln -s 6uuj12uc.iso biosupgrade.iso&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now create the boot entry:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt;&amp;gt; /etc/grub.d/40_custom &amp;lt;&amp;lt;EOF&lt;br /&gt;
menuentry &amp;quot;Lenovo BIOS Upgrade&amp;quot; {&lt;br /&gt;
    set root=(hd0,1)  # &amp;lt;-- check for correct numbering&lt;br /&gt;
    linux16 /boot/memdisk iso&lt;br /&gt;
    initrd16 /boot/biosupgrade.iso&lt;br /&gt;
}&lt;br /&gt;
EOF&lt;br /&gt;
update-grub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot an Select &amp;quot;Lenovo BIOS Upgrade&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
For the next Bios Upgrade you'll just need to copy the new iso file to /boot and adjust the symlink.&lt;br /&gt;
&lt;br /&gt;
{| align=&amp;quot;center&amp;quot;&lt;br /&gt;
| {{HELP|Please, report your success/failure with flashing BIOS from the manually cooked CD (from .IMG file) here: [[BIOS_Upgrade_success_failure#GRUB2:_Booting_CD_Image]]}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Booting from a USB Flash drive ===&lt;br /&gt;
&lt;br /&gt;
==== Updating the BIOS in MS-DOS mode ====&lt;br /&gt;
(This process works for most Thinkpad models that has Windows XP, Windows Vista or Windows 7 OS)&lt;br /&gt;
&lt;br /&gt;
1. Using HP USB Boot Utility, [http://blogs.oreilly.com/digitalmedia/2004/10/utility-to-make-usb-flash-driv.html create a bootable USB flash drive [http://www.bay-wolf.com/utility/usbkey/win98boot.zip DOS using Windows 98 Boot Disk Floppy Image].&lt;br /&gt;
&lt;br /&gt;
2. Extract the (*.ima) from the ISO BIOS image (e.g. [http://www.rarsoft.com WinRAR] will do this).&lt;br /&gt;
&lt;br /&gt;
3. Using a tool that can open .IMA files (such as [http://www.winimage.com/ WinImage]), extract all files to a temporary folder.&lt;br /&gt;
&lt;br /&gt;
4. Run the HP tool, select the USB device, I used FAT32,  create a DOS bootable disk and point at the win98boot folder - then &amp;quot;Start&amp;quot;. Warning: this '''formats''' the USB flash drive and all data will be erased!&lt;br /&gt;
&lt;br /&gt;
5. Once complete (you could test if it boots at this point), copy the extracted BIOS files from the temporary folder you created to the USB flash drive.&lt;br /&gt;
&lt;br /&gt;
6. Boot from USB flash drive by pressing F11 within the BIOS boot logo. At the DOS command prompt, type &amp;quot;updflsh&amp;quot; and then follow the prompts by pressing &amp;quot;Y&amp;quot; or Enter. Make sure that you have a fully charged battery pack and the AC Adapter is firmly plugged before proceeding with the BIOS update.&lt;br /&gt;
'''DO NOT Power off the laptop or unplug the USB flash drive while the update is in progress or else update will fail and your computer will be unable to boot and system board may need to be serviced.'''&lt;br /&gt;
&lt;br /&gt;
This process takes around 1-2 minutes. A long beep followed by a short beep will notify you that the update is complete and the system will automatically power off.&lt;br /&gt;
&lt;br /&gt;
7. Power on the laptop then enter the BIOS setup by pressing F1 and Load BIOS defaults.&lt;br /&gt;
&lt;br /&gt;
==== Using grub4dos (also for Linux) ====&lt;br /&gt;
&lt;br /&gt;
[http://grub4dos.sourceforge.net/wiki/ grub4dos] is a GNU GRUB fork with interesting features. One of them is the ability to boot ISO images directly off USB flash drives. Contrary to the name, GRUB for DOS works fine on Linux. Follow these steps:&lt;br /&gt;
* Download the latest grub4dos package at http://download.gna.org/grub4dos/ (I needed 0.4.4 for my USB2 drive - 0.4.3 did not work.)&lt;br /&gt;
* Unpack&lt;br /&gt;
* Insert your FAT-32 formatted pendrive&lt;br /&gt;
* Run &amp;lt;code&amp;gt;sudo ./bootlace.com /dev/sdX&amp;lt;/code&amp;gt;, where /dev/sdX is the device name assigned to your pendrive (use &amp;lt;code&amp;gt;sudo fdisk -l&amp;lt;/code&amp;gt; to figure this out). Be very careful to get the device correct or else you could overwrite your hard drive! This creates grub4dos boot sector in MBR of the flash drive.&lt;br /&gt;
* Copy the files &amp;lt;code&amp;gt;grldr&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;menu.lst&amp;lt;/code&amp;gt; to the root directory of your pendrive.&lt;br /&gt;
* Convert the ThinkPad .IMG file to a .ISO file using &amp;lt;code&amp;gt;genisoimage -b 1yuj18us.img -c boot.catalog -o 1yuj18us.iso 1yuj18us.img&amp;lt;/code&amp;gt;&lt;br /&gt;
* Copy the ISO image to the root directory of your pendrive (e.g. &amp;lt;code&amp;gt;1yuj18us.iso&amp;lt;/code&amp;gt;).&lt;br /&gt;
* Edit &amp;lt;code&amp;gt;menu.lst&amp;lt;/code&amp;gt; on the pendrive and include the following section (of course putting the appropriate ISO image name):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
title thinkpad-bios&lt;br /&gt;
map (hd0,0)/1yuj18us.iso (hd32)&lt;br /&gt;
map --hook&lt;br /&gt;
chainloader (hd32)&lt;br /&gt;
boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Reboot and press F12 to select booting from USB.&lt;br /&gt;
* If all went well, you should be able to boot the Thinkpad's ISO image and flash the BIOS. I tested it successfully on T400.&lt;br /&gt;
&lt;br /&gt;
==== Manually creating a USB Flash drive in Linux ====&lt;br /&gt;
&lt;br /&gt;
Use &amp;quot;geteltorito&amp;quot; to extract the update image from ISO image, downloaded from Lenovo's drivers page. Write the extracted image to a USB Flash drive using dd. &amp;quot;geteltorito&amp;quot; is available in Ubuntu (at least in Trusty, 14.04) from package &amp;quot;genisoimage&amp;quot;.&lt;br /&gt;
* Install the genisoimage package: &amp;lt;code&amp;gt;sudo apt-get install genisoimage&amp;lt;/code&amp;gt;&lt;br /&gt;
* Extract the boot image from the ISO: &amp;lt;code&amp;gt;geteltorito g6uj14us.iso &amp;gt; biosupdate.img&amp;lt;/code&amp;gt;&lt;br /&gt;
* Install the boot image to USB Flash drive, make sure to install to the correct device! (device for me was /dev/sdb): &amp;lt;code&amp;gt;sudo dd if=biosupdate.img of=/dev/&amp;lt;yourusbflashdevice&amp;gt; bs=512K&amp;lt;/code&amp;gt;&lt;br /&gt;
* Reboot and press F12 to select booting from USB.&lt;br /&gt;
* If all went well, you should be able to boot the Thinkpad's ISO image and flash the BIOS. Tested successfully on: X1 Carbon, X230.&lt;br /&gt;
&lt;br /&gt;
=== Booting from a Floppy ===&lt;br /&gt;
{{WARN|Using a floppy disk '''is NOT recommended'''.}}&lt;br /&gt;
&lt;br /&gt;
This is how IBM/Lenovo intended it.  Use their .exe files to create a bootable floppy with the flash update on it.  Boot from the floppy and there you go.&lt;br /&gt;
&lt;br /&gt;
So, why is it not recommended?&lt;br /&gt;
# If something goes wrong, your ThinkPad may be permanently damaged&lt;br /&gt;
# Floppy disk drives are not reliable&lt;br /&gt;
# Floppy disks are not reliable&lt;br /&gt;
# It only works with /dev/fd0, meaning it won't work with a USB floppy&lt;br /&gt;
&lt;br /&gt;
So, even though Lenovo is now offering &amp;quot;Linux diskette&amp;quot; updaters, that will create a bootable floppy under Linux, using a floppy is still not recommended.  Besides, many people don't even ''have'' a floppy drive on their ThinkPad.&lt;br /&gt;
&lt;br /&gt;
If you really want to do it with a floppy, some tips:&lt;br /&gt;
* Use a clean (in the physical sense) floppy drive&lt;br /&gt;
* Use new floppies&lt;br /&gt;
* Test floppies for errors before starting update process&lt;br /&gt;
* Have multiple copies of the update disks ready--if one should fail, replace it with a copy&lt;br /&gt;
* Should DOS complain of a read error, '''only''' respond wth &amp;quot;Retry&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{NOTE|Should the system encounter a disk read error during the flash process, and you select &amp;quot;Abort&amp;quot;, your system could be permanently damaged.}}&lt;br /&gt;
&lt;br /&gt;
==== Using UNetbootin ====&lt;br /&gt;
&lt;br /&gt;
Unetbootin 422 worked with the image files unpacked with cabextract on my x31.&lt;br /&gt;
&lt;br /&gt;
{{HELP|How exactly did you do this? It failed for me. Does it work only with .IMG files that are converted to .ISO files, or can .ISO files provided by Lenovo also work (how?)}}&lt;br /&gt;
&lt;br /&gt;
=== Booting from a Network Boot Image ===&lt;br /&gt;
BIOS, ECP, CD/DVD and Harddisk firmware disks can be booted over the network with [http://syslinux.zytor.com/pxe.php PXELINX] as part of the [http://syslinux.zytor.com/ SYSLINUX] package.  This requires that you have a DHCP and tftp server configured and setup properly on your network, and is probably not for the faint of heart.&lt;br /&gt;
&lt;br /&gt;
Make sure the firmware bootdisk is in linux 'dd' format, as the self-extracting .exe disks from the IBM website cannot be booted directly as such.&lt;br /&gt;
&lt;br /&gt;
This worked on the {{R31}}, {{X22}}, {{T21}}, {{T30}} and {{T41p}} with various firmware updates.  On the {{X22}}, it worked with ECP 1.30 but '''not''' with BIOS 1.32&lt;br /&gt;
&lt;br /&gt;
=After updating=&lt;br /&gt;
Lenovo recommends reseting your BIOS settings to their factory defaults after a firmware update.&lt;br /&gt;
&lt;br /&gt;
Also, please consider updating the [[List of DMI IDs]] after updating your BIOS.&lt;br /&gt;
&lt;br /&gt;
= Special Cases =&lt;br /&gt;
* In one case, see ([[APM setup on a type 2379 ThinkPad T40]]), it was not possible to upgrade the BIOS from Windows XP; a downgrade to Windows 98 was required to successfully run the BIOS upgrade app. The symptoms in this case were that, once the files had been extracted to the hard disk, and the machine was to reboot into the upgrade app, it would beep and hang just before reboot, requiring a power cycle. Once the power was cycled, it would simply reboot back into XP without performing any BIOS upgrade actions. So even if you have Windows, you may still need to use the info on this page.&lt;br /&gt;
&lt;br /&gt;
== Updating Thinkpad X Series ==&lt;br /&gt;
The special update instructions for {{X_Series}} Thinkpads are quite long. You can find them at the page [[BIOS_Upgrade/X_Series]].&lt;br /&gt;
&lt;br /&gt;
== Updating without battery or with dead battery ==&lt;br /&gt;
&lt;br /&gt;
This is a last-resort approach. Use this only if everything else fails.&lt;br /&gt;
&lt;br /&gt;
The BIOS updater may refuse to update a BIOS without a battery, or if the battery charge is too low. In that case, extract the disk image with cabextract as per instructions above and dd it to an usb stick. (This will destroy the data on it, of course.) Acquire a pure DOS boot cd such as Windows 98 recovery CD and boot that.&lt;br /&gt;
&lt;br /&gt;
Use F8 to abort the boot sequence of a windows 98 boot CD. If you need CD-ROM support, load CD-related things but say no to everything else. In particular, avoid loading himem.sys and doskey, as the presence of either program causes Phoenix bios flash tool phlash16.exe to abort.&lt;br /&gt;
&lt;br /&gt;
Change to the volume where flash2.exe and other tools are installed, and execute &amp;quot;flash2.exe /u&amp;quot;. This should bypass the battery check and perform the flashing. If that doesn't work, check if the update disk contains a tool called &amp;quot;phlash16.exe&amp;quot;. This can be used directly to flash the image, and the invocation is typically &amp;quot;phlash16 /exit $01c80000.fl1&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This method won't work for the Thinkpad {{560X}} (and likely other older models). Since the 560X is a bit older, it won't be a big surprise if the battery is as dead as a dodo. Here's how to update the bios in this case: download the spsdi833 bios update and create the update floppy. If you have trouble creating this disk, [http://www.mediafire.com/?36o5a8buvbjx07o download an archive with the files] and put them on a floppy. Don't worry about making it bootable. Also, you will need a DOS bootdisk. A Windows 98 bootdisk will be fine. Boot the system with the W98 bootdisk, do not load CD-rom support. Remove the W98 bootdisk and put the disk with the BIOS update in the drive. If you would now run UPDTFLSH you would get the battery message, so don't do that. If you open UPDTFLSH.exe with a text editor, you would find some lines about UPDTROM. UPDTROM is the actual flash tool, but you can't simply run it just like that. Run the following:&lt;br /&gt;
&lt;br /&gt;
*updtrom /np /prep1&lt;br /&gt;
*updtrom /np /prep2&lt;br /&gt;
*updtrom /np /prep3&lt;br /&gt;
*updtrom /np /romcmp /romflsh /prep4&lt;br /&gt;
*updtrom /np /h8flsh /h8img /model&lt;br /&gt;
&lt;br /&gt;
Yes, you need to run updtrom five times. Hold your breath and reboot the machine. It's done.&lt;br /&gt;
&lt;br /&gt;
Perhaps not all these lines are necessary, but to be sure I ran them all, and this worked for me. So I suggest you do the same. This could probably be done from the harddisk as well, but I did not test that.&lt;br /&gt;
&lt;br /&gt;
For the {{i1400}} follow instructions on [http://www.motherboardpoint.com/flash-ibm-thinkpad-bios-w-o-battery-t143180.html this] website. It works not only for 2611 but for 2621 types too.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{footnotes|&lt;br /&gt;
# For lots of detail on making and burning .iso files, see The Linux Documentation Project (tldp.org): [http://tldp.org/HOWTO/CD-Writing-HOWTO-3.html#ss3.1 3.1 Writing CD-ROMs (pure data)].&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=55248</id>
		<title>Microphone Mute Button</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=55248"/>
		<updated>2014-01-10T19:42:58Z</updated>

		<summary type="html">&lt;p&gt;Berto: /* F20 */ Explanation about the ACPI mapping.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
Some Thinkpads come with a Microphone Mute Button possibly with an led.&lt;br /&gt;
&lt;br /&gt;
It does not work on Ubuntu, a bug has been reported and a patch has been proposed: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/408903&lt;br /&gt;
&lt;br /&gt;
If you don't have {{path|/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute}}, you'll need to patch your kernel with&lt;br /&gt;
[http://permalink.gmane.org/gmane.linux.drivers.platform.x86.devel/1962 this patch].&lt;br /&gt;
&lt;br /&gt;
== Workaround using acpid ==&lt;br /&gt;
Pressing the mic mute button will generate a acpi event&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 button/micmute MICMUTE 00000080 00000000 K&lt;br /&gt;
Depending on your model and your version of acpid it may generate a different event&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 ibm/hotkey HKEY 00000080 0000101b&lt;br /&gt;
add a acpid rule to handle this event in {{path|/etc/acpi/events/lenovo-mutemic}}: &lt;br /&gt;
 event=button/micmute MICMUTE 00000080 00000000 K&lt;br /&gt;
 action=/etc/acpi/lenovo-mutemic.sh&lt;br /&gt;
the script ({{path|/etc/acpi/lenovo-mutemic.sh}}) to toggle the mice look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
user=$(who | awk '/0\.0/{print $1; exit;}')&lt;br /&gt;
[[ -z $user ]] &amp;amp;&amp;amp; user=root&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[on]&amp;quot;* ]]; then&lt;br /&gt;
  logger &amp;quot;Microphone is now muted (for $user) $USER&amp;quot;&lt;br /&gt;
  amixer sset Capture nocap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-muted-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;MUTED&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
  logger &amp;quot;Microphone is now on (for $user)&amp;quot;&lt;br /&gt;
  amixer sset Capture cap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 0 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-high-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;ON&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Explanation:&lt;br /&gt;
* &amp;lt;tt&amp;gt;led&amp;lt;/tt&amp;gt; contain the path to the led in the mute button (see below)&lt;br /&gt;
* &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt; is the name of the user, which is currently signed in in X11 and &amp;lt;tt&amp;gt;notify-send&amp;lt;/tt&amp;gt; will send a notification to that user. Remove these lines if you don't like it.&lt;br /&gt;
* Pressing the button will toggle the state of the ALSA capture device, which is maybe not optimal in all cases as it disables all capture devices. &amp;lt;tt&amp;gt;Mic&amp;lt;/tt&amp;gt; would be another choice, but on some thinkpads it is named &amp;lt;tt&amp;gt;Internal Mic&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
ALSA will not remember the state of the led at startup, so one need another small start-up script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[off]&amp;quot;* ]]; then&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and put it in {{path|/etc/local.d/lenovo-mutemic.sh}}.&lt;br /&gt;
&lt;br /&gt;
== F20 ==&lt;br /&gt;
&lt;br /&gt;
If you have a recent version of udev/systemd (see [http://cgit.freedesktop.org/systemd/systemd/commit/keymaps?id=1563c0c35a8005f5b71f04abe32c95d849efb420 this patch]) the acpi trick will not work. The mic mute button will be mapped to F20 (keycode 190), which you should be able to configure normally using the GNOME keyboard settings or similar.&lt;br /&gt;
&lt;br /&gt;
The ACPI mapping is defined in {{path|/lib/udev/keymaps/module-lenovo}}, there you can see if 0x1A is mapped to micmute or F20.&lt;br /&gt;
&lt;br /&gt;
==Needed for models==&lt;br /&gt;
{{T410}}, {{T410s}}, {{X230}}&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54848</id>
		<title>Microphone Mute Button</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54848"/>
		<updated>2013-09-25T07:36:59Z</updated>

		<summary type="html">&lt;p&gt;Berto: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
Some Thinkpads come with a Microphone Mute Button possibly with an led.&lt;br /&gt;
&lt;br /&gt;
It does not work on Ubuntu, a bug has been reported and a patch has been proposed: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/408903&lt;br /&gt;
&lt;br /&gt;
If you don't have {{path|/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute}}, you'll need to patch your kernel with&lt;br /&gt;
[http://permalink.gmane.org/gmane.linux.drivers.platform.x86.devel/1962 this patch].&lt;br /&gt;
&lt;br /&gt;
== Workaround using acpid ==&lt;br /&gt;
Pressing the mic mute button will generate a acpi event&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 button/micmute MICMUTE 00000080 00000000 K&lt;br /&gt;
Depending on your model and your version of acpid it may generate a different event&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 ibm/hotkey HKEY 00000080 0000101b&lt;br /&gt;
add a acpid rule to handle this event in {{path|/etc/acpi/events/lenovo-mutemic}}: &lt;br /&gt;
 event=button/micmute MICMUTE 00000080 00000000 K&lt;br /&gt;
 action=/etc/acpi/lenovo-mutemic.sh&lt;br /&gt;
the script ({{path|/etc/acpi/lenovo-mutemic.sh}}) to toggle the mice look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
user=$(who | awk '/0\.0/{print $1; exit;}')&lt;br /&gt;
[[ -z $user ]] &amp;amp;&amp;amp; user=root&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[on]&amp;quot;* ]]; then&lt;br /&gt;
  logger &amp;quot;Microphone is now muted (for $user) $USER&amp;quot;&lt;br /&gt;
  amixer sset Capture nocap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-muted-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;MUTED&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
  logger &amp;quot;Microphone is now on (for $user)&amp;quot;&lt;br /&gt;
  amixer sset Capture cap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 0 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-high-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;ON&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Explanation:&lt;br /&gt;
* &amp;lt;tt&amp;gt;led&amp;lt;/tt&amp;gt; contain the path to the led in the mute button (see below)&lt;br /&gt;
* &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt; is the name of the user, which is currently signed in in X11 and &amp;lt;tt&amp;gt;notify-send&amp;lt;/tt&amp;gt; will send a notification to that user. Remove these lines if you don't like it.&lt;br /&gt;
* Pressing the button will toggle the state of the ALSA capture device, which is maybe not optimal in all cases as it disables all capture devices. &amp;lt;tt&amp;gt;Mic&amp;lt;/tt&amp;gt; would be another choice, but on some thinkpads it is named &amp;lt;tt&amp;gt;Internal Mic&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
ALSA will not remember the state of the led at startup, so one need another small start-up script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[off]&amp;quot;* ]]; then&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and put it in {{path|/etc/local.d/lenovo-mutemic.sh}}.&lt;br /&gt;
&lt;br /&gt;
== F20 ==&lt;br /&gt;
&lt;br /&gt;
If you have a recent version of udev/systemd (see [http://cgit.freedesktop.org/systemd/systemd/commit/keymaps?id=1563c0c35a8005f5b71f04abe32c95d849efb420 this patch]) the acpi trick will not work. The mic mute button will be mapped to F20 (keycode 190), which you should be able to configure normally using the GNOME keyboard settings or similar.&lt;br /&gt;
&lt;br /&gt;
==Needed for models==&lt;br /&gt;
{{T410}}, {{T410s}}, {{X230}}&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54829</id>
		<title>Microphone Mute Button</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54829"/>
		<updated>2013-09-20T07:56:56Z</updated>

		<summary type="html">&lt;p&gt;Berto: /* Workaround using acpid */ Add new MICMUTE event from acpid 2.0.19&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
Some Thinkpads come with a Microphone Mute Button possibly with an led.&lt;br /&gt;
&lt;br /&gt;
It does not work on Ubuntu, a bug has been reported and a patch has been proposed: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/408903&lt;br /&gt;
&lt;br /&gt;
If you don't have {{path|/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute}}, you'll need to patch your kernel with&lt;br /&gt;
[http://permalink.gmane.org/gmane.linux.drivers.platform.x86.devel/1962 this patch].&lt;br /&gt;
&lt;br /&gt;
== Workaround using acpid ==&lt;br /&gt;
Pressing the mic mute botton will generate a acpi event&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 button/micmute MICMUTE 00000080 00000000 K&lt;br /&gt;
Depending on your model and your version of acpid it may generate a different event&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 ibm/hotkey HKEY 00000080 0000101b&lt;br /&gt;
add a acpid rule to handle this event in {{path|/etc/acpi/events/lenovo-mutemic}}: &lt;br /&gt;
 event=button/micmute MICMUTE 00000080 00000000 K&lt;br /&gt;
 action=/etc/acpi/lenovo-mutemic.sh&lt;br /&gt;
the script ({{path|/etc/acpi/lenovo-mutemic.sh}}) to toggle the mice look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
user=$(who | awk '/0\.0/{print $1; exit;}')&lt;br /&gt;
[[ -z $user ]] &amp;amp;&amp;amp; user=root&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[on]&amp;quot;* ]]; then&lt;br /&gt;
  logger &amp;quot;Microphone is now muted (for $user) $USER&amp;quot;&lt;br /&gt;
  amixer sset Capture nocap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-muted-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;MUTED&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
  logger &amp;quot;Microphone is now on (for $user)&amp;quot;&lt;br /&gt;
  amixer sset Capture cap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 0 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-high-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;ON&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Explanation:&lt;br /&gt;
* &amp;lt;tt&amp;gt;led&amp;lt;/tt&amp;gt; contain the path to the led in the mute botton (see below)&lt;br /&gt;
* &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt; is the name of the user, which is currently signed in in X11 and &amp;lt;tt&amp;gt;notify-send&amp;lt;/tt&amp;gt; will send a notification to that user. Remove these lines if you don't like it.&lt;br /&gt;
* Pressing the button will toggle the state of the ALSA capture device, which is maybe not optimal in all cases as it disables all capture devices. &amp;lt;tt&amp;gt;Mic&amp;lt;/tt&amp;gt; would be another choice, but on some thinkpads it is named &amp;lt;tt&amp;gt;Internal Mic&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
ALSA will not remember the state of the led at startup, so one need another small start-up script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[off]&amp;quot;* ]]; then&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and put it in {{path|/etc/local.d/lenovo-mutemic.sh}}.&lt;br /&gt;
&lt;br /&gt;
==Needed for models==&lt;br /&gt;
{{T410}}, {{T410s}}, {{X230}}&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54828</id>
		<title>Microphone Mute Button</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54828"/>
		<updated>2013-09-20T07:49:12Z</updated>

		<summary type="html">&lt;p&gt;Berto: /* General */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
Some Thinkpads come with a Microphone Mute Button possibly with an led.&lt;br /&gt;
&lt;br /&gt;
It does not work on Ubuntu, a bug has been reported and a patch has been proposed: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/408903&lt;br /&gt;
&lt;br /&gt;
If you don't have {{path|/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute}}, you'll need to patch your kernel with&lt;br /&gt;
[http://permalink.gmane.org/gmane.linux.drivers.platform.x86.devel/1962 this patch].&lt;br /&gt;
&lt;br /&gt;
== Workaround using acpid ==&lt;br /&gt;
Pressing the mic mute botton will generate a acpi event&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 ibm/hotkey HKEY 00000080 0000101b&lt;br /&gt;
add a acpid rule to handle this event in {{path|/etc/acpi/events/lenovo-mutemic}}: &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000101b&lt;br /&gt;
 action=/etc/acpi/lenovo-mutemic.sh&lt;br /&gt;
the script ({{path|/etc/acpi/lenovo-mutemic.sh}}) to toggle the mice look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
user=$(who | awk '/0\.0/{print $1; exit;}')&lt;br /&gt;
[[ -z $user ]] &amp;amp;&amp;amp; user=root&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[on]&amp;quot;* ]]; then&lt;br /&gt;
  logger &amp;quot;Microphone is now muted (for $user) $USER&amp;quot;&lt;br /&gt;
  amixer sset Capture nocap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-muted-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;MUTED&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
  logger &amp;quot;Microphone is now on (for $user)&amp;quot;&lt;br /&gt;
  amixer sset Capture cap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 0 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-high-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;ON&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Explanation:&lt;br /&gt;
* &amp;lt;tt&amp;gt;led&amp;lt;/tt&amp;gt; contain the path to the led in the mute botton (see below)&lt;br /&gt;
* &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt; is the name of the user, which is currently signed in in X11 and &amp;lt;tt&amp;gt;notify-send&amp;lt;/tt&amp;gt; will send a notification to that user. Remove these lines if you don't like it.&lt;br /&gt;
* Pressing the button will toggle the state of the ALSA capture device, which is maybe not optimal in all cases as it disables all capture devices. &amp;lt;tt&amp;gt;Mic&amp;lt;/tt&amp;gt; would be another choice, but on some thinkpads it is named &amp;lt;tt&amp;gt;Internal Mic&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
ALSA will not remember the state of the led at startup, so one need another small start-up script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[off]&amp;quot;* ]]; then&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and put it in {{path|/etc/local.d/lenovo-mutemic.sh}}.&lt;br /&gt;
&lt;br /&gt;
==Needed for models==&lt;br /&gt;
{{T410}}, {{T410s}}, {{X230}}&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54827</id>
		<title>Microphone Mute Button</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Microphone_Mute_Button&amp;diff=54827"/>
		<updated>2013-09-20T07:47:22Z</updated>

		<summary type="html">&lt;p&gt;Berto: /* General */ Add link to thinkpad_acpi kernel patch.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
Some Thinkpads come with a Microphone Mute Button possibly with an led.&lt;br /&gt;
&lt;br /&gt;
It does not work on Ubuntu, a bug has been reported and a patch has been proposed: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/408903&lt;br /&gt;
&lt;br /&gt;
If you don't have &amp;lt;tt&amp;gt;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute&amp;lt;/tt&amp;gt;, you'll need to patch your kernel with&lt;br /&gt;
[http://permalink.gmane.org/gmane.linux.drivers.platform.x86.devel/1962 this patch].&lt;br /&gt;
&lt;br /&gt;
== Workaround using acpid ==&lt;br /&gt;
Pressing the mic mute botton will generate a acpi event&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 ibm/hotkey HKEY 00000080 0000101b&lt;br /&gt;
add a acpid rule to handle this event in {{path|/etc/acpi/events/lenovo-mutemic}}: &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000101b&lt;br /&gt;
 action=/etc/acpi/lenovo-mutemic.sh&lt;br /&gt;
the script ({{path|/etc/acpi/lenovo-mutemic.sh}}) to toggle the mice look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
user=$(who | awk '/0\.0/{print $1; exit;}')&lt;br /&gt;
[[ -z $user ]] &amp;amp;&amp;amp; user=root&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[on]&amp;quot;* ]]; then&lt;br /&gt;
  logger &amp;quot;Microphone is now muted (for $user) $USER&amp;quot;&lt;br /&gt;
  amixer sset Capture nocap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-muted-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;MUTED&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
  logger &amp;quot;Microphone is now on (for $user)&amp;quot;&lt;br /&gt;
  amixer sset Capture cap&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 0 &amp;gt; $led&lt;br /&gt;
  sudo -u $user DISPLAY=&amp;quot;:0.0&amp;quot; notify-send -i microphone-sensitivity-high-symbolic &amp;quot;Microphone&amp;quot; &amp;quot;Microphone is now &amp;lt;b&amp;gt;ON&amp;lt;/b&amp;gt;&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Explanation:&lt;br /&gt;
* &amp;lt;tt&amp;gt;led&amp;lt;/tt&amp;gt; contain the path to the led in the mute botton (see below)&lt;br /&gt;
* &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt; is the name of the user, which is currently signed in in X11 and &amp;lt;tt&amp;gt;notify-send&amp;lt;/tt&amp;gt; will send a notification to that user. Remove these lines if you don't like it.&lt;br /&gt;
* Pressing the button will toggle the state of the ALSA capture device, which is maybe not optimal in all cases as it disables all capture devices. &amp;lt;tt&amp;gt;Mic&amp;lt;/tt&amp;gt; would be another choice, but on some thinkpads it is named &amp;lt;tt&amp;gt;Internal Mic&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
ALSA will not remember the state of the led at startup, so one need another small start-up script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
led=&amp;quot;/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness&amp;quot;&lt;br /&gt;
if [[ $(amixer sget Capture) == *&amp;quot;[off]&amp;quot;* ]]; then&lt;br /&gt;
  [[ -f $led ]] &amp;amp;&amp;amp; echo 1 &amp;gt; $led&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and put it in {{path|/etc/local.d/lenovo-mutemic.sh}}.&lt;br /&gt;
&lt;br /&gt;
==Needed for models==&lt;br /&gt;
{{T410}}, {{T410s}}, {{X230}}&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User:Berto&amp;diff=53074</id>
		<title>User:Berto</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User:Berto&amp;diff=53074"/>
		<updated>2011-10-25T09:28:36Z</updated>

		<summary type="html">&lt;p&gt;Berto: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I'm a ThinkPad X61s user from [http://en.wikipedia.org/wiki/Galicia_%28Spain%29 Galicia].&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:HDAPS&amp;diff=51785</id>
		<title>Talk:HDAPS</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:HDAPS&amp;diff=51785"/>
		<updated>2011-06-27T23:33:33Z</updated>

		<summary type="html">&lt;p&gt;Berto: /* Careful with Gnome HDAPS applet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Smackpad and Compiz ==&lt;br /&gt;
&lt;br /&gt;
There are a few references to scripts that will switch the workspace when you tap the laptop on the side. I googled for a while and all I could find was pretty old stuff.&lt;br /&gt;
&lt;br /&gt;
A few of the links I found are:&lt;br /&gt;
&lt;br /&gt;
[http://wiki.compiz.org/Plugins/Smackpad Compiz Smackpad Plugin] This one looks very interesting but how do you install it?&lt;br /&gt;
&lt;br /&gt;
[http://www.eugen-feller.de/?p=12 Compiz Smackpad] I could not clone the software.&lt;br /&gt;
&lt;br /&gt;
[http://blog.micampe.it/articles/2006/06/04/here-comes-the-smackpad Here comes the smackpad] No luck here either.&lt;br /&gt;
&lt;br /&gt;
Etc...&lt;br /&gt;
&lt;br /&gt;
So, has anyone got this working recently? How?&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Lunatico|Lunatico]] 18:15, 21 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Careful with Gnome HDAPS applet ==&lt;br /&gt;
&lt;br /&gt;
This applet polls /sys/block/sda/device/unload_heads and loads the corresponding icon from disk '''every 10th of a second'''. I'd like to talk to the upstream developer and fix that, but I wouldn't recommend its usage meanwhile. I guess we should warn users in the wiki page? --[[User:Berto|Berto]] 14:40, 3 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Lunatico|Lunatico]] 17:45, 21 April 2010 (UTC) Can you elaborate more on this? I'm using the gnome applet and haven't had any perceivable issues.&lt;br /&gt;
&lt;br /&gt;
:You can take a look at the source code (&amp;lt;tt&amp;gt;gnome-hdaps-applet.c&amp;lt;/tt&amp;gt;, v20081204), it's very small and easy to see. &amp;lt;tt&amp;gt;g_timeout_add()&amp;lt;/tt&amp;gt; installs the timer that wakes the process every 100 milliseconds, even if nothing happens (which will be the case 99.9% of the time). Even if the impact is not dramatic, this is not what I would recommend for a laptop considering that this program is going to be always running in background. --[[User:Berto|Berto]] 01:33, 28 June 2011 (CEST)&lt;br /&gt;
&lt;br /&gt;
--[[User:peepingtom|peepingtom]] Try running powertop to observe this. I just turned off the GUI monitoring stuff, you can hear the head park anyway&lt;br /&gt;
&lt;br /&gt;
== Question regarding the example udev rule ? ==&lt;br /&gt;
The example udev rule is as follows.&lt;br /&gt;
* KERNEL==&amp;quot;event[0-9]*&amp;quot;, ATTRS{phys}==&amp;quot;hdaps/input1&amp;quot;, ATTRS{modalias}==&amp;quot;input:b0019v1014p5054e4801-*&amp;quot;, SYMLINK+=&amp;quot;input/hdaps/accelerometer-event&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Where is the '''b0019v1014p5054e4801''' being taken from?&lt;br /&gt;
&lt;br /&gt;
It is from &amp;quot;udevinfo --attribute-walk --name /dev/input/event9&amp;quot; (only with the tp_smapi module)&lt;br /&gt;
&lt;br /&gt;
{{HINT|Lucid does not have udevinfo. Instead, use: &lt;br /&gt;
 udevadm info&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Where can one find the recent hdapsd version mentioned in the article ? ==&lt;br /&gt;
The article mentions &amp;quot;New interface (requires hdapsd dated 2008-10-04 or newer)&amp;quot; without giving any clue about where one can find such a version, I looked in repositories, google and elsewhere in this very site and found an outdated http://www.dresco.co.uk/hdaps/ , as a newcomer here, it eludes me completely. [[User:Bugmenot1|Bugmenot1]] 21:38, 28 November 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
:I had the same problem, I think I found it via [[How_to_protect_the_harddisk_through_APS#Manual_compilation_from_source]], it links to a mailing list post at [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/1040] which has an attached source file at [http://cache.gmane.org//gmane/linux/drivers/hdaps/devel/1040-001.bin], this can be compiled easily with ''gcc -o hdapsd hdapsd.c''. Why this is not released cleanly on the original homepage eludes me as well... --[[User:Centic|Centic]] 12:34, 30 November 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Reduced Power&amp;quot; hdapsd Consuming More Power ==&lt;br /&gt;
&lt;br /&gt;
There is a link to a &amp;quot;reduced power&amp;quot; version of hdapsd, which is supposed to lower the number of timer interrupts (thereby reducing the power consumed by the daemon).  From my experiments (using powertop), however, this program requires about twice as many interrupts to operate in &amp;quot;low power&amp;quot; mode as it does using the (older) sysfs interface.  It also consumes enough CPU cycles to force my CPU back on periodically, consuming more power.  Has anybody else had this experience?&lt;br /&gt;
&lt;br /&gt;
--[[User:Mbsullivan|Mbsullivan]] 05:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Well, not really. With tp_smapi 0.31 and older hdapsd I had wakeups from hdapsd and from the hdaps module, now powertop only shows about 50wakeups from hdapsd (which are really from the module, but this is a bug in powertop, it tells who first called a function, not whose function it is [it's a function in the module code]). So I get a lower power consumption with the newer pair of tpsmapi and hdapsd&lt;br /&gt;
:--[[User:Zhenech|Zhenech]] 07:26, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
== I hawe a problem ==&lt;br /&gt;
&lt;br /&gt;
I tray to start working my IBM x40 with hdaps function but I can't make it right.&lt;br /&gt;
&lt;br /&gt;
The main problem is in a not hanging variables when I read&lt;br /&gt;
/sys/devices/platform/hdaps/position&lt;br /&gt;
&lt;br /&gt;
==I also have this problem!==&lt;br /&gt;
Hi, I also have this problem that on my X40 the device/platform/hdaps/position does not give the right response. It is simply constant (128,1).&lt;br /&gt;
Does anyone have a clue? I use the suse kernel 2.6.16.13-4-default from suse10.1. the hdaps sources in that kernel are the same as in the original kernel.&lt;br /&gt;
thanks in advance,&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Does the HDAPS sensor work under Windows (as observed from actual disk parking, or the graphical animation)? &lt;br /&gt;
Also, try loading [[tp_smapi]], it includes some patches for the hdaps driver. Does it help?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 16:45, 8 June 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
HI Again,&lt;br /&gt;
HDAPS does work under windows. When I had windows running and then reboot the machine, hdaps is running under suse10.1 also. If I, however, turn off the machine and restart it, then, hdaps does *not* work anymore.&lt;br /&gt;
I remember that with suse 10.0 and the separate module, hdaps did work.&lt;br /&gt;
HDAPS now works with tp_smapi as suggested above.&lt;br /&gt;
Still, where does the problem derive from?&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The hdaps in the vanilla kernel has some bugs (i.e., in doesn't talk to the hardware correctly) which tp_smapi fixes. Looks like you've hit one of these.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:05, 12 June 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==laptop acpi problem with hdaps==&lt;br /&gt;
&amp;lt;b&amp;gt; UPDATE: the problem seems fixed in the version 0.21 &amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;s&amp;gt;&lt;br /&gt;
My my both IBM T42/T43 laptops freezes time to times with the follow:&lt;br /&gt;
&lt;br /&gt;
kernel 2.6.16/sata patch&amp;lt;br&amp;gt;&lt;br /&gt;
hdaps build as a module from the kernel.&lt;br /&gt;
tp_smapi 0.20/hdapsd&lt;br /&gt;
&lt;br /&gt;
The freez is quite common then I access CD-ROM,but it also might freez without touching anything.&amp;lt;br&amp;gt;&lt;br /&gt;
After the freez keyboard doesn't work or priting some character,power button doesn't work, however mouse might continue to work.&amp;lt;br&amp;gt;&lt;br /&gt;
KDE battery systray shows discarchged  batteries.&amp;lt;br&amp;gt;&lt;br /&gt;
Still under investigation that cases the problem.&amp;lt;br&amp;gt;&lt;br /&gt;
The related software:&lt;br /&gt;
khdapsmon 0.1.2&amp;lt;br&amp;gt;&lt;br /&gt;
ibm-acpi build-in as a module from the kernel(for ksensors)&lt;br /&gt;
modified ksensors without lm_sensors with a patch&lt;br /&gt;
http://bugs.gentoo.org/show_bug.cgi?id=116661&lt;br /&gt;
&lt;br /&gt;
--noname 00:25, 13 June 2006 (CEST)Anton&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
You're the 2nd one reporting this. The fact you can reproduce it on two machines may be very helpful! Are these machines configured identically? Do they run the same software? Can you send your kernel .config, and precise kernel version + patches, to the e-mail address in the tp_smapi README? Please specify which hdaps or tp_smapi -related applications you're typically running.&lt;br /&gt;
&lt;br /&gt;
BTW, if you have [[swsusp]] or [[Software Suspend 2]] installed, you can do a suspend-to-disk cycle to recover from the hang.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 11:53, 13 June 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I also have the follow &lt;br /&gt;
[[Problems_with_SATA_and_Linux#No_DMA_on_DVD_drive]].&lt;br /&gt;
So I switched cdrom driver from IDE to ATA and it fixed the problem.&lt;br /&gt;
However HDAPS has stared to freez a machine if I shake it then HDD is active.&lt;br /&gt;
The issue might be not related to ACPI but I'll log it here for now.&lt;br /&gt;
&lt;br /&gt;
I'll send configs. Thank you.&lt;br /&gt;
ps. 0.21 is out so let me try the new version.&lt;br /&gt;
--noname 08:34, 22 June 2006 (CEST)Anton&lt;br /&gt;
&amp;lt;/s&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== hdaps and /sys ==&lt;br /&gt;
&lt;br /&gt;
Hey Fellas,&lt;br /&gt;
&lt;br /&gt;
 I've just upgraded from 2.6.15.2, where the patches all dropped in ok and all was well, to 2.6.17.6, where hdaps is built into the kernel.&lt;br /&gt;
 the hdapsd daemon referenced on thinkwiki looks in /sys/block/&amp;lt;drive&amp;gt;/queue/protect to get started.&lt;br /&gt;
 The default drivers that come with 2.6.17.6 for hdaps apparently dont put anything in /queue there, so there is no 'protect' directory.&lt;br /&gt;
 Has anyone else experienced this? I'd love to get my drive protection back :)&lt;br /&gt;
 ON THE UPSIDE! - the Ricoh card reader in my z60m came to life, and I can read sd cards (but not sony memory sticks, oddly enough)&lt;br /&gt;
 Any input would be awesome!&lt;br /&gt;
 dan@itkinetix.com&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
You need an extra kernel patch for &amp;quot;protect&amp;quot;. Please read the page more carefully.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 00:24, 22 July 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Gnome HDAPS-Applet and the new interface ==&lt;br /&gt;
&lt;br /&gt;
I just installed my first linux kernel with the new hdaps disk protection interface. Since the file that controls the (un)parking of the disk heads has changed with this interface, you have to edit the GNOME HDAPS applet source before compiling to make it work. Simply replace the lines&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#define SYSFS_PROTECT_FILE_HDA	&amp;quot;/sys/block/hda/queue/protect&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#define SYSFS_PROTECT_FILE_SDA	&amp;quot;/sys/block/sda/queue/protect&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
with these:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#define SYSFS_PROTECT_FILE_HDA	&amp;quot;/sys/block/hda/device/unload_heads&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#define SYSFS_PROTECT_FILE_SDA	&amp;quot;/sys/block/sda/device/unload_heads&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Then proceed with the instructions in the included INSTALL file.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Another hint: On Ubuntu 8.10, install the hdapsd package, then compile the new version of hdapsd and replace the binary in /usr/sbin. Afterwards edit the /etc/init.d/hdapsd file so it looks for the new interface. Otherwise it will never start hdapsd bcause it's looking for the /sys/block/&amp;lt;device&amp;gt;/queue/protect file which simply doesn't exist. You may want to use the init script I posted at https://bugs.launchpad.net/ubuntu/+source/hdapsd/+bug/303915/comments/3 &amp;lt;br&amp;gt;&lt;br /&gt;
And don't forget that udev-rule to create the symlink hdapsd needs to work!&lt;br /&gt;
&lt;br /&gt;
Kind regards,&amp;lt;br&amp;gt;&lt;br /&gt;
--[[User:Gollo|Gollo]] 20:15, 18 December 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== Older discussion ==&lt;br /&gt;
&lt;br /&gt;
So, this is in the stable kernel now, but what userspace program do we need to actually park the heads?&lt;br /&gt;
--[[User:MrStaticVoid|MrStaticVoid]] 01:26, 30 Oct 2005 (CEST)&lt;br /&gt;
----&lt;br /&gt;
Yes the hdaps driver is in the 2.6.14 kernel, but support to park the heads quickly and freeze the disk queue (to prevent the heads from getting un-parked) is not. There is some disagreement into how that should be implemented.&lt;br /&gt;
&lt;br /&gt;
In other words, the hdaps driver for the moment is rather useless, unless you want to use it to play games.&lt;br /&gt;
&lt;br /&gt;
--[[User:Tonko|Tonko]] 02:10, 30 Oct 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
I head rumours that you can make SDL handle this like a joystick, e.g. for playing Neverball. Can anyone confirm or deny that? Thanx --[[User:Nomeata|Nomeata]] 01:16, 16 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
Yes it is possible to use it as a joystick, as Tonko allready mentioned.&lt;br /&gt;
/dev/input/jsX modprobe joydev&lt;br /&gt;
&lt;br /&gt;
Ozi&lt;br /&gt;
&lt;br /&gt;
Thanks, I didn't have the joydev module. Rebuilding... --[[User:129.13.186.1|129.13.186.1]] 15:30, 16 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Yeah, it's a pretty good party trick - set up the HDAPS joystick as xmame input.  You can play Ms. Pac-man by tilting your laptop to make pac-man navigate the maze.  You can imagine that the pac-man &amp;quot;rolls&amp;quot; downhill, just like those old wooden marble-puzzles that you see around.  Heh, can actually clear a level or two.&lt;br /&gt;
&lt;br /&gt;
Marble madness was strangely unsatisfying though, and just didn't work well (probably due to the diagonal nature of the screen in that game).&lt;br /&gt;
&lt;br /&gt;
--[[User:gsmenden|gsmenden]] 20:10, 13 Jan 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Anyone got the queue freezing patch running on 2.6.16? I'm going to try to manually merge it but didn't want to duplicate someone else's work.&lt;br /&gt;
&lt;br /&gt;
--[[User:Ajbarr|Ajbarr]] 19:12, 22 March 2006 (CET)&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User:Berto&amp;diff=48064</id>
		<title>User:Berto</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User:Berto&amp;diff=48064"/>
		<updated>2010-04-03T14:44:11Z</updated>

		<summary type="html">&lt;p&gt;Berto: About me&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I'm a ThinkPad {{X61s}} user from [http://en.wikipedia.org/wiki/Galicia_%28Spain%29 Galicia].&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:HDAPS&amp;diff=48063</id>
		<title>Talk:HDAPS</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:HDAPS&amp;diff=48063"/>
		<updated>2010-04-03T14:40:48Z</updated>

		<summary type="html">&lt;p&gt;Berto: Warning about GNOME HDAPS applet&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Careful with Gnome HDAPS applet ==&lt;br /&gt;
&lt;br /&gt;
This applet polls /sys/block/sda/device/unload_heads and loads the corresponding icon from disk '''every 10th of a second'''. I'd like to talk to the upstream developer and fix that, but I wouldn't recommend its usage meanwhile. I guess we should warn users in the wiki page? --[[User:Berto|Berto]] 14:40, 3 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Question regarding the example udev rule ? ==&lt;br /&gt;
The example udev rule is as follows.&lt;br /&gt;
* KERNEL==&amp;quot;event[0-9]*&amp;quot;, ATTRS{phys}==&amp;quot;hdaps/input1&amp;quot;, ATTRS{modalias}==&amp;quot;input:b0019v1014p5054e4801-*&amp;quot;, SYMLINK+=&amp;quot;input/hdaps/accelerometer-event&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Where is the '''b0019v1014p5054e4801''' being taken from?&lt;br /&gt;
&lt;br /&gt;
It is from &amp;quot;udevinfo --attribute-walk --name /dev/input/event9&amp;quot; (only with the tp_smapi module)&lt;br /&gt;
&lt;br /&gt;
== Where can one find the recent hdapsd version mentioned in the article ? ==&lt;br /&gt;
The article mentions &amp;quot;New interface (requires hdapsd dated 2008-10-04 or newer)&amp;quot; without giving any clue about where one can find such a version, I looked in repositories, google and elsewhere in this very site and found an outdated http://www.dresco.co.uk/hdaps/ , as a newcomer here, it eludes me completely. [[User:Bugmenot1|Bugmenot1]] 21:38, 28 November 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
:I had the same problem, I think I found it via [[How_to_protect_the_harddisk_through_APS#Manual_compilation_from_source]], it links to a mailing list post at [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/1040] which has an attached source file at [http://cache.gmane.org//gmane/linux/drivers/hdaps/devel/1040-001.bin], this can be compiled easily with ''gcc -o hdapsd hdapsd.c''. Why this is not released cleanly on the original homepage eludes me as well... --[[User:Centic|Centic]] 12:34, 30 November 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;Reduced Power&amp;quot; hdapsd Consuming More Power ==&lt;br /&gt;
&lt;br /&gt;
There is a link to a &amp;quot;reduced power&amp;quot; version of hdapsd, which is supposed to lower the number of timer interrupts (thereby reducing the power consumed by the daemon).  From my experiments (using powertop), however, this program requires about twice as many interrupts to operate in &amp;quot;low power&amp;quot; mode as it does using the (older) sysfs interface.  It also consumes enough CPU cycles to force my CPU back on periodically, consuming more power.  Has anybody else had this experience?&lt;br /&gt;
&lt;br /&gt;
--[[User:Mbsullivan|Mbsullivan]] 05:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Well, not really. With tp_smapi 0.31 and older hdapsd I had wakeups from hdapsd and from the hdaps module, now powertop only shows about 50wakeups from hdapsd (which are really from the module, but this is a bug in powertop, it tells who first called a function, not whose function it is [it's a function in the module code]). So I get a lower power consumption with the newer pair of tpsmapi and hdapsd&lt;br /&gt;
:--[[User:Zhenech|Zhenech]] 07:26, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
== I hawe a problem ==&lt;br /&gt;
&lt;br /&gt;
I tray to start working my IBM x40 with hdaps function but I can't make it right.&lt;br /&gt;
&lt;br /&gt;
The main problem is in a not hanging variables when I read&lt;br /&gt;
/sys/devices/platform/hdaps/position&lt;br /&gt;
&lt;br /&gt;
==I also have this problem!==&lt;br /&gt;
Hi, I also have this problem that on my X40 the device/platform/hdaps/position does not give the right response. It is simply constant (128,1).&lt;br /&gt;
Does anyone have a clue? I use the suse kernel 2.6.16.13-4-default from suse10.1. the hdaps sources in that kernel are the same as in the original kernel.&lt;br /&gt;
thanks in advance,&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Does the HDAPS sensor work under Windows (as observed from actual disk parking, or the graphical animation)? &lt;br /&gt;
Also, try loading [[tp_smapi]], it includes some patches for the hdaps driver. Does it help?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 16:45, 8 June 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
HI Again,&lt;br /&gt;
HDAPS does work under windows. When I had windows running and then reboot the machine, hdaps is running under suse10.1 also. If I, however, turn off the machine and restart it, then, hdaps does *not* work anymore.&lt;br /&gt;
I remember that with suse 10.0 and the separate module, hdaps did work.&lt;br /&gt;
HDAPS now works with tp_smapi as suggested above.&lt;br /&gt;
Still, where does the problem derive from?&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The hdaps in the vanilla kernel has some bugs (i.e., in doesn't talk to the hardware correctly) which tp_smapi fixes. Looks like you've hit one of these.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 18:05, 12 June 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==laptop acpi problem with hdaps==&lt;br /&gt;
&amp;lt;b&amp;gt; UPDATE: the problem seems fixed in the version 0.21 &amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;s&amp;gt;&lt;br /&gt;
My my both IBM T42/T43 laptops freezes time to times with the follow:&lt;br /&gt;
&lt;br /&gt;
kernel 2.6.16/sata patch&amp;lt;br&amp;gt;&lt;br /&gt;
hdaps build as a module from the kernel.&lt;br /&gt;
tp_smapi 0.20/hdapsd&lt;br /&gt;
&lt;br /&gt;
The freez is quite common then I access CD-ROM,but it also might freez without touching anything.&amp;lt;br&amp;gt;&lt;br /&gt;
After the freez keyboard doesn't work or priting some character,power button doesn't work, however mouse might continue to work.&amp;lt;br&amp;gt;&lt;br /&gt;
KDE battery systray shows discarchged  batteries.&amp;lt;br&amp;gt;&lt;br /&gt;
Still under investigation that cases the problem.&amp;lt;br&amp;gt;&lt;br /&gt;
The related software:&lt;br /&gt;
khdapsmon 0.1.2&amp;lt;br&amp;gt;&lt;br /&gt;
ibm-acpi build-in as a module from the kernel(for ksensors)&lt;br /&gt;
modified ksensors without lm_sensors with a patch&lt;br /&gt;
http://bugs.gentoo.org/show_bug.cgi?id=116661&lt;br /&gt;
&lt;br /&gt;
--noname 00:25, 13 June 2006 (CEST)Anton&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
You're the 2nd one reporting this. The fact you can reproduce it on two machines may be very helpful! Are these machines configured identically? Do they run the same software? Can you send your kernel .config, and precise kernel version + patches, to the e-mail address in the tp_smapi README? Please specify which hdaps or tp_smapi -related applications you're typically running.&lt;br /&gt;
&lt;br /&gt;
BTW, if you have [[swsusp]] or [[Software Suspend 2]] installed, you can do a suspend-to-disk cycle to recover from the hang.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 11:53, 13 June 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I also have the follow &lt;br /&gt;
[[Problems_with_SATA_and_Linux#No_DMA_on_DVD_drive]].&lt;br /&gt;
So I switched cdrom driver from IDE to ATA and it fixed the problem.&lt;br /&gt;
However HDAPS has stared to freez a machine if I shake it then HDD is active.&lt;br /&gt;
The issue might be not related to ACPI but I'll log it here for now.&lt;br /&gt;
&lt;br /&gt;
I'll send configs. Thank you.&lt;br /&gt;
ps. 0.21 is out so let me try the new version.&lt;br /&gt;
--noname 08:34, 22 June 2006 (CEST)Anton&lt;br /&gt;
&amp;lt;/s&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== hdaps and /sys ==&lt;br /&gt;
&lt;br /&gt;
Hey Fellas,&lt;br /&gt;
&lt;br /&gt;
 I've just upgraded from 2.6.15.2, where the patches all dropped in ok and all was well, to 2.6.17.6, where hdaps is built into the kernel.&lt;br /&gt;
 the hdapsd daemon referenced on thinkwiki looks in /sys/block/&amp;lt;drive&amp;gt;/queue/protect to get started.&lt;br /&gt;
 The default drivers that come with 2.6.17.6 for hdaps apparently dont put anything in /queue there, so there is no 'protect' directory.&lt;br /&gt;
 Has anyone else experienced this? I'd love to get my drive protection back :)&lt;br /&gt;
 ON THE UPSIDE! - the Ricoh card reader in my z60m came to life, and I can read sd cards (but not sony memory sticks, oddly enough)&lt;br /&gt;
 Any input would be awesome!&lt;br /&gt;
 dan@itkinetix.com&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
You need an extra kernel patch for &amp;quot;protect&amp;quot;. Please read the page more carefully.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 00:24, 22 July 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Gnome HDAPS-Applet and the new interface ==&lt;br /&gt;
&lt;br /&gt;
I just installed my first linux kernel with the new hdaps disk protection interface. Since the file that controls the (un)parking of the disk heads has changed with this interface, you have to edit the GNOME HDAPS applet source before compiling to make it work. Simply replace the lines&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#define SYSFS_PROTECT_FILE_HDA	&amp;quot;/sys/block/hda/queue/protect&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#define SYSFS_PROTECT_FILE_SDA	&amp;quot;/sys/block/sda/queue/protect&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
with these:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#define SYSFS_PROTECT_FILE_HDA	&amp;quot;/sys/block/hda/device/unload_heads&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#define SYSFS_PROTECT_FILE_SDA	&amp;quot;/sys/block/sda/device/unload_heads&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Then proceed with the instructions in the included INSTALL file.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Another hint: On Ubuntu 8.10, install the hdapsd package, then compile the new version of hdapsd and replace the binary in /usr/sbin. Afterwards edit the /etc/init.d/hdapsd file so it looks for the new interface. Otherwise it will never start hdapsd bcause it's looking for the /sys/block/&amp;lt;device&amp;gt;/queue/protect file which simply doesn't exist. You may want to use the init script I posted at https://bugs.launchpad.net/ubuntu/+source/hdapsd/+bug/303915/comments/3 &amp;lt;br&amp;gt;&lt;br /&gt;
And don't forget that udev-rule to create the symlink hdapsd needs to work!&lt;br /&gt;
&lt;br /&gt;
Kind regards,&amp;lt;br&amp;gt;&lt;br /&gt;
--[[User:Gollo|Gollo]] 20:15, 18 December 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== Older discussion ==&lt;br /&gt;
&lt;br /&gt;
So, this is in the stable kernel now, but what userspace program do we need to actually park the heads?&lt;br /&gt;
--[[User:MrStaticVoid|MrStaticVoid]] 01:26, 30 Oct 2005 (CEST)&lt;br /&gt;
----&lt;br /&gt;
Yes the hdaps driver is in the 2.6.14 kernel, but support to park the heads quickly and freeze the disk queue (to prevent the heads from getting un-parked) is not. There is some disagreement into how that should be implemented.&lt;br /&gt;
&lt;br /&gt;
In other words, the hdaps driver for the moment is rather useless, unless you want to use it to play games.&lt;br /&gt;
&lt;br /&gt;
--[[User:Tonko|Tonko]] 02:10, 30 Oct 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
I head rumours that you can make SDL handle this like a joystick, e.g. for playing Neverball. Can anyone confirm or deny that? Thanx --[[User:Nomeata|Nomeata]] 01:16, 16 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
Yes it is possible to use it as a joystick, as Tonko allready mentioned.&lt;br /&gt;
/dev/input/jsX modprobe joydev&lt;br /&gt;
&lt;br /&gt;
Ozi&lt;br /&gt;
&lt;br /&gt;
Thanks, I didn't have the joydev module. Rebuilding... --[[User:129.13.186.1|129.13.186.1]] 15:30, 16 Nov 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Yeah, it's a pretty good party trick - set up the HDAPS joystick as xmame input.  You can play Ms. Pac-man by tilting your laptop to make pac-man navigate the maze.  You can imagine that the pac-man &amp;quot;rolls&amp;quot; downhill, just like those old wooden marble-puzzles that you see around.  Heh, can actually clear a level or two.&lt;br /&gt;
&lt;br /&gt;
Marble madness was strangely unsatisfying though, and just didn't work well (probably due to the diagonal nature of the screen in that game).&lt;br /&gt;
&lt;br /&gt;
--[[User:gsmenden|gsmenden]] 20:10, 13 Jan 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Anyone got the queue freezing patch running on 2.6.16? I'm going to try to manually merge it but didn't want to duplicate someone else's work.&lt;br /&gt;
&lt;br /&gt;
--[[User:Ajbarr|Ajbarr]] 19:12, 22 March 2006 (CET)&lt;/div&gt;</summary>
		<author><name>Berto</name></author>
		
	</entry>
</feed>