I recently installed Mabox on the Tablet PC which has the display rotation and touch functions.
How I set it up:
1st
$ udevadm info -n /dev/iio:device0
P: /devices/platform/80860F41:02/i2c-2/i2c-SMO8500: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/platform/80860F41:02/i2c-2/i2c-SMO8500:00/iio:device0
E: DEVNAME=/dev/iio:device0
E: DEVTYPE=iio_device
E: MAJOR=237
E: MINOR=0
E: SUBSYSTEM=iio
E: USEC_INITIALIZED=8793512
E: ACCEL_MOUNT_MATRIX=-1,0,0;0,1,0;0,0,1
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:
2st
$ sudo dmidecode | grep Manufacture
[sudo] senha para utherbone:
Manufacturer: Digibras
Manufacturer: Digibras
Manufacturer: Digibras
Manufacturer: A1_Manufacturer0
Manufacturer: Intel
3st
$ sudo dmidecode | grep Product
Product Name: F10-30
Product Name: F10-30
4st
$ cd /lib/udev/hwdb.d
$ /lib/udev/hwdb.d $
5st
$ sudo nano 61-sensor-local.hwdb
sensor:modalias:acpi:SMO8500*:dmi*:svnDigibras*:pnF10-30:*
ACCEL_MOUNT_MATRIX=-1,0,0;0,1,0;0,0,1
6st
$ sudo udevadm trigger -v -p DEVNAME=/dev/iio:device0
7st
$ sudo systemd-hwdb update
8st
$ sudo pacman -S iio-sensor-proxy
9st
$ sudo systemctl enable iio-sensor-proxy.service
10st
$ sudo reboot
11st
$ sudo systemctl status iio-sensor-proxy
â—Ź iio-sensor-proxy.service - IIO Sensor Proxy service
Loaded: loaded (/usr/lib/systemd/system/iio-sensor-proxy.service; static)
Active: active (running) since Sat 2023-11-11 22:41:51 -04; 14min ago
Main PID: 389 (iio-sensor-prox)
Tasks: 4 (limit: 1056)
Memory: 1.2M
CPU: 312ms
CGroup: /system.slice/iio-sensor-proxy.service
└─389 /usr/lib/iio-sensor-proxy
nov 11 22:41:51 utherbone-f1030 systemd[1]: Starting IIO Sensor Proxy service...
nov 11 22:41:51 utherbone-f1030 systemd[1]: Started IIO Sensor Proxy service.
nov 11 22:41:52 utherbone-f1030 iio-sensor-prox[389]: Could not find trigger name associated with /sys/devices/platform/80860F41:02/i2c-2/i2c-SMO8500:00/iio:device0
12st
$ monitor-sensor
Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: undefined)
=== No ambient light sensor
=== No proximity sensor
Accelerometer orientation changed: normal
Accelerometer orientation changed: right-up
Accelerometer orientation changed: normal
Accelerometer orientation changed: left-up
Accelerometer orientation changed: normal
Accelerometer orientation changed: bottom-up
Accelerometer orientation changed: normal
^C
As you can see in step 12 I tested the sensor and it is correct. What I need is for the screen to rotate because I use it at university to present some graphs and articles at meetings, and the rotation function is very much needed. I’d really appreciate it if someone could help me.
NOTE: there is a part when checking sensor status it spits out that there is no trigger name associated with this device.