首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >启用systemd-backlight@intel_backlight而不是@acpi_video0 0

启用systemd-backlight@intel_backlight而不是@acpi_video0 0
EN

Unix & Linux用户
提问于 2014-01-25 15:57:23
回答 1查看 8.4K关注 0票数 6

我在/sys/class/backlight/ - acpi_video0intel_backlight中有两个文件.intel_backlight控制我的屏幕亮度(echo/cat),而acpi_video0是默认的。

默认情况下,服务systemd-backlight@acpi_video0.service是启用的,它应该在关机/启动时保存/恢复亮度,但由于指向错误的文件,它无法工作。

在尝试启用systemd-backlight@intel_backlight.service时,我得到以下消息:

代码语言:javascript
复制
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, ...).

我该怎么解决这个问题?

EN

回答 1

Unix & Linux用户

发布于 2015-11-01 20:21:50

您可能只是缺少了命令的backlight:部分:

代码语言:javascript
复制
# systemctl enable systemd-backlight@backlight:intel_backlight.service

您还可能需要转义:,即:

代码语言:javascript
复制
# systemctl enable systemd-backlight@backlight\:intel_backlight.service

因为在/sys/class/backlight/中有两个文件夹,所以您可能有两个显卡。拱维基建议在引导加载程序中添加以下内核参数之一:

代码语言:javascript
复制
acpi_backlight=video
acpi_backlight=vendor
acpi_backlight=native
acpi_backlight=none
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/110890

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档