linux命令 upower -e,linux – 如果在桌面上,包UPower输出是什么?

在Ubuntu 12.04上,如果我使用命令:

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

它将输出电池的所有统计数据.但是,如果我使用的是台式机,它会输出什么(即没有电池?)

解决方法:

从工作站:

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

输出:

failed to set path: cannot refresh: Cannot get device properties for

/org/freedesktop/UPower/devices/battery_BAT0: Couldn't call GetAll() to

get properties for /org/freedesktop/UPower/devices/battery_BAT0: Method

"GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties"

doesn't exist

硬件细节 – cpu

$lscpu

Architecture: i686

CPU op-mode(s): 32-bit, 64-bit

Byte Order: Little Endian

CPU(s): 3

On-line CPU(s) list: 0-2

Thread(s) per core: 1

Core(s) per socket: 3

Socket(s): 1

Vendor ID: AuthenticAMD

CPU family: 16

Model: 5

Stepping: 2

CPU MHz: 800.000

BogoMIPS: 5787.62

Virtualization: AMD-V

L1d cache: 64K

L1i cache: 64K

L2 cache: 512K

硬件细节 – 主板

$dmidecode -t baseboard

# dmidecode 2.11

SMBIOS 2.6 present.

Handle 0x0002, DMI type 2, 15 bytes

Base Board Information

Manufacturer: ASRock

Product Name: M3A785GMH/128M

Version:

Serial Number:

Asset Tag:

Features:

Board is a hosting board

Board is replaceable

Location In Chassis:

Chassis Handle: 0x0003

Type: Motherboard

Contained Object Handles: 0

Handle 0x0019, DMI type 41, 11 bytes

Onboard Device

Reference Designation: To Be Filled By O.E.M.

Type: Video

Status: Enabled

Type Instance: 0

Handle 0x001A, DMI type 41, 11 bytes

Onboard Device

Reference Designation: To Be Filled By O.E.M.

Type: SCSI Controller

Status: Disabled

Type Instance: 0

标签:power-management,linux

来源: https://codeday.me/bug/20190815/1659604.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值