0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LG gramにManjaro Linuxを入れると「No battery」と表示されてがバッテリーが取得できない件

Last updated at Posted at 2019-06-01

問題

LG gramにManjaro Linuxを入れたところ、i3wmのステータスバーに表示されるバッテリーの欄が「No battery」となってしまって、バッテリーの残り残量がわからなかった。

環境

PC: LG gram 13Z980
OS: Manjaro Linux 18.0.4 Illyria

解決策

$ grep '' /sys/class/power_supply/*/type
/sys/class/power_supply/ADP1/type:Mains
/sys/class/power_supply/CMB0/type:Battery

バッテリーのパスがわかったので、i3の設定を書き換える

$ sudo vim /etc/i3status.conf
@@ -20,7 +20,7 @@
 # order += "disk /home"
 order += "wireless _first_"
 order += "ethernet _first_"
-order += "battery all"
+order += "battery 1"
 # order += "load"
 order += "tztime local"
 # order += "ipv6"
@@ -45,7 +45,7 @@
         format_down = " no lan "
 }
 
-battery all {
+battery 1 {
         # format = "%status %percentage %remaining %emptytime"
         format = " %status %percentage"
         format_down = "No battery"
@@ -62,6 +62,7 @@
         status_full = "☻"
         low_threshold = 15
         threshold_type = time
+        path = "/sys/class/power_supply/CMB0/uevent"
 }
 
 tztime local {

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?