Skip to content

Commit

Permalink
Add troubleshooting section.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3vu0r committed Mar 5, 2023
1 parent 21fb89d commit a08ca88
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,36 @@ effect, the listed users have to be logged out. This is reliably achieved by reb
[AUR]: https://aur.archlinux.org/packages/huawei-wmi
[Egor Vorontsov]: https://github.com/egormanga

## Troubleshooting

Ensure your desktop user is a member of the system group `huawei-wmi`:

```sh
$ groups | xargs -n 1 | grep huawei-wmi
huawei-wmi
```

Ensure your desktop user has write privileges for default and current settings:

```sh
$ echo 40 70 | tee {/etc/default,/sys/devices/platform}/huawei-wmi/charge_control_thresholds
40 70
```

Ensure the charge capacity lies between above charge-thresholds:

```sh
$ cat /sys/class/power_supply/BAT?/capacity
60 # for example
```

Ensure the battery is not charging:

```sh
$ cat /sys/class/power_supply/BAT?/status
Not charging
```

## License

Licensed under [Fair].
Expand Down

0 comments on commit a08ca88

Please sign in to comment.