Need bootloader/kernel with conditional offline charge - ONE Q&A, Help & Troubleshooting

I need a bootloader/kernel that restarts instead of starting offline charge.
Does anyone know how to make such a bootloader/kernel or where to find one?
If there is any fine developers out there who will try to make such a bootloader/kernel, then I would prefer if the disregard of offline charge is conditional based on current capacity. See example.
If that is not possible a complete circumvention of offline charge is preferred.
I appreciate any who can help me or give me instructions as to which files to edit.
Code:
#!/system/bin/sh
#Skip offline charge and start device if enough juice on battery. If low on battery do offline charge
CAPACITY=$(cat /sys/class/power_supply/battery/capacity)
MIN_CAPACITY=15
echo $CAPACITY
if [ $((CAPACITY)) -gt $MIN_CAPACITY ]
then
/system/bin/reboot
else
#START OFFLINE CHARGE
fi

Draegert said:
I need a bootloader/kernel that restarts instead of starting offline charge.
Does anyone know how to make such a bootloader/kernel or where to find one?
If there is any fine developers out there who will try to make such a bootloader/kernel, then I would prefer if the disregard of offline charge is conditional based on current capacity. See example.
If that is not possible a complete circumvention of offline charge is preferred.
I appreciate any who can help me or give me instructions as to which files to edit.
Code:
#!/system/bin/sh
#Skip offline charge and start device if enough juice on battery. If low on battery do offline charge
CAPACITY=$(cat /sys/class/power_supply/battery/capacity)
MIN_CAPACITY=15
echo $CAPACITY
if [ $((CAPACITY)) -gt $MIN_CAPACITY ]
then
/system/bin/reboot
else
#START OFFLINE CHARGE
fi
Click to expand...
Click to collapse
Hey mate, still struggling?

Mr.Ak said:
Hey mate, still struggling?
Click to expand...
Click to collapse
Sadly yes. :crying: Although it seems like a relatively small and easy edit, nobody (atleast in my network) have been able to solve it, hence this post.
I tried following some of the "change charging animation" guides by replacing the animation with a reboot call (ugly I know), but it only resulted in a boot loop.
Thus, I am at the end of my robe and have been forced to ask for expert help.

Have you fiogured out anything for the boot on charge? i want to make that on my phone too. still didnt find anything

Related

Battery Testing Software?

Hi all,
I'm looking for some battery testing software as I need to grab logs for a range of PPC/W5/W6 devices, I'm after basically battery status reading every 30 mins. I need to be able to get the data from 100% to 0% and the time.
Preferably this would work externally via a usb to a PC as the devices come installed with our own proprietry system that restricts some of the functions that come as standard.
If anyone has any suggestions I'd be very grateful.
Many thanks
Ben

[UTIL]★★★TG01 Solutions[v.1.0][26/05/2010]★★★

★★★Toshiba TG01 Solutions★★★​
Gradually, the developed application.
Used to facilitate, the use of the device TG01/T01A.
Each subsequent edition, will have, another solution to the problems of use.
Requirements:
-> .NetCF 3.5
Info Version:
-> Unlock Input Option
-> Soft Reset Device
Have Fun All Bro
Copyright © 2010 By Nokser.
All rights reserved.​
Bump Reserved
Hi Nokser, exactly what does this cab do/fix?
My TG01 works great I only have just two issues, slow GPS fix time and Microsoft Voice Control?
Nokser said:
★★★Toshiba TG01 Solutions★★★​
Gradually, the developed application.
Used to facilitate, the use of the device TG01/T01A.
Each subsequent edition, will have, another solution to the problems of use.
Requirements:
-> .NetCF 3.5
Info Version:
-> Unlock Input Option
-> Soft Reset Device
Have Fun All Bro
Copyright © 2010 By Nokser.
All rights reserved.​
Click to expand...
Click to collapse
Could you be more specific, pls!
Thx...
Result:
After instal the cab, launch TGsolution.exe from START MENU.
In the program only one choice : Unlock Input option
So click on it, then choose soft reset and the icon for Input setting appear in Personnal Setting.
It's for the rom who missing this input option.
So why call this TG Solution? Maybe Nokser will add more solution later, but without device, will be difficult.
LeTo08 said:
Result:
After instal the cab, launch TGsolution.exe from START MENU.
In the program only one choice : Unlock Input option
So click on it, then choose soft reset and the icon for Input setting appear in Personnal Setting.
It's for the rom who missing this input option.
So why call this TG Solution? Maybe Nokser will add more solution later, but without device, will be difficult.
Click to expand...
Click to collapse
Yes... I add more solutions in next release
Nokser said:
Yes... I add more solutions in next release
Click to expand...
Click to collapse
Without device ? I hope you will unbrick it...
(And why you don't want the l3v5y device ?)
LeTo08 said:
Without device ? I hope you will unbrick it...
(And why you don't want the l3v5y device ?)
Click to expand...
Click to collapse
I have a moment, another TG01
Nokser said:
I have a moment, another TG01
Click to expand...
Click to collapse
yes i have read that too late
So thank you again for your tool
Good idea, lets see battery 1% increments, or 5% increments, remove 20% limitation on battery
InsertNameHere said:
Good idea, lets see battery 1% increments, or 5% increments, remove 20% limitation on battery
Click to expand...
Click to collapse
yeh i second that! (i know this thread is really old! )
i hope we an remove the 20% limit with a reg tweak solution. we just need more investigation. i know there is a 'temp' solution - stopping BAT1.exe with a Advanced Task Killer, but it is not ideal...
Any solutions?
olyloh6696 said:
yeh i second that! (i know this thread is really old! )
i hope we an remove the 20% limit with a reg tweak solution. we just need more investigation. i know there is a 'temp' solution - stopping BAT1.exe with a Advanced Task Killer, but it is not ideal...
Any solutions?
Click to expand...
Click to collapse
I know mentioned solution but it is not ideal not because of one has to stop battery driver but does not work in all cases . Wi-Fi and GSM can be cheated by this but Camera software not. It seems Camera ask battery driver directly via IOCTL code ( I created similar software asking driver not coredll ) not coredll and gets correct result - only 20% or less. Asking via coredll ( it seems Wi-Fi and GSM manager do this way ) returns stupid results ( it seems coredll does not refresh handle to battery driver assuming all the time it is still on and never be stopped or restarted ) showing as I remember that battery is being charging and has more than 20%.
Anyway, some other time in the future I am going to write any kind of stub on existing battery driver and it will be cheating whole the system
Reagrds
fxdjacentyfxd
fxdjacentyfxd said:
I know mentioned solution but it is not ideal not because of one has to stop battery driver but does not work in all cases . Wi-Fi and GSM can be cheated by this but Camera software not. It seems Camera ask battery driver directly via IOCTL code ( I created similar software asking driver not coredll ) not coredll and gets correct result - only 20% or less. Asking via coredll ( it seems Wi-Fi and GSM manager do this way ) returns stupid results ( it seems coredll does not refresh handle to battery driver assuming all the time it is still on and never be stopped or restarted ) showing as I remember that battery is being charging and has more than 20%.
Anyway, some other time in the future I am going to write any kind of stub on existing battery driver and it will be cheating whole the system
Reagrds
fxdjacentyfxd
Click to expand...
Click to collapse
Hmmm... For me, the battery limitation truck can also be used, and I can use the camera app fine.if someone can make the stop/start battery driver into a single icon to tap, it would fantastic
Sent from my GT-P1000 using XDA App
olyloh6696 said:
Hmmm... For me, the battery limitation truck can also be used, and I can use the camera app fine.if someone can make the stop/start battery driver into a single icon to tap, it would fantastic
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
Hi.
One month ago or later I was doing some tests. Problem is that on some WM systems when one stop battery driver, system responds message about crash in device.exe ( it supports all drivers ) and as I remember, system ( programs that check battery level ) can not be cheated. On such systems restarting battery driver ( whatever it means I use terminology from TaskMgr.exe. It seems to be fast stop and start driver but I am not sure) behaves much better. It is my case. Wi-Fi and GPRS can be cheated but camera not. On some systems ( I do not quite remember , maybe it was WM6.1 by ffboy ) battery driver can be stopped and all software work fine.
This implies that software You would like someone to create, should rather restarts battery driver not stops.
If You and any other colegues can see such need, I can try to create some piece of software that restarts battery driver. I am not sure it should be available as single icon to tap on desktop because it seems to be "one usage" software. As You know battery driver restart cheats the system and nothing is able to change it ( another driver restarts ) untill system restart.
I did some tests and it should be relatively easy to stop/start battery driver.
Regards
fxdjacentyfxd

[ROM] Flytouch2 Froyo [Stragulus]

Froyo NAND ROM for Flytouch2 by Stragulus
Video demonstrating how to flash the tablet after having created the bootable SD-card: http://www.youtube.com/watch?v=47kf4-Vbba8#t=3
RELEASE NOTES
Please provide feedback if things work, or do not work for you.
If it eats your tablet, don't blame me. I deem it low-risk though, if it fails you can reflash it using burntool or another bootable sd-card just like before.
INSTALLATION
Installation is slightly different from normal releases because it requires flashing in 2 steps. Luckily, it's really easy:
1. Download bootable SD-card image and unzip: http://www.mediafire.com/?4quqzqyce9eje7a
2. Write image to an SD-card that's at least 1GB in size using WinHex:
Get WinHex here: http://www.winhex.com/winhex/
In WinHex: tools, disk tools, clone disk
Choose file from zip (sdcard.img)
Choose the sd card as your destination
Start sector: fill in 0, also make sure the directories are correct on left
When finished, take out the card.
In linux, you just unzip the file and use dd to write it to the sd-card:
Code:
dd if=/path/to/sdcard.img of=/dev/sdX # (where sdX is your scsi disk device, check dmesg)
3. Turn off tablet and put sd-card in TOP slot (between the 2 usb ports).
4. Turn on tablet. It will report that it is booting off the sd-card, and that it's flashing kernel + filesystems.
5. Take out the sd-card when the tablet asks you to do so (takes less than a minute). Put it in the OTHER sd-card slot (bottom one), and reboot the tablet by holding down the power for 10 seconds to turn it off, then press it again to turn it on.
6. You will now see the tablet booting with a *GREEN* screen. The screen will flash twice to indicate it's starting. The flashing itself will take longer than in the previous step, a few minutes. If succesful, it will automatically reboot, after which you're done and you're booting the new firmware! You'll see a different boot screen (equalizer on a black background)
7. After it has booted and you have unlocked the screen, reboot the tablet first thing! First boots in android always tend to be behave erratically. This is unrelated to this firmware and applies to all Android setups.
If step 6 fails (which is very unlikely), it will stay on the green screen and it will keep on flashing the screen. In that case, you'll have to turn it off. Most likely problem for this is a corrupt SD-card. See troubleshooting below.
Make sure to never put that sd-card back in the top-slot without erasing it first, as it will reflash your tablet!
TROUBLESHOOTING
The 'green screen' keeps flashing!
The installer will dump a text file on the root of the sd-card which you can inspect. The file is called fail_reason.txt. If no such file exists, things are seriously wrong and the tablet couldn't even properly write to the sd-card. If using another SD-card, or rewriting the SD-card doesn't help, please upload the fail_reason.txt file here.
Flashing was succesful, but the system doesn't boot up!
The installer dumps one or more text files on the root of your sd-card during the 'green screen' flashing stage. Upload all these files and link to them here.
TODO
Find out why some users can't get past the android boot animation despite seemingly succesful flashing
Rewrite instructions for creating the sdcard @ windows
Figure out why Titanium Backup doesn't work
(**) Tested:
wifi, ethernet port
battery status works, g-sensor works
touchscreen works (precalibrated, you cannot recalibrate it using the settings app)
HD video playback works (I recommend Meridian player)
Market works (full)
angry birds works ( thought I'd mention it )
The firmware has already been rooted! You can connect using adb over wifi, and type 'su' to become root. Find your IP address using the Android System Info app.
GPS confirmed
Tablet details:
CPU: InfoTM IMAPX220 1GHz CPU ARM1136
Display: 10.2” (WXVGA 1024×600 ) LCD (26M)
RAM: 256MB DDR2 / ROM: 2GB
Camera: 1.3M
GPS: HopeRF XN203
Wifi: AzureWave 802.11B/G
Battery: 3800mah
Adapter: 9V 2/5A
2x USB
1x RJ45
1x HDMI
2x MicroSD
1x Stylus-slot
- Vibration
- Accelerometer
Dimension: 269.91mm*170.45mm*14.89mm 700gr
Buttons: Back, Home, Menu, Volume, Wifi, Reset and Power
Also known as
- FlyTouch II
- SuperPAD
- WOWpad
- WWE10
- PC1002I
- HyPE-Pad
- ZH10X2
- APad GF10
- CEM111
- Daystar MD10
- Careeror CM10104
Is it really a 1ghz cpu this time?
Cause, i heard it was only 800mhz and wasn't cortex a8
flyboyovyick said:
Is it really a 1ghz cpu this time?
Click to expand...
Click to collapse
You can look up the specs here.
Just got one yesterday, and so far I would say it is a very nice unit.
Everything is very responsive compared to other android tablets I have tried.
The book reader is very nice, and the video player is great. Played a 900mb divx movie without a hitch.
Market works good on this unit also.
My only problem is that when I try to run the system update.apk that came on the unit it asks for a license. A 20 digit code. If I select register later it will not allow for update check because it says it is an unincorporated device.
Like I said earlier market works fine, have downloaded several apps.
I even tried the market fix for the Zenithink ZT-180 from this forum hoping if I inserted a new androidID I could check for updates. No luck.
Any ideas?
Do you know where I can find updates and roms for this unit on the internet?
I got the system update.apk from the root and thought maybe I could check somehow where it was pointing the tablet to look for the updates. Is this possible?
I am currently running dory-r2.1.925 and kernel 2.6.32.9 [email protected] #1
cjadams51 said:
Just got one yesterday, and so far I would say it is a very nice unit.
Click to expand...
Click to collapse
Nice to hear! Your problem with the license-code is a known issue, many people have that problem. Just ignore for it now, the manufacturer said their will be a new ROM which doesn't ask for it.
Thanks for providing a resource for this machine.
Will the rom updates be posted here when they are made available or can you direct me to the manufacturers website, as I can not update via the system update app?
ROM's will be posted here, but those websites are:
Gome www.gome.com.cn
InfoTM www.infotmic.com.cn
As soon as there is a new ROM, i will update this topic.
Just ordered one. I sent back my broken ZT-180 and they are sending me a discounted FT2. A few questions:
1) The ZT-180 didn't have a true sleep mode. Does this?
2) The ZT-180 only has a 3-Axis accelerometer, making it useless for apps and games that use the g-sensor (it just has screen rotation). How's this one?
3) How's the battery compare? The last one was terrible.
4) Does it seem faster? Slower? Same?
Zap! said:
1) The ZT-180 didn't have a true sleep mode. Does this?
Click to expand...
Click to collapse
I am not sure. I haven't received mine yet.
Zap! said:
2) The ZT-180 only has a 3-Axis accelerometer, making it useless for apps and games that use the g-sensor (it just has screen rotation). How's this one?
Click to expand...
Click to collapse
I believe its the same (also also 3-Axis).
Zap! said:
3) How's the battery compare? The last one was terrible.
Click to expand...
Click to collapse
ZT-180 has 2000mAH, this one has 3800mAh, so it's almost double!
Zap! said:
4) Does it seem faster? Slower? Same?
Click to expand...
Click to collapse
Exactly the same CPU speed.
Drazix said:
I am not sure. I haven't received mine yet.
I believe its the same (also also 3-Axis).
ZT-180 has 2000mAH, this one has 3800mAh, so it's almost double!
Exactly the same CPU speed.
Click to expand...
Click to collapse
Hmm, really hope the accelerometer works in games and it has a sleep mode. Lemme know when you get it please.
Zap! said:
Lemme know when you get it please.
Click to expand...
Click to collapse
It's already shipped, so I get it in 3 days. But maybe 'cjadams51' can provide this info sooner.
It's a bit of an odyssey to order one here in Germany, but I started collecting material and info related to the FlyTouch2:
onderka.com/inhalt/gome-flytouch2-android-tablet/
The system/board-codename is "Emma", and I'm so curious how development of this thingy will turn out.
On this site that sells the FT2, I asked the following and got answers:
Does the g-sensor work in games, or does it just have auto-rotation?
Does it have a sleep mode?
Administrator yes, it can play g-sensor games.
yes, it has sleep mode also.
Thanks
Click to expand...
Click to collapse
That's strange, because the same page lists the following specification:
gravity sensor
3 direction
Click to expand...
Click to collapse
And 3 axes = no games
Anyone got some informations about of there will be a constant firmware improve like the zt-180? And if there maybe release the code
Gsensor works fine in the game labyrith. The screen however when playing this game does not display in full screen mode, only about quarter screen. I assume because it was designed for phone, but gsensor seems as responsive as playing it on my phone. The only draw back to the tablet so far is the battery life could definitely be better. I have not messed with gps that much. I am also trying to get it to work with my 3g mobile broadband card. I have a 595u card from sprint. Would love to be able to plug into usb and have internet on the go.
Any suggestions to get this going. When I plug in it is not reconized in the 3g settings.
Really enjoying ebook reader and movie player.
Not sure what you mean by true sleep mode. It does seem to go to sleep (screen turns off) when inactive.
In fact using it now on wifi to browse this forum hoping for rom update.
Drazix said:
That's strange, because the same page lists the following specification:
And 3 axes = no games
Click to expand...
Click to collapse
cjadams51 said:
Gsensor works fine in the game labyrith. The screen however when playing this game does not display in full screen mode, only about quarter screen. I assume because it was designed for phone, but gsensor seems as responsive as playing it on my phone. The only draw back to the tablet so far is the battery life could definitely be better. I have not messed with gps that much. I am also trying to get it to work with my 3g mobile broadband card. I have a 595u card from sprint. Would love to be able to plug into usb and have internet on the go.
Any suggestions to get this going. When I plug in it is not reconized in the 3g settings.
Really enjoying ebook reader and movie player.
Not sure what you mean by true sleep mode. It does seem to go to sleep (screen turns off) when inactive.
In fact using it now on wifi to browse this forum hoping for rom update.
Click to expand...
Click to collapse
Well, that could only mean one of two things:
1) It's incorrectly listed as 3-axis.
2) It is what I've suspected all along. That Zenithink, with their 3-axis ZT-180, got it wrong when they blamed it on the g-sensor. The ZT-180 can indeed make use of the g-sensor in games, it's just Zenithink's incompetence that's holding it back.
As for true sleep, the ZT-180 doesn't have one. When it times out, the screen goes darker but there's still some light. It never goes totally black unless the unit is powered off, or dead.
Zap!: It's not one of two things, it must be both things
cjadams51: Can you tell more about the battery life? How many hours can you use it?
Drazix said:
Zap!: It's not one of two things, it must be both things
cjadams51: Can you tell more about the battery life? How many hours can you use it?
Click to expand...
Click to collapse
The battery life varies of course depending on what your doing. w/ wifi on and surfing maybe 1.5 - 2 hours. As an ebook reader with no wifi over 2 hours.
I am also noticing that the battery gauge is a little sporadic and does not seem always be dependable or accurate. I need to install a battery info app, so I can get a better idea.
The gauge currently reminds me of sometimes when I install a new rom on my mt3g the battery guage seems to be sporadic before it settles down and becomes a more reliable. Still getting a feel for it. It could also be that I am using a little more than I think, I just know that I've gotten hit with the 15% battery warning several times, and it seems like I had not been using it that much.

[Q] Help with Aircrack-ng

Hello. I have recently installed the bcm4330 monitor mode, and I have been trying a lot to make it work.
I kinda understood the 'airodump-ng' command, even though I don't know what to do with it after it has been scanning the network for a while.
Now, about the 'aircrack-ng', what options should I use? I mean, I am trying to use the 'aircrack-ng -a channel -b BSSID', but it says "No file to crack specified."
It says on the --help that you need a <.cap / .ivs file>. What would be that? Also, if anyone would be kind enough to link me a "guide" on what all these commands do and how should I use them properly, I would be much grateful.

gpsd keeping phone awake all the time

I have a Samsung S4 I9500 and since the 4.4.2 upgrade my battery started draining around 10% per hour. I checked the battery settings and it says that the draining apps are: Android OS, Android System and gpsd. I also installed BetterBatteryStats and I found out that the phone is awake 100% of the time. Then I checked the Kernel Wakelocks and gpsd is the process keeping my phone awake most of the time. I have searched forums and google exhaustively and tried all solutions but none have worked. I even rooted my phone and started uninstalling all apps that could be using the gpsd process and it didn't work. Then I installed CyanogenMod hoping this would work, but no, I still have the same problem. Right now I have CyanogenMod CM11 (cm-11-20140811-NIGHTLY-i9500), gapps (MICRO MODULAR PACKAGE http://forum.xda-developers.com/showthread.php?t=2397942) and only a few extra apps installed: App Master, BetterBatteryStats, ColorNote, Slider Widget, Waze, Whatsapp and Xperia keyboard (I installed this one because the Android Keyboard (AOSP) kept crashing, so I disabled it). I have no idea of what to do next, if someone with extensive Android and gpsd knowledge can help me please do so, I have run out of ideas on what to do to fix this...
renaming gpsd
So I can rename the gpsd bin in /system/bin/gpsd to something else and it won't drain my battery anymore, but I can't use my gps... I need to rename it to gpsd and restart my phone... ANNOYING!
solution (partially)
So I partially solved my problem:
I created two shell scripts to stop and start the gpsd process. So if I want to use an app like Waze that uses gpsd I launch my start script and then when I finish using the app I launch my stop script. I use the SManager app to launch the scripts (with the Widget addon to have quick buttons in the start screen.
start_gpsd:
#!/system/bin/sh
mount -o rw,remount /system
chmod 755 /system/bin/gpsd
mount -o ro,remount /system
pkill scriptmanager
stop_gpsd:
#!/system/bin/sh
mount -o rw,remount /system
chmod 644 /system/bin/gpsd
pkill gpsd
mount -o ro,remount /system
pkill scriptmanager
having the same problem
i'm having the same problem. gpsd is eating up my battery. the phone can't get into deep sleep.
for a few days i was able to experiene normal battery and then it comes up again after 2 days.
i'm starting to think that this might be a google search or google now problem. before updates, everything was working fine. i initially thought foursquare was the culprit but the problem is still there.
this is so irritating, no one seems to have a solution.
solution (partially) script
Hi tomatus270389
Could you please tell me, how can I make that shell script step by step.
Thanks.
chinov13 said:
Hi tomatus270389
Could you please tell me, how can I make that shell script step by step.
Thanks.
Click to expand...
Click to collapse
Hi Chinov
I've been struggling with the GPSD process chomping away at my battery for 2 weeks now. Finally I found a work-around that works for me, although it doesn't solve the root cause.
I solved the issue on my Galaxy S4 (rooted with Omega 24) by installing Tasker (purchased from the play store). It's actually quite simple once installed. You create a new shell script task that runs as su and in the command type "pkill gpsd" (without the quotes). Then you can set an IF condition (at the bottom) to only execute it when %GPS not equal "on" (also without the quotes). That will ensure that Tasker doesn't kill the gpsd process when you switched GPS on manually to use it for navigation etc. Once that's done, you can create a schedule to execute that task every 2 minutes or whatever works for you.
Easy! :good:
Hope this helps you or someone else.
Koeties
Koeties said:
Hi Chinov
I've been struggling with the GPSD process chomping away at my battery for 2 weeks now. Finally I found a work-around that works for me, although it doesn't solve the root cause.
I solved the issue on my Galaxy S4 (rooted with Omega 24) by installing Tasker (purchased from the play store). It's actually quite simple once installed. You create a new shell script task that runs as su and in the command type "pkill gpsd" (without the quotes). Then you can set an IF condition (at the bottom) to only execute it when %GPS not equal "on" (also without the quotes). That will ensure that Tasker doesn't kill the gpsd process when you switched GPS on manually to use it for navigation etc. Once that's done, you can create a schedule to execute that task every 2 minutes or whatever works for you.
Easy! :good:
Hope this helps you or someone else.
Koeties
Click to expand...
Click to collapse
I am 99,99% sure it is not a local hardware/software issue, but a carrier issue due to any incorrect parameters on their net/cells, maybe Fast Dormancy... not sure.
All with this issue, see this thread: http://forum.xda-developers.com/showthread.php?p=51989209
[Q] What is l2_hsic kernel wakelock and I9500 not entering deep sleep
jaswinky said:
I am 99,99% sure it is not a local hardware/software issue, but a carrier issue due to any incorrect parameters on their net/cells, maybe Fast Dormancy... not sure.
All with this issue, see this thread: http://forum.xda-developers.com/showthread.php?p=51989209
[Q] What is l2_hsic kernel wakelock and I9500 not entering deep sleep
Click to expand...
Click to collapse
Feedback on this from my side: Turned out you're correct jaswinky, it was something the carrier did. They very quietly disabled whatever they did and my problems went away. I only found out about what they did in other local forums. At least the work-around sorted my battery drain problems out while the carrier mucked around.
Thanks so much for the SManager solution above.
This problem was driving me crazy. I'm posting incase someone else that has as little knowledge as me about all this stuff is trying to fix this problem as i was stuck on why my phone wouldn't recognize the pkill command.
All I needed to do was install busybox (like I said, I know nothing about any of this stuff) and then the script worked like a charm.
Koeties said:
Hi Chinov
I've been struggling with the GPSD process chomping away at my battery for 2 weeks now. Finally I found a work-around that works for me, although it doesn't solve the root cause.
I solved the issue on my Galaxy S4 (rooted with Omega 24) by installing Tasker (purchased from the play store). It's actually quite simple once installed. You create a new shell script task that runs as su and in the command type "pkill gpsd" (without the quotes). Then you can set an IF condition (at the bottom) to only execute it when %GPS not equal "on" (also without the quotes). That will ensure that Tasker doesn't kill the gpsd process when you switched GPS on manually to use it for navigation etc. Once that's done, you can create a schedule to execute that task every 2 minutes or whatever works for you.
Easy! :good:
Hope this helps you or someone else.
Koeties
Click to expand...
Click to collapse
Thanks for posting. Tasker worked a treat. For some reason GPSD was enabled when I made or received calls and then the process would continue running not allowing the phone to deep sleep.

Categories

Resources