Re: tpb and tphdisk assistance for a Thinkpad X60

2007-05-28 Thread Don Scott

Sorry about the double-posted email. That was accidental.



tpb and tphdisk assistance for a Thinkpad X60

2007-05-27 Thread Don Scott

I have setup an MSDOS partition for tphdisk:

$ sudo fdisk sd0
Disk: sd0   geometry: 5168/240/63 [78140160 Sectors]
Offset: 0   Signature: 0xAA55
Starting   Ending   LBA Info:
#: idC   H  S -C   H  S [   start:  size   ]

0: 160   1  1 -  346 159 63 [  63: 5241537 ] OS/2 hidden
1: 000   0  0 -0   0  0 [   0:   0 ] unused
2: 000   0  0 -0   0  0 [   0:   0 ] unused
*3: A6  346 160  1 - 2933 223 63 [ 5241600:39119472 ] OpenBSD

$ sudo disklabel sd0
# Inside MBR partition 3: type A6 start 5241600 size 39119472
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: HTS541040G9SA00
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 240
sectors/cylinder: 15120
cylinders: 5168
total sectors: 78140160
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 a:163296   5241600  4.2BSD   2048 163841 # Cyl   346*-   357*
 b:   2096640   5404896swap   # Cyl   357*-   496*
 c:  78140160 0  unused  0 0  # Cyl 0 -  5167
 d:163296   7501536  4.2BSD   2048 163841 # Cyl   496*-   506*
 e:   2096640   7664832  4.2BSD   2048 163841 # Cyl   506*-   645*
 f:  12581856   9761472  4.2BSD   2048 163841 # Cyl   645*-  1477*
 g:  16776144  22343328  4.2BSD   2048 163841 # Cyl  1477*-  2587*
 i:   524153763   MSDOS   # Cyl 0*-   346*

I've created a save2dsk.bin file:

$ ls -l /mnt/
total 5240832
-rwxr-xr-x  1 root  wheel  2683305984 May 27 17:31 save2dsk.bin

I have tpb set to run as a daemon from ~/.xinitrc. The volume
mute/down/up buttons work, but none of the Fn buttons do except for
the thinklight. On-screen display also does not work. Are these
problems something I can fix with a simple configuration change?

Here is some information about my hardware. Thanks for any advice.

$ sysctl hw
hw.machine=i386
hw.model=Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (GenuineIntel 686-class)
hw.ncpu=2
hw.byteorder=1234
hw.physmem=2137419776
hw.usermem=2137407488
hw.pagesize=4096
hw.disknames=sd0
hw.diskcount=1
hw.sensors.acpitz0.temp0=49.05 degC (zone temperature)
hw.sensors.acpitz1.temp0=47.05 degC (zone temperature)
hw.sensors.acpibat0.volt0=14.40 VDC (voltage)
hw.sensors.acpibat0.volt1=14.85 VDC (current voltage)
hw.sensors.acpibat0.watthour0=73.24 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=3.66 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=20.38 Wh (remaining capacity), OK
hw.sensors.acpibat0.raw0=1 (battery discharging), OK
hw.sensors.acpibat0.raw1=18047 (rate)
hw.sensors.acpiac0.indicator0=Off (power supply)
hw.sensors.acpidock0.indicator0=Off (not docked)
hw.sensors.aps0.temp0=50.00 degC
hw.sensors.aps0.temp1=50.00 degC
hw.sensors.aps0.indicator0=On (Keyboard Active)
hw.sensors.aps0.indicator1=Off (Mouse Active)
hw.sensors.aps0.indicator2=On (Lid Open)
hw.sensors.aps0.raw0=495 (X_ACCEL)
hw.sensors.aps0.raw1=502 (Y_ACCEL)
hw.sensors.aps0.raw2=495 (X_VAR)
hw.sensors.aps0.raw3=502 (Y_VAR)
hw.cpuspeed=1996
hw.setperf=0
hw.vendor=LENOVO
hw.product=1709G3U
hw.version=ThinkPad X60
hw.serialno=LVD6250
hw.uuid=7ac062e0-711a-11db-80c2-db36273570d5

and a dmesg:

OpenBSD 4.1-current (GENERIC.MP) #3: Sat May 26 13:17:13 PDT 2007
  [EMAIL PROTECTED]:/usr/src/sys/arch/i386
/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (GenuineIntel 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 2137419776 (2038MB)
avail mem = 1943982080 (1853MB)
using 4278 buffers containing 106995712 bytes (104488K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 04/18/07, BIOS32 rev. 0 @
0xfd690, SMBIOS rev. 2.4 @ 0xe0010 (67 entries)
bios0: LENOVO 1709G3U
pcibios0 at bios0: rev 2.1 @ 0xfd620/0x9e0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #22 is the last bus
bios0: ROM list: 0xc/0xea00! 0xdc000/0x4000! 0xe/0x1!
acpi0 at mainbus0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT SSDT
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpi device at acpi0 from table DSDT not configured
acpi device at acpi0 from table FACP not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table ECDT not configured
acpi device at acpi0 from table TCPA not configured
acpimadt0 at acpi0 table APIC addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot