From owner-freebsd-questions@freebsd.org Fri Jan 20 17:11:29 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8272CCB98E4 for ; Fri, 20 Jan 2017 17:11:29 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49FD019D9 for ; Fri, 20 Jan 2017 17:11:28 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [88.217.112.229] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1cUcik-0001qa-VA for freebsd-questions@freebsd.org; Fri, 20 Jan 2017 18:11:27 +0100 Received: from localhost.my.domain (c720-r292778-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v0KHBQaY004049 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 20 Jan 2017 18:11:26 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v0KHBPqi004048 for freebsd-questions@freebsd.org; Fri, 20 Jan 2017 18:11:25 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 20 Jan 2017 18:11:25 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: stop charging laptop battery when full Message-ID: <20170120171125.GA3965@c720-r292778-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-CURRENT r292778 (amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.112.229 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2017 17:11:29 -0000 Hello, I can ask the current capacity (and other values) of the battery with: $ /sbin/sysctl hw.acpi.battery hw.acpi.battery.info_expire: 5 hw.acpi.battery.units: 1 hw.acpi.battery.state: 2 hw.acpi.battery.time: -1 hw.acpi.battery.life: 39 While charging, is there a way to stop the charging when hw.acpi.battery.life reached 100 to protect the (LI-ion) battery? Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 "Wo ist der antiimperialistische Schutzwall, wenn man ihn braucht? US-Panzertransport durch ex-DDR" "Where is the anti-imperialistic wall, if it's needed? Transport of US-tanks through the ex-GDR" https://deutsch.rt.com/kurzclips/45282-us-panzertransporte-durch-ex-ddr/