LineageOS 14.1 Berni's alternative builds

CompactPhoneLover

New member
Jul 9, 2019
4
1
0
Is it just me or the WiFi frequently disconnects?
Yes, it does. But I had exactly same behaviour with stock ROM. It depends on the WiFi router. According to my findings, especially TP-Link routers with stock firmware cause very frequent disconnects of Z5C WiFi. With OpenWRT on the same routers, WiFi is much more stable. I assume it is an incompatibility issue with the lower OSI layers. But just a guess.

---------- Post added 13th August 2019 at 12:11 AM ---------- Previous post was 12th August 2019 at 11:54 PM ----------

There are a lot of ways to change gains. You can change the file /etc/mixer_paths.xml to adjust many many many many gains and so on... :angel:
Hi Berni.

I found a way to solve the ultra-low voice record mic-gain issue for me:
In mixer_paths.xml line 1518 I changed the DEC7 Volume value from 84 to 114.
For symmetry I also changed DEC9 (upper mic) in line 1523 to same value.

Code:
    <path name="dmic1-adj-gain">
        <ctl name="DEC7 Volume" value="114" />
    </path>
and
Code:
    <path name="dmic2-adj-gain">
        <ctl name="DEC9 Volume" value="114" />
    </path>
This way the mic gain for voice records (voice messages, recorder app) is very close to stock ROM.
I did not find any problems regarding other microphone uses with those high gains. But extensive tests are still missing.

Maybe you can include those changes in your next build, since I assume I am not the only one having those low-gain issues. Or am I?? :eek:
If you know a better value within mixer_paths.xml to address the low-gain issue, I am happy to try it out :)
 
Last edited:
  • Like
Reactions: YamiYukiSenpai

Berni-0815

Senior Member
Sep 22, 2016
1,711
1,442
123
Germany
I found a way to solve the ultra-low voice record mic-gain issue for me:
In mixer_paths.xml line 1518 I changed the DEC7 Volume value from 84 to 114.
For symmetry I also changed DEC9 (upper mic) in line 1523 to same value.
There has been a lot of discussion about different changes in the mentioned lines. Some people are reporting loud echos when encreasing both values.
That's the reason why I'm not changing these values in my rom.
If it's working for you: :good:
At my z5c my settings are working best.... :angel:
 

CompactPhoneLover

New member
Jul 9, 2019
4
1
0
There has been a lot of discussion about different changes in the mentioned lines. Some people are reporting loud echos when encreasing both values.
That's the reason why I'm not changing these values in my rom.
If it's working for you: :good:
At my z5c my settings are working best.... :angel:
OK, I see :cyclops:
But then this is a complete mystery for me:
All Z5Cs have identical mic gains with the very same stock mixer_paths.xml. But with LineageOS the mic gains vary between zero and full gain even though it's the same mixer_paths.xml among them...??! :confused::eek::silly:
Does the stock ROM have a separate single-device-specific calibration file to compensate hardware variations?
Or does the last value set by the stock ROM stay somewhere in the hardware and does not get re-set by LineageOS? (I had this with Bluetooth once on another device)

Probably the same counts for the auto brightness function of the screen. With LineageOS it's a total unusable mess on my device, whereas on stock ROM it worked like a charm.
By chance, did you work on that topic once? I read about adjusting the arrays.xml file which you get by decompiling framework-res.apk. It's feasible, but not as simple as editing mixer_paths.xml.

---------- Post added at 08:14 AM ---------- Previous post was at 08:11 AM ----------

New version out; see 1st post!
Thank you, thank you, thank you! :good:
Runs fast and smoothly as always :)
 

Berni-0815

Senior Member
Sep 22, 2016
1,711
1,442
123
Germany
But then this is a complete mystery for me:
All Z5Cs have identical mic gains with the very same stock mixer_paths.xml. But with LineageOS the mic gains vary between zero and full gain even though it's the same mixer_paths.xml among them...??!
I really don't know why this happens.

Does the stock ROM have a separate single-device-specific calibration file to compensate hardware variations?
(AFAIK) No!

Or does the last value set by the stock ROM stay somewhere in the hardware and does not get re-set by LineageOS? (I had this with Bluetooth once on another device)
I don't think so (don't hope so)

Probably the same counts for the auto brightness function of the screen. With LineageOS it's a total unusable mess on my device
Same here. Ja, that's another not well working thing; but I can't change it. Sorry
 

leeoniya

Senior Member
Aug 15, 2010
113
10
0
Yes, it does. But I had exactly same behaviour with stock ROM. It depends on the WiFi router. According to my findings, especially TP-Link routers with stock firmware cause very frequent disconnects of Z5C WiFi. With OpenWRT on the same routers, WiFi is much more stable. I assume it is an incompatibility issue with the lower OSI layers. But just a guess.
Wow, I thought I was going nuts. I recently switched from an Asus RT-N16 router with Tomato firmware to a TP-Link Archer C7 v5 with DD-WRT and started getting frequent WiFi drop-outs on my Z5C (but not on my Lenovo laptop with an Intel wifi chip). So it sounds like it's not the router. The TP-Link is an Atheros 9K chipset https://wikidevi.com/wiki/TP-LINK_Archer_C7_v5.x while the Asus is Broadcom: https://wikidevi.com/wiki/ASUS_RT-N16.

I'll try to post some adb logs soon to see if we can make any further progress.
 

Berni-0815

Senior Member
Sep 22, 2016
1,711
1,442
123
Germany
ok i have an ADB log attached with the WiFi dropping once or twice within ~2 mins.
Thanks!

I can see that the device is connecting and disconnecting (and then registering a new network) very often.
This behaviour can not be seen at my device. My device connects once and then works stable.

Maybe this is a problem with your wifi router? :confused:
 

YamiYukiSenpai

Senior Member
Oct 7, 2014
267
31
48
Thanks!

I can see that the device is connecting and disconnecting (and then registering a new network) very often.
This behaviour can not be seen at my device. My device connects once and then works stable.

Maybe this is a problem with your wifi router? :confused:
That's my issue exactly, but it seems that the antenna isn't as sensitive as it should be. This was happening back when I went to University of Illinois, and it's now happening here at home, too.

The Wi-Fi won't have stable connection, and sometimes can't detect it if the signal is weak. My other devices are fine at the same range.

https://mega.nz/#F!qQUmTACI

I sent you the decryption key
 
Last edited:

ChrisBa1507

New member
Sep 5, 2019
2
0
0
Hi all,

I have an issue with my network, that is a bit different.
WiFi works very stable but for me, the network (cell service) drops out ever few minutes (sometimes even just seconds). That only happens as long as I am on a WiFi. If I turn WiFi off, the cell service connection is very stable!
I tried updating to the latest firmware using flashtool and make a clean install of Bernies rom after that.
It still happens.
Anyone else facing that issue? Any idea what logs to capture to get an idea on what's happening?

Thanks for all you work and help!
 

ChrisBa1507

New member
Sep 5, 2019
2
0
0
Hi all,

I have an issue with my network, that is a bit different.
WiFi works very stable but for me, the network (cell service) drops out ever few minutes (sometimes even just seconds). That only happens as long as I am on a WiFi. If I turn WiFi off, the cell service connection is very stable!
I tried updating to the latest firmware using flashtool and make a clean install of Bernies rom after that.
It still happens.
Anyone else facing that issue? Any idea what logs to capture to get an idea on what's happening?

Thanks for all you work and help!
Problem is solved. I flashed it a third time and for some reason this time I don't encounter any network issues.
Thanks guys for that awesome ROM!
 
Feb 2, 2019
18
0
1
@Berni-0815 Thank you very much for maintaining this ROM! :) I like my z5c - it is compact (obviously) and waterproof which is essential for water-sports. It capsized with me two times already without lasting damage - only the camera lens was foggy for a few days. Thanks for all the work and effort you put into this!

Yesterday I finally found the time and courage to migrate from the last official LOS-release and had no problems worth mentioning :)

On thing I noticed: In the UnifiedNlp-Settings under "self-check" it says "Your Sytem does not support this UnifiedNlp package. Either install a matching package or a compatibility Xposed module." I'm not sure if there is something wrong with my install or if I can ignore this message.
 

username one

Member
Sep 2, 2019
17
2
3
Has someone been able to successfully install Edxposed? I always get stuck in a bootloop. It would be nice to be able to use Amplify and Greenify.
 
Last edited: