![如何修改sysfs中背光的scale属性?](https://linux22.com/image/230153/%E5%A6%82%E4%BD%95%E4%BF%AE%E6%94%B9sysfs%E4%B8%AD%E8%83%8C%E5%85%89%E7%9A%84scale%E5%B1%9E%E6%80%A7%EF%BC%9F.png)
用户如何更改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
完全可以修改吗?