Closed sid-the-sloth closed 12 years ago
please launch 'dbus-monitor' to capture all dbus messages, then manually increase and decrease the screen backlight using the Function keys on the keyboard. When done, please paste the relevant output from dbus-monitor (if you don't know which is the relevant output, paste everything but have a quick read to make sure you're not publicly posting any sensitive/personal information on dbus messages).
should i launch lightum before i run dbus-monitor?
no, do it without lightum running
sid reply@reply.github.com wrote:
should i launch lightum before i run dbus-monitor?
Reply to this email directly or view it on GitHub: https://github.com/poliva/lightum/issues/13#issuecomment-5598328
Sent from my Android phone. Please excuse my brevity.
i started dbus-monitor for system, then i pressed F9 (keyboard lights down), F10 (keyboard lights up), and F8 (keyboard lights toggle):
[root@gamma sid] # dbus-monitor --system
signal sender=org.freedesktop.DBus -> dest=:1.82 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
string ":1.82"
signal sender=:1.1 -> dest=(null destination) serial=631 path=/org/freedesktop/NetworkManager/AccessPoint/10; interface=org.freedesktop.NetworkManager.AccessPoint; member=PropertiesChanged
array [
dict entry(
string "Strength"
variant byte 61
)
]
signal sender=:1.19 -> dest=(null destination) serial=282 path=/org/freedesktop/DeviceKit/Power/devices/battery_BAT0; interface=org.freedesktop.DeviceKit.Power.Device; member=Changed
signal sender=:1.19 -> dest=(null destination) serial=283 path=/org/freedesktop/DeviceKit/Power; interface=org.freedesktop.DeviceKit.Power; member=DeviceChanged
string "/org/freedesktop/DeviceKit/Power/devices/battery_BAT0"
signal sender=:1.6 -> dest=(null destination) serial=880 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-down"
signal sender=:1.6 -> dest=(null destination) serial=881 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-down"
signal sender=:1.1 -> dest=(null destination) serial=632 path=/org/freedesktop/NetworkManager/AccessPoint/10; interface=org.freedesktop.NetworkManager.AccessPoint; member=PropertiesChanged
array [
dict entry(
string "Strength"
variant byte 57
)
]
signal sender=:1.6 -> dest=(null destination) serial=882 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-down"
signal sender=:1.6 -> dest=(null destination) serial=883 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-down"
signal sender=:1.6 -> dest=(null destination) serial=884 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-down"
signal sender=:1.6 -> dest=(null destination) serial=885 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-down"
signal sender=:1.6 -> dest=(null destination) serial=886 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-up"
signal sender=:1.6 -> dest=(null destination) serial=887 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-up"
signal sender=:1.6 -> dest=(null destination) serial=888 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-up"
signal sender=:1.6 -> dest=(null destination) serial=889 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-up"
signal sender=:1.6 -> dest=(null destination) serial=890 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-up"
signal sender=:1.6 -> dest=(null destination) serial=891 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-up"
signal sender=:1.6 -> dest=(null destination) serial=892 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-toggle"
signal sender=:1.6 -> dest=(null destination) serial=893 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-toggle"
signal sender=:1.6 -> dest=(null destination) serial=894 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-toggle"
signal sender=:1.6 -> dest=(null destination) serial=895 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-toggle"
signal sender=:1.6 -> dest=(null destination) serial=896 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-toggle"
signal sender=:1.6 -> dest=(null destination) serial=897 path=/org/freedesktop/Hal/devices/usb_device_5ac_21a_noserial_if0_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "kbd-illum-toggle"
^C
is your problem with keyboard brightness, or with video backlight? or both? if with video, can you repeat the same, but this time increase and decrease the screen backlight? thanks.
nope, all other hardware buttons function properly (LCD brightness, sound, eject).
ok, lightum is able to do adjust two things, depending on the value reported by the ambient light sensor (located on your MacBook's iSight camera):
(1) increase and decrease the keyboard brightness (2) increase and decrease the video (screen) backlight
For (1) to work, it needs the proper applesmc module loaded in the kernel, access to '/sys/devices/platform/applesmc.768/leds/smc::kbd_backlight/brightness', and UPower installed: http://upower.freedesktop.org/
For (2) to work, it needs to access either one of the following:
Having said that, please test both features separatedly, you can specify the '-w [num]' command switch to lightum. If the [num] given as a parameter is 1, lightum will only control keyboard brightness (and ignore screen backlight completely), if the [num] given as a parameter is 2, lightum will only control the screen backlight (and ignore the keyboard brightness completely). When debugging or tunning things, remember to specify also '-v -f -d 3' command line switches, so you'll get verbose output.
Now, if your hardware buttons to control the keyboard brightness are not able to control it, most probably lightum will not be able either, because your system is missing the UPower package (and it also needs integration with your desktop).
Hope this makes things clear, and help you troubleshoot the issues.
i will try to install upower package as you suggest.
in the mean time, i have to tell you that i am able to turn on/off/up/down the brightness if i do this (found a script on the web) -- the basic command is this:
to find current keyboard brightness value:
cat /sys/class/leds/smc::kbd_backlight/brightness
to set desired value (SETVAL is 0...255):
echo $SETVAL > /sys/class/leds/smc::kbd_backlight/brightness
so, my conclusion is that the applesmc works. my problem is that i have to run the above command with sudo.
for my own case, i don't need lightum to control the screen brightness, i would only need it to work in manual mode to hookup my keyboard buttons [F8, F9, F10] respectively as [toggle, down, up] keyboard brightness functions.
upower should take care of that without the need for root access, that's why lightum uses its provided dbus interface. Let me know how it goes when you have upower installed.
i can't install upower, it has deps on newer libimobiledevice (v.2 while in CentOS repos it is 0.9.7).
well, thanks for all your help. i guess for now i will manage with a modified sudoers file, custom keyboard shortcuts and this script:
http://pastebin.com/31caG7Wv
thanks :)
MacBook Pro 2007 (ver 3,1) o/s: CentOS 6.2, 64 bit desktop manager: gnome2 window manager: metacity
i was able to successfully compile lightum from source (thanks pof).
when i run it in non-daemon, verbose mode, i get this in the console:
the result of calling dbus-send:
result of calling qbus:
further, on my 64-bit system, this folder doesn't exist:
i have instead this folder, with contents listed: