Failed to parse '1, 0, 0; 0, 1, 0; 0, 0, 1' as a mount matrix
Sensor is sensed upside-down when normal and normal when upside-down Issue was not present with Ubuntu 20.10, rotation was working normal. Tested with 5.4 Kernel and 5.14 also, in all Kernel versions, y sensor axis is inverted.
uname -a
Linux surftab 5.10.49-1-MANJARO #1 SMP PREEMPT Sun Jul 11 12:59:43 UTC 2021 x86_64 GNU/Linux
systemctl status iio-sensor-proxy.service
iio-sensor-proxy.service - IIO Sensor Proxy service
Loaded: loaded (/usr/lib/systemd/system/iio-sensor-proxy.service; static)
Active: inactive (dead) since Fri 2021-07-23 11:25:42 CEST; 54min ago
Process: 386 ExecStart=/usr/lib/iio-sensor-proxy (code=exited, status=0/SUCCESS)
Main PID: 386 (code=exited, status=0/SUCCESS)
CPU: 550ms
Jul 23 11:24:23 surftab systemd[1]: Starting IIO Sensor Proxy service...
Jul 23 11:24:25 surftab systemd[1]: Started IIO Sensor Proxy service.
Jul 23 11:24:26 surftab iio-sensor-prox[386]: Could not find trigger name associated with /sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device1
Jul 23 11:24:26 surftab iio-sensor-prox[386]: Failed to parse '1, 0, 0; 0, 1, 0; 0, 0, 1' as a mount matrix
Jul 23 11:24:26 surftab iio-sensor-prox[386]: Failed to parse in_mount_matrix ('1, 0, 0; 0, 1, 0; 0, 0, 1') from sysfs
Jul 23 11:25:42 surftab systemd[1]: iio-sensor-proxy.service: Deactivated successfully.
/usr/lib/iio-sensor-proxy -v -r
** (iio-sensor-proxy:2920): WARNING **: 12:02:49.075: Could not find trigger name associated with /sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device1
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.075: Could not find trigger for /sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device1
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.075: Found IIO poll accelerometer at /sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device1
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.075: No auto-detected location, falling back to display location
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.075: Found device /sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device1 of type accelerometer at IIO Poll accelerometer
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.075: Found IIO poll als at /sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-CPLM3218:00/iio:device0
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.076: Found device /sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-CPLM3218:00/iio:device0 of type ambient light sensor at IIO Polling Light sensor
** (iio-sensor-proxy:2920): WARNING **: 12:02:49.099: Failed to parse '1, 0, 0; 0, 1, 0; 0, 0, 1' as a mount matrix
** (iio-sensor-proxy:2920): WARNING **: 12:02:49.099: Failed to parse in_mount_matrix ('1, 0, 0; 0, 1, 0; 0, 0, 1') from sysfs
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.099: Failed to auto-detect mount matrix, falling back to identity
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.099: No auto-detected location, falling back to display location
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.099: Failed to auto-detect scale, falling back to 1.0
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.105: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.106: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (iio-sensor-proxy:2920): DEBUG: 12:02:49.307: Light read from iio:device0: 8,000000, (scale 1,000000)
cat /sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device1/in_mount_matrix
1, 0, 0; 0, 1, 0; 0, 0, 1
tree /sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device1
/sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device1
├── buffer
│ ├── data_available
│ ├── enable
│ ├── length
│ └── watermark
├── current_timestamp_clock
├── dev
├── events
│ ├── in_accel_x_roc_either_en
│ ├── in_accel_x_roc_either_period
│ ├── in_accel_x_roc_either_value
│ ├── in_accel_y_roc_either_en
│ ├── in_accel_y_roc_either_period
│ ├── in_accel_y_roc_either_value
│ ├── in_accel_z_roc_either_en
│ ├── in_accel_z_roc_either_period
│ └── in_accel_z_roc_either_value
├── in_accel_sampling_frequency
├── in_accel_scale
├── in_accel_x_raw
├── in_accel_y_raw
├── in_accel_z_raw
├── in_mount_matrix
├── in_temp_offset
├── in_temp_raw
├── in_temp_scale
├── name
├── power
│ ├── autosuspend_delay_ms
│ ├── control
│ ├── runtime_active_time
│ ├── runtime_status
│ └── runtime_suspended_time
├── sampling_frequency_available
├── scan_elements
│ ├── in_accel_x_en
│ ├── in_accel_x_index
│ ├── in_accel_x_type
│ ├── in_accel_y_en
│ ├── in_accel_y_index
│ ├── in_accel_y_type
│ ├── in_accel_z_en
│ ├── in_accel_z_index
│ ├── in_accel_z_type
│ ├── in_timestamp_en
│ ├── in_timestamp_index
│ └── in_timestamp_type
├── subsystem -> ../../../../../../bus/iio
├── trigger
│ └── current_trigger
└── uevent
6 directories, 45 files
Edited by zz