yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] DooMLoRD:
Kernel level Sound Control

This feature has been added by faux123 himself!

The sources for this feature are covered under GPL and are released along with my kernel sources at my GITHUB repo.

[ WARNING ]

high volume can damage hearing!

DooMLoRD or faux123 are not to be held responsible if this damages ur headphones/speakers/etc

USE THIS AT YOUR OWN RISK!

There are two ways to use this interface.

manual control through sysfs interface

paid app (FauxSound Audio/Sound Control)

How to use the app FauxSound Audio/Sound Control is pretty self explanatory so I will write on how to control using the sysfs interface...

BEFORE DOING ANY ADJUSTMENTS EXIT THE APPS LIKE MUSIC PLAYER/etc!!

The interface to control the sound output is located at:

[B]/sys/kernel/sound_control_3[/B]

it has 4 control interfaces:

Camera MIC

/sys/kernel/sound_control_3/gpl_cam_mic_gain

Headphone

/sys/kernel/sound_control_3/gpl_headphone_gain

MIC

/sys/kernel/sound_control_3/gpl_mic_gain

Internal Speaker

/sys/kernel/sound_control_3/gpl_speaker_gain

each supports gain levels from 20 (-20) to 50 (+10), base is 40 (0)

(the number in the brackets correspond to the numbers displayed in the app)

say if u want to boost headphone output (both left and right channels) then use the following command:

echo "44 44" > /sys/kernel/sound_control_3/gpl_headphone_gain

u can also individually increase/decrease the gain for each right and left channel

similarly other interfaces can be controlled

TIP:

do not jump to maximum values as sometimes the headphones/speakers might start distorting the audio... slowly increase and do testing for the levels which suit you!

not all accessories will work well with boosted audio output

e.g.: on my Sony MDR-XB300 headphones i start getting distorted audio beyond 46 (+6)

regards,

DooMLoRD
[Xperia Z1 Original Android Development] yeeson:
Hope to solve as soon as possible！
[Xperia Z1 Original Android Development] hoezay:
Dude ! So cool that you're working on this. Makes me want to buy this phone even more :D
[Xperia Z1 Original Android Development] raimondomartire:
Great work on this kernel and this is only first ver. Please when you have time can you read my PM
[Xperia Z1 Original Android Development] plakers:
[MENTION=2784807]DooMLoRD[/MENTION] you're the man! I'll buy you a great beer as soon as I get my device! Guys, please keep praying for the camera/bootloader fix to come, that way we'll be in the best world : Z1's class with DooMLoRD's touch! héhé

EDIT : Done... The beer's coming 26E37073AU351480S ;)
[Xperia Z1 Original Android Development] inffy:
Can't wait to the combination Cm+doomkernel :)
[Xperia Z1 Original Android Development] DooMLoRD:
yes exactly
[Xperia Z1 Original Android Development] Wolfbreak:
Ok then i might be wrong :D
[Xperia Z1 Original Android Development] DooMLoRD:
WB!!!

Long long long time no see!

good to see so many folks from the good old day back :D

well we still can repack ;)

facing some issues with device boot up... once those are fixed will release
[Xperia Z1 Original Android Development] lzyllp:
I got advanced stock 4.3 kernel with recovery work.

But after flash root package,the root still have problem.

U got root,but system not allow you mount system to rw.
[Xperia Z1 Original Android Development] Wolfbreak:
Hey mate :) Nice to see you still around in Xperia Forums.
[Xperia Z1 Original Android Development] TheKnux:
So can I reflash the iHackers rom (clean install) to get fix the IMEI bug or do I have to completely flash a FTF, root, then upgrade ota to get it back?
[Xperia Z1 Original Android Development] Zorokydopy:
Can I flash ur kernel in 4.3?
[Xperia Z1 Original Android Development] Desperanto86:
Of course! But you'll get BOOTLOOP :laugh:
[Xperia Z1 Original Android Development] CappyT:
Maybe this solve the issue...

http://xdaforums.com/showpost.php?p=48576380&postcount=1
[Xperia Z1 Original Android Development] Desperanto86:
he already solved problem and we build new kernels with his help :)
[Xperia Z1 Original Android Development] CappyT:
Well, glad to test when those are ready...
[Xperia Z1 Original Android Development] Ferranza:
+1 for test... I'm on 4.3 stock

Inviato dal mio C6903 utilizzando Tapatalk
[Xperia Z1 Original Android Development] ArashMiniStar:
Can anyone tell me can X-reallity and other features can work after UB on android 4.3!!?
[Xperia Z1 Original Android Development] diego9016:
I would like to know this too... What features stop working after you unlock bl?
[Xperia Z1 Original Android Development] Ashray_Vk:
X reality isn't working for me after UB, didn't try relocking though
[Xperia Z1 Original Android Development] moritz31:
i'm on 4.3 stock too and want to help ;)

if u have a version out i will try :)
[Xperia Z1 Original Android Development] Ferranza:
Ready to install 4.3 version

Inviato dal mio C6903 utilizzando Tapatalk
[Xperia Z1 Original Android Development] TheKnux:
Same here. :)
[Xperia Z1 Original Android Development] DooMLoRD:
DooMKernel v04 released!

changelog

added fix for system remount in ramdisk!

update stock ramdisk to 14.2.A.0.290 firmware

updated kernel 14.2.A.0.290 firmware kernel sources

download links at first post!

Keep watching the TO-DO list for planned/work in progress features

regards,

DooMLoRD
[Xperia Z1 Original Android Development] diego9016:
I'll install it on my C6906 and report back... Should I rename the downloaded file to boot.img in order to flash it? (It's named Z1-DooMKernel-v04.img)
[Xperia Z1 Original Android Development] mikailmohammed:
Tried this and no luck. I have no idea why some of us have this issue. But it exists. I am back on stock for the while. Maybe it could be a rom issue. I am on Romaur V8.
[Xperia Z1 Original Android Development] Destroyedbeauty:
[MENTION=535343]all[/MENTION]

[MENTION=2784807]DooMLoRD[/MENTION]

Requested thread is up, as promised!

Sharing Is Caring!
[Xperia Z1 Original Android Development] vnblueberry:
Bootloop Q

Hi all,

Sorry for the noob post - just wanted to confirm something.

I flashed the stock .534 FTF (unlocked bootloader) and downloaded doomkernel v21 and tried to flash using fastboot but it bootlooped.

I then re-read the OP and saw this:

"please keep the advanced stock kernel recovery package on sdcard to avoid bootloops!

newer kernels wont boot on older stock ROM or ROMs based on older FW, you will get bootloops!"

Does this mean that it should work if I download the "advanced stock kernel recovery package" and store it on my SDcard that it should work?

Or am I missing something here :confused:

Thanks in advance!
[Xperia Z1 Original Android Development] tomascus:
It says 'newer kernels won't boot on older stock rom or roms based on stock firmware'. You on older firmware, therefore it will bootloop, update to 757
[Xperia Z1 Original Android Development] vnblueberry:
thanks - i thought that on the OP it said i could use .534 ... guess not?
[Xperia Z1 Original Android Development] meliacentrum:
Try V21 mate... :thumbup::beer::cool:
[Xperia Z1 Original Android Development] wedgess:
This is a development thread, not a place for members to be arguing with each other. Please keep the bickering off this thread and off XDA, as we do not want it here. Now please back on topic.

Thread cleaned
[Xperia Z1 Original Android Development] walkwitmeinhel:
Ok

Xperia Z1 ihacker V4.1
[Xperia Z1 Original Android Development] BaCKo85:
Hello guys :) can someone help me . When i go to pimp my z1 i want to touch the frequency but when i make a change the value stay the same?Why i can make no changes ?Thanks for the help and sorry for my bad english :)
[Xperia Z1 Original Android Development] :
The frequency changes but the app doesn't show it right. I'm not sure if it's the app or kernel. But it does change
[Xperia Z1 Original Android Development] pranii23:
GPU OC

There are atleast two kinds of GPU variant out there in the Z1. The one which DooMLorD had was different from yours.

We need to wait for the GPU OC for other variant.
[Xperia Z1 Original Android Development] Destroyedbeauty:
[MENTION=2784807]DooMLoRD[/MENTION] I've to ask you.. You have added Simple GPU control tunetables to your kernel, but where is Simple GPU governor? :D
[Xperia Z1 Original Android Development] John.D..:
I do not understand ... at equal situations / governor stock kernel still keeps the battery better. I've set up, making the settings as recommended by faux ... but not out 6 hours of screen on katabatic came out. What's the matter, can not tune? Intelliactive / row (mmc) / sio (sdcard) / gpu simple_ondemand 450, lower sliders from top to bottom: 5, 6 / intelli-ksm on
[Xperia Z1 Original Android Development] Klaus N.:
I use FauxClock, and there's an option to activate it.

[MENTION=2784807]DooMLoRD[/MENTION]

I haven't forgot you, but I still didn't find the time ;)
[Xperia Z1 Original Android Development] tcchuin:
Take note of the signal strength, it affects the battery life very significantly.
[Xperia Z1 Original Android Development] John.D..:
Yes, of course, recently conducted a test under the same conditions (2g internet) network is always there, on the core thought showed 4.5 hours on stock about 6, while that in the core of doom seemingly integrated set of functions ... doom: intelliactive / stock: ondemand
[Xperia Z1 Original Android Development] edwanteam:
I'm now using ROMAur 8.0 with stock kernel. and my Z1 also unlock bootloader.

if i want to using DoomKernel, what step should i do? Thanks in advanced
[Xperia Z1 Original Android Development] tomascus:
Installation Instructions are in the OP.

QUOTE:

[ how to install my kernel ] (via recovery) [RECOMMENDED]

download the kernel package

save it to the sdcard

reboot into recovery

flash the kernel package using recovery

reboot from recovery into system

the device should now start booting

enjoy the kernel
[Xperia Z1 Original Android Development] edwanteam:
Very clear..thank you
[Xperia Z1 Original Android Development] Destroyedbeauty:
[MENTION=2784807]DooMLoRD[/MENTION] There seems to be a issue with the Intelliplug (and corresponding ECO-Mode driver) because no matter what - both / all cores (2 or 4) is online all time when enabling Intelliplug and Eco mode. Moving back to MP-Decision now for getting my battery life back.. :(

See attached screenshot (this WAS with ECO-Mode enabled!) and what I know - Intelliplug and ECO-Mode was made with real time hotplugging in mind to match the overall load from system. Fix it, and v22 will kickass!;
[Xperia Z1 Original Android Development] saintgein:
Doomlord! Do you know if there's a way to overclock the dsp processor which is currently clocked at 320 mhz?
[Xperia Z1 Original Android Development] Klaus N.:
[MENTION=2784807]DooMLoRD[/MENTION]

0N4962468J2435808

Keep up the good job!
[Xperia Z1 Original Android Development] hlavicka82:
I believe that intelliplug with eco mode is working as it should.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Then tell me why my cores is online all time when Intelliplug & Eco Mode is enabled, but it is working as it should when MP-Decision is enabled? :o
[Xperia Z1 Original Android Development] tomascus:
Well we're not magicians :p

I can't confirm the issue you're having or reproduce it, i'm running the same settings and don't seem to have this issue.
[Xperia Z1 Original Android Development] Wolfbreak:
Did you tested it with only Intelliplug on and Eco Modus off too?
[Xperia Z1 Original Android Development] Destroyedbeauty:
Nope, because I am a battery freak guy :P will try with only Intelliplug enabled after my Z1 is charged, and see if the outcome results will be the same.. Reporting later..

EDIT: How do I know if Intelliplug is fully working? [MENTION=2822871]Wolfbreak[/MENTION] [MENTION=535343]all[/MENTION]
[Xperia Z1 Original Android Development] SafiXS:
I use FauxClock app there you can see which cores are currently online. For me the absolutely best kernel optimization app in store
[Xperia Z1 Original Android Development] thienbrand:
I don't know if D.L. ever forgot about GAMMA CONTROL ? :D
[Xperia Z1 Original Android Development] Chocolatetrain:
I remember asking him but he said he couldn't get it to work properly :(
[Xperia Z1 Original Android Development] cCclown:
A large number of users including me asked this question several times, but he does not respond at all.

He is doing what he wants. If you ask him a question about a thermal issue or something that has to do with intelli-plug or mp-decision

you can be shure you will get your answer immediately.
[Xperia Z1 Original Android Development] vshainky08:
can we use this kernel in PA rom ?
[Xperia Z1 Original Android Development] Klaus N.:
No, this kernel is only for use with stock or stock-based rom's.
[Xperia Z1 Original Android Development] SafiXS:
Fast charge don't work for me. If I change it to "force ac" or choose a specific mA like 1500 my battery don't charge anymore. But the led and battery icon show the battery get charged, the percentage goes down not up ;)

Someone can confirm?

Gesendet von meinem C6903 mit Tapatalk
[Xperia Z1 Original Android Development] vshainky08:
How to get back on Stock kernel ?
[Xperia Z1 Original Android Development] gregbradley:
Flash it with fastboot

fastboot flash boot <name of kernel here with extension>

Or

Flash a FTF and exclude everything except kernel and choose not to wipe anything
[Xperia Z1 Original Android Development] vshainky08:
got ya... just more query.. where to het the seperate stock kernel file to flash with fastboot :confused:
[Xperia Z1 Original Android Development] gregbradley:
From any FTF file for your device and FW number.

Also, if you created a backup in recovery whilst you had a stock kernel just do an advanced restrore of that backup and choose only boot.img to restore
[Xperia Z1 Original Android Development] pranii23:
Battery drain

Everytime i reboot...i always see la large drop in battery...about 5-15% always...i dont think its nornal..anyone any idea
[Xperia Z1 Original Android Development] vshainky08:
I did a fresh install of stock .757 and installed V20 and when i activate Xperia xposed module + any other module this errors popups continously - unfortunalely, the process com.android.systemui has stopped

The xperia xposed module works good alone.

i was not facing this problem in stock rom + kernel

plz help
[Xperia Z1 Original Android Development] dedei:
Maybe you installed the non-KK version of xperia xposed? I did this once and got the same error.
[Xperia Z1 Original Android Development] vshainky08:
oops... i did the same mistake... thanks... :silly::silly:
[Xperia Z1 Original Android Development] dedei:
I was changing GPU governors and when I chose the first one, the phone rebooted and got stuck in a bootloop =(

I tried flashing advanced stock kernel, wiping cache, factory reset and it stills bootloops. What sould I do? :crying::crying::crying::crying:
[Xperia Z1 Original Android Development] cowen1000:
This happened to me to, i ended up flashing the phone again. :confused:
[Xperia Z1 Original Android Development] dedei:
yeah, that's what I ended up doing. I hope doomlord fixes that on the next release [emoji102]

Enviado de meu C6903 usando Tapatalk
[Xperia Z1 Original Android Development] gregbradley:
As the OP says, keep a copy of the advanced stock kernel on your sd card.

You could have just flashed that, rebooted, then flashed DooMKerneL again.
[Xperia Z1 Original Android Development] dedei:
That's the first thing I did but it never booted.

Enviado de meu C6903 usando Tapatalk
[Xperia Z1 Original Android Development] gregbradley:
Did you clear cache etc?
[Xperia Z1 Original Android Development] dedei:
yup! It even went to the updating apps screen but nothing after that.
[Xperia Z1 Original Android Development] gregbradley:
OK, I thought that should do it, it may not boot up again as there is a setting looking for a certain governor that is no longer in the kernel. Maybe [MENTION=2784807]DooMLoRD[/MENTION] can add a boot with safe/stock values/governors to the kernel so that just a reboot should fix it.

Also, if there is an option to apply at boot for any CPU/GPU changes, you should not tick it until you have tested whether it works well with your chipset/configuration...
[Xperia Z1 Original Android Development] SafiXS:
I have to be invisible? [emoji14]

Gesendet von meinem C6903 mit Tapatalk
[Xperia Z1 Original Android Development] DooMLoRD:
it works fine mate :)

hmm... lets see... will test out... but why?

not forgotten about it buddy! always searching for code that will work :)

hmm... can u post dmesg?

BTW...

my development laptop has gone for repairs so cant build anything right now..
[Xperia Z1 Original Android Development] Lord Takyon:
People need to learn a few basic lessons when changing stuff this critical to system operation.

First, always have a recent backup via recovery.

Second, test settings BEFORE you set them to be applied at boot.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Well, I was a bit worried because I didn't see this kind of strange behaving when using Intelliplug & ECO-Mode on my old Xperia Z C6603 unit.. But, this is not the only kernel that is affected by this - it is also happening on Pimped Kernel (some releases with Intelliplug & ECO-Mode driver included) where it was a bug that caused the system to misread / execute the stop mpdecision / echo 1 > intelliplug / eco mode-commands..

Will try again on ROMAur v8 and v21 and see if it is happening again! :)
[Xperia Z1 Original Android Development] gregbradley:
Just because it worked on your old one, does not mean it will work on your current one.

That the point, every phone is individual. Sony guarantees certain tolerances. we are going beyond that so there is no guarantee it will on your phone.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Seems to be working this time around, hmm.. Perhaps it was something that was causing conflicts because I didn't do any full wipe (as someone recommended) between v20 with custom WLAN drivers and v21 with stock ones..

(y)

Now, back on topic, shall we?
[Xperia Z1 Original Android Development] vshainky08:
I m on V20..

from pimp my z1 i enable Sen on Boot and restarted and now the CPU frequency i locked at 1190MHZ.

its not changing :'(

i triend benchmark, performance mode, custom, tried changing manually..

phone is lagging like hell

what to do ??
[Xperia Z1 Original Android Development] Ashray_Vk:
Flash latest doom kernel please and then see.

Anyway, try changing some kernel settings and try again , maybe like going to mpdecision and back to intelliplug or maybe the other way round.

Sent from the Sony beast, the XZ1 powered by multiboot.
[Xperia Z1 Original Android Development] Toldo:
Finally got my Z1 back from repairs (the known "flying" vibration problem) and flashed the v21 with .757. The kernel runs smooth as butter (with Intelliplug & KSM), but I can't say much about the battery yet, though I will try to undervolt a bit. Maybe someone has some good values for start? Or do I have to do all the testing? :P
[Xperia Z1 Original Android Development] saintgein:
Issues with steadyshot on 4k video recording.

http://xdaforums.com/showthread.php?t=2767005&page=41
[Xperia Z1 Original Android Development] lbaquerizo:
Been having some strange issues with the phone with intelliactive governor and deadline. My phone been freezing a lot and need to hard reset the device, now with on-demand governor seems stable.

From my Z1

RomAur v 8 UB

DooMkernel v 21

Performance Control
[Xperia Z1 Original Android Development] tomascus:
Have you been undervolting?
[Xperia Z1 Original Android Development] mikailmohammed:
This happened to me and i switched back to stock kernel for the while. I can't seem to figure out the issue.
[Xperia Z1 Original Android Development] lbaquerizo:
Yes

From my Z1

RomAur v 8 UB

DooMkernel v 21

Performance Control
[Xperia Z1 Original Android Development] tomascus:
And you've tried raising that UV and seeing if it's more stable?
[Xperia Z1 Original Android Development] BaCKo85:
Hello gyus . I have one question .when i am with governs smartassv2 and lagfree does my battery go down fast?Sorry for my bad english :)
[Xperia Z1 Original Android Development] -ph-:
I use now Lionheart governor. The problemns have gone...
[Xperia Z1 Original Android Development] lbaquerizo:
I have undervolted but no more than 25. Now that I am with Ondemand with intelliplug on and EcoMode off I have no random freezes at all.

From my Z1

RomAur v 8 UB

DooMkernel v 21

Performance Control
[Xperia Z1 Original Android Development] SafiXS:


Here my dmesg, hope you can find something.

https://drive.google.com/file/d/0B4-tw1zxYiJyX2tKV1NoMEJrT0k/edit?usp=sharing
[Xperia Z1 Original Android Development] xCoNDex:
Followed the next instructions

[ how to install my kernel ] (via recovery) [RECOMMENDED]

download the kernel package

save it to the sdcard

reboot into recovery

flash the kernel package using recovery

reboot from recovery into system

the device should now start booting

enjoy the kernel

I have only one problem, on "the device should now start booting", my phone dont start booting :(

Reverted to stock kernel
[Xperia Z1 Original Android Development] tomascus:
what ROM are you running?
[Xperia Z1 Original Android Development] xCoNDex:
Stock NCB 761 (zip name: C6903_14.3.A.0..761_NCB.flashable), rooted, with dual recovery, etc
[Xperia Z1 Original Android Development] kulvertti:
Unlocked bootloader?
[Xperia Z1 Original Android Development] lbaquerizo:
Oh Lord Help us [emoji15]

http://xdaforums.com/showthread.php?t=2440597

Read this before doing anything harmful to your phone.

From my Z1

RomAur v 8 UB

DooMkernel v 21

Performance Control
[Xperia Z1 Original Android Development] kulvertti:
Why quoted my post? Just trying to help the guy whose phone won't boot.
[Xperia Z1 Original Android Development] lbaquerizo:
Didn't read the whole thing sorry

From my Z1

RomAur v 8 UB

DooMkernel v 21

Performance Control
[Xperia Z1 Original Android Development] Steve_max:
C6943 full support?

[MENTION=2784807]DooMLoRD[/MENTION], could you please do a test build of v21 with the additional setting on honami._defconfig:

CONFIG_ISDBT_TUNER_SMTEJ11X=y

This is the only difference between the C6943 and C6903 default configs, and adds support for the ISDBT (digital TV) tuner. That probably wouldn't change anything for C690x users, but would allow us who have the C6943 to return to your kernel without losing the ability to watch the football games during the world cup.
[Xperia Z1 Original Android Development] Destroyedbeauty:
Otherwise, you can decompile the kernel, add this setting and create the build yourself? :)
[Xperia Z1 Original Android Development] Steve_max:
No need to decompile anything: I can download the code from his github, setup a build environment, change that and compile the kernel. If DooMLoRD doesn't think building a variant is worth it, I'll probably do it when I have the time to do so, and post here if the result was positive. Not sure if I would make it available though, since it's not my work (and my programming knowledge isn't enough to maintain a kernel).
[Xperia Z1 Original Android Development] hlavicka82:
Well it's a Linux kernel released under GPL license so you can use the source and release another version the only issue is the ramdisk. Or you can send a pull request to DooMLorD on github after you test that it works. I maybe try to compile it myself to see if it works on C6903 with that dtv support.
[Xperia Z1 Original Android Development] :
I think you should try it first. Then post the kernel here if it works, allowing Doomlord to take a look. Maybe if he's interested he'll support your device?
[Xperia Z1 Original Android Development] Klaus N.:
[MENTION=2784807]DooMLoRD[/MENTION]

When we can expect a new version of your DooMKernel? I ask, because there's Android 4.4.4 (14.4.A.0.108) for the Z1 ;)
[Xperia Z1 Original Android Development] :
Hopefully soon. But please don't ask for ETA
[Xperia Z1 Original Android Development] amey2606:
[MENTION=2784807]DooMLoRD[/MENTION]

Now that the kernel sources have been released, can we expect native double tap to wake on the Z1.? ?