/bsd: acpitz1: Critical temperature, shutting down

2010-01-12 Thread Don Scott
My X60 overheated and did a clean shutdown while building devel/jdk/1.6.
This is the first time there has been a heat related issue on this laptop.
It's running the latest BIOS (version 2.18) and an i386 snapshot from
January 5th.

/var/log/messages:
Jan 12 19:40:27 x60 /bsd: acpithinkpad0: unknown event 0x6022
Jan 12 19:40:42 x60 last message repeated 16 times
Jan 12 19:40:45 x60 /bsd: acpitz1: Critical temperature, shutting down
Jan 12 19:40:45 x60 /bsd: acpithinkpad0: unknown event 0x6022

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.pagesize=4096
hw.disknames=sd0,sd1
hw.diskcount=2
hw.sensors.acpitz0.temp0=70.00 degC (zone temperature)
hw.sensors.acpitz1.temp0=73.00 degC (zone temperature)
hw.sensors.acpibat0.volt0=14.40 VDC (voltage)
hw.sensors.acpibat0.volt1=16.40 VDC (current voltage)
hw.sensors.acpibat0.watthour0=40.59 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=2.03 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity)
hw.sensors.acpibat0.watthour3=40.59 Wh (remaining capacity), OK
hw.sensors.acpibat0.raw0=0 (battery full), OK
hw.sensors.acpibat0.raw1=0 (rate)
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.temp0=70.00 degC
hw.sensors.acpithinkpad0.temp1=55.00 degC
hw.sensors.acpithinkpad0.temp3=66.00 degC
hw.sensors.acpithinkpad0.temp4=38.00 degC
hw.sensors.acpithinkpad0.temp6=33.00 degC
hw.sensors.acpithinkpad0.fan0=2817 RPM
hw.sensors.acpidock0.indicator0=Off (not docked)
hw.sensors.cpu0.temp0=75.00 degC
hw.sensors.aps0.temp0=55.00 degC
hw.sensors.aps0.temp1=55.00 degC
hw.sensors.aps0.indicator0=Off (Keyboard Active)
hw.sensors.aps0.indicator1=Off (Mouse Active)
hw.sensors.aps0.indicator2=On (Lid Open)
hw.sensors.aps0.raw0=415 (X_ACCEL)
hw.sensors.aps0.raw1=522 (Y_ACCEL)
hw.sensors.aps0.raw2=415 (X_VAR)
hw.sensors.aps0.raw3=522 (Y_VAR)
hw.cpuspeed=2000
hw.setperf=100
hw.vendor=LENOVO
hw.product=1709G3U
hw.version=ThinkPad X60
hw.serialno=LVD6250
hw.uuid=2a4afc60-77b1-11db-8510-e4b0a9ddd65f
hw.physmem=3211161600
hw.usermem=3211083776
hw.ncpufound=2

Although the fan appears to be running fine, I  may replace it anyway since
it is over 3 years old. Maybe it's possible to apply some fresh thermal
compound as well.

I don't think this is openbsd related, but thought it would be interesting
to post anyway (especially since acpi development is in progress).

Dmesg to follow. Comments and questions are welcome and appreciated.

Thanks,
Don

OpenBSD 4.6-current (GENERIC.MP) #381: Tue Jan  5 13:43:29 MST 2010
dera...@i386.openbsd.org:/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  = 3211161600 (3062MB)
avail mem = 3119341568 (2974MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/20/08, BIOS32 rev. 0 @ 0xfd690,
SMBIOS rev. 2.4 @ 0xe0010 (67 entries)
bios0: vendor LENOVO version "7BETD7WW (2.18 )" date 11/20/2008
bios0: LENOVO 1709G3U
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT
SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4)
EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class) 2
GHz
cpu1:
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
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 97 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "93P5029" serial   437 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0xea00! 0xdc000/0x4000! 0xe/0x1!
cpu0: Enhanced SpeedStep 1996 MHz: speeds: 2000, 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945G

Re: SSD performace

2008-11-26 Thread Don Scott
A friend let me borrow his X25-M for the night to run some benchmarks on a
Lenovo X60. I ran "bonnie++ -s 12248" on the SSD (in compatibility mode) as
well as an 80GB HDD (in AHCI mode). The tests were conducted running a
snapshot from yesterday.

Sorry for the poor text formatting:

SSD:
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
root on wd0a swap on wd0b dump on wd0b

Version  1.03  --Sequential Output-- --Sequential Input-
--Random-
   -Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
--Seeks--
MachineSize K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec
%CP
x60.hyper-me 12248M 67415  42 65791  17 39268   7 72312  60 115054  17
2813.3   6
   --Sequential Create-- Random
Create
   -Create-- --Read--- -Delete-- -Create-- --Read---
-Delete--
files:max:min/sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec
%CP
x60.hyper-meta.n 16  2235  13 + +++  4113  10  2221  13 + +++  4004
 12


HDD:
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct
fixed
sd0: 76319MB, 512 bytes/sec, 156301488 sec total
root on sd0a swap on sd0b dump on sd0b

Version  1.03  --Sequential Output-- --Sequential Input-
--Random-
   -Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
--Seeks--
MachineSize K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec
%CP
x60.hyper-me 12248M 32025  19 32039   7 10170   1 33859  26 33895   3  58.5
  0
   --Sequential Create-- Random
Create
   -Create-- --Read--- -Delete-- -Create-- --Read---
-Delete--
files:max:min/sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec
%CP
x60.hyper-meta.n 16  1159   2 + +++  2473   3  1244   2 + +++  2332
  2



SSD dmesg:

OpenBSD 4.4-current (GENERIC.MP ) #1162: Tue Nov 25
05:57:59 MST 2008
   [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  = 3211161600 (3062MB)
avail mem = 3111329792 (2967MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/19/08, BIOS32 rev. 0 @ 0xfd690,
SMBIOS rev. 2.4 @ 0xe0010 (67 entries)
bios0: vendor LENOVO version "7BETD6WW (2.17 )" date 06/19/2008
bios0: LENOVO 1709G3U
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4)
EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class) 2
GHz
cpu1:
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
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 97 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "93P5029" serial   437 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xea00! 0xcf000/0x1000 0xd/0x1000
0xdc000/0x4000! 0xe/0x1!
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130c2406000c24
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2000 MHz (1276 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio"

Re: IBM X60 heating up considerably when boot into OpenBSD

2008-10-27 Thread Don Scott
On Mon, Oct 27, 2008 at 8:40 AM, Pereresus ne Vlezaet Buggy <
[EMAIL PROTECTED]> wrote:

> On 27 October 2008 c. 14:45:04 Amarendra Godbole wrote:
> > Hello misc@
> >
> > My IBM (Lenovo) X60 laptop heats up considerably and the battery also
> > discharges faster, when I boot into OpenBSD. This does not seem to be
> > the case when I boot it into Windows XP.
> >
> > The relevant temperature sysctls are:
> > hw.sensors.acpitz0.temp0=73.05 degC (zone temperature)
> > hw.sensors.acpitz1.temp0=72.05 degC (zone temperature)
> > hw.sensors.cpu0.temp0=72.00 degC
> > hw.sensors.aps0.temp0=52.00 degC
> > hw.sensors.aps0.temp1=52.00 degC
> >
> > dmesg is put up at 
> > http://www.obscure.org/~amunix/tmp/dmesg
> >
> > I did read about SpeedStep, and slowing down the processor so that it
> > consumes less power - so I am going to try it out by tweaking sysctl
> > "hw.cpuspeed" and changing it from 1829 to 1000, but I am not sure if
> > this would solve the problem.
> >
> > Has anyone encountered something similar? If yes, I'd appreciate tips
> > to fix this
> > (apart from the SpeedStepping stuff -- will post my findings. Thanks).
>
> Read apmd(8). I have ~ same actual working times on WinXP and OpenBSD.
>
> --
>  WBR,
> Pereresus ne Vlezaet Buggy
>
> The Thinkpad X60 is acpi only - no apm.



Re: tpb and tphdisk assistance

2007-09-14 Thread Don Scott
On 5/28/07, joshua stein <[EMAIL PROTECTED]> wrote:
> > 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. Is this something I can fix with a
> > simple configuration change?
>
> tpb does not work correctly with multiprocessor kernels, i think it
> has something to do with the nvram driver.
>
> but that doesn't have anything to do with tphdisk; tphdisk and the
> msdos partition are just for hibernation.  does that not work
> either?
>

I am pleased to report that tpb now works on my Lenovo X60 (1709G3U)
running GENERIC.MP (4.2 snapshot from 20070909) with ACPI enabled.
Previously, only GENERIC (not GENERIC.MP) worked.

Volume mute/up/down, thinklight on/off, and screen brightness up/down
all produce a nice on-screen display. I've been out of the loop for a
while, so I am not sure when this functionality was available to the
X60.

Thank you,
Don



Re: Ralink mini-pci express card on Lenovo X60 not working?

2007-07-23 Thread Don Scott

On 7/22/07, Jona Joachim <[EMAIL PROTECTED]> wrote:

On Sun, 22 Jul 2007 01:19:05 -0700
"Don Scott" <[EMAIL PROTECTED]> wrote:

> I'm running GENERIC.MP with ACPI enabled (20070719 snapshot) on a
> Thinkpad X60. I bought a GIGABYTE GN-WI05GS-RH AirCruiser G
> Mini-PCI-E card from kd85.com to replace the stock Intel PRO/Wireless
> 3945ABG. I removed the Intel card, booted the system and ran
> tpwireless (while docked), and then installed the Ralink. It was my
> understanding that the card would show up something like this:

I don't know if this applies to you but recent Thinkpads block
unknown hardware. Only hardware signed by Lenovo is allowed and
recognized. I think there was a patch to circumvent this for the *40
series but not (yet?) for the *60.
Anyway, the 3945ABG works fine for me in my T60 with the wpi driver.



I wasn't entirely sure that tpwireless would work for me or not, but
the system is under warranty so it was a risk I was willing to take.
It "seemed" to work; tpwireless reported that it did what it had to do
and I followed the instructions with no errors.



Re: Ralink mini-pci express card on Lenovo X60 not working?

2007-07-23 Thread Don Scott

On 7/22/07, Stuart Henderson <[EMAIL PROTECTED]> wrote:

On 2007/07/23 01:01, Jona Joachim wrote:
> I don't know if this applies to you but recent Thinkpads block
> unknown hardware. Only hardware signed by Lenovo is allowed and
> recognized. I think there was a patch to circumvent this for the *40
> series but not (yet?) for the *60.

Don't know X60 but X40 refuse to boot with a non-whitelisted card.
I'd check the card is correctly inserted...



I will check to make sure the card is seated properly. Thanks for the
suggestion. Hopefully the problem is just that simple. I am doubtful
though; I am very paranoid when it comes to those things and tend to
double and triple check.



Ralink mini-pci express card on Lenovo X60 not working?

2007-07-22 Thread Don Scott

I'm running GENERIC.MP with ACPI enabled (20070719 snapshot) on a Thinkpad X60.
I bought a GIGABYTE GN-WI05GS-RH AirCruiser G Mini-PCI-E card from
kd85.com to replace the stock Intel PRO/Wireless 3945ABG. I removed
the Intel card, booted the system and ran tpwireless (while docked),
and then installed the Ralink. It was my understanding that the card
would show up something like this:

rum0 at uhub4 port 1
rum0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 2
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:16:e6:34:09:89

I've tried GENERIC.MP and GENERIC with and without ACPI, GENERIC.MP as
shipped with the 20070719 snapshot, and GENERIC as shipped with the
4.1 install CD, but never saw the Ralink in dmesg.

My BIOS version is 2.10 (7BETC9WW) which is dated 20070418. BIOS
version 2.11 is available, but that version apparently only fixes a
scenario where the system may fail to boot from the cdrom, so I
haven't updated.

Can someone spot a problem with the order of operations I went through
when using tpwireless and installing the Ralink? Any suggestions would
be very appreciated.

Here is my snapshot dmesg and sysctl hw:

OpenBSD 4.1-current (GENERIC.MP) #0: Fri Jul 20 10:57:59 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 = 2059104256 (1963MB)
mainbus0 at 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! 0xcf000/0x1000 0xd/0x1000
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 processor)
cpu0: apic clock running at 166 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu1: 
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
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: duplicate apic id, remapped to apid 2
acpi device at acpi0 from table MCFG not configured
acpihpet0 at acpi0 table HPET: 14318179 Hz
acpi device at acpi0 from table BOOT not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table SSDT not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 0 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0: EC__
acpicpu0 at acpi0 C3, C2
acpicpu1 at acpi0 C3, C2
acpitz0 at acpi0, critical temperature: 127 degC
acpitz1 at acpi0, critical temperature: 97 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0: model: 93P5029 serial:   437 type: LION oem: SANYO
acpibat1 at acpi0: BAT1: not present
acpibat2 at acpi0: BAT2: not present
acpiac0 at acpi0: AC unit online
acpidock0 at acpi0: GDCK: docked (15)
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130c2406000c24
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2000 MHz (1276 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM MCH" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03: aperture
at 0xee10, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02:
apic 2 int 17 (irq 11)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Analog Devices AD1981HD (rev. 2.0), HDA version 1.0
azalia0: RIRB time out
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02
pci1 at ppb0 bus 2
em0 at pci1 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00:
apic 2 

Re: OpenBSD on ThinkPad

2007-06-14 Thread Don Scott
If tpb and tphdisk functionality is a requirement for you, then you may
consider getting an older thinkpad T40 or X40 for $500. ACPI development has
made strides since I bought my X60 in November 2006, but tpb still only
works with a non-SMP kernel and I've been unable to get tphdisk to work at
all. A word of caution though, as my problem may exist between the chair and
the keyboard.



Re: tpb and tphdisk assistance

2007-05-28 Thread Don Scott

On 5/28/07, joshua stein <[EMAIL PROTECTED]> wrote:


tpb does not work correctly with multiprocessor kernels, i think it
has something to do with the nvram driver.



I switched from GENERIC.MP to GENERIC and now the on-screen display
works, as does blue-tooth (Fn-F5), screen brightness (Fn-Home and
Fn-End), and the thinklight (Fn-PgUp).

Hibernation (Fn-F12) still does not work though.

Thanks for the tip, Joshua.



Re: tpb and tphdisk assistance

2007-05-28 Thread Don Scott

On 5/28/07, Don Scott <[EMAIL PROTECTED]> wrote:

On 5/28/07, joshua stein <[EMAIL PROTECTED]> wrote:
> > 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. Is this something I can fix with a
> > simple configuration change?
>
> tpb does not work correctly with multiprocessor kernels, i think it
> has something to do with the nvram driver.




Yes, I understand that tpb and tphdisk are separate entities.
Thank you. I was not aware that tpb does not work with MP kernels.
I'll look into this further.

>
> but that doesn't have anything to do with tphdisk; tphdisk and the
> msdos partition are just for hibernation.  does that not work
> either?
>

I have not been able to test hibernation because Fn-F12 does not work (per tpb).



I've also created an entry in /etc/fstab for tphdisk:

/dev/sd0i   /mnt   msdos   rw   1   1

Since my initial posting I've also modified the sd0 disklabel so that
the msdos partition is inside the OpenBSD disk boundaries.

Adding the /etc/fstab entry and altering the disk boundaries may be
mistakes on my part, as the brief tphdisk instructions did not specify
to do so.

How does tphdisk know about the msdos partition and the save2dsk.bin file?
Assuming I have a sane tphdisk setup (doubtful), is there a way I can
trigger tphdisk without the use of Fn-F12?

Thank you very much for any advice.



Re: tpb and tphdisk assistance

2007-05-28 Thread Don Scott

On 5/28/07, joshua stein <[EMAIL PROTECTED]> wrote:

> 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. Is this something I can fix with a
> simple configuration change?

tpb does not work correctly with multiprocessor kernels, i think it
has something to do with the nvram driver.



Yes, I understand that tpb and tphdisk are separate entities.
Thank you. I was not aware that tpb does not work with MP kernels.
I'll look into this further.



but that doesn't have anything to do with tphdisk; tphdisk and the
msdos partition are just for hibernation.  does that not work
either?



I have not been able to test hibernation because Fn-F12 does not work (per tpb).



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 

tpb and tphdisk assistance

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. Is this 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: a