From owner-freebsd-acpi@FreeBSD.ORG Sun Jan 27 23:25:14 2013 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6D750917 for ; Sun, 27 Jan 2013 23:25:14 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx1.freebsd.org (Postfix) with ESMTP id D1A02BF7 for ; Sun, 27 Jan 2013 23:25:13 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id l12so3099179lbo.5 for ; Sun, 27 Jan 2013 15:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=NPCxEjZWT/7OR74l/4TDL2AGVaZVaGKnkMEku7Cqf6E=; b=magtbD0uGnOyOmNbwf96uaPB51JpkMfaD/cR1dbCEPVUwSWSbiYST0PNhhvOkkyUy+ 5/tFwYVQq/Gi8gt0/Z3dTZXJ8NK2DX8arLrjugBXmUGxf3bgkWbuYvxwJU+LC8b4ahp8 I0vUjjoLPbJbpBJ8Hprws/F+X8wBlH15unOa4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=NPCxEjZWT/7OR74l/4TDL2AGVaZVaGKnkMEku7Cqf6E=; b=dgQkaBR6Lrg3TvqzB00O+gLrEkogGuQlXGeMZhIACbPMlweAklBDidGmGED19LyP8l NzfTOdzA8poHI7Wf+OFyAH1xbBBxly7yAY4CRHei2YjX60ixsMqvLAAwErnetoESNh9N SHWKUJzH3mjKGsojeNOo8jHr/L06Gf3L3kWj5fo7tSHpJK8AfUB5cZpjnLBjqC3nCct5 9+s2mddX6SjhYXvqM9T3zq1dBzX7oxF5ot7zG9HNorRjAEEZlrhYggslS4GPH5PbhmhT 1dARNbqnTmlv7Ez9YuEKAXLoUYqen6gGw2BofMkfcIQUWb/eVJcTX8RK2ON+1oPpfWeC JCEg== X-Received: by 10.112.87.66 with SMTP id v2mr2917154lbz.130.1359329106851; Sun, 27 Jan 2013 15:25:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.100.164 with HTTP; Sun, 27 Jan 2013 15:24:36 -0800 (PST) In-Reply-To: References: <20130125140953.GA1328@glenbarber.us> <20130125141202.GB1328@glenbarber.us> From: Eitan Adler Date: Sun, 27 Jan 2013 18:24:36 -0500 Message-ID: Subject: Re: what is required to support a new laptop? To: Kevin Oberman Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQndm72TwfJhLIR0mUiBHL02umCoxsaWpF/e9nhqGbGPGTRInGhrop8GKS1/jrcK7Z6VkcOc Cc: Glen Barber , freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 23:25:14 -0000 On 27 January 2013 12:59, Kevin Oberman wrote: > On Fri, Jan 25, 2013 at 9:25 PM, Eitan Adler wrote: >> On 25 January 2013 14:51, Kevin Oberman wrote: >>> There are several threads in the archives of acpi@ and mobile@ >>> discussing this. Most things are pretty easy. Use xev to find the >>> events generated by the volume buttons. >> >> I'm handling the volume keys with xbindkeys. >> >>> Mute and the ThinkLight (if >>> your system has one) should work as is. >> >> Mute does not function - I am using xbindkeys to handle it. The >> "video" key generates no event. >> >>> Brightness is a bit bigger issue as Lenovo has completely revamped it >>> These buttons don't generate events. :-( >> >> Where *should* they be handled? How do they work on windows? >> >> FWIW they seem to change hw.acpi.video.brightness, but change nothing >> visible on the screen. >> >>> You can install the acpi_call >>> port and use it to set the brightness, but it is a pain as it does not >>> allow for setting incremental changes, only absolute values.(16 of >>> them). >> >> Any pointers for what to look at? I have no idea what I'm doing w.r.t. >> computers ^W ACPI. > > Install sysutils/acpi_call > kldload acpi_call > acpi_call -p '\VBRC' -i [0-15] > > There seem to be some differences on the range, but in my T530 0=off > and 15=full. > > Unfortunately, the brightness functions do not generate X events and I > have not seen any posts on how to tie them to anything to adjust > brightness. [2881 root@gravity ~ ]#acpi_call -p '\VBRC' -i 1 Unknown object type '0' [2882 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 2 Unknown object type '0' [2883 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 0 Unknown object type '0' [2884 root@gravity ~ !5!]#acpi_call -p '\VBRC' -i 15 Unknown object type '0' -- Eitan Adler