<?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=Nightwolf</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=Nightwolf"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Nightwolf"/>
	<updated>2026-05-21T00:43:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Script_for_theft_alarm_using_HDAPS&amp;diff=26107</id>
		<title>Talk:Script for theft alarm using HDAPS</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Script_for_theft_alarm_using_HDAPS&amp;diff=26107"/>
		<updated>2006-10-31T11:43:53Z</updated>

		<summary type="html">&lt;p&gt;Nightwolf: Is there a way do make something like this work on Windows?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Wonderful idea! And works perfectly on my T43p, scared the cat away. ;)&lt;br /&gt;
&lt;br /&gt;
--[[User:Spiney|spiney]] 20:35, 12 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Good, so it's at least a cat deterrant! A friend of mine had a nasty incident involving a laptop and a cat...&lt;br /&gt;
BTW, I'm the author (identifed by IP address again due the usual ThinkWiki autologin flakiness).&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:52, 12 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
I had to tweak the line that reads the position file. My position file has - numbers in it for some reason, so: &lt;br /&gt;
m/^\(-(\d+),-(\d+)\)$/ or die &amp;quot;Can't parse $pos_file content\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
After that change it works great. &lt;br /&gt;
It scared the dogs away here. ;) &lt;br /&gt;
--[[User:nirik|nirik]] 21:24, 12 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Fixed. Which ThinkPad model, BTW?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 21:44, 12 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
Cool. Excellent. ;) &lt;br /&gt;
&lt;br /&gt;
T42p here. &lt;br /&gt;
&lt;br /&gt;
--[[User:Nirik|Nirik]] 21:45, 12 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I love it!  Great contributions, Thinker!&lt;br /&gt;
&lt;br /&gt;
Of course, it is more proof-of-concept tough, as a thief can simply hit the &amp;quot;mute&amp;quot; button, or carry an old headphone plug with the actual headphones chopped off and stuff this quickly into the audio out jack.  Don't leave your laptop unattended :) :)&lt;br /&gt;
&lt;br /&gt;
--[[User:Gsmenden|Gsmenden]] 18:06, 28 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Thanks! About muting, I'm not sure the mute button will work (I reset the mixer volumes every second), but the thief can certainly power off, or suspend, or pull out the AC and battery. But my hope is that the casual, uninformed laptop-snatcher will trigger the alarm for at least a few seconds, and if you're just down the hall or there are other people nearby, that's probably enough to save your laptop. Not as good as a real lock+alarm, but better than nothing, and pretty convenient when autoactivated by the screensaver (&amp;lt;tt&amp;gt;$use_kde=1&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 01:40, 29 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==Usefulness for head parking==&lt;br /&gt;
Works great. Maybe we can the script for testing the disk park patches by Jon Escombe &amp;lt;lists@dresco.co.uk&amp;gt;&lt;br /&gt;
-- [[User:Ozi23]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
You can use it for testing, but note that the specific algorithm used in this script (threshold on standard deviation of samples during last second) is optimized for the theft deterrent situation. It is highly unsuitable for the head parking application, since it reacts too slowly -- by the it will recognize the movement, the disk heads will have already crashed. For head parking you'd need a low-latency algorithm, and preferably an in-kernel implementation to allow frequeny low-overhead polling, reduce latencies, and avoid accidentally spinning the disk ''up'' when loading or swapping in userspace stuff needed to spin the disk ''down''.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 20:20, 14 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
It's even worse that I thought. Check out the [ftp://ftp.software.ibm.com/pc/pccbbs/mobiles_pdf/aps2mst.pdf IBM white paper] - there's barely enough time to park the head, so in the Windows driver they're using some pretty fancy learning algorithm to deduce when movement deviates from &amp;quot;normal&amp;quot;, to decide when to redefine &amp;quot;normal&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 19:08, 22 Nov 2005 (CET)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Good news every one ..... &lt;br /&gt;
Just kidding. I've found the hdapsd package which acts as a deamon for the hdaps and uses the kernel patch by Jon Escombe. I havent tested it but some people   &lt;br /&gt;
were able to get the protection system work. It seems to depend on the firmware of the harddrive. Its in early stage so be carefull.&lt;br /&gt;
&lt;br /&gt;
http://lwn.net/Articles/154923/ (kernel patch)&lt;br /&gt;
http://bugs.gentoo.org/show_bug.cgi?id=100167 (hdapsd)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Minor modifications ==&lt;br /&gt;
&lt;br /&gt;
tp-theft.pl v0.33 is working fine here, but I have modified some parts:&lt;br /&gt;
* I made a change for kdesktop_lock since it is located in /usr/kde/&amp;lt;kde-version&amp;gt;/bin/ here (Gentoo-specific)&lt;br /&gt;
* I removed the check wether kdesktop is running. I start tp-theft.pl via inittab which will be up before I have logged in&lt;br /&gt;
&lt;br /&gt;
-- satmd, 2005-12-25&lt;br /&gt;
&lt;br /&gt;
What's Gentoo's way of finding out the KDE path? I suppose&lt;br /&gt;
 my $bin = `which kdesktop_lock`;&lt;br /&gt;
won't work from an initscript because the PATH is not set up yet.&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 23:38, 25 Dec 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
With Gentoo&lt;br /&gt;
 /usr/bin/env kde-config --exec-prefix --expandvars&lt;br /&gt;
returns /usr/kde/3.5 . That looks general useable to me.&lt;br /&gt;
I do not use an initscript, but inittab&lt;br /&gt;
... with initscripts one could easily source /etc/profile or something.&lt;br /&gt;
&lt;br /&gt;
-- satmd, 2005-12-25&lt;br /&gt;
&lt;br /&gt;
Will an inittab script find &amp;lt;tt&amp;gt;kde-config&amp;lt;/tt&amp;gt;, which is probably in {{path|/usr/kde/&amp;lt;kde-version&amp;gt;/bin/}} too? And if so, won't &amp;lt;tt&amp;gt;which kdedesktop_lock&amp;lt;/tt&amp;gt; also work?&lt;br /&gt;
&lt;br /&gt;
--[[User:Thinker|Thinker]] 00:56, 26 Dec 2005 (CET)&lt;br /&gt;
&lt;br /&gt;
Did not work - both of them. Keeping my hardcoded value.&lt;br /&gt;
-- satmd, 2005-12-26 06:09 CET&lt;br /&gt;
&lt;br /&gt;
== Is there a way do make something like this work on Windows? ==&lt;br /&gt;
&lt;br /&gt;
see topic.&lt;/div&gt;</summary>
		<author><name>Nightwolf</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:How_to_change_the_BIOS_bootsplash_screen_(under_Windows)&amp;diff=25176</id>
		<title>Talk:How to change the BIOS bootsplash screen (under Windows)</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:How_to_change_the_BIOS_bootsplash_screen_(under_Windows)&amp;diff=25176"/>
		<updated>2006-10-08T18:01:29Z</updated>

		<summary type="html">&lt;p&gt;Nightwolf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On which models does this work? --[[User:Whizkid|Whizkid]] 18:53, 20 Sep 2005 (CEST)&lt;br /&gt;
&lt;br /&gt;
mabe it works under wine&lt;br /&gt;
mabe it works under reactos&lt;br /&gt;
&lt;br /&gt;
I tried to change the bootsplash on my T60 and it didn't work although the flashing program asked me if I want to use the custom bootsplash.&lt;/div&gt;</summary>
		<author><name>Nightwolf</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_change_the_BIOS_bootsplash_screen&amp;diff=25130</id>
		<title>How to change the BIOS bootsplash screen</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_change_the_BIOS_bootsplash_screen&amp;diff=25130"/>
		<updated>2006-10-05T21:12:02Z</updated>

		<summary type="html">&lt;p&gt;Nightwolf: the website where the trinity bootsplash should be is not available anymore&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;
&amp;lt;div style=&amp;quot;margin: 0; margin-right:10px; border: 1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#efefef; align:right;&amp;quot;&amp;gt;&lt;br /&gt;
This page describes how to replace the standard IBM BIOS Bootsplash (The one with the ThinkPad- and Pentium M-Logo), without access to Microsoft Windows or a floppy drive.&lt;br /&gt;
&lt;br /&gt;
Windows users who want to have a custom splash image when they start up should try [[How to change the BIOS bootsplash screen (under Windows) | this guide]] instead.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
== Getting the Files ==&lt;br /&gt;
You'll need the bios upgrade file from the IBM website.&lt;br /&gt;
&lt;br /&gt;
=== Method 1: Using a Non-Diskette-File and cabextract ===&lt;br /&gt;
&lt;br /&gt;
For ThinkPads {{R50}}, {{R50p}}, {{R51}} (1829, 1830, 1831, 1836), {{R52}}, {{T40}}, {{T40p}}, {{T41}}, {{T41p}}, {{T42}}, {{T42p}}, {{T43}}, {{T43p}} this file is suitable:&lt;br /&gt;
* [ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1ruj28us.exe 1ruj28us.exe]&lt;br /&gt;
* [ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1ruj29us.exe 1ruj29us.exe]&lt;br /&gt;
* [ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1ruj30us.exe 1ruj30us.exe] Released 2005-05-26 '''NEW!'''&lt;br /&gt;
There may be a more recent file on the IBM website.&lt;br /&gt;
&lt;br /&gt;
Last version at 2006-01-04 :&lt;br /&gt;
* [ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1ruj33us.exe 1ruj33us.exe] Released 2005-10-25 '''NEW!'''&lt;br /&gt;
&lt;br /&gt;
You need the cabextract tool to extract files from the exe:&lt;br /&gt;
:{{cmdroot|apt-get install cabextract}}&lt;br /&gt;
&lt;br /&gt;
Do this to get the ibm file and extract the disk image from it:&lt;br /&gt;
:{{cmdroot|cd /tmp}}&lt;br /&gt;
:{{cmdroot|wget ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1ruj30us.exe}}&lt;br /&gt;
:{{cmdroot|cabextract -F &amp;quot;*.IMG&amp;quot; 1ruj30us.exe}}&lt;br /&gt;
:{{cmdroot|mv 1RUJ30US.IMG floppy.bin}}&lt;br /&gt;
&lt;br /&gt;
=== Method 2: Using a Diskette-File and dosemu ===&lt;br /&gt;
Another option is to use the &amp;quot;Diskette BIOS file&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
For ThinkPads {{R50}}, {{R50p}}, {{R51}} (1829, 1830, 1831, 1836), {{R52}}, {{T40}}, {{T40p}}, {{T41}}, {{T41p}}, {{T42}}, {{T42p}}, {{T43}}, {{T43p}} this file is suitable:&lt;br /&gt;
* [ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1ruj28ud.exe 1ruj28ud.exe]&lt;br /&gt;
* [ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1ruj29ud.exe 1ruj29ud.exe]&lt;br /&gt;
* [ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1ruj30ud.exe 1ruj30ud.exe] Released 2005-05-26 '''NEW!'''&lt;br /&gt;
&lt;br /&gt;
The file is an OS/2 executables and don't run with wine, so you need to install dosemu to run it and create the image.&amp;lt;br&amp;gt;&lt;br /&gt;
:{{cmdroot|apt-get install dosemu dosemu-freedos}}&lt;br /&gt;
(for non-debian-users: Get dosemu and freedos somewhere and make it work somehow).&lt;br /&gt;
&lt;br /&gt;
With dosemu, you can run this executable, but this program unfortunately&lt;br /&gt;
needs a floppy drive to write to. So use the loopback device, to create a virtual floppy. &lt;br /&gt;
:{{cmdroot|1=dd if=/dev/zero of=/tmp/floppy.bin bs=1024 count=1440}}&lt;br /&gt;
:{{cmdroot|losetup /dev/loop0 /tmp/floppy.bin}}&lt;br /&gt;
Put this block device ({{path|/dev/loop0}}) into the dosemu configuration as the floppy disk device. &lt;br /&gt;
Now you can run the extractor executable, which makes {{path|/tmp/floppy.bin}} the desired floppy image .&lt;br /&gt;
:{{cmdroot|dosemu 1ruj27ud.exe}}&lt;br /&gt;
:{{cmdroot|losetup -d /dev/loop0}}&lt;br /&gt;
&lt;br /&gt;
For 2.6.12+ if you have dosemu error:&lt;br /&gt;
:{{cmdroot|echo 0 &amp;gt; /proc/sys/kernel/randomize_va_space}}&lt;br /&gt;
&lt;br /&gt;
== Adding the custom image ==&lt;br /&gt;
Mount your floppy.bin as a loopback device.&lt;br /&gt;
:{{cmdroot|mkdir /tmp/mnt}}&lt;br /&gt;
:{{cmdroot|1=mount -o loop,umask=000 /tmp/floppy.bin /tmp/mnt}}&lt;br /&gt;
Create a 16 color 640x480 BMP (4 Bit/pixel VGA palette) (for example with Gimp) and save it to {{path|/tmp/mnt/logo.bmp}}.&lt;br /&gt;
You could use this tux image (which is no longer available because someone deleted it) for example.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
When creating your image, keep in mind that on the T43p (and others??), regardless of your custom bootsplash screen there will be a superimposed black &amp;quot;Centrino&amp;quot; logo (~100x100 pixels) on the upper right of your display, so you might want to keep that area clear.  You might also want to reserve the bottom 150 pixels for the &amp;quot;boot options&amp;quot; / &amp;quot;Entering BIOS setup&amp;quot; message(s) too, which will also be displayed.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Now prepare the image with &amp;lt;tt&amp;gt;prepare.exe&amp;lt;/tt&amp;gt; using wine: (This does not work with dosemu!)&lt;br /&gt;
:{{cmdroot|wine prepare.exe logo.scr}}&lt;br /&gt;
The image must compress to &amp;lt;10k.  If you receive an error, you can try reducing the number of colors in your image palette (step down to an 12 or 8 color palette for a very significant reduction in image size.)  When successful, there should be a new {{path|logo.mod}} and your {{path|logo.bmp}}. If so, you are set, don't forget to unmount your loopback device:&lt;br /&gt;
:{{cmdroot|umount /tmp/mnt}}&lt;br /&gt;
&lt;br /&gt;
== Fake a floppy ==&lt;br /&gt;
Now you need to put the image on a floppy and boot from it. Since recent ThinkPads don't have a&lt;br /&gt;
floppy drive, we can use a CD-R (or a CD-RW, actually, for the cheap ones, like me) and burn it with the following command:&lt;br /&gt;
:{{cmdroot|1=mkisofs -b floppy.bin floppy.bin &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; cdrecord dev=&amp;lt;device&amp;gt; - }}&lt;br /&gt;
(&amp;lt;tt&amp;gt;&amp;lt;device&amp;gt;&amp;lt;/tt&amp;gt; being your cd writer device)&lt;br /&gt;
&lt;br /&gt;
== The exciting part ==&lt;br /&gt;
After this worked, reboot your ThinkPad from the cdrom by pressing F12 while booting &lt;br /&gt;
and wait for the IBM tool to start. &lt;br /&gt;
Be sure to have your ThinkPad on AC power and say ''Yes'' to the questions the BIOS Upgrade Tool asks.&lt;br /&gt;
It will then flash the BIOS, which will take about a minute. &lt;br /&gt;
&lt;br /&gt;
Suddenly the laptop turns itself off with two beeps.&lt;br /&gt;
When booting, you'll have your bootsplash picture.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, you won't see it really long, but it's better&lt;br /&gt;
than the standard one, so it was worth the action.&lt;br /&gt;
&lt;br /&gt;
Have fun!&lt;br /&gt;
&lt;br /&gt;
BTW next time you have to flash the BIOS the IBM BIOS updater will detect a custom boot splash and ask you if you want to preserve it or restore the original.&lt;br /&gt;
&lt;br /&gt;
== Share your custom bootsplash image ==&lt;br /&gt;
If you've created your own bootsplash image and want to share it with other you can post it here.&lt;br /&gt;
&lt;br /&gt;
* Schnappi bootsplash: Bow to the power of [http://folk.uio.no/igorr/t43/final.bmp Schnappi]. The BMP image compressed to about 6KB. Schni, schna, schnappi!&lt;/div&gt;</summary>
		<author><name>Nightwolf</name></author>
		
	</entry>
</feed>