poliva / lightum

MacBook automatic light sensor daemon
GNU General Public License v2.0
96 stars 29 forks source link

"Can't manage screen backlight on this system" #19

Open twcamper opened 12 years ago

twcamper commented 12 years ago

ENVIRONMENT:

MacBook Air 5,2

Lubuntu 12.04.1

    tim@fern:~$ uname -a
    Linux fern 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Current config supports manual dimming control of screen via fn-F1 and fn-F2, but for some reason I have no similar control of the keyboard lighting (fn-F5 and fn-F6).

ISSUE:

lightum will not start with out -w 1 flag:

tim@fern:~$ lightum -fv
  CONFIG:
    manualmode: 0
    ignoreuser: 1
    ignoresession: 0
    workmode: 3
    queryscreensaver: 0
    maxbrightness: 255
    minbrightness: 0
    maxbacklight: 15
    minbacklight: 1
    polltime: 300
    idleoff: 5
    screenidle: 30
    fulldim: 0

lightum v2.3.1 running in auto mode

Error org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.gnome.SettingsDaemon.Power.Screen' on object at path /org/gnome/SettingsDaemon/Power
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.Solid.PowerManagement was not provided by any .service files

Can't manage screen backlight on this system.
Please disable backlight with config option 'workmode='1' or command line switch '-w 1'.
If you believe this is an error, open a bug report: https://github.com/poliva/lightum/issues

The error output suggests to me that the SettingsDaemon is in the wrong place, but I am completely new to dbus. Not sure if this is a real issue but I have no /org filesystem:

tim@fern:~$ ls / | grep -E '^o.*'
    opt

tim@fern:~$ sudo find / -name *SettingsDaemon*
    /etc/dbus-1/system.d/org.gnome.SettingsDaemon.DateTimeMechanism.conf
    /usr/share/dbus-1/system-services/org.gnome.SettingsDaemon.DateTimeMechanism.service
    /usr/share/dbus-1/services/org.gnome.SettingsDaemon.service

Though some version of gnome-settings and policykit are running:

tim@fern:~$ ps ax | grep -iE 'policy|settings'
  818 ?        Sl     0:00 /usr/lib/policykit-1/polkitd --no-debug
 1707 ?        Sl     0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
 1726 ?        Sl     0:00 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
 2791 pts/3    S+     0:00 grep --color=auto -E policy|settings

I'm sorry if this is not a lightum bug and turns out to be just a local config issue, but I'm running a stock lubuntu install with hardly any tweaks so far.

thanks for your time!

tim camper

poliva commented 12 years ago

Should work with the last merged pull request. https://github.com/poliva/lightum/commit/bce6e779e0f3cdf49353ebffb16a20c258708187

Please let me know if you have any issues after that.

twcamper commented 12 years ago

Thanks Pau,

I've moved to a Debian installation now, but will try this out again in a few days and report back.

yngvewb commented 11 years ago

I get the same error on Lubuntu 12.04. Installed wih: sudo add-apt-repository ppa:poliva/lightum-mba sudo apt-get update sudo apt-get install lightum

twcamper commented 11 years ago

Last I checked Pau hadn't built a new deb package, so you probably didn't get his fix. You'd have to do a git clone and build it yourself (see the Makefile). On Dec 30, 2012 1:42 PM, "yngve Bergheim" notifications@github.com wrote:

I get the same error on Lubuntu 12.04. Installed wih: sudo add-apt-repository ppa:poliva/lightum-mba sudo apt-get update sudo apt-get install lightum

— Reply to this email directly or view it on GitHubhttps://github.com/poliva/lightum/issues/19#issuecomment-11768020.

xavidp commented 10 years ago

Hi there:

I'm using a Xubuntu 12.04, and I just got similar issue:


xavi@penguinbookpro:~$ lightum lightum v2.3.1 running in auto mode forked into background xavi@penguinbookpro:~$ Error org.freedesktop.DBus.Error.UnknownMethod: No existeix la interfície «org.gnome.SettingsDaemon.Power.Screen» en l'objecte al camí /org/gnome/SettingsDaemon/Power Error org.freedesktop.DBus.Error.UnknownMethod: No existeix la interfície «org.gnome.SettingsDaemon.Power.Screen» en l'objecte al camí /org/gnome/SettingsDaemon/Power Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.Solid.PowerManagement was not provided by any .service files Can't manage screen backlight on this system. Please disable backlight with config option 'workmode='1' or command line switch '-w 1'.

If you believe this is an error, open a bug report: https://github.com/poliva/lightum/issues

By default (without using your program), I already could change the keyboard backlight intensity with FN+F5 & FN+F6 (I installed pommed from the mactel ppa). However, attempting to change screen light did'nt work.

Thanks for your work!