where is the problem with this brightness applet

Oguz Yarimtepe comp.ogz at gmail.com
Tue Jul 22 09:13:08 UTC 2008


Hi all,

I am trying to find the reason of my brightness problem. Maybe some of
you can give me a guide.

My general problem is not able to adjust brightness neither using hot
keys nor brightness applet on hardy. When i press the hot keys i see
the on screen display but the bar doesn't proceed.

Here is the output of lshal -m when i press the fn+f5 brightness up keys.

# lshal -m

Start monitoring devicelist:
-------------------------------------------------
10:32:50.361: platform_i8042_i8042_KBD_port_logicaldev_input condition
ButtonPressed = brightness-up
10:32:50.407: computer_logicaldev_input_0 condition ButtonPressed =
brightness-up
10:32:50.486: platform_i8042_i8042_KBD_port_logicaldev_input condition
ButtonPressed = brightness-up
10:32:50.563: platform_i8042_i8042_KBD_port_logicaldev_input condition
ButtonPressed = brightness-up

and also the tail -f /var/log/acpid for the same action
[Tue Jul 22 10:33:48 2008] received event "video DD03 00000086 00000000"
[Tue Jul 22 10:33:48 2008] notifying client 5744[0:0]
[Tue Jul 22 10:33:48 2008] notifying client 5744[0:0]
[Tue Jul 22 10:33:48 2008] notifying client 24200[111:123]
[Tue Jul 22 10:33:48 2008] executing action "/etc/acpi/video_brightnessup.sh"
[Tue Jul 22 10:33:48 2008] BEGIN HANDLER MESSAGES
[Tue Jul 22 10:33:48 2008] END HANDLER MESSAGES
[Tue Jul 22 10:33:48 2008] action exited with status 0
[Tue Jul 22 10:33:48 2008] executing action "/etc/acpi/video_brightnessup.sh"
[Tue Jul 22 10:33:48 2008] BEGIN HANDLER MESSAGES
[Tue Jul 22 10:33:48 2008] END HANDLER MESSAGES
[Tue Jul 22 10:33:48 2008] action exited with status 0
[Tue Jul 22 10:33:48 2008] completed event "video DD03 00000086 00000000"

So although i press one time to hot key it executes itself twice.

So to solve this double action where should i dive into?
Also i want to solve the on screen display, it shows the display but i
dont see neither increase nor decrease at the level.
How can i solve it or what is the source of this problem?

Another point is the events part. I changes the
/etc/acpi/events/video_brightnessup as,

# /etc/acpi/events/video_brightnessup
event=video.* 00000086
action=/etc/acpi/nvidia_video_brightnessup.sh

nvidia_video_brightnessup.sh is just increasing the brightness using
nvidia-settings.

The thing is when i press the hot key i see video_brightness.up.sh is
executed also which is the default value at the events file before i
change it.

# tail -f /var/log/acpid

[Tue Jul 22 10:40:46 2008] received event "video DD03 00000086 00000000"
[Tue Jul 22 10:40:46 2008] notifying client 5744[0:0]
[Tue Jul 22 10:40:46 2008] notifying client 24200[111:123]
[Tue Jul 22 10:40:46 2008] notifying client 5744[0:0]
[Tue Jul 22 10:40:46 2008] executing action
"/etc/acpi/nvidia_video_brightnessup.sh"
[Tue Jul 22 10:40:46 2008] BEGIN HANDLER MESSAGES
running nvidia
before nvidia runs: 30
running nvidia
before nvidia runs: 30
nvidia ended
after nvidia finished: 30
[Tue Jul 22 10:40:46 2008] END HANDLER MESSAGES
[Tue Jul 22 10:40:46 2008] action exited with status 0
[Tue Jul 22 10:40:46 2008] executing action "/etc/acpi/video_brightnessup.sh"
[Tue Jul 22 10:40:46 2008] BEGIN HANDLER MESSAGES
[Tue Jul 22 10:40:46 2008] END HANDLER MESSAGES
[Tue Jul 22 10:40:46 2008] action exited with status 0
[Tue Jul 22 10:40:46 2008] completed event "video DD03 00000086 00000000"

What is the reason of the call of video_brightnessup.sh although it is
not mentioned at the events file?

And it seems if i remove this file i dont see my OSD.

So i still don't know what the problem is. I will really be so happy
if you help me define the problem.

nvidia_videobrightnessup.sh

#!/bin/bash

dimmer.sh --inc

dimmer.sh: http://pastebin.com/f43de880

-- 
Oğuz Yarımtepe
www.yarimtepe.com


More information about the ubuntu-users mailing list