防止 gnome 电源管理器显示键盘电池

M1k*_*1ke 10 battery gnome bluetooth power-management

我的 gnome 工具栏显示了一个总是错误的电池指示器。我最近想出了原因;当单击它时,它将我的内部电池状态和我的键盘状态显示为两个单独的项目:

在此处输入图片说明

然而,我大部分时间都能看到的主显示合并了这些:

在此处输入图片说明

这只是让我失去工作,因为我的笔记本电脑电池很关键,我没有收到任何警告,因为键盘电池很好。我希望电源管理器忽略键盘,但是在看到各种错误报告和补丁以禁用设备电池触发关机/挂起程序时,没有在工具栏中显示它的希望较小的问题很少。

这是我的输出 $ upower -d

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              Tue 15 Sep 2015 10:35:06 BST (566 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             yes

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               SANYO
  model:                LNV-45N1
  serial:               1336
  power supply:         yes
  updated:              Tue 15 Sep 2015 10:44:21 BST (11 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    energy:              4.59 Wh
    energy-empty:        0 Wh
    energy-full:         47.52 Wh
    energy-full-design:  47.52 Wh
    energy-rate:         21.069 W
    voltage:             10.872 V
    time to full:        2.0 hours
    percentage:          9%
    capacity:            100%
    technology:          lithium-ion
  History (charge):
    1442310231  9.000   charging
  History (rate):
    1442310261  21.069  charging
    1442310231  21.086  charging
    1442310201  21.245  charging
    1442310171  21.237  charging

Device: /org/freedesktop/UPower/devices/battery_hid_90o7fo61o11o30o28_battery
  native-path:          hid-90:7f:61:11:30:28-battery
  model:                ThinkPad Compact Bluetooth Keyboard with TrackPoint
  power supply:         no
  updated:              Tue 15 Sep 2015 10:44:31 BST (1 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         0 Wh
    energy-full-design:  0 Wh
    energy-rate:         0 W
    percentage:          60%
    capacity:            100%

Daemon:
  daemon-version:  0.9.23
  can-suspend:     yes
  can-hibernate:   yes
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       no
Run Code Online (Sandbox Code Playgroud)

正如我们所见,电池/org/freedesktop/UPower/devices/battery_hid_90o7fo61o11o30o28_battery是需要忽略的。有谁知道实现这一目标的方法?