From owner-freebsd-new-bus Tue Oct 15 10:59:46 2002 Delivered-To: freebsd-new-bus@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AB9437B404 for ; Tue, 15 Oct 2002 10:59:45 -0700 (PDT) Received: from mail0.lsil.com (mail0.lsil.com [147.145.40.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8214E43EAF for ; Tue, 15 Oct 2002 10:59:44 -0700 (PDT) (envelope-from vanis@lsil.com) Received: from mhbs.lsil.com (mhbs.lsil.com [147.145.31.100]) by mail0.lsil.com (8.12.4/8.12.4) with ESMTP id g9FHlYMq021404 for ; Tue, 15 Oct 2002 10:59:40 -0700 (PDT) Received: from atl1.se.lsil.com by mhbs.lsil.com with ESMTP for new-bus@FreeBSD.ORG; Tue, 15 Oct 2002 10:59:38 -0700 Received: by EXA-ATLANTA.se.lsil.com with Internet Mail Service (5.5.2653.19) id ; Tue, 15 Oct 2002 13:59:37 -0400 Message-Id: <0E3FA95632D6D047BA649F95DAB60E57015291E7@EXA-ATLANTA.se.lsil.com> From: "Sabapathi, Vanishree" To: new-bus@FreeBSD.ORG Subject: How To invoke device_shutdown/ device_resume method for testing Date: Tue, 15 Oct 2002 13:59:33 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, In my driver the device_shutdown/device_resume methods need to be tested. What should I do to get these methods invoked. Is there any utility like camcontrol which would allow me to test these methods. I understand that the device suspends and resumes for power saving(correct me if I am wrong)..but how do i get to invoke these methods for testing purpose. I tried using the KDE preferences to set the Energy option. There I set the time to suspend to 5 minutes. But KDE gives an error saying "KLibrary: The library kcm_energy does not offer an init_kcm_energy function".. -Vani. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Tue Oct 15 11:55:12 2002 Delivered-To: freebsd-new-bus@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37BDD37B401 for ; Tue, 15 Oct 2002 11:55:11 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2600D43E4A for ; Tue, 15 Oct 2002 11:55:10 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g9FIt8pk031794; Tue, 15 Oct 2002 12:55:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 15 Oct 2002 12:54:50 -0600 (MDT) Message-Id: <20021015.125450.63054051.imp@bsdimp.com> To: vanis@lsil.com Cc: new-bus@FreeBSD.ORG Subject: Re: How To invoke device_shutdown/ device_resume method for testing From: "M. Warner Losh" In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E57015291E7@EXA-ATLANTA.se.lsil.com> References: <0E3FA95632D6D047BA649F95DAB60E57015291E7@EXA-ATLANTA.se.lsil.com> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <0E3FA95632D6D047BA649F95DAB60E57015291E7@EXA-ATLANTA.se.lsil.com> "Sabapathi, Vanishree" writes: : In my driver the device_shutdown/device_resume methods need to be : tested. What should I do to get these methods invoked. Is there any utility : like camcontrol which would allow me to test these methods. : I understand that the device suspends and resumes for power saving(correct : me if I am wrong)..but how do i get to invoke these methods for testing : purpose. Suspend the laptop. Or, if your desktop supports it, suspend your desktop. There's not really a 'for testing purposes' jig that lets you power down devices. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message