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: tpb and tphdisk assistance

2007-05-28 Thread openbsd fan

tpb and tphdisk are only for thinkpads with apm not acpi...

On 5/27/07, Don Scott [EMAIL PROTECTED] wrote:

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 http://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 

Re: tpb and tphdisk assistance

2007-05-28 Thread Przemyslaw Nowaczyk
On Mon, May 28, 2007 at 03:24:29AM -0400, openbsd fan wrote:
 tpb and tphdisk are only for thinkpads with apm not acpi...

not true.. i have a r50e with no apm and tpb works fine (at least
some usable part of it), i can change the volume, screen brightness,
turn on/off the thinklight and switch between LCD/CRT.. turning
on/off the wlan card does not work but the card itself works ok
(it's on by default)..

as for tphdisk i haven't tried it..

-- 
Przemyslaw Nowaczyk [EMAIL PROTECTED]
CS student @ Poznan University of Technology
http://www.student.put.poznan.pl/~przemyslaw.nowaczyk/



Re: tpb and tphdisk assistance

2007-05-28 Thread Damien Miller
where did you get that idea from? you are wrong.

On Mon, 28 May 2007, openbsd fan wrote:

 tpb and tphdisk are only for thinkpads with apm not acpi...
 
 On 5/27/07, Don Scott [EMAIL PROTECTED] wrote:
  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 http://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: 

Re: tpb and tphdisk assistance for a Thinkpad X60

2007-05-28 Thread Don Scott

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



Re: tpb and tphdisk assistance

2007-05-28 Thread joshua stein
 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?



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

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:


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 James Hartley
I guess I missed this in conversation;  does tphdisk work with ACPI?

Thanks.

Jim