RILJ PARTIAL WAKE LOCK fix?

topiratiko

Senior Member
Dec 22, 2010
3,536
823
0
So I spent about four hours researching this. From flashing kernels removing apps and installing modems nothing worked. EXCEPT putting phone in airplane mode, rebooting, then disabling airplane mode. Phone enters deep sleep quickly and consistently after performing this. I encourage anyone with this issue to try the steps above and report back. Note to devs if this is in fact a fix, can you incorporate some kind of script that places phone in airplane mode on reboot and automatically disables on boot? I believe a lot more people are affected by this than we know. Does anyone NOT have this issue? if you know for a fact your phone spends a lot of time in deep sleep please identify which modem you are using. Supposedly this occurs due to a lack of response from modem to os.

from chewable on ics forums:
Bad battery drain due to a wakelock being held for an unspecified length of time. BetterBatteryStats shows it to be RILJ holding the wakelock. I've narrowed it down to a RIL request named RIL_REQUEST_SET_TTY_MODE. I dumped out RILJ.mRequestsList during the held wakelock and I see this request staying around and waiting for a response from the RIL. It's as if the RIL is not responding to this request and I don't see RILReceiver processing a response to this request.

anyone know what tty is?

Sent from my SGH-I777 using xda app-developers app
 
Last edited:

jthatch12

Senior Member
Mar 24, 2012
2,159
1,613
0
Philly
So I spent about four hours researching this. From flashing kernels removing apps and installing modems nothing worked. EXCEPT putting phone in airplane mode, rebooting, then disabling airplane mode. Phone enters deep sleep quickly and consistently after performing this. I encourage anyone with this issue to try the steps above and report back. Note to devs if this is in fact a fix, can you incorporate some kind of script that places phone in airplane mode on reboot and automatically disables on boot? I believe a lot more people are affected by this than we know. Does anyone NOT have this issue? if you know for a fact your phone spends a lot of time in deep sleep please identify which modem you are using. Supposedly this occurs due to a lack of response from modem to os.

from chewable on ics forums:
Bad battery drain due to a wakelock being held for an unspecified length of time. BetterBatteryStats shows it to be RILJ holding the wakelock. I've narrowed it down to a RIL request named RIL_REQUEST_SET_TTY_MODE. I dumped out RILJ.mRequestsList during the held wakelock and I see this request staying around and waiting for a response from the RIL. It's as if the RIL is not responding to this request and I don't see RILReceiver processing a response to this request.

anyone know what tty is?

Sent from my SGH-I777 using xda app-developers app

Dunno how to fix it besides the airplane mode. Have you tried another kernel?
 

catzilla

Senior Member
May 24, 2010
275
43
58
NYC
I am having the same issue. Task's AOKP from 7/3, fluxxi kernel from 7/17.

Modem: UCPLC5.


Strangely, I've been unable to replicate it for the past 2 hours - phone sleeps fine. W T F.
 

vladm7

Senior Member
Oct 8, 2011
369
83
0
Chicagoland
Seems like rebooting with airplane mode is the only option
I remember I had similar issue - RILJ wakelock after using headphones to listen music. It's disappeared by itself a couple of months ago (I'm on a latest CM9).

But, at the time I was able to get off RILJ wake lock by unplugging headphones, turning airplane mode on, screen off, wait a couple of mins and turn airplane mode off. This should get rid of RILJ wakelock.

hope this helps.

-- vlad
 

DefTaker

Senior Member
Jun 20, 2009
357
44
0
Well, I don't know if the OP's issues had to do with unplugging headphones but it doesn't seem to be. I'm glad this was posted as I couldn't figure out why I was only getting 85% deep sleep in CPUSpy and the phone would keep showing 10%-11% as 200Mhz in the background. Kernel Wakelocks didn't show any issues and I didn't see anything in Partial Wakelocks at first...then I charged up my phone and saw RILJ showing as 59.8%!!!!!

In fact, RILJ was showing up very high every single time I would charge my phone - even if I rebooted my phone after a full charge.

Eventually, after several hours, it would drop and show about 3.7% or lower depending on how long the phone was sitting on standby without being used. But this explains why I was losing about 4%-5% an hour.

I tried the Airplane Mode on > Reboot > Airplaine Mode off and my phone is now entering Deep Sleep at 94%!

No apps removed or frozen. Just followed OP's instructions!

I'm on AOKP 7-03 (running the stock task650 kernel but switching kernels didn't improve or worsen battery life).

This RILJ may have been fixed in the latest CM9 nightlies.

(Yes, I know taskt650 is currently working on an AOKP JB build so I'm pretty certain that this will be fixed in that build.)
 
  • Like
Reactions: topiratiko

h3lluvaninjuhneer

Senior Member
Jul 21, 2012
179
68
0
Louisville, KY
I too am having this problem using task & ktoonsez's AOKP 7/3. For me, it mainly occurs with headphone use. I switched to Semi v16c and the problem went away, but I really want to go back to AOKP! I just got tired of obsessing about this wakelock and switched....

Hopefully JB will bring a final cure.

Sent from my Nexus 7 using xda app-developers app
 
Last edited:

eep2378

Senior Member
Aug 12, 2010
6,337
2,209
0
MA
I too am having this problem using task & ktoonsez's AOKP 7/3. For me, it mainly occurs with headphone use. I switched to Semi v16c and the problem went away, but I really want to go back to AOKP! I just got tired of obsessing about this wakelock and switched....

Hopefully JB will bring a final cure.

Sent from my Nexus 7 using xda app-developers app
There is no escape from RILJ on JB(as of now). Blame Samsung RIL, its complete horsebleep.
 
  • Like
Reactions: topiratiko

cdobeso

Senior Member
Jul 23, 2012
62
14
0
Ahh, I have been seeing this on my wife's skyrocket so I'm gonna try this on her phone.

Sent from my SGH-I777 using Tapatalk 2
 

h3lluvaninjuhneer

Senior Member
Jul 21, 2012
179
68
0
Louisville, KY
I have tried several kernels (with task's AOKP), full wipe and reflash, etc., but the only solution was to go to a Samsung based ROM. I noticed the following over on the international GS2 cm9 development thread, but don't see any evidence this was chased to ground: http://forum.xda-developers.com/showthread.php?p=25047473

At this point, I'm just hoping one of the devs figures out a solution....

Sent from my SAMSUNG-SGH-I777 using xda app-developers app
 

Ryther

Senior Member
Apr 2, 2012
368
228
0
33
Martinengo (BG)
I've got the same problem using the 3g turbocharger from zeppelinrox and setting the experimental 1 values; try it with every other settings to see if it works ;) I think it's a problem with some ROM settings!
 

ferrocene

Senior Member
May 7, 2010
535
204
0
In the Unix world tty is teletype, or another word to describe a terminal / console session.

Sent from my SGH-I777 using xda app-developers app
 
Last edited:

WeWearFedoras

Senior Member
Jan 19, 2012
499
66
0
Waco, Texas
So any way to get a script for this? Since the airplane mode > reboot > airplane mode seems to be the only fix... can we get a script that will run this automatically somehow? It's not a big deal if we can't... after all it only takes a few second to turn airplane mode on but sometimes I forget... :p
 

lmarr28

Senior Member
Feb 20, 2012
54
9
0

moorecomp

Senior Member
Jun 19, 2012
156
67
0
I'm definitely having the issue with headphones on the latest builds of AOKP and Fluxi.

Could our RILJ partial wakelock issue be related to TTY (specifically: RIL_REQUEST_SET_TTY_MODE)? It appears to have been fixed in CM9 - see here:
http://review.cyanogenmod.com/#/c/16190/

Also, post #3028 on this page seems to exactly describe how & when I get the RILJ partial wakelock:
http://forum.xda-developers.com/show...10400&page=303
From what I have read regarding TTY on cellular, it requires a special cable for the headphone jack, so that makes sense it has something to do with the headphones.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone