/** * Battery Buddy, a Sailfish application to prolong battery lifetime * * Copyright (C) 2019-2020 Matti Viljanen * * Battery Buddy is free software: you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * Battery Buddy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. You should have received a copy of the GNU * General Public License along with CarBudget. If not, see . * * Author: Matti Viljanen */ import QtQuick 2.0 import Sailfish.Silica 1.0 import "../components" Page { id: infoPage allowedOrientations: Orientation.Portrait | Orientation.Landscape | Orientation.LandscapeInverted SilicaFlickable { id: infoFlickable anchors.fill: parent contentHeight: header.height + infoColumn.height + Theme.horizontalPageMargin VerticalScrollDecorator { flickable: infoFlickable } PageHeader { id: header title: qsTr("More info") } Column { id: infoColumn anchors.top: header.bottom width: isPortrait ? (parent.width - 2*Theme.paddingLarge) : (parent.width - 4*Theme.paddingLarge) anchors.horizontalCenter: parent.horizontalCenter spacing: Theme.paddingMedium Label { x: Theme.paddingLarge text: qsTr("What is Battery Buddy?") color: Theme.highlightColor font.pixelSize: Theme.fontSizeMedium } MyLabel { text: qsTr("Battery Buddy is a small and simple utility designed to improve the lifetime of the battery.") +" "+ qsTr("It simply monitors the battery level and if it has been charged above the limit, it plays a sound and displays a notification.") +" "+ qsTr("A different sound is played and notification send when the battery has been discharged under the limit.") } Label { x: Theme.paddingLarge text: qsTr("Why does it matter?") color: Theme.highlightColor font.pixelSize: Theme.fontSizeMedium } MyLabel { text: qsTr("Lithium-based batteries do not last forever. Every charge and discharge wear out the battery a small amount. This is normal and currently unavoidable.") +" "+ qsTr("A full charge from 0% to 100% stresses the battery more than, say, charging from 25% to 75%.") +" "+ qsTr("Charging and discharging the battery lowers the capacity over time. Small discharge wears out the capacity slower than a deep discharge and a full recharge.") } Label { x: Theme.paddingLarge text: qsTr("Is it noticable?") color: Theme.highlightColor font.pixelSize: Theme.fontSizeMedium } MyLabel { text: qsTr("Yes, it is. If you always let the battery drain down to 0% and then charge it to 100%, your battery may not see 500 charge cycles.") +" "+ qsTr("A full charge from 0% to 100% stresses the battery more than, say, charging from 25% to 75%.") +" "+ qsTr("If you only let the battery charge go down to 50% and then charge it to 70%, it could last several thousands of cycles!") +"\n\n"+ qsTr("Please keep in mind that the numbers are very coarse estimates. There are also other variables that affect the life cycle, such as charge current and battery temperature.") } Label { x: Theme.paddingLarge text: qsTr("Why should I care?") color: Theme.highlightColor font.pixelSize: Theme.fontSizeMedium } MyLabel { text: qsTr("Every battery produced uses a lot of energy and at least some non-renewable resources.") +" "+ qsTr("By taking care of your devices battery, you don't have to buy a new battery so soon.") +" "+ qsTr("Even better; in some devices the battery is very difficult to replace without braking the device, which means you don't have to pay for the service, either.") } Label { x: Theme.paddingLarge text: qsTr("What else can I do?") color: Theme.highlightColor font.pixelSize: Theme.fontSizeMedium } MyLabel { text: qsTr("Uninstall battery-hungry applications you don't use. Reboot your device every now and then in order to keep it running flawlessly.") +"\n\n"+ qsTr("Use flight mode overnight whenever possible in order to cut power usage down. Powering the device off and on again may use a lot more battery than you think!") +"\n\n"+ qsTr("Don't use your phone in hot or cold environments. In the winter keep the phone in your pocket near your body (but take note of the moisture) and use a handsfree device. Extreme temperatures are bad for the battery.") } Label { x: Theme.paddingLarge text: qsTr("I want to know more!") color: Theme.highlightColor font.pixelSize: Theme.fontSizeMedium } MyLabel { text: qsTr("Great! There are a lot of articles to read and papers to study, so click the link to begin!") } Button { id: lowButton anchors.horizontalCenter: parent.horizontalCenter text: "Google Search" onClicked: Qt.openUrlExternally("https://www.google.com/search?q=How+to+prolong+lithium-based+battery+life%3F") } } } }