FORUMS

A Helpful Guide to Music Streaming Services

With the launch of Apple Music, music streaming services have recently gained a lot of … more

An Inside Look at the Redesign of Business Calendar

The much-acclaimed calendar app, Business Calendar, underwent a major design … more

New Android One Device Dead On Arrival

Today, Google announced the second generation of Android One devices, with the new Lava Pixel … more

OnePlus 2 Leaked, Actually Prettier Than Expected

The OnePlus 2 launch event is mere hours away, and we have been treated to clear, … more

[KERNEL] Furnace-1.0.5 for Nexus 4 [AOSP/CAF][8/9/2014][DT2W-PROFILE][S2D][LZ4]

1,734 posts
Thanks Meter: 5,531
 
By savoca, Recognized Developer / Recognized Contributor on 16th July 2014, 06:42 AM
Thread Closed Subscribe to Thread Email Thread


I will update this as long as I have time, introducing new features and fixes for any issues that may arise.

If you have any feature requests or ideas that haven't been seen before, don't hesitate to throw it out there, I love new things!

If you're concerned about benchmarks, go here.

Features:
Quote:


Android: KK (aosp) / L-Preview (l-preview) / CAF (cm-11.0)
CC: Linaro 4.9.1 1406
Ver: 3.4.102
Kernel Compression: LZ4
Ramdisk Compression: LZ4
Min Freq: 94500
Max Freq: 1836000
TCP: HTCP/HSTCP/HYBLA/VEGAS/SCALABLE/LP/VENO/YEAH/ILLINOIS/WESTWOOD(default)
FS: exFAT/F2FS
IO: ROW/BFQ/SIO/FIOPS/ZEN/VR/NOOP/CFQ/DEADLINE(default) / (default readahead - 512)
GOV: intelliactive/ondemandplus/wheatley/ondemand(default)/userspace/powersave/performance/interactive
HotPlug: MPDecision/msm_hotplug(default)
Voltage Control
TouchWake
Semaphore DoubleTap2Wake
DoubleTap2Wake Profiles
DoubleTap2Wake Feather
Bidirectional Sweep2Sleep
Sweep2Dim
Gamma Control
Battery Life eXtender
Force Fast Charge
FSync system call control
Faux123's Sound Control
FRandom
VFP Hardfloat
CPU-Boost
Linaro's Power-Efficient Workqueue

Quote:

Sweep2Dim uses a modified version of the sweep2wake drivers in combination with LG's LCD KCAL driver to raise or lower RGB multipliers based on sweep gestures.



Right -> Left sweeps drop the kcal multipliers by 73 (or, 33% of the 220 avail)
Left -> Right sweeps raise the kcal mulitpliers by 73

If you sweep left continuously, or until your display goes "black", the driver will trigger a powerkey press and turn off the display.

Since KCAL does not alter your backlight's brightness, you Sweep2Dim can work parallel to auto-brightness, and you can even use it to dim the display lower than the brightness 'slider' allows for.

Sweep2Dim is enabled by default, if you want to disable it, just enable Sweep2Wake/Sleep.

Quote:

Main builds have a stock max frequency of 1512MHz
OC tagged builds enable max frequency up to 1836Mhz

download / source / changes

Dev Resources:

You will need to get a hold of the latest unpackbootimg/mkbootimg/lz4demo/dtbToolCM binaries, here's a copy of my ~/bin

Boot partition is located here: /dev/block/platform/msm_sdcc.1/by-name/boot

To unpack:
Code:
mkdir output
./unpackbootimg -i boot.img -o output
To repack:
Code:
./mkbootimg --kernel output/boot.img-zImage --ramdisk output/boot.img-ramdisk.lz4 --cmdline "console=ttyHSL0,115200,n8 androidboot.hardware=mako lpj=67677 user_debug=31" --base 0x80200000 --pagesize 2048 --ramdisk_offset 0x02000000 --tags_offset 0x00000100 -o boot.img
note: this kernel requires ramdisk_offset 0x02300000

Unpacking/Repacking ramdisk as .lz4
Code:
lz4demo -d /path/to/ramdisk.lz4
mkbootfs /path/to/ramdisk_dir | lz4demo -c stdin ramdisk.lz4
Packing as .gz
Code:
mkbootfs /path/to/ramdisk_dir | gzip > ramdisk.gz

Last edited by savoca; 18th October 2014 at 04:16 PM.
The Following 62 Users Say Thank You to savoca For This Useful Post: [ View ]
 
 
16th July 2014, 07:50 AM |#2  
un.droid's Avatar
Senior Member
Thanks Meter: 133
 
More
looks very interesting, thanks
16th July 2014, 07:57 AM |#3  
Rohit02's Avatar
Senior Member
Flag Pune
Thanks Meter: 3,828
 
Donate to Me
More
second.. Will test.. Works with L port?
16th July 2014, 08:00 AM |#4  
savoca's Avatar
OP Recognized Developer / Recognized Contributor
Flag Pasadena
Thanks Meter: 5,531
 
Donate to Me
More
Quote:
Originally Posted by Rohit02

second.. Will test.. Works with L port?

If it does, I don't support it. My branch is 4.4.4 but I might make a go at L.
The Following User Says Thank You to savoca For This Useful Post: [ View ]
16th July 2014, 08:03 AM |#5  
Senior Member
Flag Pune
Thanks Meter: 1,850
 
More
@savoca : Fnally one of the top kernel of N5 to N4...
Great work...
Btw just 1 quick ques...implementation of dt2w, s2w etc have your own modification or standard implementation that most kernel use ?
Reason being 99% implementation have screen freeze issues especially in pocket...so asked...
Screen2dim looks classy
16th July 2014, 08:09 AM |#6  
savoca's Avatar
OP Recognized Developer / Recognized Contributor
Flag Pasadena
Thanks Meter: 5,531
 
Donate to Me
More
Quote:
Originally Posted by vampire36

@savoca : Fnally one of the top kernel of N5 to N4...
Great work...
Btw just 1 quick ques...implementation of dt2w, s2w etc have your own modification or standard implementation that most kernel use ?
Reason being 99% implementation have screen freeze issues especially in pocket...so asked...
Screen2dim looks classy

I used showp's implementation if that helps, but you can see all my changes on github. The S2D video was after an early build on M8, so there's visible quirks there like a delayed setting (this has been fixed for this release)
The Following User Says Thank You to savoca For This Useful Post: [ View ]
16th July 2014, 08:20 AM |#7  
Senior Member
Flag Pune
Thanks Meter: 1,850
 
More
Quote:
Originally Posted by savoca

I used showp's implementation if that helps, but you can see all my changes on github. The S2D video was after an early build on M8, so there's visible quirks there like a delayed setting (this has been fixed for this release)

Thanx a lot Checking out
Last edited by vampire36; 16th July 2014 at 08:23 AM.
The Following User Says Thank You to vampire36 For This Useful Post: [ View ]
16th July 2014, 08:30 AM |#8  
savoca's Avatar
OP Recognized Developer / Recognized Contributor
Flag Pasadena
Thanks Meter: 5,531
 
Donate to Me
More
Quote:
Originally Posted by vampire36

Thanx a lot Checking out

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



Am checking out S2D and just read your detailed explanation of it...am planning to use it in place of S2S and S2W...for that will need to set value to 255 for drop or increase...
My query is is S2D with 255 drop working differently than S2S/S2W...?

Well that would be a poor choice, in my opinion. S2D just manipulates RGB mulitpliers, so if you set them all to 0, you still have a backlight shining through a black screen, a major major drain. You could use it inplace of S2S only, however you would need to use DT2W for screen on (I can actually allow S2W aswell, I'll make some changes tomorrow).

To change the amount that is raised/dropped per gesture the sysfs is below.

Code:
echo "1/255" > /sys/module/sweep2wake/parameters/down_kcal
echo "1/255" > /sys/module/sweep2wake/parameters/up_kcal
16th July 2014, 08:40 AM |#9  
Senior Member
Flag Pune
Thanks Meter: 1,850
 
More
Quote:
Originally Posted by savoca

Well that would be a poor choice, in my opinion. S2D just manipulates RGB mulitpliers, so if you set them all to 0, you still have a backlight shining through a black screen, a major major drain. You could use it inplace of S2S only, however you would need to use DT2W for screen on (I can actually allow S2W aswell, I'll make some changes tomorrow).

To change the amount that is raised/dropped per gesture the sysfs is below.

Code:
echo "1/255" > /sys/module/sweep2wake/parameters/down_kcal
echo "1/255" > /sys/module/sweep2wake/parameters/up_kcal

Yup get the point...Would be great if you could look at it from s2w point...s2s working good...s2w i don't know...almost all have given me screen unresponsive issue...will test furnace 2...if you could allow s2w with s2d i don't know if it will work together with s2s...but if it does hope gives a good solution for non power button use...

Btw are default setting optimal or need to modify any values ? Whats the config you use ?
16th July 2014, 08:51 AM |#10  
savoca's Avatar
OP Recognized Developer / Recognized Contributor
Flag Pasadena
Thanks Meter: 5,531
 
Donate to Me
More
Quote:
Originally Posted by vampire36

Yup get the point...Would be great if you could look at it from s2w point...s2s working good...s2w i don't know...almost all have given me screen unresponsive issue...will test furnace 2...if you could allow s2w with s2d i don't know if it will work together with s2s...but if it does hope gives a good solution for non power button use...

Btw are default setting optimal or need to modify any values ? Whats the config you use ?

I'll definitely work in S2W+S2D no problem. The default settings are fine for me as well.

Sent from my Nexus 4 using XDA Premium 4 mobile app
The Following User Says Thank You to savoca For This Useful Post: [ View ]
16th July 2014, 01:36 PM |#11  
Nekator's Avatar
Senior Member
Flag Dormagen
Thanks Meter: 124
 
More
Everything working fine so far. I report battery life and more impressions later.

Edit: maybe you take a look into semaphore dt2w implementation. For me it is better and I don't have the problem of unresponsive touchscreen after boot and not touch the screen in 30 sec.
Last edited by Nekator; 16th July 2014 at 01:40 PM.
The Following 2 Users Say Thank You to Nekator For This Useful Post: [ View ]

Read More
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes