From owner-freebsd-acpi@FreeBSD.ORG Thu Mar 6 00:01:20 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 A47AB1065671 for ; Thu, 6 Mar 2008 00:01:20 +0000 (UTC) (envelope-from vishketan@yahoo.com) Received: from n8c.bullet.mail.mud.yahoo.com (n8c.bullet.mail.mud.yahoo.com [209.191.87.106]) by mx1.freebsd.org (Postfix) with SMTP id 702778FC1D for ; Thu, 6 Mar 2008 00:01:20 +0000 (UTC) (envelope-from vishketan@yahoo.com) Received: from [68.142.194.243] by n8.bullet.mail.mud.yahoo.com with NNFMP; 06 Mar 2008 00:01:19 -0000 Received: from [209.191.119.153] by t1.bullet.mud.yahoo.com with NNFMP; 06 Mar 2008 00:01:19 -0000 Received: from [127.0.0.1] by omp100.mail.mud.yahoo.com with NNFMP; 06 Mar 2008 00:01:19 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 736275.28330.bm@omp100.mail.mud.yahoo.com Received: (qmail 35002 invoked by uid 60001); 6 Mar 2008 00:01:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=qVfLAlCOExRiZ8mzt1IAkul0usbDl8AkNGA8d2390WeDf7A1MDzCzKHoMXte+A2arQVjiA7gnfFnSFzh2yLbUyn/peOCfsyIm0Q4/QOtheBvbagdYLrqps4Mj5JGiLF27VeVGR6vlq2/48XSkCpGLdzs56WMkVVxs6fOg/rjLS0=; X-YMail-OSG: hJANcRoVM1moo72rtKjMzb0NWiaKhru4NGqCQ6aciOM1CQ7N8y87z.A_Qg.7.VWaGsV2IVST6HyJpYrrtdGY7VW7aUF0Wz1Y_ndVc2yUEUI8p3s- Received: from [203.143.165.94] by web31704.mail.mud.yahoo.com via HTTP; Wed, 05 Mar 2008 16:01:12 PST X-Mailer: YahooMailRC/902.35 YahooMailWebService/0.7.162 Date: Wed, 5 Mar 2008 16:01:12 -0800 (PST) From: Vishwanathan S V N To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <860839.34422.qm@web31704.mail.mud.yahoo.com> Cc: Mitsuru IWASAKI Subject: Re: Sony Vaio VGN SZ483NC warm docking issues 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: Thu, 06 Mar 2008 00:01:20 -0000 Hi, > > I used load acpi_dock.ko and then boot as suggested by you but the problem still persists. I can undock successfully but cannot redock. > Hmm, your \_SB.DOCK._STA method always seems to return zero (i.e. dock > status method indicates that the system is undocked all the time) > that's why the same problem occurs on Linux kernel, I guess. It looks like your guess might be right. > Case 1: boot the docked system. > Then obtain dock device information by sysctl and dmesg command. > # sysctl dev.acpi_dock > acpi_dock-boot.txt > # dmesg > dmesg-boot.txt http://users.rsise.anu.edu.au/~vishy/FreeBSD/acpi_dock-boot.txt http://users.rsise.anu.edu.au/~vishy/FreeBSD/dmesg-boot.txt > Case 3: boot the docked system, undock and redock. > sysctl command after redocking. > # sysctl dev.acpi_dock > acpi_dock-redocked.txt > # dmesg > dmesg-redocked.txt http://users.rsise.anu.edu.au/~vishy/FreeBSD/acpi_dock-redocked.txt http://users.rsise.anu.edu.au/~vishy/FreeBSD/dmesg-redocked.txt > Case 2: boot the undocked system and dock. > sysctl command after docking. > # sysctl dev.acpi_dock > acpi_dock-docked.txt > # dmesg > dmesg-docked.txt http://users.rsise.anu.edu.au/~vishy/FreeBSD/acpi_dock-docked.txt http://users.rsise.anu.edu.au/~vishy/FreeBSD/dmesg-docked.txt I did Case 1 and Case 3 in the same boot i.e. I booted docked then obtained the sysctl and dmesg information. Then undocked and redocked and obtained the information again. I hope that is OK. If I understand correctly this method from the decompiled dsdt might be at fault: Method (_STA, 0, NotSerialized) { If (LEqual (\_SB.PCI0.LPCB.EC0.ECOK, 0x00)) { If (LAnd (PHSB (0xD4, 0x9E), 0x40)) { Return (0x0F) } Else { Return (0x00) } } Else { If (\_SB.PCI0.LPCB.EC0.IUSE) { Return (0x0F) } Else { Return (0x00) } } } I can see from the dmesg that when I boot docked then this method returns 0x0F as expected. But when I redock it seems to return 0x00. Can we figure out which of the two cases if(LEqual ...) or else is being triggered when I redock or dock after booting outside? vishy ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping