From owner-acpi-jp@jp.freebsd.org  Fri Nov 23 04:28:00 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id EAA23510;
	Fri, 23 Nov 2001 04:28:00 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from storm.FreeBSD.org.uk (root@storm.FreeBSD.org.uk [194.242.139.170])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id EAA23495;
	Fri, 23 Nov 2001 04:27:55 +0900 (JST)
	(envelope-from mark@grondar.za)
Received: (from uucp@localhost)
	by storm.FreeBSD.org.uk (8.11.6/8.11.6) with UUCP id fAMJRq229253;
	Thu, 22 Nov 2001 19:27:52 GMT
	(envelope-from mark@grondar.za)
Received: from grondar.za (localhost [127.0.0.1])
	by grimreaper.grondar.org (8.11.6/8.11.6) with ESMTP id fAMJGMN06793;
	Thu, 22 Nov 2001 19:16:23 GMT
	(envelope-from mark@grondar.za)
Message-Id: <200111221916.fAMJGMN06793@grimreaper.grondar.org>
To: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
cc: acpi-jp@jp.FreeBSD.org
References: <20011122.232410.74757488.iwasaki@jp.FreeBSD.org> 
In-Reply-To: <20011122.232410.74757488.iwasaki@jp.FreeBSD.org> ; from Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>  "Thu, 22 Nov 2001 23:24:10 +0900."
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0"
Content-ID: <6761.1006456543.0@grondar.za>
Date: Thu, 22 Nov 2001 19:16:20 +0000
From: Mark Murray <mark@grondar.za>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1488
Subject: [acpi-jp 1488] Re: Toshiba Libretto 110CT ACPI funnies 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: mark@grondar.za

------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <6761.1006456543.1@grondar.za>

Domo arrigato, Iwasaki-san!

> > I can make the machine sleep or suspend with acpiconf, but the
> > only way to wake it up is with the power button. If I do this,
> > it wakes up normally, and then promptly powers off (nicely)!
> 
> Last time we had this problem with old acpi driver, and added
> workaround for it ignoring power button event for 5 (or 10? not sure)
> seconds after wakeup.
> I think we probably need the same kind hack for some laptops.
> I'll try to make it later.

Yes please! I'll be happy to test it.

> > Also, there is no way to make it sleep by closing the cover.
> > 
> > Any ideas? What do I need to provide?
> 
> I have Libretto 110CT ACPI BIOS data and it seems there is a LID device.
> I think you can configure sleep state for LID switch by something like
>  # sysctl hw.acpi.lid_switch_state=S3

I'll try that when I am happy to reboot. :-)

> maybe your dmesg and sysctl hw.acpi output would be helpful.

Enclosed.

M
-- 
o       Mark Murray
\_      FreeBSD Services Limited
O.\_    Warning: this .sig is umop ap!sdn

------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <6761.1006456543.2@grondar.za>
Content-Description: dmesg

Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #12: Sun Nov 11 11:17:12 GMT 2001
    root@grimreaper.grondar.org:/usr/src/sys/i386/compile/LIBRETTO
Preloaded elf kernel "/boot/kernel/kernel" at 0xc039c000.
Preloaded elf module "/boot/kernel/linux.ko" at 0xc039c0a8.
Preloaded elf module "/boot/kernel/sysvshm.ko" at 0xc039c154.
Preloaded elf module "/boot/kernel/sysvsem.ko" at 0xc039c200.
Preloaded elf module "/boot/kernel/sysvmsg.ko" at 0xc039c2ac.
Preloaded elf module "/boot/kernel/snd_mss.ko" at 0xc039c358.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc039c404.
Preloaded elf module "/boot/kernel/random.ko" at 0xc039c4b0.
Preloaded elf module "/boot/kernel/atspeaker.ko" at 0xc039c55c.
Preloaded elf module "/boot/kernel/if_ep.ko" at 0xc039c60c.
Preloaded elf module "/boot/kernel/nfsserver.ko" at 0xc039c6b8.
Preloaded elf module "/boot/kernel/nfsclient.ko" at 0xc039c768.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc039c818.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 233289407 Hz
CPU: Pentium/P55C (quarter-micron) (233.29-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x581  Stepping = 1
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 67174400 (65600K bytes)
avail memory = 61599744 (60156K bytes)
Intel Pentium detected, installing workaround for F00F bug
Using $PIR table, 5 entries at 0xc00f8e80
    ACPI-0569: *** Warning: Reference \\_SB_.BAT2 at AML c78 not found
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <TOSHIB 750     > on motherboard
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI"  frequency 3579545 Hz
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x18a8-0x18ab on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_acad0: <AC adapter> on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_pcib0: <Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <PCI bus> on acpi_pcib0
pci0: <display, VGA> at device 4.0 (no driver attached)
pci0: <simple comms> at device 17.0 (no driver attached)
atspeaker0 port 0x61 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x778-0x77a,0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
isa0: <ISA bus> on motherboard
atkbdc-: atkbdc0 already exists, skipping it
ppc-: ppc0 already exists, skipping it
sc-: sc0 already exists, skipping it
vga-: vga0 already exists, skipping it
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
pcic0: <Intel i82365SL-A/B> at port 0x3e0 iomem 0xd0000 on isa0
pcic0: Polling mode
pccard0: <PC Card bus (classic)> on pcic0
pccard1: <PC Card bus (classic)> on pcic0
pcm0: <OPL3-SAx (YMF719)> at port 0x530-0x537,0x370-0x371,0xf8c-0xf94,0xe0e irq 5 drq 1 flags 0xc100 on isa0
pmtimer0 on isa0
acpi_cpu0: set speed to 100.0%
acpi_cpu: CPU throttling enabled, 16 steps from 100% to 6.2%
ad0: 19077MB <TOSHIBA MK2016GAP> [38760/16/63] at ata0-master BIOSPIO
Mounting root from ufs:/dev/ad0s2a
pccard: card inserted, slot 0
ep0: <3Com Etherlink III 3C589> at port 0x240-0x24f irq 3 slot 0 on pccard0
ep0: Ethernet address 00:10:5a:2d:39:c6

------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <6761.1006456543.3@grondar.za>
Content-Description: hw.acpi

hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: S1
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.cpu.max_speed: 16
hw.acpi.cpu.current_speed: 16
hw.acpi.cpu.performance_speed: 16
hw.acpi.cpu.economy_speed: 8
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.tz0.temperature: 3452
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 3591
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3591
hw.acpi.thermal.tz0._AC0: -1
hw.acpi.thermal.tz0._AC1: -1
hw.acpi.thermal.tz0._AC2: -1
hw.acpi.thermal.tz0._AC3: -1
hw.acpi.thermal.tz0._AC4: -1
hw.acpi.thermal.tz0._AC5: -1
hw.acpi.thermal.tz0._AC6: -1
hw.acpi.thermal.tz0._AC7: -1
hw.acpi.thermal.tz0._AC8: -1
hw.acpi.thermal.tz0._AC9: -1
hw.acpi.acline: 1
hw.acpi.battery.life: 100
hw.acpi.battery.time: -1
hw.acpi.battery.state: 0
hw.acpi.battery.units: 1
hw.acpi.battery.info_expire: 5

------- =_aaaaaaaaaa0--
