Subject: bug#45163: 28.0.50; (dbus-error "org.freedesktop.DBus.Error.NoReply" "Call timed out")

From: "Basil L. Contovounesios" <[email-masked]>
Date: Fri, 11 Dec 2020 10:14:48 +0000

Michael Albinus <[email-masked]> writes:

> Does the appended patch fixes the problem?
>
> Best regards, Michael.
>
> *** /tmp/ediffiXLy7X	2020-12-11 09:52:50.304077441 +0100
> --- /home/albinus/src/emacs/lisp/battery.el	2020-12-11 09:51:12.514136708 +0100
> ***************
> *** 661,670 ****
>     (cond ((stringp battery-upower-device)
>            (list battery-upower-device))
>           (battery-upower-device)
> !         ((dbus-call-method :system battery-upower-service
> !                            battery-upower-path
> !                            battery-upower-interface
> !                            "EnumerateDevices"))))
>
>   (defun battery--upower-state (props state)
>     "Merge the UPower battery state in PROPS with STATE.
> --- 661,672 ----
>     (cond ((stringp battery-upower-device)
>            (list battery-upower-device))
>           (battery-upower-device)
> !         ((dbus-ignore-errors
> !            (dbus-call-method :system battery-upower-service
> !                              battery-upower-path
> !                              battery-upower-interface
> !                              "EnumerateDevices"
> !                              :timeout 1000)))))

LGTM, thanks.

Just curious: why the shorter timeout, and why so short (from 25s to
1s)?

-- 
Basil