[Q] What is this for kind of kernel module? - Xperia Z1 Q&A, Help & Troubleshooting

I did some checking in the /sys folders on my Z1 and found this file called "fake_battery" and a value of -22..
What is this parameter related file doing actually for our Z1 phones?
I created an init.d script that echoed an 0 command on that fake_battery file and rapid battery drain issues after full charge did disappear..
EDIT: If someone wants to try this init.d script just for confirm that this isn't any placebo effect - I can upload it here!
Sent from my C6903 using XDA Premium 4 mobile app

Destroyedbeauty said:
I did some checking in the /sys folders on my Z1 and found this file called "fake_battery" and a value of -22..
What is this parameter related file doing actually for our Z1 phones?
I created an init.d script that echoed an 0 command on that fake_battery file and rapid battery drain issues after full charge did disappear..
EDIT: If someone wants to try this init.d script just for confirm that this isn't any placebo effect - I can upload it here!
Sent from my C6903 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
No such file - what have you been playing around with

harfot said:
No such file - what have you been playing around with
Click to expand...
Click to collapse
Found this on advanced stock kernel.. Should then be on stock also.. Very confusing, but I've not played with anything because this is inside the kernel / driver related folders and I am not into kernel hacking..
Sure u looked in the right folder?
Sent from my SGP311 using XDA Premium 4 mobile app

Destroyedbeauty said:
Found this on advanced stock kernel.. Should then be on stock also.. Very confusing, but I've not played with anything because this is inside the kernel / driver related folders and I am not into kernel hacking..
Sure u looked in the right folder?
Sent from my SGP311 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Found it, but maybe this https://github.com/openwebos/nyx-modules/blob/master/src/rockhopper/battery/emulator/fake_battery.c gives a clue

harfot said:
Found it, but maybe this https://github.com/openwebos/nyx-modules/blob/master/src/rockhopper/battery/emulator/fake_battery.c gives a clue
Click to expand...
Click to collapse
Any clue or suggestion why it is echoed -22 as pre-configured? What does this file even do?
Your link didn't make anything more clear on this one..

In no expert but maybe there are a set of commands used by android with non stock or "fake" batterys...that's what I understood from the link harfot provided...again I'm no expert just my 2 cents haha
Sent from my C6903 using Tapatalk

Destroyedbeauty said:
Any clue or suggestion why it is echoed -22 as pre-configured? What does this file even do?
Your link didn't make anything more clear on this one..
Click to expand...
Click to collapse
cippi21 said:
In no expert but maybe there are a set of commands used by android with non stock or "fake" batterys...that's what I understood from the link harfot provided...again I'm no expert just my 2 cents haha
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
I think you are quite right - almost every (not to say all) manufacturers use a higher Amps level for charging their own (known) batteries opposed to unknown (fake) batteries which for security reasons are charged at a lower level.

harfot said:
I think you are quite right - almost every (not to say all) manufacturers use a higher Amps level for charging their own (known) batteries opposed to unknown (fake) batteries which for security reasons are charged at a lower level.
Click to expand...
Click to collapse
Well, using an ' echo 0 ' command on the fakebattery file solved my rapid battery drain behaviour, so maybe something was causing misreadings of the actual battery gauge level with pre-configured "-22" value. Before, my drain started to act normal when at 75-78% procentage left, now it is normal drain..

Destroyedbeauty said:
Well, using an ' echo 0 ' command on the fakebattery file solved my rapid battery drain behaviour, so maybe something was causing misreadings of the actual battery gauge level with pre-configured "-22" value. Before, my drain started to act normal when at 75-78% procentage left, now it is normal drain..
Click to expand...
Click to collapse
Rebooting changes value back to "-22" (without any scripts) but "0" value don't seem to change when connecting to USB or Sony charger (don't have any other supply at hand right now).

harfot said:
Rebooting changes value back to "-22" (without any scripts) but "0" value don't seem to change when connecting to USB or Sony charger (don't have any other supply at hand right now).
Click to expand...
Click to collapse
Use init.d script and it will stay at 0 forever!
Sent from my SGP311 using XDA Premium 4 mobile app

Destroyedbeauty said:
Use init.d script and it will stay at 0 forever!
Sent from my SGP311 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Tried it with an iPhone supply - value returns to "-22"

harfot said:
Tried it with an iPhone supply - value returns to "-22"
Click to expand...
Click to collapse
Have u gived the script proper permissions?

Destroyedbeauty said:
Have u gived the script proper permissions?
Click to expand...
Click to collapse
Not using script at the moment - curious to find out whether other values would show up.

Related

Blinker LED alerts (SMS / CALL)

Hello, someone knows a similar app like this:
Blinker V0.53 - charging LED & TrackBall alerts(SMS / CALL / BATTERY / SIGNAL)
That works on the LG P970
This one: https://market.android.com/details?id=com.martinborjesson.o2xtouchlednotifications
it is great (tip: use the constant to save more battery)
dcop7 said:
This one: https://market.android.com/details?id=com.martinborjesson.o2xtouchlednotifications
it is great (tip: use the constant to save more battery)
Click to expand...
Click to collapse
This app need strange permissions
I installed and is working perfectly.
Thank you very much.
gomez_pt said:
This app need strange permissions
Click to expand...
Click to collapse
I used this before nova cames out and it drains my battery. Yes the permission is strange so i uninstalled.
Sent from my LG-P970 using xda premium
lesp4ul said:
I used this before nova cames out and it drains my battery. Yes the permission is strange so i uninstalled.
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
You have to use it in constant mode to save the battery. If it is pulsing, it drains battery like 10 times faster...
dcop7 said:
You have to use it in constant mode to save the battery. If it is pulsing, it drains battery like 10 times faster...
Click to expand...
Click to collapse
and what about the permissions ?
Well, the way I see it: Weird Permissions = Do not Install. :/
Hi,
why not ask the developer about the permissions? He's here on XDA.
Regards,
Stefan
dcop7 said:
You have to use it in constant mode to save the battery. If it is pulsing, it drains battery like 10 times faster...
Click to expand...
Click to collapse
Yes i've tried several setups like constant mode but still it consumed battery more than the main display itself (check from about phone).
Nevermind since nova 3 i never used this app anymore.
Edit: after reading author's thread updates, maybe i will try the app again.
Sent from my LG-P970 using xda premium

Modified files and battety brain

Do you guys think a modified framework-res could cause a bettery drain?
Sent from my GT-N7000 using xda premium
I doubt it, It depends on what you mean by modified ? If it is simple icon / colour changes then no, If it is something that increases the amount of power needed (like modifying auto brightness values or whatever is hidden inside the framework) then yes.
The best way for identifying battery drain is better battery stats, It gives you in-depth info of wakelocks, times, amount of power used, name of app etc etc. Its a really useful app !
Ot wasnt anything major. Just the lock scrren text 'swipe to unlock'
Sent from my GT-N7000 using xda premium
yeah and check loggs for errors, if the modification is not big free and triggering a recurring error it could cause drain.
also a modified framework, could have malware, who knows
Sent from my GT-N7000 using Tapatalk 2
baz77 said:
yeah and check loggs for errors, if the modification is not big free and triggering a recurring error it could cause drain.
also a modified framework, could have malware, who knows
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
Ok thanks. It wont have malware. I made the mod myself
Sent from my GT-N7000 using xda premium
maskerwsk said:
Do you guys think a modified framework-res could cause a bettery drain?
Click to expand...
Click to collapse
sorry for OT: the "battety brain" in thread title is an eye-catcher...
p107r0 said:
sorry for OT: the "battety brain" in thread title is an eye-catcher...
Click to expand...
Click to collapse
lol
Sent from my GT-N7000 using Tapatalk 2

Sudden reboot issue thread/kmsg dump

Those who have the sudden reboot issue please get a kmsg of your boot process
su
cat /proc/kmsg > /sdcard/last_kmsg
Click to expand...
Click to collapse
Wait a 60 seconds then close window and upload, do this as soon as you boot. We need also a last_kmsg of the reboot issue if one is created (sometimes it isn't). For this just copy /proc/last_kmsg and upload after the reboot happens, if it doesn't exist then it wasn't created during your reboot. My friend @laufersteppenwolf is working on a fix for this, he thinks its due to bad sources, he already has my logs but some additional "testimony" might be helpful
The boot log is not required, only the log, recording the crash
laufersteppenwolf said:
The boot log is not required, only the log, recording the crash
Click to expand...
Click to collapse
Thanks mate, I'm gonna get my replacement tomorrow, if it still reboots I know how to reliably reproduce it. Kmsg sometimes gives different stuff, no pipe error, system bin files not existing, and sometimes no error at all. The games Modern combat 3 and 4 frequently cause this reboot, my favourite games seem to be the "control" here, damn seriously big thanks here, you don't even own the device!
Sent from my LT30p using Tapatalk 4 Beta
How many people are exeriencing this problem?
and please, give me some more logs of the crashes, so that i can compare and make sure what causes the reboots
thanks in advance
Hey there i had those reboots problems on stock rom and kernel too. Started with the official update to .140.
Over a month of craziness I flashed yesterday .141 and since then not a single reboot. Ill report back in a few days if its still ok.
Sent from my X Phone see it on Youtube using xda developers app
casis86 said:
Hey there i had those reboots problems on stock rom and kernel too. Started with the official update to .140.
Over a month of craziness I flashed yesterday .141 and since then not a single reboot. Ill report back in a few days if its still ok.
Sent from my X Phone see it on Youtube using xda developers app
Click to expand...
Click to collapse
Well I just got a replacement, its on .492 and I'm staying on it. .141 still reboots for me
Sent from my LT30p using Tapatalk 4 Beta
OK looks like my new one reboots too. Hardly anyone seems to have or even acknowledge the issue which is the worst part
Sent from my LT30p using Tapatalk 4 Beta
@non4 said:
OK looks like my new one reboots too. Hardly anyone seems to have or even acknowledge the issue which is the worst part
Sent from my LT30p using Tapatalk 4 Beta
Click to expand...
Click to collapse
maybe a 3rd party app makes the phone reboot this way, hm? i suggest to try a BARE stock ROM for a while, for a day or two, what's your idea?
ebi4321 said:
maybe a 3rd party app makes the phone reboot this way, hm? i suggest to try a BARE stock ROM for a while, for a day or two, what's your idea?
Click to expand...
Click to collapse
Wiped the whole thing yesterday, wish me luck!
Sent from my LT30p using Tapatalk 4 Beta
I have Xperia T for few months, now running my third JB stock rom and I've never experienced a reboot.
adiq_ambro said:
I have Xperia T for few months, now running my third JB stock rom and I've never experienced a reboot.
Click to expand...
Click to collapse
Which superuser app do you use? After switching from supersu to clockwork su reboots seem to have stopped. But sometimes they don't happen for a while. What I'm gonna do is use the app "root logger" to trace shell activity, maybe something I use is accidentally issuing this command, because it does it like terminal does it.
Sent from my LT30p using Tapatalk 4 Beta
@non4 said:
Which superuser app do you use? After switching from supersu to clockwork su reboots seem to have stopped. But sometimes they don't happen for a while. What I'm gonna do is use the app "root logger" to trace shell activity, maybe something I use is accidentally issuing this command, because it does it like terminal does it.
Sent from my LT30p using Tapatalk 4 Beta
Click to expand...
Click to collapse
I really don't know. I just use this rom http://forum.xda-developers.com/showthread.php?t=2026918 with this clockwork http://forum.xda-developers.com/showthread.php?t=2012738 .
I use small amount of third party apps - only Messanger, some games, Llama, feedly, Total Commander and some utilities. No modifications, no tweakers, pure stock and I happily live without problems.
adiq_ambro said:
I really don't know. I just use this rom http://forum.xda-developers.com/showthread.php?t=2026918 with this clockwork http://forum.xda-developers.com/showthread.php?t=2012738 .
I use small amount of third party apps - only Messanger, some games, Llama, feedly, Total Commander and some utilities. No modifications, no tweakers, pure stock and I happily live without problems.
Click to expand...
Click to collapse
Problem still exists on this ROM for me. Perhaps it is a rogue app, the trouble is finding out which. If not then three has a bad batch of T's since hardly anyone seems to have this issue
Sent from my LT30p using Tapatalk 4 Beta
@non4 said:
Problem still exists on this ROM for me. Perhaps it is a rogue app, the trouble is finding out which. If not then three has a bad batch of T's since hardly anyone seems to have this issue
Sent from my LT30p using Tapatalk 4 Beta
Click to expand...
Click to collapse
you changed it once?!!!!!!!!!! this is your second one?!!!
ebi4321 said:
you changed it once?!!!!!!!!!! this is your second one?!!!
Click to expand...
Click to collapse
Yup, three gave me a free replacement. Still no reboots so far since wiping everything, just picked up gangstar Vegas, reminds me a lot of San Andreas, really good!
Sent from my LT30p using Tapatalk 4 Beta
@non4 said:
Yup, three gave me a free replacement. Still no reboots so far since wiping everything, just picked up gangstar Vegas, reminds me a lot of San Andreas, really good!
Sent from my LT30p using Tapatalk 4 Beta
Click to expand...
Click to collapse
appreciate what those operator do for you there, you've never been in my country, sanctions are DAMN strict, we would never experience such support...
replacement is just a dream
haaaa haaaaa, yep, i love that, and have you tried GTA Vice City? a bit old, but it's AWESOME, that's really something, highly recommended
ebi4321 said:
appreciate what those operator do for you there, you've never been in my country, sanctions are DAMN strict, we would never experience such support...
replacement is just a dream
haaaa haaaaa, yep, i love that, and have you tried GTA Vice City? a bit old, but it's AWESOME, that's really something, highly recommended
Click to expand...
Click to collapse
Own that too, but this is better
Sent from my LT30p using Tapatalk 4 Beta
Btw. @@non4, how long do you have the phone? And did you buy it new or used?
peetr_ said:
Btw. @@non4, how long do you have the phone? And did you buy it new or used?
Click to expand...
Click to collapse
New from three, only a month in, they gave me a second one, still happens sometimes. The new .142 firmware helped, now it only seems to happen with < 35% battery, so I think it relates to that. You said you had some shutdowns on low battery too right? I think on the previous firmware something really intensive like playing modern combat 4 online caused some sort of power failure, on the new one its only unstable once the battery is low. So its bearable now, once my battery is that low I tend to recharge
Sent from my LT30p using Tapatalk 4 Beta
I am affraid that the battery in T is big fail. It is not normal, to have such big drop in voltage (in li-on battery) on heavy load.
In full load, the voltage drop can be about 300 - 400 mV, which means when you have 3,6V (which could be around 40%) and the battery drops to 3,2V, that the phone shuts down. Android probably doesn't know that, because it isn't stable 3,2V so there is no notification.
Install Cooltool, go to advanced, custom label path, write there "/sys/devices/platform/msm_ssbi.0/pm8921-core/pm8921-charger/power_supply/battery/voltage_now" and select labels, custom label.
Watch the voltage when playing.
I already ordered new battery, so I will test it with new.
Btw what is the capacity of your battery? There are two - 1850 and 1780 mAh.

[Q] What is Maclaw's Panda?

I know it's an energy saver but how does it work? I am also a bit worried that it needs massive amount of permissions.
wtx1033 said:
I know it's an energy saver but how does it work? I am also a bit worried that it needs massive amount of permissions.
Click to expand...
Click to collapse
If you're talking about maclaw parts apk that came in cm10.2, it sets your kernel to ondemand governor to save the battery.
mauam said:
If you're talking about maclaw parts apk that came in cm10.2, it sets your kernel to ondemand governor to save the battery.
Click to expand...
Click to collapse
Yes that's the app I'm talking about and thanks for the explanation.
Any idea why it needs this many permissions?
Sent from my GT-I8190 using Tapatalk
wtx1033 said:
Yes that's the app I'm talking about and thanks for the explanation.
Any idea why it needs this many permissions?
Sent from my GT-I8190 using Tapatalk
Click to expand...
Click to collapse
I have the same question @New Macław.
Also, I can't find it in the privacy section (where you can block apps permissions).
snifer1981 said:
I have the same question @New Macław.
Also, I can't find it in the privacy section (where you can block apps permissions).
Click to expand...
Click to collapse
Bud,
You can wait sitting till Maclaw reply:laugh: Anyway, if don't trust the app, you can always delete it Have a nice day.

[Q] Conservative governor & sampling rate

So, I've looking at squeezing more juice out of my battery lately. One of the things I was trying was switching to Conservative governor. I really don't mind lag, after all, while trying to get the most battery life a little lag is expected if not inevitable. But when using SetCPU to try to change the sampling rate it won't allow me to change it below 200000. Has anyone found a method to change it or does any one have any other ideas???
Sent from my SM-G900F using XDA Premium 4 mobile app
Lol, no input guys??? What is everyone using for their governor then???
Sent from my SM-G900F using XDA Premium 4 mobile app
I used rom toolbox lite
jgz32610 said:
I used rom toolbox lite
Click to expand...
Click to collapse
Yeah, I know you can use rom toolbox, but can you change the sampling rate to anything less than 200000 on Conservative?
So you mean to tell me that everyone in this forum claiming to get over 24 hours of battery life has not touched any of the cpu settings????? I find that hard to believe. Someone must have some info on this.
cerobles1 said:
So you mean to tell me that everyone in this forum claiming to get over 24 hours of battery life has not touched any of the cpu settings????? I find that hard to believe. Someone must have some info on this.
Click to expand...
Click to collapse
Not really that hard... My phone with bluetooth on, no wifi, and using only LTE throughout the day until I got home with 10% left.
Stock ROM
Rooted
xPosed
That's it.
Kenichi
Kenichi said:
Not really that hard... My phone with bluetooth on, no wifi, and using only LTE throughout the day until I got home with 10% left.
Stock ROM
Rooted
xPosed
That's it.
Kenichi
Click to expand...
Click to collapse
What xposed modules are u using? And are they related to battery saving? TIA.
cerobles1 said:
What xposed modules are u using? And are they related to battery saving? TIA.
Click to expand...
Click to collapse
No. If anything, it should hurt my battery life.
Kenichi

Categories

Resources