pyamsoft / pstate-frequency

Easily control Intel p-state driver on Linux
https://pyamsoft.blogspot.com/
GNU General Public License v2.0
172 stars 19 forks source link

pstate-frequency.service fails to load an auto plan when boot is too fast #19

Closed pyamsoft closed 8 years ago

pyamsoft commented 8 years ago

When using quicker hard drives like an SSD to boot, the quickened boot currently causes the pstate-frequency.service to fail, stating that it could not find a valid online power supply status. This is caused in part, because the machine boots very quickly (sub 1 second in userspace), causing the pstate-frequency.service file to fire perhaps before the required sys directories are created/mounted.

For the time being, enabling the udev service can apply the same effect of running the auto plan at boot. While not a huge issue, it will cause the service to fail making systemd mark the boot as not all clean.

Investigate systemd targets to see if pstate-frequency can be called only when sys is available.

pyamsoft commented 8 years ago

Calling the service with systemctl restart right after boot finishes performs as expected, allowing the service to finish successfully.

pyamsoft commented 8 years ago

Fixed in recent 2.0.0 release.