Possible solution for setting battery threshold in Qubes

Do you see anything in dom0 under /sys/class/power_supply? There should be “AC” or “mains” and at least a battery, if you have one.