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
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
I searched for a crbug in regards to this issue but couldn't find any.