mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
The BMAX MaxBook Y14 has 2 acceleromenter sensors, one seems to be in the display, the other in the base. With the default ACCEL_MOUNT_MATRIX monitor-sensor would report the display to be rotate of 180 degrees compared to its real position, i.e. upside down when normal and vice versa. Left up and right up are also swapped. Correcting the ACCEL_MOUNT_MATRIX for the display sensor solves the issue and monitor-sensor reports the correct values. For the Y13 model the Z axis value was also inverted. For the Y14 to work correctly, this is not necessary, but I'm not sure how to double check this. Sensors info: P: /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-KIOX010A:00/iio:device0 M: iio:device0 R: 0 U: iio T: iio_device D: c 237:0 N: iio:device0 L: 0 E: DEVPATH=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-KIOX010A:00/iio:device0 E: SUBSYSTEM=iio E: DEVNAME=/dev/iio:device0 E: DEVTYPE=iio_device E: MAJOR=237 E: MINOR=0 E: USEC_INITIALIZED=25931869 E: IIO_SENSOR_PROXY_TYPE=iio-poll-accel iio-buffer-accel E: SYSTEMD_WANTS=iio-sensor-proxy.service E: TAGS=:systemd: E: CURRENT_TAGS=:systemd: P: /devices/pci0000:00/0000:00:15.3/i2c_designware.3/i2c-3/i2c-KIOX020A:00/iio:device1 M: iio:device1 R: 1 U: iio T: iio_device D: c 237:1 N: iio:device1 L: 0 E: DEVPATH=/devices/pci0000:00/0000:00:15.3/i2c_designware.3/i2c-3/i2c-KIOX020A:00/iio:device1 E: SUBSYSTEM=iio E: DEVNAME=/dev/iio:device1 E: DEVTYPE=iio_device E: MAJOR=237 E: MINOR=1 E: USEC_INITIALIZED=26000295 E: IIO_SENSOR_PROXY_TYPE=iio-poll-accel iio-buffer-accel E: SYSTEMD_WANTS=iio-sensor-proxy.service E: TAGS=:systemd: E: CURRENT_TAGS=:systemd: accel-display acpi:KIOX010A:KIOX010A: dmi:bvnAmericanMegatrendsInternational,LLC.:bvr5.00_002:bd05/13/2024:br5.27:efr1.1:svnAMI:pnIntel:pvrDefaultstring:rvnAMI:rnIntel:rvrDefaultstring:cvnDefaultstring:ct31:cvrDefaultstring:skuH8Y6: accel-base acpi:KIOX020A:KIOX020A:
Files in this directory specify a description of hardware devices, in the form of mappings from modalias-like keys (which identify specific hardware devices) to udev properties. Files in this directory are not read by udev directly. Instead, man:systemd-hwdb(8) compiles them into a binary database. See man:hwdb(7) for an overview of the configuration file format, and man:systemd-udevd.service(8) for a description of the udev daemon. Use 'systemd-analyze cat-config udev/hwdb.d' to display the effective config.