I have a Lenovo IdeaPad Flex 3 2-in-1 laptop/tablet.
I am trying to get monitor-sensor to work so that I can install a version of the screen autorotation script that has been discussed elsewhere. The problem is that the iio-sensor-proxy service is not working.
My system specs:
dave@Daves-IdeaPad:~$ neofetch --off
dave@Daves-IdeaPad
------------------
OS: Ubuntu MATE 22.04.3 LTS x86_64
Host: 82G4 IdeaPad Flex 3 11ADA05
Kernel: 6.2.0-26-generic
Uptime: 4 days, 21 hours, 1 min
Packages: 2121 (dpkg), 20 (snap)
Shell: bash 5.1.16
Resolution: 1920x1080
DE: MATE 1.26.0
WM: Metacity (Marco)
Theme: Yaru-blue [GTK2/3]
Icons: Yaru [GTK2/3]
Terminal: mate-terminal
Terminal Font: Monospace 11
CPU: AMD Athlon Silver 3050e with Radeon Graphics (4) @ 1.400GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
Memory: 1691MiB / 3291MiB
When I run monitor-sensors, it hangs waiting for iio-sensor-proxy:
dave@Daves-IdeaPad:~$ monitor-sensor
Waiting for iio-sensor-proxy to appear
^C
dave@Daves-IdeaPad:~$
(After 2 minutes I pressed Ctrl-C to kill it.)
The system reports that iio-sensor-proxy is installed:
dave@Daves-IdeaPad:~$ apt search iio-sensor-proxy
Sorting... Done
Full Text Search... Done
iio-sensor-proxy/jammy,now 3.3-0ubuntu6 amd64 [installed,automatic]
IIO sensors to D-Bus proxy
dave@Daves-IdeaPad:~$
Thinking that the service wasn't running, I tried starting it:
dave@Daves-IdeaPad:~$ sudo systemctl start iio-sensor-proxy
[sudo] password for dave:
dave@Daves-IdeaPad:~$
No error was reported, but when I checked the status, it shows the service was started and then deactivated:
dave@Daves-IdeaPad:~$ systemctl status iio-sensor-proxy
○ iio-sensor-proxy.service - IIO Sensor Proxy service
Loaded: loaded (/lib/systemd/system/iio-sensor-proxy.service; static)
Active: inactive (dead)
Aug 22 12:25:13 Daves-IdeaPad systemd[1]: Starting IIO Sensor Proxy service...
Aug 22 12:25:13 Daves-IdeaPad systemd[1]: Started IIO Sensor Proxy service.
Aug 22 12:25:13 Daves-IdeaPad systemd[1]: iio-sensor-proxy.service: Deactivated successfully.
dave@Daves-IdeaPad:~$
Any ideas on what is going wrong?