crosh> battery_test throwing errors

2,276 views
Skip to first unread message

DennisLfromGA

unread,
Aug 3, 2021, 12:06:33 PM8/3/21
to Chromium OS Discussion
I'm not sure what version this started happening in, I'm currently on beta version 14092.13.0 / 93.0.4577.15, but the crosh battery_test command throws a 'Permission denied' error about access to '/dev/cros_ec', see below:

        11:51 AM:chronos@localhost:~
        $ crosh  --  battery_test  15
        2021-08-03T15:51:39.955130Z ERROR dump_power_status:
[power_supply.cc(658)] Failed to open /dev/cros_ec: Permission denied (13)
        2021-08-03T15:51:39.955201Z WARNING dump_power_status: [power_supply.cc(550)] Setting full factor in OS is deprecated.
        2021-08-03T15:51:39.963407Z ERROR dump_power_status: [power_supply.cc(658)] Failed to open /dev/cros_ec: Permission denied (13)
        2021-08-03T15:51:39.963486Z WARNING dump_power_status: [power_supply.cc(550)] Setting full factor in OS is deprecated.
        2021-08-03T15:51:39.971742Z ERROR dump_power_status: [power_supply.cc(658)] Failed to open /dev/cros_ec: Permission denied (13)
        2021-08-03T15:51:39.971812Z WARNING dump_power_status: [power_supply.cc(550)] Setting full factor in OS is deprecated.
        2021-08-03T15:51:39.978599Z ERROR dump_power_status: [power_supply.cc(658)] Failed to open /dev/cros_ec: Permission denied (13)
        2021-08-03T15:51:39.978670Z WARNING dump_power_status: [power_supply.cc(550)] Setting full factor in OS is deprecated.
        2021-08-03T15:51:39.987429Z ERROR dump_power_status: [power_supply.cc(658)] Failed to open /dev/cros_ec: Permission denied (13)
        2021-08-03T15:51:39.987517Z WARNING dump_power_status: [power_supply.cc(550)] Setting full factor in OS is deprecated.
        Battery is discharging (98.98% left)
        Battery health: 70.79%
        Please wait...
        2021-08-03T15:51:55.009594Z ERROR dump_power_status: [power_supply.cc(658)] Failed to open /dev/cros_ec: Permission denied (13)
        2021-08-03T15:51:55.009848Z WARNING dump_power_status: [power_supply.cc(550)] Setting full factor in OS is deprecated.
        Battery discharged 0.00% in 15 second(s).


        11:52 AM:chronos@localhost:~
        $ sudo ls -l /dev/cros_ec
        crw-rw----. 1 root cros_ec-access 10, 59 Jul 30 16:59 /dev/cros_ec


Does 'chronos' need to belong to the 'cros_ec-access' group now, perhaps?
I searched for a crbug in regards to this issue but couldn't find any.

Thanx,
~DennyL

Mike Frysinger

unread,
Sep 20, 2021, 10:38:46 PM9/20/21
to Dennis Lockhart, Chromium OS Discussion
please file a bug via https://issuetracker.google.com/ ... we'll have to decide whether we keep this command in the first place
-mike

--
--
Chromium OS Discussion mailing list: chromium-...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-discuss

DennisLfromGA

unread,
Sep 21, 2021, 1:10:03 PM9/21/21
to Chromium OS Discussion, Mike Frysinger, Chromium OS Discussion, DennisLfromGA

Michael Siejak

unread,
Sep 21, 2021, 5:49:50 PM9/21/21
to denny.l...@gmail.com, Chromium OS Discussion, Mike Frysinger
Same thing for firmware update and check

---
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dis...@chromium.org.
Reply all
Reply to author
Forward
0 new messages