用户如何更改scale
sysfs 中暴露的背光的属性?在我的机器上它位于/sys/class/backlight/amdgpu_bl1/scale
.我尝试使用 udev 向文件添加写权限并写入它,但这并没有改变它unknown
。运行udevadm test /sys/class/backlight/amdgpu_bl1
返回:
amdgpu_bl1: /etc/udev/rules.d/90-backlight-scale.rules:5 RUN '/bin/chmod a+w /sys/class/backlight/amdgpu_bl1/scale'
amdgpu_bl1: /etc/udev/rules.d/91-backlight-scale.rules:5 RUN '/bin/echo non-linear > /sys/class/backlight/amdgpu_bl1/scale'
amdgpu_bl1: /usr/lib/udev/rules.d/99-systemd.rules:74 Skipping builtin 'path_id' in IMPORT key
amdgpu_bl1: Failed to update tags under /run/udev/tag/: Permission denied
运行 udev 脚本后,文件属性为
-rw-rw-rw-. 1 root root 4096 Mar 21 08:08 scale
echo non-linear | sudo tee /sys/class/backlight/amdgpu_bl1/scale
尝试用产量写入它
tee: /sys/class/backlight/amdgpu_bl1/scale: Input/output error
/sys/class/backlight/amdgpu_bl1/scale
完全可以修改吗?