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

From: Michael Albinus <[email-masked]>
Date: Fri, 11 Dec 2020 09:56:12 +0100

Jean Louis <[email-masked]> writes:

Hi Jean,

> I am filling my disk with:
>
> cat /dev/zero > empty
>
> while doing so, this error came up.
>
>   signal(dbus-error ("org.freedesktop.DBus.Error.NoReply" "Call timed out"))
>   dbus-call-method(:system "org.freedesktop.UPower" "/org/freedesktop/UPower" "org.freedesktop.UPower" "EnumerateDevices")
>   battery--upower-devices()
>   battery-upower()
>   battery-update()
>   battery-update-handler()
>   apply(battery-update-handler nil)
>   timer-event-handler([t 24530 7906 666546 60 battery-update-handler nil nil 987000])

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)))))

  (defun battery--upower-state (props state)
    "Merge the UPower battery state in PROPS with STATE.