[KERNEL][MOD] BLN kernel and liblights v5

Search This thread

craskman

Member
Feb 27, 2010
15
2
Hi,

I tried compile myself, all good but I softbrick my mini :( now i have to recover from the backup.

I would like to ask, if you could add this line in the config..

CONFIG_CPU_FREQ_GOV_INTERACTIVE=y

The driver is there and all seems good, we just need this line to have interactive gov available.

Thanks,
CrK


Neldar,

I dont want to make this thread a kernel howto'ish kind, but have you sync'ed everything on git repos?
I have compiled successfully without any change and I keep softbricking my mini, I was wondering if there is a smallish detail missing.

Thanks,
CrK
 

Adi_Pat

Senior Member
Dec 19, 2011
1,210
3,566
Mumbai
Ok, good to know.
So any kernel dev for the i8190 may just use the goldennfc_config.



Do the sms and call apps activate the screen while the notification is issued?
If the screen is on, then that will prevent the led notification from working.

And there is a new kernel version v3:
  • fixed led handling, blinking fix

edit: please report if the bug with the permanently activated leds is also fixed.
Hi neldar,

I got a bootable Kernel for i8190, its still in testing stages.
I will be releasing it very soon, its a direct port of my i9070 Kernel....
Can I use your BLN patches in my Kernel if you don't mind? :)
 

tux95

Senior Member
Dec 18, 2012
244
37
Rostock
Silly question, but has it Deep Sleep support? My processor runs allways with 200 MHz. I have installed V2 and Benzrom xxama2 V3.
 

dariolob

Senior Member
Jul 13, 2009
785
1,758
30
Silly question, but has it Deep Sleep support? My processor runs allways with 200 MHz. I have installed V2 and Benzrom xxama2 V3.

I'm also experiencing the lack of deep sleep, already disabled fast dormancy and running BBS to see if there's a wakelock but still nothing :(
 

neldar

Retired Recognized Developer
Jul 4, 2010
569
363
twitter.com
In v3 still the bug that the soft keys doesnt turn off. When you turn off the screen with the soft keys on, the soft keys still on, but when you turn off the screen with soft keys off, all works perfect.

Enviado desde mi GT-I8190 usando Tapatalk 2

How did you enable the soft key leds? Just by touching them?

Neldar,

I dont want to make this thread a kernel howto'ish kind, but have you sync'ed everything on git repos?
I have compiled successfully without any change and I keep softbricking my mini, I was wondering if there is a smallish detail missing.

Thanks,
CrK

How did you setup the build environment and build the kernel?
Please post your resulting boot.img.

Hi neldar,

I got a bootable Kernel for i8190, its still in testing stages.
I will be releasing it very soon, its a direct port of my i9070 Kernel....
Can I use your BLN patches in my Kernel if you don't mind? :)

Yes, of course, but it is still not finished. There is still the bug with the permanently enabled lights.

Silly question, but has it Deep Sleep support? My processor runs allways with 200 MHz. I have installed V2 and Benzrom xxama2 V3.

Are you referring to the following config lines?

CONFIG_DBX500_CPUIDLE_DEEPEST_STATE=3
# CONFIG_DBX500_CPUIDLE_APDEEPIDLE is not set
CONFIG_DBX500_CPUIDLE_DEBUG=y
 

craskman

Member
Feb 27, 2010
15
2
How did you setup the build environment and build the kernel?
Please post your resulting boot.img.

Thanks for the support, I have attached the boot.img i am getting.

I was wondering if I am using the wrong toolchain, have tried these 2 (both part of ubuntu 12.04 repos)

arm-linux-gnueabi-gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
arm-linux-gnueabi-gcc-4.7 (Ubuntu/Linaro 4.7.1-5ubuntu1~ppa1) 4.7.1

btw, I use CWM recovery to flash it (zip signed).

Thanks a ton,
CrK
 

Attachments

  • boot.img
    6.7 MB · Views: 17

neldar

Retired Recognized Developer
Jul 4, 2010
569
363
twitter.com
Thanks for the support, I have attached the boot.img i am getting.

I was wondering if I am using the wrong toolchain, have tried these 2 (both part of ubuntu 12.04 repos)

arm-linux-gnueabi-gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
arm-linux-gnueabi-gcc-4.7 (Ubuntu/Linaro 4.7.1-5ubuntu1~ppa1) 4.7.1

btw, I use CWM recovery to flash it (zip signed).

Thanks a ton,
CrK

edit: just noticed your initramfs does not contain some empty folders and the links are not properly set.
The git repo of my initramfs is not complete.

edit2: repo is now complete, but you should check why those symlinks are not correctly set in your initramfs.
 
Last edited:

craskman

Member
Feb 27, 2010
15
2
edit: just noticed your initramfs does not contain some empty folders and the links are not properly set.
The git repo of my initramfs is not complete.

edit2: repo is now complete, but you should check why those symlinks are not correctly set in your initramfs.

Hi, Thanks again. Indeed. Actually I could have spitted and look inside, has been awhile since I played with kernels.
I re-sync and I have created the symlinks manually, there were 4.

I only had time to do a quick test but no success yet. Next I will try my zimage with your initramfs and vice-versa.
Then I will know for sire if the issue is the ramdisk or the zimage. (our initramfs looks pretty the same at the moment)

The only think I see happening when i turn on the phone is the leds on he buttons flickering for moments, but then nothing happen.

If something comes up in your head what could be missing, let me know.
Thx,
CrK
 

neldar

Retired Recognized Developer
Jul 4, 2010
569
363
twitter.com
In v3 still the bug that the soft keys doesnt turn off. When you turn off the screen with the soft keys on, the soft keys still on, but when you turn off the screen with soft keys off, all works perfect.

Enviado desde mi GT-I8190 usando Tapatalk 2

I cant reproduce this bug.

Anyone who is experiencing this:
Please report what you did and in what condition your phone was at the time this bug occurred (battery level, charging, settings of bln control, ect. ).
 

Benzonat0r

Senior Member
Sep 4, 2009
1,298
1,256
I don't have this so called problem, all working fine here.

Edit: Except for the battery drainage. It's significantly higher than stock kernel.
 
Last edited:
  • Like
Reactions: Jealousi and ugeins

cholopo

Senior Member
Jan 14, 2011
184
240
Cobán A. V., Guatemala
In v4 the battery is still draining.
A comparison: in v3 battery drains more than v4 and that is appreciated.
But I would like it to last more battery.
In my case settled a bit with the application BatteryCalibration.apk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 56
    This kernel works on any Galaxy S3 mini version, not only the i8190!

    Requirements:
    • root (for installation, odin flashable still not available)
    • BLN control free or pro app
    The BLN mod is fully functional with the free version of the control app!
    If you like to support my work, you can buy the pro version.

    Installation:
    Method 1 (custom recovery required):
    Use the file 'blnmod-v5-gt-i8190-cwm.zip' in the recovery to install.

    Method 2 (manual installation):
    Extract the content of 'blnmod-v5-gt-i8190.zip' into /sdcard/ and execute:
    Code:
    adb shell su -c mount -o remount,rw /dev/block/mmcblk0p22 /system
    adb shell su -c cp /sdcard/lights.montblanc.so /system/lib/hw/
    adb shell su -c dd if=/sdcard/boot.img of=/dev/block/mmcblk0p20
    adb reboot

    Sources:
    https://github.com/neldar/linux_gt-i8190
    https://github.com/neldar/initramfs_gt-i8190
    https://github.com/neldar/buildenv_gt-i8190
    https://github.com/neldar/liblights_gt-i8190


    Changelog:
    • v2:
      • led brightness increased to 100%
      • nfc support added
      • ro.secure=0 and ro.debuggable=1 (this will be reverted for end user release)
    • v3:
      • fixed led handling, blinking fix
    • v4:
      • fixed setting of regulator state mem constraint
    • v5:
      • removed setting of regulator state_mem constraint (fix for increased battery drain)
      • added bln wakelock

    Known bugs:
    • none
    7
    Flashable zip anyone? :)
    6
    I don't have this so called problem, all working fine here.

    Edit: Except for the battery drainage. It's significantly higher than stock kernel.

    I built a new version, that actually should address the battery drainage:

    v4:
    • fixed setting of regulator state mem constraint
    4
    After some research I figured out that setting the state_mem constraint of the led regulator actually triggered a bug that prevented deepsleep. And I can conclude that it is not possible on the s3 mini to enable the button leds without using a wakelock (there is currently not method to enable a regulator in suspend on this platform, there is not public documentation of this available). However this is still more battery friendly than a screen based notification method...

    Please test the new kernel build v5:
    • removed setting of regulator state_mem constraint
    • added bln wakelock
    4
    I have tested it and it works fine without any problems. good work !:good:

    ---------- Post added at 12:54 PM ---------- Previous post was at 12:24 PM ----------

    Can someone make a flushable zip?

    Sent from my GT-I8190 using Tapatalk 2

    flash both .zips and install the app...
    custom-boot.zip - 6.75 MB
    lights.montblanc.zip - 270.87 KB