From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 28 02:24:04 2013 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E0D0570A; Mon, 28 Jan 2013 02:24:04 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id B35681DD; Mon, 28 Jan 2013 02:24:04 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi5so1222104pad.27 for ; Sun, 27 Jan 2013 18:23:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=CiRq+N4m3GLkopg2jqO8HVua/TEfux9eoqszaLZNdkw=; b=hpmBJSjyDf7GoNRQhm6QfTA5v2X1a2bv2EMYiLnI+z2zO55in9nQpaKlD3KFEeRidG nAjqSZ170fm7r5iP+uEcXm8mmJW0oKXe15QcfxtIqAAZUsprrwvyHGvHAqB7N6OoNUPG rubVDyYPuD1gAyA5YgeuN17fFmoWDTRxAphgNfUmqZc7WseznAKmliJNtN9Nk/s4+Unb be8KPR0G1IrcuzMR9D2DZRHYCG0l/LXEHkgyugWN/uYY4ipeXNxzRIMEfWZP93hAGOZS pjCsWcAYCxpNu8GANF3ibukqd6xc2b1KzN/5i0PmBE24+iZm7PUDNzY+6DOzH6UCJ6VO J7dg== MIME-Version: 1.0 X-Received: by 10.68.238.39 with SMTP id vh7mr34201559pbc.6.1359339838461; Sun, 27 Jan 2013 18:23:58 -0800 (PST) Received: by 10.67.2.65 with HTTP; Sun, 27 Jan 2013 18:23:58 -0800 (PST) In-Reply-To: <20130128072023.63939e6f@X220.ovitrap.com> References: <20130125140953.GA1328@glenbarber.us> <20130125141202.GB1328@glenbarber.us> <20130128072023.63939e6f@X220.ovitrap.com> Date: Sun, 27 Jan 2013 18:23:58 -0800 Message-ID: Subject: Re: what is required to support a new laptop? From: Kevin Oberman To: Erich Dollansky Content-Type: text/plain; charset=UTF-8 Cc: freebsd-acpi@freebsd.org, Glen Barber 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: Mon, 28 Jan 2013 02:24:04 -0000 On Sun, Jan 27, 2013 at 4:20 PM, Erich Dollansky wrote: > Hi, > > On Sun, 27 Jan 2013 18:24:36 -0500 > Eitan Adler wrote: > >> 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' >> >> > > I can confirm that this works on an X220: > > acpi_call -p '\VBRC' -i $value > > It also works lower case for me. > > Erich Probably won't help, but can you confirm that acpi_call is loaded (kldstat)? -- R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com