brimbelle.org

OpenBSD installation notes for an IBM Thinkpad T43

I compiled my notes in this little howto during the installation of OpenBSD on my IBM Thinkpad T43. This procedure will normally work with most recent Thinkpad models.

1. Prepare the hard drive 2. Bios configuration 3. Installing OpenBSD
Do you want to use *all* of wd0 for OpenBSD? [no] Enter
fdisk:*1> f 1
Partition 1 marked active.
fdisk:*1> w
Writing MBR at offset 0.
wd0: no disk label
fdisk: 1> q

Note that to flag the disk, I assume that your OpenBSD partition has id 1.

# dd if=/dev/rwd0a of=/openbsd.pbr bs=512 count=1
# fdisk -eu wd0
Enter 'help' for information
fdisk: 1> f 0
Partition 0 marked active.
fdisk: *1> w
Writing MBR at offset 0.
fdisk: 1> q
C:\openbsd.pbr="OpenBSD"
4. Nice things to do after install
# echo 'apmd_flags="-C"' >> /etc/rc.conf.local

You can now retrieve informations from apmd(8) using apm(8):

$ apm
Battery state: high, 98% remaining, 0 minutes life estimate
A/C adapter state: connected
Performance adjustment mode: cool running (1867 MHz)
# echo 'hotplugd_flags=""' >> /etc/rc.conf.local

Note that you must add your scripts in /etc/hotplug/. Read the hotplugd(8) man page for a sample.

$ sysctl hw.sensors
hw.sensors.0=aps0, X_ACCEL, 453 raw
hw.sensors.1=aps0, Y_ACCEL, 433 raw
hw.sensors.2=aps0, X_VAR, 453 raw
hw.sensors.3=aps0, Y_VAR, 433 raw
hw.sensors.4=aps0, Temp 1, 53.00 degC
hw.sensors.5=aps0, Temp 2, 53.00 degC
hw.sensors.6=aps0, Keyboard Active, 0 raw
hw.sensors.7=aps0, Mouse Active, 0 raw
hw.sensors.8=aps0, Lid Open, 1 raw
hw.sensors.9=aps0, unknown, 7 raw