Date: Fri, 12 Feb 2010 21:12:34 +0100 (CET) From: Daniel Walter <d.walter@0x90.at> To: Jung-uk Kim <jkim@FreeBSD.org> Cc: freebsd-acpi@FreeBSD.org, Daniel Walter <d.walter@0x90.at> Subject: Re: Call for testers acpi_dell Message-ID: <alpine.BSF.2.00.1002122110190.1413@mini-beast.lan> In-Reply-To: <201002121448.20071.jkim@FreeBSD.org> References: <alpine.BSF.2.00.1002121840460.1675@mini-beast> <201002121409.49779.jkim@FreeBSD.org> <alpine.BSF.2.00.1002122027090.1675@mini-beast> <201002121448.20071.jkim@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 12 Feb 2010, Jung-uk Kim wrote: > On Friday 12 February 2010 02:37 pm, Daniel Walter wrote: >> On Fri, 12 Feb 2010, Jung-uk Kim wrote: >>> On Friday 12 February 2010 01:33 pm, Daniel Walter wrote: >>>> On Fri, 12 Feb 2010, Jung-uk Kim wrote: >>>>> On Friday 12 February 2010 12:48 pm, Daniel Walter wrote: >>>>>> Hi all, >>>>>> >>>>>> I've written a small kernel driver to support Dell Mini 1011 >>>>>> (aka Dell Mini 10v) Brightness Controll Buttons. Since I do >>>>>> not have any other Dell Notebooks, I'd like you to test this >>>>>> module on other Dell Notebooks as well. >>>>>> >>>>>> This driver is in an early stage, but future releases will >>>>>> also support the rfkill switch and CRT switch. >>>>>> >>>>>> Currently following features are implemented: >>>>>> * Increase / Decrease Brightness >>>>>> * Change brightness if AC is connected / disconnected >>>>>> >>>>>> TODO: >>>>>> * Add CRT Support >>>>>> * Add Sysctl to define brightness levels for eco and ac >>>>>> powerprofile * Add Support for RF-Kill Switch >>>>>> >>>>>> Any suggestions are welcome >>>>> >>>>> I just quickly glanced at it but I failed see anything quite >>>>> specific to Dell laptops except for "TODO: Add support for >>>>> RF-Kill Switch". acpi_video(4) should be able to do what you >>>>> want. Am I missing something here? >>>>> >>>>> Jung-uk Kim >>>> >>>> hi, >>>> >>>> Yes it is possible to control the brightness using acpi_video(4) >>>> via sysctl but there is no support for the FN-Buttons. This >>>> module adds the support for those buttons. >>> >>> I see. However, my point is the probe function does not seem >>> specific to Dell laptops. In fact, you are just checking _BCL >>> transition, i.e., effectively it just makes a generic acpi_video >>> notify handler for brightness change. >>> >>> Jung-uk Kim >> >> Oh, I've completly overlooked this one. Sorry for that, I should >> replace the probing with a Dell specific probing instead. Do you >> have any suggestions to this one ? > > It totally depends on DSDT of your laptop model and you will have to > maintain the list of these ACPI handles, unfortunately. Please see > acpi_asus.c for example. > > If you are interested in generic acpi_video(4) enhancement, you just > need to extend acpi_video.c to get these notifications, i.e., 0x86 > and 0x87. FYI, acpi_video can only handle 0x80 and 0x81 events ATM. > Please read ACPI specification Appendix B. Video Extensions, > especially B.6 and B.7 are what you are looking for. > > Jung-uk Kim Hi I'll take a look at my DSDT again ... I've also will take a look at Appendix B of the current ACPI spec to see if 0x86 and 0x87 are OEM or part of the standard. If they are not completly out of spec I'll patch acpi_video(4) and send it again to the list. thanks for your help and hints. Daniel WALTER
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1002122110190.1413>