[gpm] Set screen backlight through dbus



Hi everyone,

I tried to set screen backlight through dbus by using the following
command on GNOME:

    dbus-send --session --print-reply \
      --dest="org.gnome.SettingsDaemon" \
      /org/gnome/SettingsDaemon/Power \
      org.gnome.SettingsDaemon.Power.Screen.SetPercentage \
      uint32:30

However, I got the following output:

    Error org.freedesktop.DBus.Error.UnknownMethod: No such method 'SetPercentage'

On the other hand, if I switch to Cinnamon, and replace everything
``gnome" above with ``cinnamon", as following:

    dbus-send --session --print-reply \
          --dest="org.cinnamon.SettingsDaemon" \
          /org/cinnamon/SettingsDaemon/Power \
          org.cinnamon.SettingsDaemon.Power.Screen.SetPercentage \
          uint32:30

The backlight is changed:

    method return sender=:1.9 -> dest=:1.58 reply_serial=2
       uint32 30

I suspect this is some abandoned method to change backlight, but I
cannot find any official document.

Can anyone help me with this?

Thanks,
Hong

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]