Hi, Maik Broemme <mbroemme@xxxxxxxxxxxxx> wrote: > Hi, > > Maik Broemme <mbroemme@xxxxxxxxxxxxx> wrote: > > Hi, > > > > i have a couple of small questions. :) I own an IBM ThinkPad X40 and a > > Lenovo ThinkPad X61 Tablet and just hacked somewhere around in the > > 'thinkpad-acpi-0.16-20070904' sources. > > > > I started my work on adding support for the brightness setup which has > > 16 level on the newer X61/X61s and X61 Tablet laptops. Well my problem > > is (or i am to stupid to understand) that setting the brightness level > > with TP_CMOS_BRIGHTNESS_UP did not set it until level 16. Is this a > > limitation of the thinkpad-acpi itself or somewhere inside the NVRAM? > > > > As notice: With brightness mode 1 (which reads data from EC via > > acpi_ec_read) the setting of any brightness level is not working. > > > > Maybe someone can give me a hint where i can start to track this issue > > and how to solve it. :) > > > > okay some other information, i am still able to set at least 15 of the > 16 levels via '/proc/acpi/video/VID/LCD0/brightness' It shows: > > root@bart:~# cat /proc/acpi/video/VID/LCD0/brightness > levels: 100 100 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 100 > current: 90 > > If i count all values (and the 100 only one time) it are 16 levels. > Well the level 100 i can not set (kernel is stock 2.6.22.6) Well this > looks like an ACPI bug for me, or a broken firmware. If do the > following: > > root@bart:~# for i in 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 ; do sleep 1s ; echo "${i}" > /proc/acpi/video/VID/LCD0/brightness ; done > > i can set at least 15 brightness level. I think the best solution would > be to use the ACPI video driver to set the brightness, did anyone agree > or disagree? :) > > If i am correct thinkpad-acpi should trac the keypress event and then > trigger some acpi function to set the brightness level. > Sorry a last thing which should be mentioned. :) The ACPI video driver correctly updates the CMOS NVRAM, but thinkpad-acpi can only handle values until acpi-video value 55, for example: root@bart:~# echo 20 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 0 root@bart:~# echo 25 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 1 root@bart:~# echo 30 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 2 root@bart:~# echo 35 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 3 root@bart:~# echo 40 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 4 root@bart:~# echo 45 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 5 root@bart:~# echo 50 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 6 root@bart:~# echo 55 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 7 root@bart:~# echo 60 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 0 root@bart:~# echo 65 > /proc/acpi/video/VID/LCD0/brightness root@bart:~# cat /proc/acpi/ibm/brightness | grep level: level: 1 > > Another thing i mentioned is that the FN+F7 (switching LCD, LCD+CRT, > > CRT) button did not work, also the 'echo "crt_enable" > > > /proc/acpi/ibm/video' did not work. I have tried several kernel > > configurations with that: > > > > CONFIG_ACPI_VIDEO=y|n > > CONFIG_BACKLIGHT_CLASS_DEVICE=y|n > > > > However none of the configuration makes me able to switch LCD/CRT, the > > ACPI Video support gives me the following at boottime: > > > > ACPI: Video Device [VID] (multi-head: yes rom: no post: no) > > > > Well i am very new to ACPI stuff, so sorry for the _maybe_ stupid > > questions. ;) > > > > All the FN+ keys give me an ACPI event via /proc/acpi/event > > > > FN+F7: ibm/hotkey HKEY 00000080 00001007 > > FN+Pos1: ibm/hotkey HKEY 00000080 00001010 > > FN+End: ibm/hotkey HKEY 00000080 00001011 > > > > Additionally if the ACPI video driver is loaded i got two more ACPI > > events: > > > > FN+Pos1: video LCD0 00000086 00000000 > > FN+End: video LCD0 00000087 00000000 > > > > --Maik > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > ibm-acpi-devel mailing list > > ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel > > --Maik > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > ibm-acpi-devel mailing list > ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel -- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel