From owner-freebsd-acpi@FreeBSD.ORG Wed Jun 4 16:00:43 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E53991065671 for ; Wed, 4 Jun 2008 16:00:43 +0000 (UTC) (envelope-from glorgster@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 9868B8FC21 for ; Wed, 4 Jun 2008 16:00:43 +0000 (UTC) (envelope-from glorgster@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so87701ywe.13 for ; Wed, 04 Jun 2008 09:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type; bh=G8kKOCinV30NzpoYD+LfNF35YT2faaq5JMpHF4ZyI5I=; b=EgLHF3Xy+TKkEI+JFnb/7B9xwATxwoj34dAiJFtczjb+drNTfWZM42su67Uhgz+k13 K334Wfc7dAW3WHhUO60IPDyLe6F7ysfyUA73sinKggK1eyN9PR87cW+4LaIeSgYbHMut ilEOgLcokDVYmeWFYwKDJ7qG0aLiaBg6XRAoQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=vdtkWGax3gKjDRiW/lRBwiUuSfkBJskpyneDktDxHWCe1TakqXq3YFwom+iJ2M4GQG 4qYCN/ovuNI0YmJOZc33Cr7jVORqlj0hISOsKTLVrQz2xGEXTrt43BoPibcYU7lWSpip MhY0lgcf6fV9SqfDRULewJ2EtR0RRkmtd2Gto= Received: by 10.142.134.20 with SMTP id h20mr19496wfd.188.1212593498463; Wed, 04 Jun 2008 08:31:38 -0700 (PDT) Received: by 10.143.167.12 with HTTP; Wed, 4 Jun 2008 08:31:38 -0700 (PDT) Message-ID: Date: Thu, 5 Jun 2008 02:31:38 +1100 From: "Alexey Tarasov" To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: mpieuchot@nolizard.org Subject: Re: [Vaio SZ5MN] Unable to Power-off 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: Wed, 04 Jun 2008 16:00:44 -0000 Hello, I've VGN-SZ4MRN, FreeBSD 8.0-CURRENT. There is also same problem, i've solved it by switching off lan power before power off. For this purpose I'm using modified acpi_sony (sources are here: dodologics.ru/20080425_acpi_sony.tar.bz2) before switching off i'm making: sysctl hw.vaio.power_lan=0; shutdown -p now And it powers off correctly. As far as I know SZ5 is much similar to SZ4, so it may help you also. --- Best regards, Alexey PS: If you don't want to use these sources (it also adds some events notifications, partial SPIC support and thus may be unstable), you may add line { "lanp", "GLNP", "LNPW", "Lan power"}, before last line in acpi_sony_name_list struct in acpi_sony.c: {NULL, NULL, NULL} It'll add handling of "get lan power" and "set lan power" ACPI methods for SNC. Sysctl oid will be named as other usual acpi_sony oids (something like: dev.acpi_sony.0.lanp). I'm sure it also must work (cause in modified sources it makes exactly the same). Hello, > > I am runing a FreeBSD 7-STABLE i386 box on a Sony Vaio VGN-SZ5MN and I > cannot totally power-off my laptop. > > When I switch to the acpi state 5 (halt, shutdown) everything > *seems* to work well. The OS shutdown correctly but after displaying : > > "Powering system off using ACPI" (/sys/dev/acpica/acpi.c:1678) > > the laptop remains powered (CPU cooler running, LCD display on), but > does not respond to any key. So I must unplug the battery and the > power cable to shut it down. > > I have already sent a message explaining my problem on this ml: > http://freebsd.monkey.org/freebsd-acpi/200804/msg00025.html > > But actually I am looking for some help to solve it. The fact is that > every other OS that I use, OpenBSD 4.3, NetBSD 4.0 and Linux 2.6, > manage well the ACPI (at least power-off and reboot). > > I have look at the Freebsd ACPI implementation and code. But I have a > actually no idea from where the problem could come. > > Regarding that all those OS are using almost the same ACPICA code I > guess that the problem should not be very complicated. > > Finally, should I post a PR? > > Thanks in advance, > > Martin >