Commit 20b37c0
Fix: start/stop thresholds not being set because of initial values (#900)
* fix: (WIP) start/stop thresholds not being set because of initial values
* refactor: rewrite battery scripts more cleanly + fix bug where start/stop charge thres settings don't apply
* fix: battery start/stop pr: small typos, pr comments..
* fix: actually validate start/stop, and enforce both to be present
* fix: start/stop threshold value check + add more docs + add override check_thresholds=false for exceptional cases
* add: debug prints for testers
* fix: type errors in battery config, prefer charge_control_{start,end}_threshold values over charge_{start,stop}_threshold
* fix: do not change charge thresholds with --monitor flag
* fix: reference ideapad_laptop kernel module in Readme
* Regularly apply battery thresholds, add note in README about conflicting software, remove debug statements
* Apply copilot suggestions. Remove misleading section about fixed thresholds from README
* Update auto_cpufreq/battery_scripts/shared.py
Fix grammatical error
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Remove unnecessary shell option from run call
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Do not change Ideapad conservation mode if not explicitly set in config, fix config not being overridden in IdeapadBatteryDevice class
* Suggest setting start threshold to 0 in README
---------
Co-authored-by: Benedikt Westreicher <benedikt.westreicher@hotmail.com>
Co-authored-by: Adnan Hodzic <adnan@hodzic.org>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Benedikt Westreicher <48734011+be-west@users.noreply.github.com>1 parent 6452056 commit 20b37c0
File tree
9 files changed
+374
-240
lines changed- auto_cpufreq
- battery_scripts
- bin
9 files changed
+374
-240
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
611 | 612 | | |
612 | 613 | | |
613 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
614 | 617 | | |
615 | 618 | | |
616 | 619 | | |
617 | 620 | | |
| 621 | + | |
618 | 622 | | |
619 | 623 | | |
620 | 624 | | |
621 | | - | |
| 625 | + | |
| 626 | + | |
622 | 627 | | |
623 | 628 | | |
624 | 629 | | |
625 | 630 | | |
626 | 631 | | |
627 | 632 | | |
628 | | - | |
629 | | - | |
630 | | - | |
| 633 | + | |
| 634 | + | |
631 | 635 | | |
632 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
633 | 639 | | |
634 | | - | |
| 640 | + | |
635 | 641 | | |
636 | | - | |
| 642 | + | |
637 | 643 | | |
638 | | - | |
| 644 | + | |
639 | 645 | | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
644 | 649 | | |
645 | 650 | | |
646 | | - | |
| 651 | + | |
647 | 652 | | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
| 653 | + | |
653 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
654 | 660 | | |
655 | | - | |
656 | 661 | | |
657 | | - | |
| 662 | + | |
| 663 | + | |
658 | 664 | | |
659 | 665 | | |
660 | 666 | | |
| |||
663 | 669 | | |
664 | 670 | | |
665 | 671 | | |
666 | | - | |
| 672 | + | |
667 | 673 | | |
668 | 674 | | |
669 | 675 | | |
| |||
688 | 694 | | |
689 | 695 | | |
690 | 696 | | |
691 | | - | |
| 697 | + | |
692 | 698 | | |
693 | 699 | | |
694 | 700 | | |
| |||
707 | 713 | | |
708 | 714 | | |
709 | 715 | | |
710 | | - | |
| 716 | + | |
711 | 717 | | |
712 | 718 | | |
713 | 719 | | |
714 | | - | |
| 720 | + | |
715 | 721 | | |
716 | 722 | | |
717 | 723 | | |
718 | | - | |
| 724 | + | |
719 | 725 | | |
720 | 726 | | |
721 | 727 | | |
722 | 728 | | |
723 | 729 | | |
724 | 730 | | |
725 | | - | |
| 731 | + | |
726 | 732 | | |
727 | 733 | | |
728 | 734 | | |
729 | 735 | | |
730 | 736 | | |
731 | 737 | | |
732 | | - | |
| 738 | + | |
733 | 739 | | |
734 | 740 | | |
735 | 741 | | |
736 | 742 | | |
737 | 743 | | |
738 | | - | |
| 744 | + | |
739 | 745 | | |
740 | 746 | | |
741 | 747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | 2 | | |
5 | | - | |
6 | | - | |
| 3 | + | |
7 | 4 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 5 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
8 | 17 | | |
9 | | - | |
10 | 18 | | |
11 | 19 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
This file was deleted.
0 commit comments