poliva / lightum

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

lightum crashed on startup #45

Closed WhyNotHugo closed 9 years ago

WhyNotHugo commented 9 years ago

On a MacBook Air 2013, running ArchLinux-amd64.

$ uname -a
Linux athena.barrera.io 3.19.0-1-ARCH #1 SMP PREEMPT Mon Feb 9 07:08:20 CET 2015 x86_64 GNU/Linux

kbdlight and xbacklight work fine on this system, so it would seem that all the modules to handle keyboard backlighting and screen brightness are in place.

$ lightum -fw 2        
lightum v2.3.1 running in auto mode 
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon was not provided by any .service files
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon was not provided by any .service files
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

With more debugging:

$ lightum -fvd 2 -w 2
CONFIG:
        manualmode: 0
        ignoreuser: 1
        ignoresession: 0
        workmode: 2
        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.ServiceUnknown: The name org.gnome.SettingsDaemon was not provided by any .service files
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon was not provided by any .service files
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

$ lightum -fw 1        
lightum v2.3.1 running in auto mode 

** (lightum:4416): WARNING **: GetCurrentSession failed: The name org.freedesktop.ConsoleKit was not provided by any .service files
[1]    4416 segmentation fault (core dumped)  lightum -fw 1

With more debugging:

$ lightum -fvd 1 -w 1
CONFIG:
        manualmode: 0
        ignoreuser: 1
        ignoresession: 0
        workmode: 1
        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 

** (lightum:4809): WARNING **: GetCurrentSession failed: The name org.freedesktop.ConsoleKit was not provided by any .service files
[1]    4809 segmentation fault (core dumped)  lightum -fvd 1 -w 1

The latter seems to look for ConsoleKit, but, AFAIK, it's been deprected since circa 2012.

esoleyman commented 9 years ago

Are you using the most recent version in the trunk?

WhyNotHugo commented 9 years ago

I was using the 2.3.1 release. Latest from git does work, however, the backlighting behaviour is inconsistent. With plenty of light, sometimes it's set to maximum, sometimes it's turned off. And the same happens when covering the webcam with my finger.

Shall I open a new issue for this?

esoleyman commented 9 years ago

Apply the patches from PR https://github.com/poliva/lightum/pull/44 which should solve these problems. Let me know and I'll add them to my branch.

WhyNotHugo commented 9 years ago

44 does not affect the problem in any way. It's something separate from this though, so I'll open a separete issue.