[ROM][v500][UNOFFICIAL] CyanogenMod 12.1 [20151124]

Deltadroid

Recognized Contributor
Apr 19, 2013
3,764
9,879
263
I know it's weird but that's the key on the v30b I'm using :eek:
Now that I think about it it does look wrong though.
at first, I though it was just a difference in case sensitivity, but now that I look closer, it is actually spelled differently than the stock key.

# Enable CRDA regulatory support by settings default country code
#gCrdaDefaultCountryCode=TW

currently, it is commented out on this rom.
 
  • Like
Reactions: fishears

fishears

Inactive Recognized Developer
Dec 15, 2010
2,870
3,126
0
github.com
at first, I though it was just a difference in case sensitivity, but now that I look closer, it is actually spelled differently than the stock key.

# Enable CRDA regulatory support by settings default country code
#gCrdaDefaultCountryCode=TW

currently, it is commented out on this rom.
I've decided to blame the itty-****ty font in Root Explorer's text viewer - not much of an excuse but I'm sticking to it now :eek:
It is generally commented out by default, I think its just there for users to be able to override without changing their country setup elsewhere.
EDIT: sorry to everyone for my ramblings
 
  • Like
Reactions: Deltadroid

Deltadroid

Recognized Contributor
Apr 19, 2013
3,764
9,879
263
since the key is commented out, it makes me wonder what the default is and if that default matches our current county code.

Edit: @fefifofum, since the commented out key is set to the Taiwan country code, I have a feeling that the Wi-Fi blobs in this rom default to Taiwan settings and the only way to make sure the country code is correctly set for the BR region is to manually set both keys.
 
Last edited:

fefifofum

Senior Member
Feb 27, 2012
628
9,794
0
since the key is commented out, it makes me wonder what the default is and if that default matches our current county code.

Edit: @fefifofum, since the commented out key is set to the Taiwan country code, I have a feeling that the Wi-Fi blobs in this rom default to Taiwan settings and the only way to make sure the country code is correctly set for the BR region is to manually set both keys.
That ini file is the one responsible for wifi country, not other blobs. The setting gCrdaDefaultCountryCode is commented out in LG's V30a and V30b, so the value is not forced and you can choose the wifi region from advanced wifi settings. The problem is that choosing wifi region from cm-12.1 settings isn't working properly (I have to look into that), so a workaround for now could be using gCrdaDefaultCountryCode. About gStaCountryCode=BR, these are the possible values:

# KOREA = KR, USA = US, JAPAN = JP, BRAZIL(LATIN AMERICA)/EU/others = BR

So BR is for every country except Korea, USA and Japan. In your case, you could set this: gCrdaDefaultCountryCode=GB (uncommenting the line, of course), which is the default value for Europe.
 

Deltadroid

Recognized Contributor
Apr 19, 2013
3,764
9,879
263
That ini file is the one responsible for wifi country, not other blobs. The setting gCrdaDefaultCountryCode is commented out in LG's V30a and V30b, so the value is not forced and you can choose the wifi region from advanced wifi settings. The problem is that choosing wifi region from cm-12.1 settings isn't working properly (I have to look into that), so a workaround for now could be using gCrdaDefaultCountryCode. About gStaCountryCode=BR, these are the possible values:

# KOREA = KR, USA = US, JAPAN = JP, BRAZIL(LATIN AMERICA)/EU/others = BR

So BR is for every country except Korea, USA and Japan. In your case, you could set this: gCrdaDefaultCountryCode=GB (uncommenting the line, of course), which is the default value for Europe.
Yes. Since the CM12.1 wifi ini is already setting the default country code to "BR" with gStaCountryCode, I thought we should also manually set CRDA to "BR" as well. I don't know what the actual defaults of those keys are (gStaCountryCode and gCrdaDefaultCountryCode) if they don't get set in the wifi ini file. The ini sets gStaCountryCode, but not gCrdaDefaultCountryCode, and they should be both set to the same country. I was thinking that since our wifi files are from a stock Taiwan ROM, then the defaults of those country code keys are probably not set to BR since they are not both defined in the wifi ini.

Edit:

gCrdaDefaultCountryCode=BR (not GB) *typo above*

Edit 2:

The setting gCrdaDefaultCountryCode is commented on the stock 5.0.2 ROM, but uncommenting it out and setting it to "BR" fixes the wifi channels in Europe (even if gStaCountryCode is already set to BR). Since that setting is commented out on the Taiwan ROM, then I believe gCrdaDefaultCountryCode is automatically defaulting to TW without having to set the value of that key in the wifi ini. That is why manually changing the value of gCrdaDefaultCountryCode to BR fixes the european wifi channels, even if gStaCountryCode is already set to BR.

Edit 3:

Setting proper regional CRDA support also seems to improve the Wi-Fi signal from dropping out when wmm power save delivery is enabled. I can now re-enable wmm power save mode on the router and Wi-Fi is not disconnecting. CRDA support also controls some of the Wi-Fi voltage.

Edit 4:

Enabling WMM power save is still causing the Wi-Fi to drop out in sleep mode. CRDA support did not fix that problem after all.
 
Last edited:

fefifofum

Senior Member
Feb 27, 2012
628
9,794
0
New build released

with updated blobs and fingerprint to V50020B and several wifi related changes. Wifi region is now managed from the kernel, it will find and set your region, so no need for the user to do anything. This will also fix the access to some high number wifi channels.
 

Deltadroid

Recognized Contributor
Apr 19, 2013
3,764
9,879
263
I have enabled WMM Automatic Power Save Delivery(APSD) on my router to test if the wifi speed drops when the device goes to sleep. The problem seems to be fixed now! After enabling APSD, I just had to reboot the tablet and it is working as expected. The wifi definitely seems better now with power management.
 

Deltadroid

Recognized Contributor
Apr 19, 2013
3,764
9,879
263
I also wanted to mention that since Wi-Fi power management is properly working now with the latest rom, I can now connect with a link speed of 72Mbps on 2.4 GHz. The link speed can not exceed 56 Mbps on an N network connection without Automatic Power Save Delivery (APSD) enabled. I was previously forced to disable that on the older ROM for Wi-Fi stability during sleep mode.

Great work!
 
Last edited:

ThunderBolt_BR

Senior Member
Mar 10, 2012
407
194
0
Itabira - MG
I also wanted to mention that since Wi-Fi power management is properly working now with the latest rom, I can now connect with a link speed of 72Mbps on 2.4 GHz. The link speed can not exceed 56 Mbps on an N network connection without Automatic Power Save Delivery (APSD) enabled. I was previously forced to disable that on the older ROM for Wi-Fi stability during sleep mode.

Great work!
I can confirm that. 72mbps linked to a TPlink TL-WR841ND running DD-WRT. It used to connect only at 65mbps maximum before this build.
Excellent job @fefifofum!

[]'s
 

Deltadroid

Recognized Contributor
Apr 19, 2013
3,764
9,879
263
I have not experienced a single sdcard unmount since installing this latest rom update. The solution to the sdcard issue might have something to do with the fact that I performed a "fsck" on the sdcard to check for any file corruption. The fsck process fixed a directory on the sdcard that might have caused the sdcard to unmount. There have been no sdcard unmounts in my log for over a week now.
 
  • Like
Reactions: takis and fefifofum

kbluhm

Senior Member
Dec 9, 2010
262
87
28
I have not experienced a single sdcard unmount since installing this latest rom update. The solution to the sdcard issue might have something to do with the fact that I performed a "fsck" on the sdcard to check for any file corruption. The fsck process fixed a directory on the sdcard that might have caused the sdcard to unmount. There have been no sdcard unmounts in my log for over a week now.
I did today, though it had been a while. :)

Sent from my LG-V500 using Tapatalk
 

Deltadroid

Recognized Contributor
Apr 19, 2013
3,764
9,879
263
I did today, though it had been a while. :)

Sent from my LG-V500 using Tapatalk
Here is what I did to try and fix the sdcard:

1) turn off tablet and remove sdcard.
2) insert sdcard into card reader and place in Linux box
3) unmount sdcard (sudo umount /dev/sdb1) assuming sdcard is automounted as /dev/sdb1. Check dmesg for actual mount point of sdcard.
4) check disk (sudo fsck /dev/sdb1)
5) put back in tablet and turn the tablet back on.
 
  • Like
Reactions: fefifofum

kbluhm

Senior Member
Dec 9, 2010
262
87
28
Here is what I did to try and fix the sdcard:

1) turn off tablet and remove sdcard.
2) insert sdcard into card reader and place in Linux box
3) unmount sdcard (sudo umount /dev/sdb1) assuming sdcard is automounted as /dev/sdb1. Check dmesg for actual mount point of sdcard.
4) check disk (sudo fsck /dev/sdb1)
5) put back in tablet and turn the tablet back on.
Thanks for the tip! I will give that a shot when I am near my Linux box at home.
 

nytral

Senior Member
Jul 30, 2010
56
11
0
Here sdcard is fat, fsck is ok but still not mounting although it does just fine in recovery.

Envoyé de mon LG-V500 en utilisant Tapatalk
 

fefifofum

Senior Member
Feb 27, 2012
628
9,794
0
New build released

with camera hdr related fixes and small selinux policies improvements. Now hdr works in google camera and other camera apps (except stock camera app for unknown reasons). But there's still a small issue: if you are in hdr mode, then change to auto scene mode, then back to hdr mode and take a picture, hdr won't be working. As a workaround you can switch to back camera and then to front camera again, or simply restart the camera app. I will try to fix that issue, but since this rom is already pretty stable, I will update it less often and focus on cm-13.0 now.
 

wizzardsk

Senior Member
Aug 16, 2013
979
130
0
Bratislava
Patience. There is an alpha version under s5 unified development thread. Search for it

Sent from my Android 5.1.1 LGV500 on CM 12.1 (20151030) or my Galaxy S5 900T with Android 5.1.1 with Resurrection Remix v 5.5.8
S5? You mean Galaxy S5? This is not very useful for G Pad 8.3. I was just curious. There is some early cm13 build for LG L90, for example.

Sent from my LG-V500 using XDA Free mobile app
 
  • Like
Reactions: youngsta2010
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone