Skip to content

Commit

Permalink
Merge pull request #623 from Dasharo/charge-thresholds
Browse files Browse the repository at this point in the history
Battery thresholds
  • Loading branch information
macpijan authored Aug 9, 2023
2 parents 8b306c1 + 607ae27 commit da87b9e
Showing 1 changed file with 106 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,112 @@ Windows 11.

1. The function keys `F1` - `F12` behave as if `Fn` key is pressed.

## ECR030.001 Charging until 98% battery level (Ubuntu 22.04)

**Test description**

This test aims to verify if charging the battery stops when the battery level
reaches 98% mark.

**Test configuration data**

1. `FIRMWARE` = Dasharo
1. `OPERATING_SYSTEM` = Ubuntu 22.04

**Test setup**

1. Proceed with the
[Test cases common documentation](#test-cases-common-documentation) section.

**Test steps**

1. Power on the DUT.
1. Boot into the system.
1. Log into the system by using the proper login and password.
1. Open a terminal window and execute following command to check current battery
charge level percentage:

```bash
cat /sys/class/power_supply/BAT0/capacity
```

1. Note the results.
1. If the battery level sits below 95% mark, plug the charger into the DUT.
1. If the battery level sits above 95% mark, wait until the DUT's battery
discharges to below 95% level and then plug the charger into the DUT.
1. Wait until the DUT's battery charge level reaches 98%.
1. Open a terminal window and execute following command to confirm that the
battery charging stops at 98% mark:

```bash
cat /sys/class/power_supply/BAT0/status
```

1. Note the results.

**Expected result**

1. The output of the `cat /sys/class/power_supply/BAT0/capacity` command should
contain information about the current battery charge level.
1. The output of the `cat /sys/class/power_supply/BAT0/status` command should
contain information about the current battery charging status.
Example output:

```bash
not charging
```

## ECR030.001 Not charging between 95% and 98% levels (Ubuntu 22.04)

**Test description**

This test aims to verify if charging the battery does not start after plugging
in the charger into the DUT when the battery level sits between 95% and 98%.

**Test configuration data**

1. `FIRMWARE` = Dasharo
1. `OPERATING_SYSTEM` = Ubuntu 22.04

**Test setup**

1. Proceed with the
[Test cases common documentation](#test-cases-common-documentation) section.

**Test steps**

1. Power on the DUT.
1. Boot into the system.
1. Log into the system by using the proper login and password.
1. Open a terminal window and execute following command to check current battery
charge level percentage:

```bash
cat /sys/class/power_supply/BAT0/capacity
```

1. Note the results.
1. If the battery level sits between 95% and 98%, plug the charger into the DUT.
1. If the battery level sits below 95%, plug the charger into the DUT, wait
until the battery reaches the level between 95% and 98% and then unplug the
charger and plug it back in into the DUT.
1. Open a terminal window and execute following command to confirm that the
battery does not start charging:

```bash
cat /sys/class/power_supply/BAT0/status
```

1. The output of the `cat /sys/class/power_supply/BAT0/capacity` command should
contain information about the current battery charge level.
1. The output of the `cat /sys/class/power_supply/BAT0/status` command should
contain information about the current battery charging status.
Example output:

```bash
not charging
```

## SIO001.001 PS/2 mouse in OS - (Ubuntu 22.04)

**Test description**
Expand Down

0 comments on commit da87b9e

Please sign in to comment.