Report battery information first when fetching current status#14215
Conversation
b125d76 to
3583808
Compare
See test results for failed build of commit 18051fcb70 |
|
I feel like the AC disconnected message should be removed when the battery life time estimate from Windows becomes available. It makes sense to have the AC disconnected message announced at first when the time estimate is initially unavailable, but after that it feels unnecessary, because if Windows is returning an estimate of how much time is left from the battery, a user could infer on their own that a charger is disconnected. |
|
Might be though, that something is broken in the battery or charger?
Brian
…--
***@***.***
Sent via blueyonder.(Virgin media)
Please address personal E-mail to:-
***@***.***, putting 'Brian Gaff'
in the display name field.
----- Original Message -----
From: "Mohamed Al-Hajamy" ***@***.***>
To: "nvaccess/nvda" ***@***.***>
Cc: "Subscribed" ***@***.***>
Sent: Wednesday, October 05, 2022 2:07 PM
Subject: Re: [nvaccess/nvda] Report battery information first when fetching
current status (PR #14215)
I feel like the AC disconnected message should be removed when the battery
life time estimate from Windows becomes available. It makes sense to have
the AC disconnected message announced at first when the time estimate is
initially unavailable, but after that it feels unnecessary, because if
Windows is returning an estimate of how much time is left from the battery,
a user could infer on their own that a charger is disconnected.
--
Reply to this email directly or view it on GitHub:
#14215 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
I think it's better to be explicit. |
|
I'm not quite sure what you mean here. DO you mean that the remaining battery life could be reported even if a charger is supplying power? |
|
No, as far as I know, the system does not report remaining battery time when the battery is charging. The system reports remaining time during the battery charging, but that time is about how much time remains until the battery is fully charged. |
Turns out you are right:
I still think it is better to explicitly state the new power status first when reporting the status change event (disconnect/connect). |
84a2eea to
3eef81c
Compare
|
DO you mean when a charger is plugged in, the AC status should be announced first? If so, yes, I agree with you there, that announcement can stay. However I'm not sure what exactly the point is in hearing AC disconnected after an announcement like 93 percent 2 hours and 40 minutes remaining, as it is currently. |
2e563a3 to
ad3b7fe
Compare
Link to issue number:
Fixes #14214
See also #14213
Summary of the issue:
The current battery status message when pressing
NVDA+shift+bis too verbose, because it reports the AC status before the battery level.This is useful for an AC state change (e.g. when plugging in a charger)
But is not ideal for when pressing
NVDA+shift+bto fetch the battery status.Description of user facing changes
Reverts to previous ordering in 2022.3.
When the AC status changes, the AC status is still reported first: "charging" or "AC disconnected".
When
NVDA+shift+bis pressed to fetch the battery status, the battery status is reported first: "X percentage, Z hours and Y minutes remaining"Description of development approach
Change internal parameter
onlyReportIfStatusChangedtoReportContext.A
ReportContextis used to determine order of speech.When the context is an AC status change, this reports the current AC status first.
When the context is a user fetching the current battery status, this reports the remaining battery life first.
Testing strategy:
Manually test disconnecting and connecting AC and using
NVDA+shift+bExisting unit tests have been updated
Known issues with pull request:
None
Change log entries:
None, fixes unreleased regression
Code Review Checklist: