yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] riwan15:
USB Keyboard and Mouse Problem

Hi guys, thanks for this kernel it's work really fine but i got a problem with USB Keyboard activation, when i press on Enable he says: <echo: writte error: operation not permitted ...(x5). unknow user/group system:systemchmod /dev/hidg* : No such file or directory>

Running on D802 / CM 13 / Lambda Infinito Marshmallow Stable 11232016

Thanks :eek:
[G2 Android Development] ytgbg:
Try latest release beta release for MM.
[G2 Android Development] riwan15:
Same problem, <system:systemchmod /dev/hidg* : No such file or directory> with the Beta 9 MM

Edit: Same problem, with more more more more freeze and reboot
[G2 Android Development] calvxrr:
Hi.

I've installed latest beta 9 for nougat. Now I have freezes. Always while display off. When I want to turn display on phone is dead. Only hard reset helps. I wanted to do logcat/last_kmesg but now I'm in work. Before I had latest experimental form 12042016 and never had any freezes. I'll try later when I'm at home.

BTW. I haven't touched kernel configs nor synapse. Everything stock infinito kernel.

ROM: D802 RR 5.8.0 Infinito beta 9.
[G2 Android Development] capoooro:
Goodmorning, I have a problem with audio in telephone calls with last beta kernel, the person on the other side don't hear me. With the experimental, under PA 7.0 and the kernel with the Rom itself, the audio calls are perfect.
[G2 Android Development] GalaticStryder:
Sometimes GPL sound controller freaks out, could you check the handset value in Synapse?

OBS: What has happened to XDA design?
[G2 Android Development] capoooro:
First install it brings all gain to 20... That causes to distort the speaker sound. Then I put everything to +5 and on the other side nobody hear me.
[G2 Android Development] falconhawk81:
Uninstall synapse, i have the same problem, without synapse all good.
[G2 Android Development] GalaticStryder:
What Synapse has to do with it? The tweaks are in UKM, which is a JSON file with a bunch of scripts that run in the background.

I do not endorse any other app that to tweak the Kernel, only UKM, in this case Synapse.

Set the microphone gain to a higher value or set the API to use FauxSound and test if you still got issues.

Removing the app is no solution at all.
[G2 Android Development] falconhawk81:
Hi, thanks, I'll try. I'll let you know again.
[G2 Android Development] falconhawk81:
Hello, 2 days without problems, today I put synapse as you told me, with the configuration you told me, and hours later, again the problem of the phone dont wake up, only reset. Good Night.

P.d: I have problem tonight, and this morning, i have to flash again the kernel, synapse touch something i think. :S
[G2 Android Development] niklas389:
Btw.: Awesome kernel! (:

But with the latest beta (9), I have some random reboots.

This one happend while snapchat was loading:
[G2 Android Development] GalaticStryder:
Thank you, the log says the V4L (video for Linux) driver crashed accessing msm_camera_cci_i2c_write_seq node (camera sensor).

This may have been introduced recently on CM as well and might be happening over there too, I'll look into it - or might be only at my tree.
[G2 Android Development] mohza:
Does this kernel support NTFS through OTG for external hard drive

LG G2 D802 AICP 7.1
[G2 Android Development] hitmancho:
Running Beta 9 on AICP 10 December nightly and I've yet to encounter a reboot or black screen. Synapse still doesn't remember its settings after a normal reboot (at least 2 minutes). Also, why does Synapse have confirmation buttons every time after a reboot? If I press X the buttons come back next time I open the app. If I press the tick it goes away. What am I approving? :D

I've encountered a sound problem, though. I noticed I could set up sound gains now and saw that they were all maxed out. My speaker sounded alright even with a maxed out slider as far as media went so I left it at that. Ditto for the mic. After that I had a call and the person on the other said I was pretty loud. Even when I was speaking very quietly they said it sounded as if I was speaking right into the mic (the sound was crackling, etc.). I decided to go into Synapse (with the call still on) and reduce the gain to 0. They said it was a bit better but I was still crackling and loud. I brought the microphone gain to -40 (low as it can go) and they said it was better but still not like before on my phone. Also, noise cancellation seemed to be off, as they heard ambient noises more than before. Could this be kernel-related (with the new sound settings)?

I'm going to go ahead and say I DO have a sound mod installed (sorry, they just sound amazing) but that can't influence the mic in confluence with the new kernel, right? Also, when I put the call on loudspeaker the speaker was LOUD. I reduced the speaker gain into the negatives and it was back to normal but media was pretty quiet. Is it possible that the audio responsible only for calls was somehow messed up in general? My Viper settings are OFF for phone speaker, so I don't think that's the problem. Never had it with previous version of this kernel with sound mods on.

Edit: After messing around with mic gain it got worse. After calling my dad's phone (that had no problems even with latest kernel), he could barely hear me. I raised gain to the max and it was still awful. I reflashed the newest AICP and then restored Viper4Arise and there were zero problems without this kernel. I think its sound mods are dodgy.
[G2 Android Development] niklas389:
Died again

Okay, so my phone rebooted itself about 5x in the last two hours, and I thought I could take a look in the log to see if it looks like my last - but for me it looks different. I think it is something with the GPU (again) but I'm a noob and thought it might help you :D :confused:
[G2 Android Development] GalaticStryder:
Danke!

I've found the issue, or the issues, there are a series of changes in the KGSL (GPU 3D driver) that were imported into the N5 Kernel tree (CAF) but then it was rebased and the changes are gone, guess they were actually bad.

23020bf...27ba1bf cm-14.1-caf -> myfluxi/cm-14.1-caf (forced update)
[G2 Android Development] AlexVipXDA:
I have reboot And bsod how can i help to solve that?
[G2 Android Development] khanjui:
Post a log. How can he fix it otherwise?
[G2 Android Development] brookemels:
Why was the stable release was pulled from github?
[G2 Android Development] GalaticStryder:
To release the new one :crank: and also I think that Github is a little bit weird to use for stable releases.

I might push them to AFH at this time.

Yes.

The next release will get many things sorted including the audio features. There's actually the biggest update in Synapse/UKM to handle everything. I'd recommend flashing the ROM again to repair the init files if coming from previous releases for M/N.
[G2 Android Development] AlexVipXDA:
I dont remember how do
[G2 Android Development] fuibauer:
Download Synapse and go to tools and save logcat. Then you have to upload the log.
[G2 Android Development] power988:
Hello, i'm having some problem with fast charging.

I have a D802 with OrionOS 2.6.1 + Lambda Kernel Infinito

I installed Synapse and set fast charge option to force with 1.8kma

Then i installed Ampere and made some tests with a 2A powerbank

On my phone it charges at 200ma :(

On another phone (stock rom, another model) it charges at 700ma (which is fair i think, bc usb cable current is capped at 1000ma, right?)

Can someone pls help me? What i'm missing??
[G2 Android Development] GalaticStryder:
No, USB wall charging can go all the way up to 2000mA, it hardly gets this rate though since this would demand no energy cost from the device and since it needs to be on for charging at high speed (FFC) then it will generally consume -70mA. The charging brick should be original that supplies 5V and 1,8A (~1800mA) on output, other chargers (generic ones) aren't recommend to be used with FFC enabled at custom inputs.

Charging via USB 3.0 can reach ~850mA and 2.0 ~400mA generally.
[G2 Android Development] power988:
Thank you very much for your answer, this helped me a lot to understand :)

The only missing point is this:

Charging via USB 3.0 can reach ~850mA and 2.0 ~400mA generally.

Assuming i don't know what kind of usb ports my powerbank use, then why on the other phone it charges at 700ma and on my D802 it charges at 200ma?
[G2 Android Development] rdNNNN:
[MENTION=6175749]GalaticStryder[/MENTION]

Been using your kernel for 4 months without any issues.

Unfortunately, my LG G2 Wifi adapter broke this week. Wifi stays stuck on "turning on". Hardware problem. Disassembled the phone, put a folded paper making pressure on WIFI Chip, worked fine for 2 days, but the problem returned, as I fully expected.

Because that, my device is slow (1 core max usage forever draining my battery) and it frequently freezes and reboot by itself. I'm kindly asking you if it possible to permanently disable the wifi adapter via kernel (or other method you may know), sorta like fully uninstall and remove driver on a windows computer, so android system stops trying to use the Wifi. Trying to turn wifi down via settings/terminal is useless as it's not fully disabling the hardware itself.

It may be slightly off topic, but I've seached for days and can only find solutions for old android versions or terminal comands (like ifconfig wlan0 down) and you might have the knowledge that I'm looking for

Thanks in advance
[G2 Android Development] Huzaifashaikh0012:
Am having the same problem
[G2 Android Development] GalaticStryder:
Please test on CM13 nightly. They added some ZRAM stuff to it and I needed to update the init for it. Clean flash then flash the Kernel.

https://drive.google.com/folderview?id=0B0kZ4DVPwVcMTnVLOU53ZWFHaDA

CPU usage on latest nightly is huge compares to AOSPA 6 and previous stable from August. Synapse doesn't work on it as well, but it works just fine on earlier builds and PA6.
[G2 Android Development] AlexVipXDA:
I have strange issue. So at every reebot synapse reset my setting, so before I open app for set again my mic go crazy and in call no one listen my voice and in what's app rec my audio is too much strong. If I don't open synapse and leave it reset all audio work perfect. How can I fix?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] fuibauer:
Tested the experimental in latest cm 13 nightly. In calls people couldnt understand me because the micro brrzzzz. Also the loudness oft the speakers is very low again. Except those two all is working fine.
[G2 Android Development] GalaticStryder:
Can you take a look at Synapse? Open it, make some changes and then reboot - see if it's gonna stick. I'm debugging this on latest nightly from CM and no luck at all.
[G2 Android Development] AlexVipXDA:
Same problem but on RR have you try to reboot and not open synapse? Or reset it?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] meloalain:
Hi I installed the beta 7 nougat on CR droid ls980 and I experienced so many builds.
[G2 Android Development] fuibauer:
Yeah i tried to change the values in synapse but i couldnt get that mic to work properly. Had to revert back to cm kernel :crying: but with the normal kernel the mic working good.
[G2 Android Development] AlexVipXDA:
Your synapse when reboot can take yours setting?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] fuibauer:
Nope. Just had to reapply them. But i tried sound recorder APP and there the mic was fine. Only calls and loudness... :(
[G2 Android Development] AlexVipXDA:
Try to reboot and not open synapse and tell me if work fine calls

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] damianmu:
I had the same problem. Reboots, cleaning synapse data and reinstalling kernel not help. I did dirty install so maybe this is the reason but for now I have installed previous build.
[G2 Android Development] AlexVipXDA:
Beta 8 not have this problem?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] fuibauer:
Sry for the late anwser but restart didnt help as mentioned above. im on normal cm kernel and calls are fine =).
[G2 Android Development] GalaticStryder:
BETA 10 - the last build...

After a lot of work and latest patches running on my device for 2 weeks now, I'm releasing the Kernel with the latest upstream features and with most issues addressed including support for almost all version of CM, from nightly to stable in a very painfully written script to detect and query for the changes to address the custom patches on a per-ROM basis.

The release is scheduled for today for all variants running Android marshmallow since it's the version I tested myself for more time. If I judge the nougat version stable after some more hours (little quality assurance tasks) I'll push them as well.

The main issues fixed were related to the IPV4 bug to was probably making some Wi-Fi networks to crash, the F2FS bugs were also mitigated as well as more fixes and other script stuff at anykernel side.

The low volume during calls should be tested, I pushed some fixes to it and set the volumes on post-boot script using the OSS API for sound control and then locked to the proprietary once again, not sure why it would help but someone might test and give some feedback as I can't test it myself with this device.

Most of those fixes were imported from the AOSPA7 version of Lambda, tested roughly for one week without reboots, slowdowns, nothing.

All variants compiling right now, I'll publish the release on Github when the release is good to go.

Have a great day. Merry Christmas everyone in case this is the last of 2016!
[G2 Android Development] VzQzZ:
I usually don't ask this kind of question, but which ROM would you recommend to use the kernel with?

I always pair it with AOSPA 6 cause it's my favourite MM ROM, but wonder if CM isn't better since it's more updated and has latest security patches etc..

Just for curiosity.

Anyway, thanks for your hard work and Merry Christmas :)
[G2 Android Development] GalaticStryder:
Well, CM13 has a great potential to be LTS for the LG G2 and might be stable (super might) because we know how stuff works there. Anyway, Synapse doesn't seem to work on CM13 for me and I couldn't make it work - no way it would restore my settings at the same time AOSPA6/AOSPA7 both restore everything just fine, this is a "deal breaker" for me and also because I don't use CM myself, wish them all the best but not my type of project at the moment. The security patches have some love/hate relationship with the community in general, the abstraction layer that could be exploited is just a drop of water in an ocean, it surely increases security, but you're safe from who and why would extremely hard to find debugging exploits in AOSP matter when all you do can be tracked from your ISP due to many lacks in security inside their data centers ruled by people that don't have a clue what SELinux is. The best security you can get is encryption and avoid sharing too much on social platforms, disabling GPS tracking when not needed and other personal safety in real-life.

P.S.: Alles variants popping slowly at https://github.com/GalaticStryder/kernel_lge_msm8974/releases/tag/IB10M - Thread will be cleaned and update after the tons of stuff.
[G2 Android Development] VzQzZ:
Thank you for the explanation. To be honest, I don't really mind security patches and all that stuff. I believe that in the end, the user itself is the golden key to a great security.. Of course, I will aways try to be up to date with all that stuff, but nothing that takes my sleep away.

I'll stick with AOSPA 6 then. Actually I'm on Stock LP 30F + Dorimanx at the moment, but certainly will test the new beta soon :)
[G2 Android Development] AlexVipXDA:
If you want I can test nougat version

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] belgianrebel:
So far no wifi reboot in latest release, fingers crossed. Merry Christmas to you 2

Edit: I spoke to soon this morning the reboots returned, again after disabling WiFi the reboots stop...
[G2 Android Development] murok9042:
Low volume calls are still present in BETA 10. Also Synapse doesn't load my config after reboot.

Using RR M v5.7.4 btw.

Anybody else with the same problem?

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Android Development] cryerenable:
"Synapse boot canceled" after reboot,how i can fix it?

cDroid 7.1.1
[G2 Android Development] GalaticStryder:
Could you remove try removing those lines at /sbin/lambda-post_boot.sh:

############################
# Sound Control
#
sleep 0.25
echo "[Lambda] Sanitizing sound control options" | tee /dev/kmsg
echo "1" > /sys/kernel/sound_control_3/lge_stweaks_control
echo "254 254" > /sys/kernel/sound_control_3/lge_headphone_gain
echo "1 1" > /sys/kernel/sound_control_3/lge_speaker_gain
echo "4" > /sys/kernel/sound_control_3/lge_mic_gain
echo "3" > /sys/kernel/sound_control_3/lge_cam_mic_gain
echo "0" > /sys/kernel/sound_control_3/lge_stweaks_control

This would let the sound driver choose what it wants to use after boot.

Synapse problems can be catched with adb logcat and appended here: https://github.com/GalaticStryder/anykernel_lge_msm8974/blob/nougat/synapse-debug.txt

So far works great on both AOSPA versions, not sure what could have messed up Synapse, maybe an older version will work better like stable CM. Since RR is CM this was expected...

Thanks for the feedback.
[G2 Android Development] murok9042:
[MENTION=6175749]GalaticStryder[/MENTION]

Deleting those lines you have mentioned and still low volume during calls.

Why did you implement an older version of synapse? There is a newer one from 07082016.

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Android Development] GalaticStryder:
This version is compiled from source on Android Studio, it has some fixes not yet merged from Github. I'll enable debugging in sound control and see what I can get. Did you try using the proprietary API and app from Faux? Seems like the default value for mic setting is the maximum when not setting anything (24).

OBS: I forgot to disable some channels from the LG G2 that are probably being set to -1 and causing low audio during calls. Hay!
[G2 Android Development] Tibiti:
Volume settings

I may be late for the party but what I worked out is that you have to select Synapse as the Sound Control API and adjust the Mic gain (set mine to 12 from 4). Called my mate 4 times and this way he could hear me he said...
[G2 Android Development] GalaticStryder:
Yes, I got what is going on under the hood of sound control, AOSP seems to pick totally high values for those channels but nobody cares since those channels weren't exposed anyway. Now they and they being set to a default value of 4 which is not what it wants, it wants to set 24 to be normal.

I've set Synapse to control only speaker and headphone gain right now and made a call, it went fine. I'll test some more and publish a new decent release!
[G2 Android Development] Tibiti:
I have to say I admire your commitment. Don't stress yourself much though, the latest stable is working wonderfully..

Congrats for getting the kernel to where it is. :good:
[G2 Android Development] CaseyS:
I seem to be getting this every time I open synapse. Model - D800 running AICP 7.1.1 Can anyone tell me why this is. Flashed over stock kernel. Thanks in advance.
[G2 Android Development] GalaticStryder:
Probably older SQLite version from CM, please take a look at this:

https://github.com/GalaticStryder/anykernel_lge_msm8974/blob/nougat/synapse-debug.txt

To contribute with our findings, just run the command above or send me your logcat from tools page.
[G2 Android Development] flyinjoe13:
I hope I am not asking a dumb question, but the original post says the latest stable release is IS. The downloads page on Github says they are all beta in the filename. Am I missing something on the downloads page for the stable version or is this simply the way you name the files? I downloaded N10, but want to make sure I wasn't supposed to download something else for the stable version.

Thanks

EDIT: Went ahead and flashed N10, but for some reason Synapse won't open. I tried to updating it from the playstore, but no luck there either. Should I reflash the kernel or did I do something wrong originally?
[G2 Android Development] GalaticStryder:
Do not update Synapse, we have a newer version with the following fixes. It's the same app built with Android Studio, I'll see if I can change the manifest ID to avoid conflicts with the official one. Sometimes it takes a while to regenerate the configs, so wait a little longer after boot and make sure root is available.
[G2 Android Development] flyinjoe13:
Ok. Then I will have to try and figure out why it won't open and the boot changes are canceled when I turn the phone on. Let me ask this, if I have no need to make tweaks to your kernel, do I even need Synapse? Does the kernel function without it or are their changes you've made that don't get set without Synapse tweaking things on startup?

Thanks for the help....
[G2 Android Development] GalaticStryder:
I'll need to go back to stock today before replacing my phone's panel, I'll publish a new release for nougat so people can test the latest changes in sound driver, the OTA total survival script - backs up and restores UKM, Synapse and Kernel - together other miscellaneous changes in UKM to organize the stuff a little bit better.

Answering the question, you don't need UKM - which are many Lambda Kernel scripts that handle how Synapse (the app) will create the UI - although without UKM, you'd be using only the default settings which are fine (ondemand + msm hotplug).

If you want to disable UKM, open the .zip and change anykernel.sh line:

do.ukm=1

To:

do.ukm=0

This will not push UKM scripts, nor Synapse app to your system/data partitions and you'll need to use something else to tweak the Kernel settings or go fully with Android Terminal.

Sound Control will not tune the microphone settings anymore and will use the defaults:

root@d802:/sys/kernel/sound_control_3 # ls
gpl_cam_mic_gain
gpl_headphone_gain
gpl_headphone_pa_gain
gpl_mic_gain
gpl_sound_control_hw_revision
gpl_sound_control_locked
gpl_sound_control_rec_locked
gpl_sound_control_version
gpl_speaker_gain
lge_cam_mic_gain
lge_headphone_gain
lge_headphone_pa_gain
lge_mic_gain
lge_speaker_gain
lge_stweaks_control
sound_pa_control_locked
sound_reg_read
sound_reg_sel
sound_reg_write
root@d802:/sys/kernel/sound_control_3 # cat lge_speaker_gain
7 7 # Synapse personal change, default is 1
root@d802:/sys/kernel/sound_control_3 # cat lge_headphone_gain
254 254 # -2
root@d802:/sys/kernel/sound_control_3 # cat lge_cam_mic_gain
24 # Driver defaults.
root@d802:/sys/kernel/sound_control_3 # cat lge_mic_gain
24 # Driver defaults.
root@d802:/sys/kernel/sound_control_3 # cat gpl_mic_gain
24 # Driver defaults.
root@d802:/sys/kernel/sound_control_3 # cat gpl_cam_mic_gain
24 # Driver defaults.
root@d802:/sys/kernel/sound_control_3 # cat lge_stweaks_control
0 # Can be switched to 1 to use Synapse and then switched back to 0 to use Faux app

If anyone wants to test the OTA survival stuff and the new changes: https://drive.google.com/drive/folders/0B0kZ4DVPwVcMTnVLOU53ZWFHaDA?usp=sharing (D802)
[G2 Android Development] Frytz:
hi! thanks for your work!!! Tried your experimental kernel on my RR 5.8.0 7.1.1 and stuck on LG logo. restored rom's default kernel and phone boots again

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] lash444:
Phone : VS980

Rom: Crdroid 7.1.1

Anyone have an issue where when they unplug the phone from usb that it reboots? Don't have this issue on crdroid without the kernel. I do use usb tether frequently. Maybe its only when I am tethering that this happens???
[G2 Android Development] GalaticStryder:
There's a hack in the USB code to allow using the phone as a mouse, the code is very poor and might be the root of some USB related issues.

Could you try posting you last_kmsg exported from Synapse?

My bad, I discovered that file_contexts has changed on 6.0+ and thus frandom injection was messed up, since SELinux is permissive I'll still ship it as most N ROMs are permissive at initial builds.