https://bugs.kde.org/show_bug.cgi?id=450551
Ahmed Maher <ahmedmahe...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ahmedmahe...@gmail.com

--- Comment #16 from Ahmed Maher <ahmedmahe...@gmail.com> ---
Okay here is a temporary solution until they fix it in the next kernel.

1. Set your stop charging threshold in the KDE power settings.

2. sudo cp /sys/class/power_supply/BAT0/charge_control_end_threshold
/home/$USER/.config/charge_control_end_threshold

3. sudo mkdir /etc/your; sudo vim /etc/your/script.sh

!/bin/bash

cp -f /home/$USER/.config/charge_control_end_threshold
/sys/class/power_supply/BAT0/charge_control_end_threshold

4. sudo chmod 777 /etc/your/script.sh

5. sudo vim /lib/systemd/system/set-charging-end-threshold.service

[Unit] 

Description=My Shell Script

[Service]

ExecStart=/etc/your/script.sh

[Install] 

WantedBy=multi-user.target

6. sudo chmod 777 /lib/systemd/system/set-charging-end-threshold.service

7. sudo systemctl daemon-reload

8. sudo systemctl enable set-charging-end-threshold.service

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to