mirror of
https://abf.rosa.ru/djam/kernel-6.7-xanmod.git
synced 2025-02-23 09:02:47 +00:00

On EeePC 1015 PED (in Live mode), cpupower.service seemed to start too early, before /sys/devices/.../scaling_available_governors was there, and failed as a result. There were no such problems on faster machines, but still. Now cpupower.service will start only when 'scaling_available_governors' file is available. cpupower.path unit handles this. If CPU frequency scaling is not supported the file will never appear and cpupower.service will not start at all, which is natural.
14 lines
335 B
Desktop File
14 lines
335 B
Desktop File
[Unit]
|
|
Description=Configure CPU frequency settings
|
|
After=syslog.target
|
|
ConditionPathExists=/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
EnvironmentFile=/etc/sysconfig/cpupower
|
|
ExecStart=/usr/bin/cpupower-start.sh
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Also=cpupower.path
|