Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #75077

Bug#1009262: linux-image-5.16.0-0.bpo.4-arm64: power supply incorrectly reported as offline

From Diederik de Haas <didi.debian@cknow.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1009262: linux-image-5.16.0-0.bpo.4-arm64: power supply incorrectly reported as offline
Date 2022-04-19 01:40 +0200
Message-ID <EdJ8l-9F1s-11@gated-at.bofh.it> (permalink)
References <EaEeR-7NcQ-1@gated-at.bofh.it> <EaEeR-7NcQ-1@gated-at.bofh.it>
Organization Connecting Knowledge

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sunday, 10 April 2022 13:39:54 CEST James Valleroy wrote:
> In the log it showed "WARNING System is on battery power, stopping". 
> It uses the on_ac_power command from powermgmt-base package.

Pretty sure the problem is in the on_ac_power script from powermgmt-base.
It appears to be a really simplistic script which searches through 4 
categories and I checked (with `ls -l <path>` what it would do on my Rock64:

1) /sys/class/power_supply/
total 0
(iow: that directory does exist, but is empty)

2) ACPI (through /proc/acpi/ac_adapter)
ls: cannot access '/proc/acpi': No such file or directory

3) PMU (through /proc/pmu/info)
ls: cannot access '/proc/pmu/info': No such file or directory

4) APM (through /proc/apm)
ls: cannot access '/proc/apm': No such file or directory

My guess is that it's unaware of device-tree ... which is a problem (for ARM 
devices).

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1009262: linux-image-5.16.0-0.bpo.4-arm64: power supply incorrectly reported as offline James Valleroy <jvalleroy@mailbox.org> - 2022-04-10 13:50 +0200
  Bug#1009262: linux-image-5.16.0-0.bpo.4-arm64: power supply incorrectly reported as offline Diederik de Haas <didi.debian@cknow.org> - 2022-04-11 18:20 +0200
  Bug#1009262: linux-image-5.16.0-0.bpo.4-arm64: power supply incorrectly reported as offline Diederik de Haas <didi.debian@cknow.org> - 2022-04-19 01:40 +0200
    Bug#1009262: linux-image-5.16.0-0.bpo.4-arm64: power supply incorrectly reported as offline Diederik de Haas <didi.debian@cknow.org> - 2022-04-19 18:10 +0200

csiph-web