From owner-freebsd-amd64@FreeBSD.ORG Sat Aug 17 18:20:00 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C7567411 for ; Sat, 17 Aug 2013 18:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A584B24C8 for ; Sat, 17 Aug 2013 18:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7HIK0Mw095929 for ; Sat, 17 Aug 2013 18:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7HIK0nx095909; Sat, 17 Aug 2013 18:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 17 Aug 2013 18:20:00 GMT Resent-Message-Id: <201308171820.r7HIK0nx095909@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Petermann Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CFAAF40A for ; Sat, 17 Aug 2013 18:19:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AC29924C2 for ; Sat, 17 Aug 2013 18:19:32 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7HIJWbe094162 for ; Sat, 17 Aug 2013 18:19:32 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7HIJWvW094158; Sat, 17 Aug 2013 18:19:32 GMT (envelope-from nobody) Message-Id: <201308171819.r7HIJWvW094158@oldred.freebsd.org> Date: Sat, 17 Aug 2013 18:19:32 GMT From: Matthias Petermann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/181357: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) X-Mailman-Approved-At: Sun, 18 Aug 2013 02:21:51 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2013 18:20:00 -0000 >Number: 181357 >Category: amd64 >Synopsis: LCD Brightness Control not working on Lenovo X121e (ACPI issue?) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 17 18:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Matthias Petermann >Release: 10.0-CURRENT >Organization: >Environment: FreeBSD thinkpad.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r252853: Sat Jul 6 02:01:48 CEST 2013 >Description: The X121e is expected to increase/decrease LCD brightness by Fn+F9/Fn+F8. This is not working in FreeBSD 9.1 and FreeBSD 10.0. Direct ACPI calls (via sysutils/acpi_call port) provide a workaround. A comprehensive solution would be appreciated. I think a solution for this problem will help not just X121e users but any user of more recent thinkpads. I saw similiar postings in freebsd-current for X230 and X220 as well. I have FreeBSD 10.0-CURRENT installed permanently to my X121e and am willing to test / investigate at any time. Please advise if there is anything I could provide right now. The affected model is a Lenovo X121e (Model 3045-79G, i3, HD3000). Details: http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/dmesg.txt http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/devinfo.txt http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/mpeterma-lenovo_x121e_i3.asl http://www.petermann-it.de/files/freebsd-pr-x121e-acpi/sysctl_hw_acpi.txt >How-To-Repeat: I tried: # acpi_video / sysctl hw.acpi.video.lcd0.brightness This is what is working on most of the other laptops I tried it. root@thinkpad:/usr/home/mpeterma # kldload acpi_video acpi_video0: on vgapci0 root@thinkpad:/usr/home/mpeterma # sysctl -a |grep bright hw.acpi.video.lcd0.brightness: 35 root@thinkpad:/usr/home/mpeterma # sysctl hw.acpi.video.lcd0.brightness=100 hw.acpi.video.lcd0.brightness: 35 -> 100 Result: LCD brightness doesn't change after sysctl call, Fn+F9/Fn+F8 not working. # acpi_ibm / sysctl dev.acpi_ibm.0.lcd_brightness This is what worked on some older Thinkpads. root@thinkpad:/usr/home/mpeterma # kldload acpi_ibm acpi_ibm0: on acpi0 root@thinkpad:/usr/home/mpeterma # sysctl -a | grep bright hw.acpi.video.lcd0.brightness: 90 dev.acpi_ibm.0.lcd_brightness: 7 root@thinkpad:/usr/home/mpeterma # root@thinkpad:/usr/home/mpeterma # sysctl dev.acpi_ibm.0.lcd_brightness=1 dev.acpi_ibm.0.lcd_brightness: 7 -> 1 Result: LCD brightness doesn't change after sysctl, Fn+F9/Fn+F8 still not working. # Activate sysctl dev.acpi_ibm.0.events root@thinkpad:/usr/home/mpeterma # sysctl -a | grep dev.acpi_ibm.0.availmask dev.acpi_ibm.0.availmask: 67733756 root@thinkpad:/usr/home/mpeterma # sysctl dev.acpi_ibm.0.events=1 dev.acpi_ibm.0.events: 0 -> 1 root@thinkpad:/usr/home/mpeterma # sysctl dev.acpi_ibm.0.handlerevents='0x03 0x04 0x10 0x11' Result: Fn+F9/Fn+F8 still not working. # Direct ACPI calls with acpi_call root@thinkpad:/usr/home/mpeterma # cd /usr/ports/sysutils/acpi_call/ root@thinkpad:/usr/ports/sysutils/acpi_call # make install clean root@thinkpad:/usr/ports/sysutils/acpi_call # kldload acpi_call root@thinkpad:/usr/ports/sysutils/acpi_call # acpi_call -p '\VBRU' root@thinkpad:/usr/ports/sysutils/acpi_call # acpi_call -p '\VBRD' Result: on each acpi_call, \VBRU increases and \VBRD decreases LCD brightness by one step. Fn+F9/Fn+F8 still not working. >Fix: >Release-Note: >Audit-Trail: >Unformatted: