From owner-freebsd-acpi@FreeBSD.ORG Mon Nov 20 16:21:29 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4486216A40F for ; Mon, 20 Nov 2006 16:21:29 +0000 (UTC) (envelope-from hummel@pasteur.fr) Received: from electre.pasteur.fr (electre.pasteur.fr [157.99.64.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id D393743D96 for ; Mon, 20 Nov 2006 16:20:29 +0000 (GMT) (envelope-from hummel@pasteur.fr) Received: from parmesan.sis.pasteur.fr (parmesan.sis.pasteur.fr [157.99.64.42]) by electre.pasteur.fr (8.12.11/8.12.11) with ESMTP id kAKGKjSw495018 for ; Mon, 20 Nov 2006 17:20:45 +0100 (CET) Received: by parmesan.sis.pasteur.fr (Postfix, from userid 1931) id B3984170E4; Mon, 20 Nov 2006 17:20:43 +0100 (CET) Date: Mon, 20 Nov 2006 17:20:43 +0100 From: Thomas Hummel To: freebsd-acpi@freebsd.org Message-ID: <20061120162043.GA22980@parmesan.sis.pasteur.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Subject: ACPI on Sony VAIO SZ2M X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2006 16:21:29 -0000 Hello, I installed FreeBSD 6.2-RC1 on a Sony Vaio SZ2M/B i386 machine. I can set up the LCD brightness through the acpi_sony.ko kernel module. However, I cannot get the system to resume (through the acpi.ko module) after any suspend state supported (I have to remove the battery or the laptop won't boot again after power button is pressed). I read the ACPI section of the handbook and tried the following : . upgrading my bios to the latest version Sony provided . shutting down all network interfaces before systl to suspend . adding hw.acpi.disable_on_poweroff="0" in loader.conf . adding hw.acpi.disable_on_poweroff="1" in loader.conf . adding hw.acpi.osname="Windows 2001" in loader.conf . adding hw.acpi.osname="Windows 2001 SP2" in loader.conf . adding hw.acpi.osname="Microsoft Windows" in loader.conf . adding hw.acpi.osname="Linux" in loader.conf . dumping my DSDT table, disassembling AML to ASL and recompiling it : it compiled perfectly with 0 error and 0 warnings -> None of these worked. Below is the output of sysctl hw.acpi dmesg after a boot -v kldstat [Unfortunately, I have no URL for now to store my ASL.] I noted the "acpi_bus_number: can't get _ADR" error message. Note : ACPI on this laptop worked perfectly (suspend/hibernate...etc...) on Ubuntu 6.10. Thanks in advance for any help or clue... -- Thomas Hummel hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S3 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.cpu.cx_supported: C1/1 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 47.9C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 94.9C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 99.9C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz1.temperature: 49.9C hw.acpi.thermal.tz1.active: -1 hw.acpi.thermal.tz1.passive_cooling: 0 hw.acpi.thermal.tz1.thermal_flags: 0 hw.acpi.thermal.tz1._PSV: 99.8C hw.acpi.thermal.tz1._HOT: -1 hw.acpi.thermal.tz1._CRT: 100.8C hw.acpi.thermal.tz1._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz2.temperature: 44.9C hw.acpi.thermal.tz2.active: -1 hw.acpi.thermal.tz2.passive_cooling: 0 hw.acpi.thermal.tz2.thermal_flags: 0 hw.acpi.thermal.tz2._PSV: 99.8C hw.acpi.thermal.tz2._HOT: -1 hw.acpi.thermal.tz2._CRT: 100.8C hw.acpi.thermal.tz2._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.battery.life: 83 hw.acpi.battery.time: -1 hw.acpi.battery.state: 2 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 hw.acpi.acline: 1 Copyright (c) 1992-2006 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-RC1 #0: Thu Nov 16 05:12:08 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Genuine Intel(R) CPU T2300 @ 1.66GHz (1666.80-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6e8 Stepping = 8 Features=0xbfe9fbff Features2=0xc189,> AMD Features=0x100000 Cores per package: 2 real memory = 1063780352 (1014 MB) avail memory = 1031761920 (983 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 cpu1: on acpi0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 2.0 (no driver attached) pci0: at device 2.1 (no driver attached) pci0: at device 27.0 (no driver attached) pcib1: irq 16 at device 28.0 on pci0 pci2: on pcib1 pcib2: irq 17 at device 28.1 on pci0 pci6: on pcib2 wpi0: mem 0xdc100000-0xdc100fff irq 17 at device 0.0 on pci6 bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. bus_dmamem_alloc failed to align memory properly. channel 1 pwr1 0x0084 pwr2 0x0084 channel 2 pwr1 0x0081 pwr2 0x0082 channel 3 pwr1 0x008b pwr2 0x008b channel 4 pwr1 0x0089 pwr2 0x008b channel 5 pwr1 0x0000 pwr2 0x0000 channel 6 pwr1 0x0085 pwr2 0x0085 channel 7 pwr1 0x0083 pwr2 0x0083 channel 8 pwr1 0x0084 pwr2 0x0085 channel 9 pwr1 0x0085 pwr2 0x0085 channel 10 pwr1 0x0000 pwr2 0x0000 channel 11 pwr1 0xffff pwr2 0xffff channel 12 pwr1 0xfffe pwr2 0xfffe channel 13 pwr1 0xffff pwr2 0xffff channel 14 pwr1 0xfffe pwr2 0xfffe wpi0: Ethernet address: 00:13:02:3f:9b:56 pcib3: irq 18 at device 28.2 on pci0 pci7: on pcib3 myk0: port 0x3000-0x30ff mem 0xd8000000-0xd8003fff irq 18 at device 0.0 on pci7 myk0: Ethernet address: 00:13:a9:2b:35:8e pcib4: irq 19 at device 28.3 on pci0 pci8: on pcib4 uhci0: port 0x1820-0x183f irq 19 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1840-0x185f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1860-0x187f irq 19 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x1880-0x189f irq 19 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xdc544000-0xdc5443ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered pcib5: at device 30.0 on pci0 pci9: on pcib5 cbb0: at device 4.0 on pci9 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: <1394 Open Host Controller Interface> mem 0xdc005000-0xdc0057ff,0xdc000000-0xdc003fff irq 21 at device 4.1 on pci9 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 08:00:46:03:02:1e:46:09 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 0a:00:46:1e:46:09 fwe0: Ethernet address: 0a:00:46:1e:46:09 fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc000ffc0, gen=2, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pci9: at device 4.2 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1810-0x181f at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port 0x18d0-0x18d7,0x18c4-0x18c7,0x18c8-0x18cf,0x18c0-0x18c3,0x18b0-0x18bf mem 0xdc544400-0xdc5447ff irq 22 at device 31.2 on pci0 ata2: on atapci1 ata3: on atapci1 pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 acpi_tz1: on acpi0 acpi_tz2: on acpi0 acpi_sony0: on acpi0 acpi_sony0: PID 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model GlidePoint, device ID 0 battery0: on acpi0 acpi_acad0: on acpi0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcffff,0xdc000-0xdffff on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec acd0: DVDR at ata0-master UDMA33 ad4: 76319MB at ata2-master SATA150 SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad4s1a Id Refs Address Size Name 1 14 0xc0400000 7053dc kernel 2 1 0xc0b06000 6424 snd_ich.ko 3 2 0xc0b0d000 3bf54 sound.ko 4 1 0xc0b49000 3219c if_myk.ko 5 2 0xc0b7c000 24d8 libmbpool.ko 6 1 0xc0b7f000 b538 if_wpi.ko 7 2 0xc0b8b000 2d60 firmware.ko 8 1 0xc0b8e000 2620 acpi_sony.ko 9 2 0xc0b91000 59f20 acpi.ko