我在/sys/class/backlight/ - acpi_video0和intel_backlight中有两个文件.intel_backlight控制我的屏幕亮度(echo/cat),而acpi_video0是默认的。
默认情况下,服务systemd-backlight@acpi_video0.service是启用的,它应该在关机/启动时保存/恢复亮度,但由于指向错误的文件,它无法工作。
在尝试启用systemd-backlight@intel_backlight.service时,我得到以下消息:
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).我该怎么解决这个问题?
发布于 2015-11-01 20:21:50
您可能只是缺少了命令的backlight:部分:
# systemctl enable systemd-backlight@backlight:intel_backlight.service您还可能需要转义:,即:
# systemctl enable systemd-backlight@backlight\:intel_backlight.service因为在/sys/class/backlight/中有两个文件夹,所以您可能有两个显卡。拱维基建议在引导加载程序中添加以下内核参数之一:
acpi_backlight=video
acpi_backlight=vendor
acpi_backlight=native
acpi_backlight=nonehttps://unix.stackexchange.com/questions/110890
复制相似问题