Ubuntu Gnome 18.04 顶部栏上未显示电池指示器

Battery Indicator not displaying on Ubuntu Gnome 18.04 Top Bar

我两天前安装了 Ubuntu Gnome,除了电池指示灯外,一切正常。由于某种原因,即使使用 gnome 调整将其打开,它也不会在顶部栏中显示。

我用过命令:

upower -i /org/freedesktop/UPower/devices/battery_BAT0

返回:

native-path:          (null)
  power supply:         no
  updated:              Thu 01 Jan 1970 01:00:00 IST (1573663817 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       unknown
    battery-level:       unknown
    icon-name:          '(null)'

这表明它甚至看不到电源,更不用说电池百分比了。

我也卸载并重新安装了电池指示器多次,它完全是最新的。并且还更新了Ubuntu,更新了所有需要升级的包。

在网上搜索后发现可能与没有包含电池指示器的自动启动文件夹有关,所以它可能与此有关。

自动启动文件的路径:

/etc/xdg/autostart

即使您认为这不是自动启动问题,我也将不胜感激。谢谢。

我的系统

Linux pc 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
description: Laptop
    product: Surface Pro 6 (Surface_Pro_6_1796_Consumer)
    vendor: Microsoft Corporation
    version: D:0B:13F:5C:10P:38S:01E:0
    serial: 051670285253
    width: 64 bits
    capabilities: smbios-3.1 dmi-3.1 smp vsyscall32
    configuration: administrator_password=disabled chassis=laptop family=Surface sku=Surface_Pro_6_1796_Consumer uuid=0A1BA476-28B9-228A-191E-C19E0DDDAF06
  *-core
       description: Motherboard
       product: Surface Pro 6
       vendor: Microsoft Corporation
       physical id: 0
       serial: A75493112764852A
     *-firmware
          description: BIOS
          vendor: Microsoft Corporation
          physical id: 0
          version: 234.2706.768
          date: 04/18/2019
          size: 1MiB
          capacity: 15MiB
          capabilities: pci upgrade shadowing bootselect edd int5printscreen int9keyboard int17printer acpi usb biosbootspecification uefi
     *-memory
          description: System Memory
          physical id: 6
          slot: System board or motherboard
          size: 8GiB

我遇到了同样的问题。这不是电池问题,是关于 linux 中的表面接头。我通过安装一个新内核解决了这个问题(非常简单),link 是:https://github.com/linux-surface/linux-surface