poliva / lightum

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

Not working in Trusty? #33

Open satmandu opened 10 years ago

satmandu commented 10 years ago

I see the ppa hasn't been updated yet, but I'm trying to compile from source and run this in Ubuntu 14.04 and even after installing xbacklight I'm seeing this issue on a MacBookAir4,2:

./lightum
 Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.Solid.PowerManagement was not provided by any .service files

** (lightum:30357): WARNING **: GetCurrentSession failed: The name org.freedesktop.ConsoleKit was not provided by any .service files

(lightum:30357): GLib-CRITICAL **: g_variant_is_object_path: assertion 'string != NULL' failed

** (lightum:30357): CRITICAL **: dbus_g_proxy_new_for_name: assertion 'g_variant_is_object_path (path)' failed

** (lightum:30357): WARNING **: Could not get dbus session proxy
hngouveia01 commented 10 years ago

Hi, satmandu! I was getting the same error this morning and I was able to debug lightum. I just ran the program with the flag -U, which is used to ignore session, and it worked as usual.

satmandu commented 10 years ago

Awesome thanks!

bwh1969 commented 10 years ago

Wow. I have been frustrated for several weeks on trying to get this to run because it is an awesome application. Solution is so simple...

hngouveia01 commented 10 years ago

I did not had much time to actually identify the problem on the code. I will try, as soon as possible, to debug more deeply and look for a better solution that can be placed into the source code. Because, as bwh1969 said, this application is really awesome! : )

esoleyman commented 10 years ago

Please take a look at my branch as I've made changes for it to work with systemd while replacing dbus-glib with GDbus: https://github.com/esoleyman/lightum

esoleyman commented 10 years ago

With the newly merged branch, this is now fixed.