Check battery status Arch Linux installation ISO
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I'm up to reinstall Arch on my laptop while I have a bit of a time and I've encountered an interesting question to ask.
Is there any way to check my laptop battery status without installing acpi package? (as I'm currently offline without charger and I can't get neither of them)
I thought that system should keep track of a battery level somehow. So is it possible to display that info in CLI?
arch-linux console
bumped to the homepage by Community♦ 5 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
up vote
3
down vote
favorite
I'm up to reinstall Arch on my laptop while I have a bit of a time and I've encountered an interesting question to ask.
Is there any way to check my laptop battery status without installing acpi package? (as I'm currently offline without charger and I can't get neither of them)
I thought that system should keep track of a battery level somehow. So is it possible to display that info in CLI?
arch-linux console
bumped to the homepage by Community♦ 5 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
3
Have a look at the files in/sys/class/power_supply/
. May or may not work for your particular hardware.
– dirkt
Feb 5 '17 at 11:15
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I'm up to reinstall Arch on my laptop while I have a bit of a time and I've encountered an interesting question to ask.
Is there any way to check my laptop battery status without installing acpi package? (as I'm currently offline without charger and I can't get neither of them)
I thought that system should keep track of a battery level somehow. So is it possible to display that info in CLI?
arch-linux console
I'm up to reinstall Arch on my laptop while I have a bit of a time and I've encountered an interesting question to ask.
Is there any way to check my laptop battery status without installing acpi package? (as I'm currently offline without charger and I can't get neither of them)
I thought that system should keep track of a battery level somehow. So is it possible to display that info in CLI?
arch-linux console
arch-linux console
asked Feb 5 '17 at 2:52
ddnomad
9771723
9771723
bumped to the homepage by Community♦ 5 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 5 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
3
Have a look at the files in/sys/class/power_supply/
. May or may not work for your particular hardware.
– dirkt
Feb 5 '17 at 11:15
add a comment |
3
Have a look at the files in/sys/class/power_supply/
. May or may not work for your particular hardware.
– dirkt
Feb 5 '17 at 11:15
3
3
Have a look at the files in
/sys/class/power_supply/
. May or may not work for your particular hardware.– dirkt
Feb 5 '17 at 11:15
Have a look at the files in
/sys/class/power_supply/
. May or may not work for your particular hardware.– dirkt
Feb 5 '17 at 11:15
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
The kernel provides this information through /sys/class/power_supply/BAT0/capacity
Simply cat
this path to get the information (in percent of your batteries capacity):
cat /sys/class/power_supply/BAT0/capacity
For an live view you can combine cat
with the command watch
. The following command provides you a an, updated, live status of your batteries capacity:
watch -n0 cat /sys/class/power_supply/BAT0/capacity
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The kernel provides this information through /sys/class/power_supply/BAT0/capacity
Simply cat
this path to get the information (in percent of your batteries capacity):
cat /sys/class/power_supply/BAT0/capacity
For an live view you can combine cat
with the command watch
. The following command provides you a an, updated, live status of your batteries capacity:
watch -n0 cat /sys/class/power_supply/BAT0/capacity
add a comment |
up vote
0
down vote
The kernel provides this information through /sys/class/power_supply/BAT0/capacity
Simply cat
this path to get the information (in percent of your batteries capacity):
cat /sys/class/power_supply/BAT0/capacity
For an live view you can combine cat
with the command watch
. The following command provides you a an, updated, live status of your batteries capacity:
watch -n0 cat /sys/class/power_supply/BAT0/capacity
add a comment |
up vote
0
down vote
up vote
0
down vote
The kernel provides this information through /sys/class/power_supply/BAT0/capacity
Simply cat
this path to get the information (in percent of your batteries capacity):
cat /sys/class/power_supply/BAT0/capacity
For an live view you can combine cat
with the command watch
. The following command provides you a an, updated, live status of your batteries capacity:
watch -n0 cat /sys/class/power_supply/BAT0/capacity
The kernel provides this information through /sys/class/power_supply/BAT0/capacity
Simply cat
this path to get the information (in percent of your batteries capacity):
cat /sys/class/power_supply/BAT0/capacity
For an live view you can combine cat
with the command watch
. The following command provides you a an, updated, live status of your batteries capacity:
watch -n0 cat /sys/class/power_supply/BAT0/capacity
answered Jun 24 at 16:31
zzeroo
1294
1294
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f342586%2fcheck-battery-status-arch-linux-installation-iso%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3
Have a look at the files in
/sys/class/power_supply/
. May or may not work for your particular hardware.– dirkt
Feb 5 '17 at 11:15