monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
9.04k stars 3.12k forks source link

Getting "E couldn't query power status from /sys/class/power_supply" in daemon when start mining #9509

Open ludblom opened 1 month ago

ludblom commented 1 month ago

OS: Linux home 6.1.111-1-MANJARO #1 SMP PREEMPT_DYNAMIC Wed Sep 18 21:01:06 UTC 2024 x86_64 GNU/Linux Monero version: 0.18.3.4-2

I am having the issue with not being able to start the mining because I get the error message E couldn't query power status from /sys/class/power_supply. I have seen other closed fault reports here but most of them point to the fix that was made back in 2017, so the version I use should already have the fix included..

I run it on a stationary PC so I do not have anything in /sys/class/power_supply, so I understand why it complains, but have also tried to start the daemon with the flag --bg-mining-ignore-battery, but still give me the same error message.

Anyone who have an idea why?

0xFFFC0000 commented 1 month ago

I have seen E couldn't query power status from /sys/class/power_supply.

I don't think that is a very serious issue. Of course there should be a way to fix it. But IIRC that is more like a warning.

But the important thing is I don't think it is related to mining. I mean you should be able to easily start the mining without issues.

Can you invest your log and check why is not exactly possible to start mining?

gustavokennedy commented 2 weeks ago

Hi @ludblom!

Have you tried creating a dummy folder for the battery device?

mkdir -p /sys/class/power_supply/BAT0