Blame
Date:
Sun Jan 29 05:00:28 2023 UTC
Message:
Daily backup
01
2023-01-22
jrmu
version=pmwiki-2.2.130 ordered=1 urlencoded=1
02
2023-01-22
jrmu
agent=Mozilla/5.0 (X11; OpenBSD amd64; rv:68.0) Gecko/20100101 Firefox/68.0 SeaMonkey/2.53.11.1
03
2023-01-22
jrmu
author=mkf
04
2023-01-22
jrmu
charset=UTF-8
05
2023-01-22
jrmu
csum=
06
2023-01-22
jrmu
ctime=1656701319
07
2023-01-22
jrmu
host=91.185.141.127
08
2023-01-22
jrmu
name=Openbsd.Apmd
09
2023-01-22
jrmu
rev=6
10
2023-01-22
jrmu
targets=
11
2023-01-22
jrmu
text=[[https://man.openbsd.org/apm.8|Apm]] and [[https://man.openbsd.org/apmd.8|apmd]] are OpenBSD's tools for handling power saving and managing acpi/apm.%0aWhile it's not very useful for servers, it's sometimes handy to use in laptops or SBCs, which power management is important.%0a%0a!!Configuration%0aSince it's included in default installation in OpenBSD, you don't need installing it. Using some of following examples require Apmd running, but not all of them:%0a[@%0a$ doas rcctl enable apmd%0a$ doas rcctl start apmd%0a@]%0a%0a!!Usage%0aTo show current battery and if we are connected to power:%0a[@%0a$ apm%0a@]%0a%0aTo make it easier for scripts, @@-l@@ and @@-m@@ could be used, they show battery in %25 and minutes. Note that if device is getting charged, @@-m@@ shows time left to battery be completely charged.%0a[@%0a$ apm -l # in %25%0a$ apm -m # in mins%0a@]%0a%0a%0aTo take the system to S3 power state (aka suspend or sleep):%0a[@%0a$ apm -z%0a@]%0aor alternatively%0a[@%0a$ zzz%0a@]%0a%0aTo hibernate system:%0a[@%0a$ apm -Z%0a@]%0aor alternatively%0a[@%0a$ ZZZ%0a@]%0aHibernating system requires a swap partition to be activated.%0a%0aTo set power saving mode on:%0a[@%0a$ apm -L%0a@]%0a%0aand performance mode on:%0a[@%0a$ apm -H%0a@]%0a%0aThere is an also automatic mode, which sets cpu's power usage based on workload, the default when apmd is enabled:%0a[@%0a$ apm -A%0a@]%0a
12
2023-01-22
jrmu
time=1656848208
13
2023-01-22
jrmu
author:1656848208=mkf
14
2023-01-22
jrmu
diff:1656848208:1656848174:minor=17c17%0a%3c To make it easier for scripts, @@-l@@ and @@-m@@ could be used, they show battery in %25 and minutes. Note that if device is getting charged, @@-m@@ shows time left to battery be completely charged.%0a---%0a> To make it easier for scripts, @@-l@@ and @@-m@@ could be used, they show battery in %25 and minutes.%0a22c22%0a%3c %0a---%0a> note that if device is getting charged, -m shows time left to battery be completely charged.%0a
15
2023-01-22
jrmu
host:1656848208=91.185.141.127
16
2023-01-22
jrmu
author:1656848174=mkf
17
2023-01-22
jrmu
diff:1656848174:1656820436:=17c17%0a%3c To make it easier for scripts, @@-l@@ and @@-m@@ could be used, they show battery in %25 and minutes.%0a---%0a> To take the system to S3 power state (aka suspend or sleep):%0a19,20c19%0a%3c $ apm -l # in %25%0a%3c $ apm -m # in mins%0a---%0a> $ apm -z%0a22,24c21%0a%3c note that if device is getting charged, -m shows time left to battery be completely charged.%0a%3c %0a%3c To take the system to S3 power state (aka suspend or sleep):%0a---%0a> or alternatively%0a26c23%0a%3c $ apm -z%0a---%0a> $ zzz%0a28c25,26%0a%3c or alternatively%0a---%0a> %0a> To hibernate system:%0a30c28%0a%3c $ zzz%0a---%0a> $ apm -Z%0a32,33c30%0a%3c %0a%3c To hibernate system:%0a---%0a> or alternatively%0a35c32%0a%3c $ apm -Z%0a---%0a> $ ZZZ%0a37c34,35%0a%3c or alternatively%0a---%0a> %0a> To set power saving mode on:%0a39c37%0a%3c $ ZZZ%0a---%0a> $ apm -L%0a41,43c39,40%0a%3c Hibernating system requires a swap partition to be activated.%0a%3c %0a%3c To set power saving mode on:%0a---%0a> %0a> To set performance mode on:%0a45c42%0a%3c $ apm -L%0a---%0a> $ apm -H%0a48,53c45%0a%3c and performance mode on:%0a%3c [@%0a%3c $ apm -H%0a%3c @]%0a%3c %0a%3c There is an also automatic mode, which sets cpu's power usage based on workload, the default when apmd is enabled:%0a---%0a> There is an also automatic mode, which sets cpu's power usage based on workload:%0a
18
2023-01-22
jrmu
host:1656848174=91.185.141.127
19
2023-01-22
jrmu
author:1656820436=mkf
20
2023-01-22
jrmu
diff:1656820436:1656820397:=5c5,6%0a%3c Since it's included in default installation in OpenBSD, you don't need installing it. Using some of following examples require Apmd running, but not all of them:%0a---%0a> Since it's included in default installation in OpenBSD, you don't need installing it. Using some of following examples require Apmd running, but not all of them.%0a> To enable and start it:%0a
21
2023-01-22
jrmu
host:1656820436=86.106.198.214
22
2023-01-22
jrmu
author:1656820397=mkf
23
2023-01-22
jrmu
diff:1656820397:1656820293:=1c1%0a%3c [[https://man.openbsd.org/apm.8|Apm]] and [[https://man.openbsd.org/apmd.8|apmd]] are OpenBSD's tools for handling power saving and managing acpi/apm.%0a---%0a> [[http://man.openbsd.org/apm.8|Apm]] and [[[http://man.openbsd.org/apmd.8|apmd]] are OpenBSD's tools for handling power saving and managing acpi/apm.%0a
24
2023-01-22
jrmu
host:1656820397=86.106.198.214
25
2023-01-22
jrmu
author:1656820293=mkf
26
2023-01-22
jrmu
diff:1656820293:1656701319:=1,49c1%0a%3c [[http://man.openbsd.org/apm.8|Apm]] and [[[http://man.openbsd.org/apmd.8|apmd]] are OpenBSD's tools for handling power saving and managing acpi/apm.%0a%3c While it's not very useful for servers, it's sometimes handy to use in laptops or SBCs, which power management is important.%0a%3c %0a%3c !!Configuration%0a%3c Since it's included in default installation in OpenBSD, you don't need installing it. Using some of following examples require Apmd running, but not all of them.%0a%3c To enable and start it:%0a%3c [@%0a%3c $ doas rcctl enable apmd%0a%3c $ doas rcctl start apmd%0a%3c @]%0a%3c %0a%3c !!Usage%0a%3c To show current battery and if we are connected to power:%0a%3c [@%0a%3c $ apm%0a%3c @]%0a%3c %0a%3c To take the system to S3 power state (aka suspend or sleep):%0a%3c [@%0a%3c $ apm -z%0a%3c @]%0a%3c or alternatively%0a%3c [@%0a%3c $ zzz%0a%3c @]%0a%3c %0a%3c To hibernate system:%0a%3c [@%0a%3c $ apm -Z%0a%3c @]%0a%3c or alternatively%0a%3c [@%0a%3c $ ZZZ%0a%3c @]%0a%3c %0a%3c To set power saving mode on:%0a%3c [@%0a%3c $ apm -L%0a%3c @]%0a%3c %0a%3c To set performance mode on:%0a%3c [@%0a%3c $ apm -H%0a%3c @]%0a%3c %0a%3c There is an also automatic mode, which sets cpu's power usage based on workload:%0a%3c [@%0a%3c $ apm -A%0a%3c @]%0a---%0a> [wip]%0a\ No newline at end of file%0a
27
2023-01-22
jrmu
host:1656820293=86.106.198.214
28
2023-01-22
jrmu
author:1656701319=mkf
29
2023-01-22
jrmu
diff:1656701319:1656701319:=1d0%0a%3c [wip]%0a\ No newline at end of file%0a
30
2023-01-22
jrmu
host:1656701319=2.178.179.23
IRCNow