tuned icon indicating copy to clipboard operation
tuned copied to clipboard

`tuned-adm off` command prevents Tuned service from starting via dbus

Open mnoomnoo opened this issue 10 months ago • 1 comments

I used the command tuned-adm off to turn off the tuning configs, but when I run the following python snippet (to start Tuned again), it fails and Tuned remains not running (is_running returns false)

import dbus

bus = dbus.SystemBus()

proxy = bus.get_object("com.redhat.tuned", "/Tuned")
stop_method = dbus.Interface(proxy, dbus_interface="com.redhat.tuned.control")

result = stop_method.start()

print( result ) # prints 0 signaling failure.

Tuned does start if I use the command: tuned-adm profile my-profile

Operating System: Fedora Linux 41 KDE Plasma Version: 6.2.5 KDE Frameworks Version: 6.10.0 Qt Version: 6.8.1 Kernel Version: 6.12.10-200.fc41.x86_64 (64-bit) Graphics Platform: Wayland

mnoomnoo avatar Jan 30 '25 02:01 mnoomnoo

I can turn Tuned on / off without issue using dbus. It's only when I use tuned-adm off that I can't turn Tuned back on via dbus.

mnoomnoo avatar Feb 08 '25 16:02 mnoomnoo