[Bug]: PPD with scx_loader does not set the right scheduler mode on boot
bug
### Package name
power-profiles-daemon
### Package version
0.30-3
### Issue type
Runtime / functionality issue
### Description
On boot/first run power-profiles-daemon with the 0001-Add-support-for-scx_loader-modes-switching patch does not set the equivalent mode for the running scheduler.
### Steps to reproduce
1. set the scheduler mode different from the current power profile `scxctl switch`
2. systemctl restart power-profiles-daemon.service
3. `scxctl get` observe the mode did not switch
### Relevant logs or error output
```shell
```
### CachyOS bug report
_No response_
### Additional context
From a quick look at the patch adding switch_scx_loader_mode(...) to the on_scx_loader_proxy_cb callback else block would be the fix.
Also when changing the scheduler via scxctl the patch never updates its stored scheduler so itll set the scheduler right back on next profile change. This is a different issue and not really important as simply restarting the daemon updates its stored scheduler
0 条评论