[arch-general] thinkpad t61 and not able to adjust brightness
So pressing the fn home/end for brightness alters : /proc/acpi/video/VID/LCD0/brightness doing an: echo '100' >/proc/acpi/video/VID/LCD0/brightness My .config for the kernel is set to: CONFIG_THINKPAD_ACPI_VIDEO=y CONFIG_VIDEO_OUTPUT_CONTROL=m CONFIG_ACPI_VIDEO=m lsmod shows: thinkpad_acpi 70316 0 rfkill 11444 4 iwl3945,thinkpad_acpi led_class 4344 3 iwl3945,sdhci,thinkpad_acpi nvram 7868 1 thinkpad_acpi dmesg shows: thinkpad_acpi: ThinkPad ACPI Extras v0.22 thinkpad_acpi: http://ibm-acpi.sf.net/ thinkpad_acpi: ThinkPad BIOS 7LETA7WW (2.07 ), EC 7KHT24WW-1.08 thinkpad_acpi: Lenovo ThinkPad T61, model 6464Y1E thinkpad_acpi: ACPI backlight control delay disabled thinkpad_acpi: radio switch found; radios are enabled thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver thinkpad_acpi: Disabling thinkpad-acpi brightness events by default... thinkpad_acpi: Standard ACPI backlight interface available, not loading native one. kernel is 2.6.29-ARCH anyone know why the brightness still refuses to work? -- ( adam stokes ) || ( adam.stokes@gmail.com )
On Thu, 16 Apr 2009 22:13:15 -0400 Adam Stokes <adam.stokes@gmail.com> wrote:
So pressing the fn home/end for brightness alters :
/proc/acpi/video/VID/LCD0/brightness
doing an:
echo '100' >/proc/acpi/video/VID/LCD0/brightness
My .config for the kernel is set to:
CONFIG_THINKPAD_ACPI_VIDEO=y CONFIG_VIDEO_OUTPUT_CONTROL=m CONFIG_ACPI_VIDEO=m
lsmod shows:
thinkpad_acpi 70316 0 rfkill 11444 4 iwl3945,thinkpad_acpi led_class 4344 3 iwl3945,sdhci,thinkpad_acpi nvram 7868 1 thinkpad_acpi
dmesg shows: thinkpad_acpi: ThinkPad ACPI Extras v0.22 thinkpad_acpi: http://ibm-acpi.sf.net/ thinkpad_acpi: ThinkPad BIOS 7LETA7WW (2.07 ), EC 7KHT24WW-1.08 thinkpad_acpi: Lenovo ThinkPad T61, model 6464Y1E thinkpad_acpi: ACPI backlight control delay disabled thinkpad_acpi: radio switch found; radios are enabled thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver thinkpad_acpi: Disabling thinkpad-acpi brightness events by default... thinkpad_acpi: Standard ACPI backlight interface available, not loading native one.
kernel is 2.6.29-ARCH
anyone know why the brightness still refuses to work?
Hi Adam, I'm using brightness control buttons every day with my ThinkPad R61. Both echo '100' >/proc/acpi/video/VID/LCD0/brightness echo 15 > /sys/class/backlight/acpi_video0/brightness work for me. "xev" shows the following: keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp) keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown) I've updated the system yesterday, but brightness control works fine for long time. I used to use custom scripts launched from /etc/acpi/handler.sh long time ago since the the regular buttons did not work properly. You may want to add: keycode 233 = XF86MonBrightnessUp keycode 232 = XF86MonBrightnessDown to your ~/.Xmodmap file (though I haven't, but check with "xev") Cheers, Sergey
Hi, On my thinkpad T400, by default I can set LCD brightness by Fn+home/end shortcut, no need to manually set hotkeys. I have acpi package installed. On Fri, Apr 17, 2009 at 11:35 AM, Sergey Manucharian <sergeym@rmico.com> wrote:
On Thu, 16 Apr 2009 22:13:15 -0400 Adam Stokes <adam.stokes@gmail.com> wrote:
So pressing the fn home/end for brightness alters :
/proc/acpi/video/VID/LCD0/brightness
doing an:
echo '100' >/proc/acpi/video/VID/LCD0/brightness
My .config for the kernel is set to:
CONFIG_THINKPAD_ACPI_VIDEO=y CONFIG_VIDEO_OUTPUT_CONTROL=m CONFIG_ACPI_VIDEO=m
lsmod shows:
thinkpad_acpi 70316 0 rfkill 11444 4 iwl3945,thinkpad_acpi led_class 4344 3 iwl3945,sdhci,thinkpad_acpi nvram 7868 1 thinkpad_acpi
dmesg shows: thinkpad_acpi: ThinkPad ACPI Extras v0.22 thinkpad_acpi: http://ibm-acpi.sf.net/ thinkpad_acpi: ThinkPad BIOS 7LETA7WW (2.07 ), EC 7KHT24WW-1.08 thinkpad_acpi: Lenovo ThinkPad T61, model 6464Y1E thinkpad_acpi: ACPI backlight control delay disabled thinkpad_acpi: radio switch found; radios are enabled thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver thinkpad_acpi: Disabling thinkpad-acpi brightness events by default... thinkpad_acpi: Standard ACPI backlight interface available, not loading native one.
kernel is 2.6.29-ARCH
anyone know why the brightness still refuses to work?
Hi Adam,
I'm using brightness control buttons every day with my ThinkPad R61. Both
echo '100' >/proc/acpi/video/VID/LCD0/brightness echo 15 > /sys/class/backlight/acpi_video0/brightness
work for me. "xev" shows the following:
keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp) keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown)
I've updated the system yesterday, but brightness control works fine for long time. I used to use custom scripts launched from /etc/acpi/handler.sh long time ago since the the regular buttons did not work properly.
You may want to add:
keycode 233 = XF86MonBrightnessUp keycode 232 = XF86MonBrightnessDown
to your ~/.Xmodmap file (though I haven't, but check with "xev")
Cheers, Sergey
-- Best regards, Li Ye
On Thu, Apr 16, 2009 at 11:35 PM, Sergey Manucharian <sergeym@rmico.com> wrote:
Hi Adam,
I'm using brightness control buttons every day with my ThinkPad R61. Both
echo '100' >/proc/acpi/video/VID/LCD0/brightness echo 15 > /sys/class/backlight/acpi_video0/brightness
work for me. "xev" shows the following:
keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp) keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown)
I've updated the system yesterday, but brightness control works fine for long time. I used to use custom scripts launched from /etc/acpi/handler.sh long time ago since the the regular buttons did not work properly.
You may want to add:
keycode 233 = XF86MonBrightnessUp keycode 232 = XF86MonBrightnessDown
to your ~/.Xmodmap file (though I haven't, but check with "xev")
Cheers, Sergey
Hi Sergey, Thanks for the information, I did add those keycodes to my .Xmodmap with no change unfortunately. I also installed the acpi/acpid packages but I haven't actually rebooted yet since it seems that acpid will not run due to some devices being in use at the moment. If there are anymore ideas I would like to hear them. Thanks! -- ( adam stokes ) || ( adam.stokes@gmail.com )
Another weird thing I noticed was I can actually set the brightness with the keys all the way up until the grub screen. But after that they fail to work. On Fri, Apr 17, 2009 at 9:47 AM, Adam Stokes <adam.stokes@gmail.com> wrote:
On Thu, Apr 16, 2009 at 11:35 PM, Sergey Manucharian <sergeym@rmico.com> wrote:
Hi Adam,
I'm using brightness control buttons every day with my ThinkPad R61. Both
echo '100' >/proc/acpi/video/VID/LCD0/brightness echo 15 > /sys/class/backlight/acpi_video0/brightness
work for me. "xev" shows the following:
keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp) keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown)
I've updated the system yesterday, but brightness control works fine for long time. I used to use custom scripts launched from /etc/acpi/handler.sh long time ago since the the regular buttons did not work properly.
You may want to add:
keycode 233 = XF86MonBrightnessUp keycode 232 = XF86MonBrightnessDown
to your ~/.Xmodmap file (though I haven't, but check with "xev")
Cheers, Sergey
Hi Sergey,
Thanks for the information, I did add those keycodes to my .Xmodmap with no change unfortunately. I also installed the acpi/acpid packages but I haven't actually rebooted yet since it seems that acpid will not run due to some devices being in use at the moment.
If there are anymore ideas I would like to hear them.
Thanks!
-- ( adam stokes ) || ( adam.stokes@gmail.com )
-- ( adam stokes ) || ( adam.stokes@gmail.com )
On Fri, 17 Apr 2009 09:47:38 -0400 Adam Stokes <adam.stokes@gmail.com> wrote:
Thanks for the information, I did add those keycodes to my .Xmodmap with no change unfortunately. I also installed the acpi/acpid packages but I haven't actually rebooted yet since it seems that acpid will not run due to some devices being in use at the moment.
If there are anymore ideas I would like to hear them.
When long time ago I had a similar problem I've added the following into the main "case" structure in "/etc/acpi/handler.sh": ---------------------------8<------------------------------- video) case "$2" in LCD0) case "$3" in 00000086) /usr/local/bin/brightness_up ;; 00000087) /usr/local/bin/brightness_down ;; *) logger "LCD0 button undefined: $1 $2 $3 $4" ;; esac ;; *) logger "Video button undefined: $1 $2 $3 $4" ;; esac ;; ---------------------------8<------------------------------- I really don't remember what "00000086" and "00000087" stand for. The brightness changing scripts are below. "/usr/local/bin/brightness_up": ---------------------------8<------------------------------- #!/bin/bash # LCD brightness up declare -i BRIGHT let BRIGHT=`cat /sys/class/backlight/acpi_video0/actual_brightness`+1 if [ "$BRIGHT" -gt 15 ]; then BRIGHT=15 fi echo $BRIGHT > /sys/class/backlight/acpi_video0/brightness ---------------------------8<------------------------------- and "/usr/local/bin/brightness_down": ---------------------------8<------------------------------- #!/bin/bash # LCD brightness down declare -i BRIGHT let BRIGHT=`cat /sys/class/backlight/acpi_video0/actual_brightness`-1 if [ "$BRIGHT" -lt 0 ]; then BRIGHT=0 fi echo $BRIGHT > /sys/class/backlight/acpi_video0/brightness ---------------------------8<------------------------------- Cheers, Sergey
On Fri, Apr 17, 2009 at 10:27 AM, Sergey Manucharian <sergeym@rmico.com> wrote:
On Fri, 17 Apr 2009 09:47:38 -0400 Adam Stokes <adam.stokes@gmail.com> wrote:
Thanks for the information, I did add those keycodes to my .Xmodmap with no change unfortunately. I also installed the acpi/acpid packages but I haven't actually rebooted yet since it seems that acpid will not run due to some devices being in use at the moment.
If there are anymore ideas I would like to hear them.
When long time ago I had a similar problem I've added the following into the main "case" structure in "/etc/acpi/handler.sh":
---------------------------8<------------------------------- video) case "$2" in LCD0) case "$3" in 00000086) /usr/local/bin/brightness_up ;; 00000087) /usr/local/bin/brightness_down ;; *) logger "LCD0 button undefined: $1 $2 $3 $4" ;; esac ;; *) logger "Video button undefined: $1 $2 $3 $4" ;; esac ;; ---------------------------8<------------------------------- I really don't remember what "00000086" and "00000087" stand for. The brightness changing scripts are below.
"/usr/local/bin/brightness_up": ---------------------------8<------------------------------- #!/bin/bash # LCD brightness up declare -i BRIGHT let BRIGHT=`cat /sys/class/backlight/acpi_video0/actual_brightness`+1 if [ "$BRIGHT" -gt 15 ]; then BRIGHT=15 fi echo $BRIGHT > /sys/class/backlight/acpi_video0/brightness ---------------------------8<-------------------------------
and "/usr/local/bin/brightness_down": ---------------------------8<------------------------------- #!/bin/bash # LCD brightness down declare -i BRIGHT let BRIGHT=`cat /sys/class/backlight/acpi_video0/actual_brightness`-1 if [ "$BRIGHT" -lt 0 ]; then BRIGHT=0 fi echo $BRIGHT > /sys/class/backlight/acpi_video0/brightness ---------------------------8<-------------------------------
Cheers, Sergey
Thanks I'll give it a shot though it looks to me like this is just another way of doing: echo # >/sys/class/backlight/acpi_video0/brightness Thanks again -- ( adam stokes ) || ( adam.stokes@gmail.com )
I've similar problem here with my X60s. echo 'up' >! /proc/acpi/ibm/brightness works fine but using the hotkeys has no effect. I now realized that xev doesn't return a keycode for FN+HOME and FN+END at all. FN only gives a keycode as well as HOME and END on its own do. However, i'm using Vanilla, so don't expect this to be an arch related problem. AFAIK things concerning brightness adjustment changed for 2.6.29 in the acpi/video branch. http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=... did anyone solve the problem? regards - Michael On 17.04.2009 04:13, Adam Stokes wrote:
So pressing the fn home/end for brightness alters :
/proc/acpi/video/VID/LCD0/brightness
doing an:
echo '100' >/proc/acpi/video/VID/LCD0/brightness
My .config for the kernel is set to:
CONFIG_THINKPAD_ACPI_VIDEO=y CONFIG_VIDEO_OUTPUT_CONTROL=m CONFIG_ACPI_VIDEO=m
lsmod shows:
thinkpad_acpi 70316 0 rfkill 11444 4 iwl3945,thinkpad_acpi led_class 4344 3 iwl3945,sdhci,thinkpad_acpi nvram 7868 1 thinkpad_acpi
dmesg shows: thinkpad_acpi: ThinkPad ACPI Extras v0.22 thinkpad_acpi: http://ibm-acpi.sf.net/ thinkpad_acpi: ThinkPad BIOS 7LETA7WW (2.07 ), EC 7KHT24WW-1.08 thinkpad_acpi: Lenovo ThinkPad T61, model 6464Y1E thinkpad_acpi: ACPI backlight control delay disabled thinkpad_acpi: radio switch found; radios are enabled thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver thinkpad_acpi: Disabling thinkpad-acpi brightness events by default... thinkpad_acpi: Standard ACPI backlight interface available, not loading native one.
kernel is 2.6.29-ARCH
anyone know why the brightness still refuses to work?
Hm, strange, works fine here on t61p , standard archlinux kernel, nothing out of the ordinary. On Tue, Apr 28, 2009 at 3:36 PM, Michael Schaefer <archlinux.org@micele.de>wrote:
I've similar problem here with my X60s.
echo 'up' >! /proc/acpi/ibm/brightness
works fine but using the hotkeys has no effect. I now realized that xev doesn't return a keycode for FN+HOME and FN+END at all. FN only gives a keycode as well as HOME and END on its own do.
However, i'm using Vanilla, so don't expect this to be an arch related problem. AFAIK things concerning brightness adjustment changed for 2.6.29 in the acpi/video branch.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=...
did anyone solve the problem?
regards - Michael
On 17.04.2009 04:13, Adam Stokes wrote:
So pressing the fn home/end for brightness alters :
/proc/acpi/video/VID/LCD0/brightness
doing an:
echo '100' >/proc/acpi/video/VID/LCD0/brightness
My .config for the kernel is set to:
CONFIG_THINKPAD_ACPI_VIDEO=y CONFIG_VIDEO_OUTPUT_CONTROL=m CONFIG_ACPI_VIDEO=m
lsmod shows:
thinkpad_acpi 70316 0 rfkill 11444 4 iwl3945,thinkpad_acpi led_class 4344 3 iwl3945,sdhci,thinkpad_acpi nvram 7868 1 thinkpad_acpi
dmesg shows: thinkpad_acpi: ThinkPad ACPI Extras v0.22 thinkpad_acpi: http://ibm-acpi.sf.net/ thinkpad_acpi: ThinkPad BIOS 7LETA7WW (2.07 ), EC 7KHT24WW-1.08 thinkpad_acpi: Lenovo ThinkPad T61, model 6464Y1E thinkpad_acpi: ACPI backlight control delay disabled thinkpad_acpi: radio switch found; radios are enabled thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver thinkpad_acpi: Disabling thinkpad-acpi brightness events by default... thinkpad_acpi: Standard ACPI backlight interface available, not loading native one.
kernel is 2.6.29-ARCH
anyone know why the brightness still refuses to work?
I've similar problem here with my X60s.
echo 'up' >! /proc/acpi/ibm/brightness
works fine but using the hotkeys has no effect. I now realized that xev doesn't return a keycode for FN+HOME and FN+END at all. FN only gives a keycode as well as HOME and END on its own do.
However, i'm using Vanilla, so don't expect this to be an arch related problem. AFAIK things concerning brightness adjustment changed for 2.6.29 in the acpi/video branch.
Do you have some special settings enabled?? Because you shouldn't. on my X60s everything works fine in console and X (with any sufficiently recent intel driver - maybe 2.3 was too old - I don't remember) -- damjan
On Wed, Apr 29, 2009 at 11:22 AM, Damjan Georgievski <gdamjan@gmail.com> wrote:
I've similar problem here with my X60s.
echo 'up' >! /proc/acpi/ibm/brightness
works fine but using the hotkeys has no effect. I now realized that xev doesn't return a keycode for FN+HOME and FN+END at all. FN only gives a keycode as well as HOME and END on its own do.
However, i'm using Vanilla, so don't expect this to be an arch related problem. AFAIK things concerning brightness adjustment changed for 2.6.29 in the acpi/video branch.
Do you have some special settings enabled?? Because you shouldn't.
on my X60s everything works fine in console and X (with any sufficiently recent intel driver - maybe 2.3 was too old - I don't remember)
-- damjan
Only way i could solve my issue was to turn up brightness during boot sequence, but once the kernel loaded all brightness functions keys stopped working. No special settings used, and the default arch 2.6.29 kernel installed. -- ( adam stokes ) || ( adam.stokes@gmail.com )
Do you have some special settings enabled?? Because you shouldn't.
on my X60s everything works fine in console and X (with any sufficiently recent intel driver - maybe 2.3 was too old - I don't remember)
Only way i could solve my issue was to turn up brightness during boot sequence, but once the kernel loaded all brightness functions keys stopped working. No special settings used, and the default arch 2.6.29
make sure you have the "video" module loaded (it's the ACPI video support). also, thinkpad_acpi, although that's shouldn't neccesseary have to do anything with the brightness buttons. -- damjan
participants (6)
-
Adam Stokes
-
Damjan Georgievski
-
Jon Kristian Nilsen
-
Michael Schaefer
-
Sergey Manucharian
-
李业