屏幕自动旋转问题 - systemd hwdb

屏幕自动旋转问题 - systemd hwdb

我想让我的 Spectre x360 屏幕旋转正常工作。 iio-sensor-proxy正确找到正常方向,但是当我旋转笔记本电脑时,它没有记录任何移动。

我发现在某个地方为加速度计设置规则可以使其工作,所以我创建了/etc/udev/hwdb.d/61-sensor-local.hwdb.这里的内容:

#Entry for screen rotation
#device number /dev/iio-device0.0002
#devive modalias platform:HID-SENSOR-200086
#String formats: 
# sensor:modalias:<parent device modalias>:dmi:<dmi string>
#To load the new rules execute (as root):
#   systemd-hwdb update
#   udevadm trigger -v -p DEVNAME=/dev/iio:device0.0002
# where /dev/iio:deviceXXX is the device in question.

#Full dmi dmi:bvnAMI:bvrF.38:bd12/08/2022:br15.38:efr56.50:svnHP:pnHPSpectrex360Convertible13-ae0xx:pvr:rvnHP:rn83B9:rvr56.50:cvnHP:ct31:cvrChassisVersion:sku3DM09EA#ABZ:

sensor:modalias:platform:HID-SENSOR-2000*:dmi:bvnAMI:bvrF.38:bd12/08/2022:br15.38:efr56.50:svnHP:pnHPSpectrex360Convertible13-ae0xx:pvr:rvnHP:rn83B9:rvr56.50:cvnHP:ct31:cvrChassisVersion:sku3DM09EA#ABZ
ACCEL_LOCATION=display
sensor:modalias:acpi:/dev/iio-device*:dmi:bvnAMI:bvrF.38:bd12/08/2022:br15.38:efr56.50:svnHP:pnHPSpectrex360Convertible13-ae0xx:pvr:rvnHP:rn83B9:rvr56.50:cvnHP:ct31:cvrChassisVersion:sku3DM09EA#ABZ
ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1

但它不起作用。

我配置有问题吗?

相关内容