🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux
Article #907728

Re: ustawienie limitu ładowania akumulatora

#907728
From: Marcin Debowski
Date: Thu, 11 Jul 2024 23:50
61 lines
2670 bytes
On 2024-07-10, marrgol <marrgol@address.invalid> wrote:
> On 2024-07-10 at 07:49 Marcin Debowski wrote:
>> Chciałbym być miły dla aku bo laptop pracuje prawie 100% czasu na kablu 
>> i ograniczyć pojemność, do której ma być ładowany.
>> […]
>> Jak się to powinno zrobić?
>
> To już wyguglałeś?
>
> https://askubuntu.com/questions/1312186/battery-thresholds-in-ubuntu-dell

Nie, nie znalazłem tego, dzięki. 

To tak dla szukających:

Rzeczony Dell to Inspiron 14 5430.

Jedno podejście jest z użyciem softu Dell'a:
"Dell Command | Configure Application"
Stąd można ściągnąc:
https://www.dell.com/support/home/en-sg/drivers/DriversDetails?driverId=42VJ8

Po instalacji wystarczy zrobić 
sudo /opt/dell/dcc/cctk --PrimaryBattChargeCfg=Custom:50-65

Wydaje się, że działa.

###########

Drugie podejście jest z użyciem smbios-battery-ctl (pakiet smbios-utils).
Niby przyjmuje ustawienia:
root@agatek-inspiron:~# smbios-battery-ctl --set-custom-charge-interval 50 65
Custom charge interval has been set to (50, 65)

Ale 
root@agatek-inspiron:~# smbios-battery-ctl -c
Libsmbios version : 2.4.3
smbios-battery-ctl version : 2.4.3
 
 Supported battery charging features: 
	 NIL
 
 Battery charging Status: 
	 NIL

co nie wiem czy jest oczekiwaną odpowiedzią?

Z drugiej strony, widzę, że po ustawieniu 
smbios-battery-ctl --set-custom-charge-interval 50 65

podładował aku z 63 do 65% :)

Też:
root@agatek-inspiron:~# smbios-battery-ctl --get-charging-cfg 
Charging mode: custom
Charging interval: (50, 65)

więc może niepotrzebnie wcześniej się tu zniechęciłem.

-- 
Marcin
Technical Details
Message-ID: <7d_jO.6222$Y4Ka.4020@fx11.ams1>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!feeder.cambriumusenet.nl!feed.tweaknews.nl!posting.tweaknews.nl!fx11.ams1.POSTED!not-for-mail
References: <ThpjO.4$Ak%9.2@fx14.ams1> <v6mlqi$1vol9$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!feeder.cambriumusenet.nl!feed.tweaknews.nl!posting.tweaknews.nl!fx11.ams1.POSTED!not-for-mail
Newsgroups: pl.comp.os.linux
From: Marcin Debowski <agatek@INVALID.zoho.com>
Subject: Re: ustawienie limitu ładowania akumulatora
References: <ThpjO.4$Ak%9.2@fx14.ams1> <v6mlqi$1vol9$1@dont-email.me>
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Lines: 61
Message-ID: <7d_jO.6222$Y4Ka.4020@fx11.ams1>
X-Complaints-To: abuse@tweaknews.nl
NNTP-Posting-Date: Thu, 11 Jul 2024 23:50:27 UTC
Organization: Tweaknews
Date: Thu, 11 Jul 2024 23:50:27 GMT
X-Received-Bytes: 2482
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit