Reply
Thread Tools
Posts: 7 | Thanked: 15 times | Joined on Feb 2016
#671
Originally Posted by jellyroll View Post
On which kind of rom did you perform the 'hack'?
Stock rom .
 

The Following 5 Users Say Thank You to piwadam For This Useful 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:
Posts: 76 | Thanked: 377 times | Joined on Feb 2016
#673
Regarding sensors, I've done quite a bit of testing recently. Also a small note: All sensor blobs (except sensors.msm8974.so hal) are LM48B in these builds. In these most recent tests, I got in the habit of replacing all sensor blobs and sensor-related configs.

Here's what I've come up with:
- Hammerhead LM48B sensor blobs segfault sensorsfwd. If I replace just the hal, we get a different result (like with the flashable zip), where cpu usage doesn't spike or go above 3~5%.
- Tested onyx 5.1 sensor blobs/configs from around LM48B, cpu usage was around 3~5%, could never get it to spike up like on cm11.0 base. Additionally the Z axis lagged, and no proximity.
- Tested all our sister variant (lg og) sensor blobs/configs from around LM48B. Similar results to onyx, except proximity works as well. Some of the variant blobs would start by reporting incorrect orientation as well (with extreme delay), which would require service restarts. Remember that firmware also varies per-device, so we may have been running into an issue there.

Ultimately I wasn't able to get above 5% cpu on the sensors processes like in cm11.0 base, or get much better functionality/usage than just using the cm11.0 hal with LM48B blobs/configs (like with flashable zip).

There was a qcom source leak from around LM48B from the cm team (while working with Oppo) that I'm going to look for again. It can perhaps help us get a matched set of blobs (targeted for hammerhead) working with sensorfwd .

Edit: also, I got partial functionality from selinux enforcement (new policies) . And a silly bug that kept spawning camera apps, so I ended up with ~20 camera app cards.

Edit2: According to kimmoli, he gets 0.6~1.0% with screen on with onyx. So that's something to aim for.

Last edited by RealJohnGalt; 2016-05-02 at 19:49.
 

The Following 15 Users Say Thank You to RealJohnGalt For This Useful Post:
Posts: 76 | Thanked: 377 times | Joined on Feb 2016
#674
I was able to use a mixture of similarly tagged (from strings) blobs from onyx and hammerhead with edited configs, to get similar sensors process cpu usage to onyx. But with the functionality and responsiveness of pure hammerhead blobs -- so no laggy z axis or nonfunctional proximity .

The problem lied with configuration (though not sure exactly what yet), and we needed some different blobs to load some different options. The good news, is that memory usage is down for the processes. And cpu usage is far lowered (around what kimmoli witnessed on onyx).

These are still all 5.1 targeted blobs and configuration options, except for the hal. This is for the cm12.1 based sfos, and should be flashed on top in recovery.

https://www.mediafire.com/?2wtaz444yrl927q


Edit: I made a piratepad for the cm12.1 base to make fresh installs a bit easier until it gets to OBS. Check it out here: http://piratepad.net/bhP8fbzYgT

Last edited by RealJohnGalt; 2016-05-03 at 02:46.
 

The Following 13 Users Say Thank You to RealJohnGalt For This Useful Post:
BluesLee's Avatar
Posts: 411 | Thanked: 1,105 times | Joined on Jan 2010 @ Europe
#675
Don't flash the latest sensorsfix2.zip as it doesn't solve the issue: After locking and unlocking the device the sensor CPU processes stay at a very high level of about 7-9 %, at least this holds for my n5 model.

edit1: same seems to hold for sensorfix.zip after reflashing it, can someone confirm? did not checked the zip contents.

edit2: sensorsfix2.zip contains other shared libs and config files.

edit3: copied over ll's shared object file from http://talk.maemo.org/showpost.php?p...&postcount=526, looks much better now

Last edited by BluesLee; 2016-05-03 at 07:20.
 

The Following 6 Users Say Thank You to BluesLee For This Useful Post:
Posts: 288 | Thanked: 1,103 times | Joined on Jul 2014
#676
Originally Posted by BluesLee View Post
Don't flash the latest sensorsfix2.zip as it doesn't solve the issue: After locking and unlocking the device the sensor CPU processes stay at a very high level of about 7-9 %, at least this holds for my n5 model.

edit1: same seems to hold for sensorfix.zip after reflashing it, can someone confirm? did not checked the zip contents.

edit2: sensorsfix2.zip contains other shared libs and config files.

edit3: copied over ll's shared object file from http://talk.maemo.org/showpost.php?p...&postcount=526, looks much better now
How is the WiFi connection compared to the CM11 base?, in Sailfish for me it has been considerably weaker than Android.
 

The Following 5 Users Say Thank You to nh1402 For This Useful Post:
Posts: 58 | Thanked: 28 times | Joined on Aug 2007 @ Buenos Aires, Argentina
#677
Hi. I've been testing Bluetooth with this new release cm12 based and I can confirm (at least in my n5) two things:

-One good: connection now works way better. I mean, now I can connect and disconnect to my car audio and it stays working. Music sounds great!

-One bad: audio when making a call still has issues. An ugly noise over the voice as in cm11 based.

I'll keep testing. Great work guys!!!
__________________
Nokia 2160 > Nokia 5120 > Nokia 3595 > Nokia 3600 > Nokia 7710 > Nokia N95/N800 > Nokia N900 > Nokia N9 > LG Nexus 5 (Multirom: Sailfish/Cyanogenmod/MIUI) > Sony Xperia Z2 (MIUI) > Sony Xperia X (SailfishX)...but N900 still rockin'!!!
 

The Following 5 Users Say Thank You to jem555 For This Useful Post:
Posts: 76 | Thanked: 377 times | Joined on Feb 2016
#678
Originally Posted by BluesLee View Post
Don't flash the latest sensorsfix2.zip as it doesn't solve the issue: After locking and unlocking the device the sensor CPU processes stay at a very high level of about 7-9 %, at least this holds for my n5 model.

edit1: same seems to hold for sensorfix.zip after reflashing it, can someone confirm? did not checked the zip contents.

edit2: sensorsfix2.zip contains other shared libs and config files.

edit3: copied over ll's shared object file from http://talk.maemo.org/showpost.php?p...&postcount=526, looks much better now
Looks like we're actually back where we started with the sensor issues :/.

To put the second zip "fix" in perspective, I haven't been able to see above 1.3% cpu usage out of either sensor process -- no matter locking/unlocking or movement.

I don't get any change with the blob you linked, except for the z-axis now lagging. I updated the piratepad with a link and note toward the top. I'm not sure of a real world issue with having the z-axis lag, so if we're not able to come up with one, we can use llelectronic's blob.

Regarding audio quality issues on the cm12.1 base, please try running the following (over ssh or terminal):
Code:
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
If this works, it will be bundled in the next build and obs stuff with https://github.com/RealJohnGalt/droi...1d58f6decdda32
 

The Following 5 Users Say Thank You to RealJohnGalt For This Useful Post:
Posts: 97 | Thanked: 318 times | Joined on Feb 2012 @ Switzerland
#679
Originally Posted by BluesLee View Post
Don't flash the latest sensorsfix2.zip as it doesn't solve the issue: After locking and unlocking the device the sensor CPU processes stay at a very high level of about 7-9 %, at least this holds for my n5 model.

edit3: copied over ll's shared object file from http://talk.maemo.org/showpost.php?p...&postcount=526, looks much better now
I do agree that sensorsfix2.zip did not change a lot, but in combination with the mentioned 'sensors.msm8974.so' file (see 'edit3'), I have much better stats and also the 'sensors-in-idle-bug' is gone.

Originally Posted by RealJohnGalt View Post
...except for the z-axis now lagging.
I confirm that z-axis is lagging with the 'sensors.msm8974.so' file mentioned in 'edit3'.


Originally Posted by RealJohnGalt View Post
Regarding audio quality issues on the cm12.1 base, please try running the following (over ssh or terminal):
Code:
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
I made the links and rebooted, but see no change in sound quality for Bluetooth phone calls.

I recorded a sample music/call file from the earpiece of my Bluetooth headset to show you the difference in sound quality between Bluetooth Sound/Call...
https://www.dropbox.com/s/c0o7d9t0ne...-call.ogg?dl=0
 

The Following 4 Users Say Thank You to minimec For This Useful Post:
Posts: 97 | Thanked: 318 times | Joined on Feb 2012 @ Switzerland
#680
Originally Posted by nh1402 View Post
How is the WiFi connection compared to the CM11 base?, in Sailfish for me it has been considerably weaker than Android.
WiFi connection is a bit weaker than with Android but not that bad. In my apartment, the kitchen is a critical room when it comes to WiFi. I lose connection a little bit earlier with SailfishOS, but we are talking about 2-3 meters.

Last edited by minimec; 2016-05-03 at 21:35.
 

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


 
Forum Jump


All times are GMT. The time now is 19:29.