| The Following 5 Users Say Thank You to piwadam For This Useful Post: | ||
zypper in nano
nano /etc/systemd/system/cpu-governor.service
[Unit] Description=set cpu governor to 'conservative' when 'active (exited)' or 'interactive' (default setting) when 'inactive (dead)' [Service] Type=oneshot ExecStart=/usr/lib/systemd/scripts/cpu-governor start ExecStop=/usr/lib/systemd/scripts/cpu-governor stop RemainAfterExit=yes SysVStartPriority=99 [Install] WantedBy=basic.target
mkdir /usr/lib/systemd/scripts/ nano /usr/lib/systemd/scripts/cpu-governor
#!/bin/bash
# Toggle script to switch CPU governor to 'conservative' or 'interactive.
# Used as systemd.service in combination with /etc/systemd/system/cpu-governor
# Can be used as simple 'toggler' without systemd.
start() {
/bin/echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
}
stop() {
/bin/echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*) exit 1
esac
chmod +x /usr/lib/systemd/scripts/cpu-governor systemctl enable cpu-governor.service
systemctl start/stop/restart/disable/status cpu-governor.service
| The Following 10 Users Say Thank You to minimec For This Useful Post: | ||
.
. And a silly bug that kept spawning camera apps, so I ended up with ~20 camera app cards.| The Following 15 Users Say Thank You to RealJohnGalt For This Useful Post: | ||
.| The Following 6 Users Say Thank You to BluesLee For This Useful Post: | ||
| The Following 5 Users Say Thank You to nh1402 For This Useful Post: | ||
| The Following 5 Users Say Thank You to jem555 For This Useful Post: | ||
devel-su ln -s /system/etc/acdbdata /etc/acdbdata ln -s /system/etc/audio_policy.xml /etc/audio_policy.xml ln -s /system/etc/mixer_paths.xml /etc/mixer_paths.xml reboot
devel-su ln -s /system/etc/acdbdata /etc/acdbdata ln -s /system/etc/audio_policy.xml /etc/audio_policy.xml ln -s /system/etc/mixer_paths.xml /etc/mixer_paths.xml reboot
| The Following 4 Users Say Thank You to minimec For This Useful Post: | ||