Gnome 的关键电源设置丢失了?

Gnome 的关键电源设置丢失了?

我使用的是 Ubuntu 16.04 和 GNOME Shell 3.18.5。我的笔记本电脑是华硕 GL752VW

在 Gnome 的设置中,没有关键电源设置,我无法控制笔记本电脑关机或休眠的时间和时间。我找到了org.gnome.settings-daemon.plugins.power我更改use-time-for-policyfalse并使用百分比而不是时间的设置,但这也不起作用。使用dconf编辑器更改设置对桌面环境没有影响,即使在注销或重新启动后也是如此。从 Gnome Tweaks 更改窗口标题的字体设置也没有效果。

实际情况是,当笔记本电脑的电池电量即将耗尽时,它就会关机。我没有收到任何电池电量即将耗尽的通知,当我不注意电池电量时,我的笔记本电脑会立即关机,没有任何事先警告或通知。这最终会损坏文件系统。

以下是我的/etc/Upower/Upower.conf配置:

# Only the system vendor should modify this file, ordinary users
# should not have to change anything.

[UPower]

# Enable the Watts Up Pro device.
#
# The Watts Up Pro contains a generic FTDI USB device without a specific
# vendor and product ID. When we probe for WUP devices, we can cause
# the user to get a perplexing "Device or resource busy" error when
# attempting to use their non-WUP device.
#
# The generic FTDI device is known to also be used on:
#
# - Sparkfun FT232 breakout board
# - Parallax Propeller
#
# default=false
EnableWattsUpPro=false

# Don't poll the kernel for battery level changes.
#
# Some hardware will send us battery level changes through
# events, rather than us having to poll for it. This option
# allows disabling polling for hardware that sends out events.
#
# default=false
NoPollBatteries=false

# Do we ignore the lid state
#
# Some laptops are broken. The lid state is either inverted, or stuck
# on or off. We can't do much to fix these problems, but this is a way
# for users to make the laptop panel vanish, a state that might be used
# by a couple of user-space daemons. On Linux systems, see also
# logind.conf(5).
#
# default=false
IgnoreLid=false

# Policy for warnings and action based on battery levels
#
# Whether battery percentage based policy should be used. The default
# is to use the time left, change to true to use the percentage, which
# should work around broken firmwares. It is also more reliable than
# the time left (frantically saving all your files is going to use more
# battery than letting it rest for example).
# default=true
UsePercentageForPolicy=true

# When UsePercentageForPolicy is true, the levels at which UPower will
# consider the battery low, critical, or take action for the critical
# battery level.
#
# This will also be used for batteries which don't have time information
# such as that of peripherals.
#
# If any value is invalid, or not in descending order, the defaults
# will be used.
#
# Defaults:
# PercentageLow=10
# PercentageCritical=3
# PercentageAction=2
PercentageLow=15
PercentageCritical=12
PercentageAction=10

# When UsePercentageForPolicy is false, the time remaining at which UPower
# will consider the battery low, critical, or take action for the critical
# battery level.
#
# If any value is invalid, or not in descending order, the defaults
# will be used.
#
# Defaults:
# TimeLow=1200
# TimeCritical=300
# TimeAction=120
TimeLow=1200
TimeCritical=300
TimeAction=120

# The action to take when "TimeAction" or "PercentageAction" above has been
# reached for the batteries (UPS or laptop batteries) supplying the computer
#
# Possible values are:
# PowerOff
# Hibernate
# HybridSleep
#
# If HybridSleep isn't available, Hibernate will be used
# If Hibernate isn't available, PowerOff will be used
CriticalPowerAction=PowerOff

CriticalPowerAction选项不会关闭笔记本电脑。笔记本电脑只是耗尽电池并立即关闭。

相关内容