Bug 39480

Summary: некорректная работа iio-sensor-proxy с устройством /sys/devices/pci0000:00/0000:00:17.2/i2c_designware.6/i2c-11/i2c-KIOX000A:02/iio:device0
Product: Sisyphus Reporter: neurofreak <neurofreak>
Component: iio-sensor-proxyAssignee: Yuri N. Sedunov <aris>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: aris, mike, neurofreak, zerg
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description neurofreak@bk.ru 2020-12-25 05:40:09 MSK
Сервис iio-sensor-proxy выдает ошибку. Кидаю все что накопал. Помогите разобраться в чём дело.


[1]
$ monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: normal)
=== No ambient light sensor
    Accelerometer orientation changed: left-up
    Accelerometer orientation changed: normal
    Accelerometer orientation changed: right-up
    Accelerometer orientation changed: normal
    Accelerometer orientation changed: left-up
    Accelerometer orientation changed: bottom-up


[2]
$ systemctl status iio-sensor-proxy
● iio-sensor-proxy.service - IIO Sensor Proxy service
   Loaded: loaded (/lib/systemd/system/iio-sensor-proxy.service; static; vendor preset: disabled)
   Active: active (running) since Thu 2020-12-24 15:49:27 +07; 20min ago
 Main PID: 2402 (iio-sensor-prox)
    Tasks: 3 (limit: 4502)
   Memory: 4.5M
   CGroup: /system.slice/iio-sensor-proxy.service
           └─2402 /usr/sbin/iio-sensor-proxy

дек 24 15:49:27 irbis-celeron-cpu systemd[1]: Starting IIO Sensor Proxy service...
дек 24 15:49:27 irbis-celeron-cpu systemd[1]: Started IIO Sensor Proxy service.
дек 24 15:49:27 irbis-celeron-cpu iio-sensor-prox[2402]: Could not find trigger name associated with /sys/devices/pci0000:00/0000:00:>


[3]
$ journalctl -b | grep iio-sensor-prox
дек 24 15:49:27 irbis-celeron-cpu iio-sensor-prox[2402]: Could not find trigger name associated with /sys/devices/pci0000:00/0000:00:17.2/i2c_designware.6/i2c-11/i2c-KIOX000A:02/iio:device0


[4]
# tree /sys/devices/pci0000:00/0000:00:17.2/i2c_designware.6/i2c-11/i2c-KIOX000A:02/iio:device0
/sys/devices/pci0000:00/0000:00:17.2/i2c_designware.6/i2c-11/i2c-KIOX000A:02/iio:device0
|--uevent
|--scan_elements
|  |--in_accel_x_en
|  |--in_accel_x_index
|  |--in_accel_z_type
|  |--in_timestamp_type
|  |--in_accel_y_type
|  |--in_accel_z_en
|  |--in_accel_y_index
|  |--in_accel_x_type
|  |--in_timestamp_en
|  |--in_accel_z_index
|  |--in_accel_y_en
|  `--in_timestamp_index
|--in_accel_y_raw
|--power
|  |--runtime_active_time
|  |--runtime_active_kids
|  |--runtime_usage
|  |--runtime_status
|  |--autosuspend_delay_ms
|  |--async
|  |--runtime_suspended_time
|  |--runtime_enabled
|  `--control
|--in_accel_mount_matrix
|--in_accel_scale_available
|--dev
|--in_accel_z_raw
|--trigger
|  `--current_trigger
|--in_accel_scale
|--subsystem -> ../../../../../../../bus/iio
|--buffer
|  |--watermark
|  |--length
|  |--enable
|  `--data_available
|--current_timestamp_clock
|--in_accel_sampling_frequency_available
|--in_accel_sampling_frequency
|--events
|  |--in_accel_z_thresh_either_period
|  |--in_accel_y_thresh_either_value
|  |--in_accel_y_thresh_either_period
|  |--in_accel_y_thresh_either_en
|  |--in_accel_x_thresh_either_value
|  |--in_accel_x_thresh_either_period
|  |--in_accel_z_thresh_either_value
|  |--in_accel_z_thresh_either_en
|  `--in_accel_x_thresh_either_en
|--in_accel_x_raw
`--name


[5]
# udevadm info -export-db | grep ACCEL
E: ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1


[6]
# G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy

** (process:5464): WARNING **: 16:38:51.174: Could not find trigger name associated with /sys/devices/pci0000:00/0000:00:17.2/i2c_designware.6/i2c-11/i2c-KIOX000A:02/iio:device0
** (process:5464): DEBUG: 16:38:51.174: Found IIO poll accelerometer at /sys/devices/pci0000:00/0000:00:17.2/i2c_designware.6/i2c-11/i2c-KIOX000A:02/iio:device0
** (process:5464): DEBUG: 16:38:51.174: No auto-detected location, falling back to display location
** (process:5464): DEBUG: 16:38:51.174: Found device /sys/devices/pci0000:00/0000:00:17.2/i2c_designware.6/i2c-11/i2c-KIOX000A:02/iio:device0 of type accelerometer at IIO Poll accelerometer
** (process:5464): DEBUG: 16:38:51.184: No auto-detected location, falling back to display location


[7]
$ grep -inHr 'Could not find trigger name associated with'
src/drv-iio-buffer-light.c:135: g_warning ("Could not find trigger name associated with %s",
src/drv-iio-buffer-compass.c:130:       g_warning ("Could not find trigger name associated with %s",
src/drv-iio-buffer-accel.c:144: g_warning ("Could not find trigger name associated with %s",


Так же имеются подобные проблемы:

[8]
https://github.com/hadess/iio-sensor-proxy/issues/40

[9]
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1851935
Comment 1 neurofreak@bk.ru 2020-12-25 05:42:03 MSK
Возможно ещё это понадобится:

$ xrandr
Screen 0: minimum 320 x 200, current 800 x 1280, maximum 16384 x 16384
DSI-1 connected primary 800x1280+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   800x1280      60.00*+
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
Comment 2 neurofreak@bk.ru 2020-12-25 05:45:05 MSK
Со ссылкой [8] ошибся. Дожно быть https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/issues/288
Comment 3 neurofreak@bk.ru 2020-12-25 07:46:44 MSK
# lsmod | grep io_
industrialio_triggered_buffer    16384  1 kxcjk_1013
kfifo_buf              16384  1 industrialio_triggered_buffer
industrialio           86016  3 industrialio_triggered_buffer,kfifo_buf,kxcjk_1013
serio_raw              16384  0
Comment 4 neurofreak@bk.ru 2020-12-25 09:34:05 MSK
gdb не могу запустить. В версии для p9 пакет iio-sensor-proxy-debuginfo не собран.
Comment 5 Yuri N. Sedunov 2020-12-25 20:37:11 MSK
2cas@: Почему так легко перекидываются баги на сизиф, если версии разные?

[#263895] p9 TESTED srpm=libgudev-234-alt1.src.rpm iio-sensor-proxy.git=3.0-alt1
Пробуйте.
Comment 6 neurofreak@bk.ru 2020-12-26 11:57:16 MSK
В версии 3.0 ошибка осталась, пакет iio-sensor-proxy-debuginfo не нашёл.
Comment 7 Michael Shigorin 2020-12-26 12:53:32 MSK
Боюсь, это всё-таки не на пакет, а в апстрим (помнится, общались)...
Comment 8 neurofreak@bk.ru 2020-12-30 07:25:11 MSK
Написал сюда:

https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/issues/288
Comment 9 Sergey V Turchin 2021-12-10 15:00:37 MSK
Было бы хорошо iio-sensor-proxy в p10 обновить.
Мне не дали. https://git.altlinux.org/tasks/291688/
Мантейнер пакета наверняка знает, как лучше обновить.
Comment 10 Sergey V Turchin 2021-12-10 15:18:51 MSK
> Было бы хорошо iio-sensor-proxy в p10 обновить.
Ок, вижу, пошло в Сизиф. Дальше сам могу.