I’ve encountered an issue with auto-rotation on my laptop after updating to Fedora 41. After investigating, I found that the iio-sensor-proxy service is not running correctly. The service is supposed to enable sensors for auto-rotation, but it’s failing to do so. Would anyone know how I could fix this?
Here is the status output:
systemctl status iio-sensor-proxy
○ iio-sensor-proxy.service - IIO Sensor Proxy service
Loaded: loaded (/usr/lib/systemd/system/iio-sensor-proxy.service; static)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: inactive (dead) since Tue 2024-11-05 09:56:50 CET; 2min 45s ago
Duration: 64ms
Invocation: 4ac4c96e54024f098896523e9a4a5f4d
Process: 29998 ExecStart=/usr/libexec/iio-sensor-proxy (code=killed, signal=TERM)
Main PID: 29998 (code=killed, signal=TERM)
Mem peak: 3.4M
CPU: 41ms
Nov 05 09:56:50 zam607-wlan iio-sensor-proxy[29998]: ** (iio-sensor-proxy:29998): WARNING **: 09:56:50.727: Could not enable sensor /sys/devices/pci0000:00/0000:00:12.>
Nov 05 09:56:50 zam607-wlan iio-sensor-proxy[29998]: ** (iio-sensor-proxy:29998): WARNING **: 09:56:50.727: Could not open for write '/sys/devices/pci0000:00/0000:00:1>
Nov 05 09:56:50 zam607-wlan iio-sensor-proxy[29998]: ** (iio-sensor-proxy:29998): WARNING **: 09:56:50.727: Could not enable sensor /sys/devices/pci0000:00/0000:00:12.>
Nov 05 09:56:50 zam607-wlan iio-sensor-proxy[29998]: ** (iio-sensor-proxy:29998): WARNING **: 09:56:50.727: Could not open for write '/sys/devices/pci0000:00/0000:00:1>
Nov 05 09:56:50 zam607-wlan iio-sensor-proxy[29998]: ** (iio-sensor-proxy:29998): WARNING **: 09:56:50.727: Could not enable sensor /sys/devices/pci0000:00/0000:00:12.>
Nov 05 09:56:50 zam607-wlan iio-sensor-proxy[29998]: ** (iio-sensor-proxy:29998): WARNING **: 09:56:50.727: Could not open for write '/sys/devices/pci0000:00/0000:00:1>
Nov 05 09:56:50 zam607-wlan iio-sensor-proxy[29998]: ** (iio-sensor-proxy:29998): WARNING **: 09:56:50.727: Could not enable sensor /sys/devices/pci0000:00/0000:00:12.>
Nov 05 09:56:50 zam607-wlan iio-sensor-proxy[29998]: ** (iio-sensor-proxy:29998): WARNING **: 09:56:50.727: Failed to enable any sensors for device '/sys/devices/pci00>
Nov 05 09:56:50 zam607-wlan iio-sensor-proxy[29998]: ** (iio-sensor-proxy:29998): WARNING **: 09:56:50.727: Could not open for write '/sys/devices/pci0000:00/0000:00:1>
Nov 05 09:56:50 zam607-wlan systemd[1]: iio-sensor-proxy.service: Deactivated successfully.
❯ monitor-sensor
Waiting for iio-sensor-proxy to appear
^C⏎
~ took 3m38s
System details:
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.5-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 14 × Intel® Core™ Ultra 5 135U
Memory: 30.8 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: LENOVO
Product Name: 21LWS03500
System Version: ThinkPad X13 2-in-1 Gen 5
Originally posted at iio-sensor-proxy fails to enable sensor after update. (#401) · Issues · Bastien Nocera / iio-sensor-proxy · GitLab where the issue has been tagged as potential problem with upstream (fedora)