View Single Post
Posts: 97 | Thanked: 318 times | Joined on Feb 2012 @ Switzerland
#672
I did some heavy testing of the new CM12 base yesterday, and I agree with all the previous posters...
THX a lot to RealJohnGalt: It's a huge improvement!

pros+
- No Proximity/Orientation sensors problems anymore (note: I was using the 'unblank-restart-sensors' script before)
- Bluetooth audio: Perfect! (tested with a Bluetooth Headset and in my car)
- Bluetooth call: I got bad sound quality in my car, but it is basically working. The other person rated the call quality as 'good'.
- Camera recording was working once, but crashed when I tried to record a 2nd video.
- GPS is working great and is very accurate, but I miss A-GPS. (tested with MeeRun in my car)

cons-
- We still have that sensorsfwd/sensors.qcom bug in idle state.


I am still convinced that 'conservative' is the better CPU governor setting than default setting 'interactive'. I get better results in 'top' & 'powertop' for running programs and for idle state.
I created a little script that you can use as systemd.service or as simple 'toggler' from command line.

Installation as systemd-service:

I use nano...
Code:
zypper in nano
1. Create a file '/etc/systemd/system/cpu-governor.service' with the following content:

Code:
nano /etc/systemd/system/cpu-governor.service
Code:
[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
2. Create a file '/usr/lib/systemd/scripts/cpu-governor' with the following content:

Code:
mkdir /usr/lib/systemd/scripts/
nano /usr/lib/systemd/scripts/cpu-governor
Code:
#!/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
3. Enable cpu-governor.service (start on every boot)
Code:
chmod +x /usr/lib/systemd/scripts/cpu-governor
systemctl enable cpu-governor.service
After a reboot the CPU governor should be set to 'conservative'. You can 'start/stop/restart/disable' the service or check 'status' with systemctl.

Code:
systemctl start/stop/restart/disable/status cpu-governor.service

Last edited by minimec; 2016-05-02 at 17:01.
 

The Following 10 Users Say Thank You to minimec For This Useful Post: