From owner-freebsd-mobile@FreeBSD.ORG Thu Sep 10 17:28:30 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CB031065679 for ; Thu, 10 Sep 2009 17:28:30 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail3.es.net [IPv6:2001:400:4c01::2]) by mx1.freebsd.org (Postfix) with ESMTP id E25038FC23 for ; Thu, 10 Sep 2009 17:28:29 +0000 (UTC) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id n8AHSM12019206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 10 Sep 2009 10:28:23 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 9AF441CC37; Thu, 10 Sep 2009 10:28:22 -0700 (PDT) To: Matthias Apitz In-reply-to: Your message of "Thu, 10 Sep 2009 14:14:59 +0200." <20090910121459.GA5007@current.Sisis.de> Date: Thu, 10 Sep 2009 10:28:22 -0700 From: "Kevin Oberman" Message-Id: <20090910172822.9AF441CC37@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-09-10_17:2009-09-01, 2009-09-10, 2009-09-10 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-0909100100 Cc: Lars Engels , freebsd-mobile@freebsd.org Subject: Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2009 17:28:30 -0000 > Date: Thu, 10 Sep 2009 14:14:59 +0200 > From: Matthias Apitz > Sender: owner-freebsd-mobile@freebsd.org > > El día Wednesday, September 09, 2009 a las 09:46:36AM +1000, Mark Andrews escribió: > > > I call this on lid events which works even when X isn't running. :-) > > Would be nice, but ... > > > notify 10 { > > match "system" "ACPI"; > > match "subsystem" "Lid"; > > action "/etc/rc.lid $notify"; > > }; > > > > /etc/rc.lid: > > #!/bin/sh > > # deal with lid switch events > > > > if [ "x$1" = x0x00 ]; then > > /usr/bin/logger -t Lid Closed at `/bin/date` > > /sbin/sysctl hw.acpi.video.lcd0.active=0 > > else > > /usr/bin/logger -t Lid Opened at `/bin/date` > > /sbin/sysctl hw.acpi.video.lcd0.active=1 > > fi > > ... I don't have 'hw.acpi.video.lcd0.active', only: > > # sysctl -a | fgrep hw.acpi > 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: NONE > hw.acpi.suspend_state: S3 > hw.acpi.sleep_delay: 1 > hw.acpi.s4bios: 1 > hw.acpi.verbose: 0 > hw.acpi.disable_on_reboot: 0 > hw.acpi.handle_reboot: 0 > hw.acpi.reset_video: 0 > hw.acpi.acline: 1 > hw.acpi.battery.life: 80 > hw.acpi.battery.time: -1 > hw.acpi.battery.state: 2 > hw.acpi.battery.units: 2 > hw.acpi.battery.info_expire: 5 > hw.acpi.thermal.min_runtime: 0 > hw.acpi.thermal.polling_rate: 10 > hw.acpi.thermal.user_override: 0 > hw.acpi.thermal.tz0.temperature: 42,5C > hw.acpi.thermal.tz0.active: -1 > hw.acpi.thermal.tz0.passive_cooling: 0 > hw.acpi.thermal.tz0.thermal_flags: 0 > hw.acpi.thermal.tz0._PSV: -1 > hw.acpi.thermal.tz0._HOT: -1 > hw.acpi.thermal.tz0._CRT: 107,0C > hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 > hw.acpi.thermal.tz0._TC1: -1 > hw.acpi.thermal.tz0._TC2: -1 > hw.acpi.thermal.tz0._TSP: -1 > hw.acpi.cpu.cx_lowest: C1 > # sysctl -a | fgrep lcd0 Are you loading acpi_video? Even if you do, if you have a Radeon, I am not sure it will turn off the back-light, but, if this is an issue, you can install the radeontool and add the appropriate commands to devd.conf in addition to the sysctl. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751