You are not logged in.
Hello everyone,
I'm currently setting up my lemon bar script and uses pyudev to do so. it works fine but only one event every 2minuts are sent. I tried to change that frequency and did not find where but I read on a forum how to do a script to force an udate:
import os
import time
while True:
os.system('dbus-send --print-reply \
--system \
--dest=org.freedesktop.UPower \
/org/freedesktop/UPower/devices/battery_BAT1 \
org.freedesktop.UPower.Device.Refresh')
time.sleep(5)The problem is that, although it is seen using dbus-monitor and upower, my script and udevadm does not.
Do you know why/a better way to do that?
Thank you for your help!
P.S. I'm not sure this is the good section for this kind of issue if not, please tell me and I will see if it is possible to change it.
Last edited by charlie_02 (2019-05-06 07:45:13)
Offline