From owner-freebsd-acpi@freebsd.org Wed Oct 28 11:55:58 2015 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ADDE8A1FE27 for ; Wed, 28 Oct 2015 11:55:58 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from smtp.rlwinm.de (smtp.rlwinm.de [IPv6:2a01:4f8:201:31ef::e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 76FA510CD for ; Wed, 28 Oct 2015 11:55:58 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from crest.local (unknown [87.253.189.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.rlwinm.de (Postfix) with ESMTPSA id 2856217BD4 for ; Wed, 28 Oct 2015 12:55:55 +0100 (CET) Subject: Re: brightness control stopped working To: freebsd-acpi@freebsd.org References: <86vb9s9eva.fsf@posteo.de> From: Jan Bramkamp Message-ID: <5630B7CA.4040300@rlwinm.de> Date: Wed, 28 Oct 2015 12:55:54 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <86vb9s9eva.fsf@posteo.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2015 11:55:58 -0000 On 27/10/15 22:32, aeuii@posteo.de wrote: > Hello freebsd-acpi@, > > I have lenovo ThinkPad Edge E145 laptop and the LCD brightness control > stopped working somewhere between 10.2-RELEASE and 10.2-RELEASE-p6. > > I used to adjust the brightness using Fn-☼- and Fn-☼+ buttons and it > always worked (during boot, in X, text console). Now, it works only > in the loader, before the system boots. > > I tried alternative methods listed below, but non had any effect. > > Please help! ;) > > Thank you in advance, > Stefan > > > ** acpi_call > > acpi_call -v -p '\VBRU' > > Path: \VBRU > Number of arguments: 0 > ioctl: Device not configured > > no effect Is the acpi_call kernel module loaded? > ** acpi_ibm > > sysctl dev.acpi_ibm.0.lcd_brightness=7 > > values change, but no effect > > > ** acpi_video > > sysctl hw.acpi.video.lcd0.brightness=50 > hw.acpi.video.lcd0.brightness: 50 -> # > > no effect > > > pressing Fn+(sun)+- buttons has no effect, but logs: > > can't evaluate \134_SB_.PCI0.VGA_.LCD_._BQC - AE_NOT_FOUND If the buttons generate events for devd you can execute whatever commands work for you. `cat /var/run/devd.pipe` logs all events consumed by devd from /dev/devctl. If the acpi_ibm module generates events for the function keys the output of said command will log them. The key-value pairs contain all the information needed to write matching event handlers in devd.conf. Did you try xbacklight? The changes between 10.2-RELEASE and 10.2-RELEASE-p6 shouldn't break your backligh controls. However lots of ports changed in that timeframe and maybe one of those changes e.g. a X.org driver update caused your problem.