[Nexus 4 Android Development] jakejm79:
I have an old Linksys WRT54GS router running dd-wrt.

Anyway here are my results after flashing the older hsic_fix_nexus4_4.2.2v1.zip and making sure the gEnableSuspend was set to 2, in fact I didn't have to change anything.

So effectively flashing the v5 wlan fix kernel then the hsic fix kernel left me with the following:

And no issues with push notifications, I can let me phone sleep for an hour, send myself an email to gmail and the notification goes off right away.

Ok scratch all that, seems like my wifi might have died at some point, even a reboot wont bring it back:

Logcat:

E/WifiHW ( 513): Supplicant not running, cannot connect
E/WifiHW ( 513): Supplicant not running, cannot connect
E/WifiStateMachine( 513): Failed 6 times to start supplicant, unload driver
E/WifiHW ( 164): Failed to write wlan fw path param (Operation not permitted)
E/SoftapController( 164): Softap fwReload - failed: -1
E/WifiStateMachine( 513): Failed to reload STA firmware java.lang.IllegalStateE
xception: command '50 softap fwreload wlan0 STA' failed with '400 50 Softap oper
ation failed (Operation not permitted)'
W/CommandListener( 164): Failed to retrieve HW addr for wlan0 (No such device)
D/CommandListener( 164): Setting iface cfg
E/WifiStateMachine( 513): Unable to change interface settings: java.lang.Illega
lStateException: command '52 interface setcfg wlan0 0.0.0.0 0 down' failed with
'400 52 Failed to set address (No such device)'
I/wpa_supplicant( 3516): Successfully initialized wpa_supplicant
I/wpa_supplicant( 3516): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 3516): nl80211: Could not configure driver to use managed mode

E/wpa_supplicant( 3516): Could not read interface p2p0 flags: No such device
E/wpa_supplicant( 3516): p2p0: Failed to initialize driver interface
I/logwrapper( 3514): /system/bin/wpa_supplicant terminated by exit(255)
D/Finsky ( 1901): [1] 5.onFinished: Installation state replication succeeded.
I/PowerManagerService( 513): Going to sleep due to screen timeout...
D/overlay ( 167): Set pipe=RGB1 dpy=0; Set pipe=VG0 dpy=0;
D/libEGL ( 513): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL ( 513): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL ( 513): loaded /system/lib/egl/libGLESv2_adreno200.so
I/Adreno200-EGL( 513): <eglInitialize:269>: EGL 1.4 QUALCOMM build: Nondetermin
istic AU_full_mako_PARTNER-ANDROID/JB-MR1-DEV_CL2961380_release_AU (CL2961380)
I/Adreno200-EGL( 513): Build Date: 12/10/12 Mon
I/Adreno200-EGL( 513): Local Branch:
I/Adreno200-EGL( 513): Remote Branch: m/partner-android/jb-mr1-dev
I/Adreno200-EGL( 513): Local Patches: NONE
I/Adreno200-EGL( 513): Reconstruct Branch: NOTHING
D/overlay ( 167): Unset pipe=VG0 dpy=0; Unset pipe=RGB1 dpy=0;
I/WindowManager( 513): No lock screen!
I/a ( 2341): Registering default exceptions handler
D/SurfaceFlinger( 167): Screen released, type=0 flinger=0x40b6c318
D/hwcomposer( 167): hwc_blank: Doing Dpy=0, blank=1
I/a ( 2341): TRACE_VERSION: 1.0.6
D/a ( 2341): APP_PACKAGE: com.anddoes.fancywidgets
D/a ( 2341): APP_VERSION: 3.5.5
D/overlay ( 167): Unset pipe=RGB0 dpy=0;
D/a ( 2341): Looking for exceptions in: /data/data/com.anddoes.fancywidget
s/files
I/ScreenEventHandler( 2302): Received Broadcast ACTION_USER_PRESENT
I/EventWatcherService( 2302): Received start id 2: Intent { cmp=com.asksven.bett
erbatterystats_xdaedition/com.asksven.betterbatterystats.services.EventWatcherSe
rvice }
I/WatchdogProcessingService( 2302): Called at 2013-04-16 02:51:47
D/hwcomposer( 167): hwc_blank: Done Dpy=0, blank=1
D/Surface ( 513): Excessive delay in blankDisplay() while turning screen off: 1
72ms
I/ScreenEventHandler( 2302): Received Broadcast ACTION_SCREEN_ON
I/LargeWidgetProvider( 2302): onReceive method called, action = 'BBS_WIDGET_UPDA
TE' at 2013-04-16 02:51:47
D/LargeWidgetProvider( 2302): Alarm called: updating
I/LargeWidgetProvider( 2302): No widget found to update
I/EventWatcherService( 2302): Received start id 3: Intent { cmp=com.asksven.bett
erbatterystats_xdaedition/com.asksven.betterbatterystats.services.EventWatcherSe
rvice }
I/MediumWidgetProvider( 2302): onReceive method called, action = 'BBS_WIDGET_UPD
ATE' at 2013-04-16 02:51:47
D/MediumWidgetProvider( 2302): Alarm called: updating
I/MediumWidgetProvider( 2302): No widget found to update
D/dalvikvm( 513): GC_FOR_ALLOC freed 1238K, 15% free 14551K/17020K, paused 64ms
, total 64ms
I/dalvikvm-heap( 513): Grow heap (frag case) to 14.602MB for 380496-byte alloca
tion
D/dalvikvm( 513): GC_FOR_ALLOC freed 11K, 15% free 14912K/17392K, paused 53ms,
total 53ms
I/SmallWidgetProvider( 2302): onReceive method called, action = 'BBS_WIDGET_UPDA
TE' at 2013-04-16 02:51:47
D/SmallWidgetProvider( 2302): Alarm called: updating
I/SmallWidgetProvider( 2302): No widget found to update
I/ActivityManager( 513): START u0 {flg=0x34840000 cmp=com.teslacoilsw.widgetloc
ker/.WidgetLocker (has extras)} from pid 2319
I/System.out( 1081): scheduled 1 gson: EssentialPersistence [isPhoneStateIdle=tr
ue, firedAlarmsCalendarIdAndEventList=[], totalCalendarRemindersOn=0, interval=4
3200000, latestNotificationName=CHARGING, screenOffTime=1366095107780, notificat
ionsOn={CHARGING=com.rageconsulting.android.lightflow.model.NotificationStateVO@
41547638}]
E/NotificationService( 513): Ignoring notification with icon==0: Notification(p
ri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x1 kind=[null]
)
E/NotificationService( 513): Ignoring notification with icon==0: Notification(p
ri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x1 kind=[null]
)
I/ScreenEventHandler( 2302): Received Broadcast ACTION_SCREEN_OFF
I/EventWatcherService( 2302): Received start id 4: Intent { cmp=com.asksven.bett
erbatterystats_xdaedition/com.asksven.betterbatterystats.services.EventWatcherSe
rvice }
I/WriteScreenOffReferenceService( 2302): Called at 2013-04-16 02:51:47
D/Globals ( 2302): Wakelock BBS_WAKELOCK_WHILE_SAVING_REF aquired
I/References( 2302): Create ref ref_screen_off at 15811 d 6 h 51 m 47 s
D/dalvikvm( 2319): GC_CONCURRENT freed 232K, 3% free 8820K/9084K, paused 3ms+2ms
, total 30ms
I/BatteryStatsProxy( 2302): invoking android.os.ServiceManager.getService("batte
ryinfo")
I/BatteryStatsProxy( 2302): android.os.ServiceManager.getService("batteryinfo")
returned a service binder
I/BatteryStatsProxy( 2302): invoking com.android.internal.app.IBatteryStats$Stub
.asInterface
I/BatteryStatsProxy( 2302): invoking getStatistics
E/ActivityThread( 2319): Failed to find provider info for com.motorola.android.p
roviders.settings
I/WLBroadcast( 2319): LOCKED
E/ActivityThread( 2319): Failed to find provider info for com.motorola.android.p
roviders.settings
D/dalvikvm( 513): GC_FOR_ALLOC freed 286K, 15% free 14870K/17392K, paused 55ms,
total 55ms
I/dalvikvm-heap( 513): Grow heap (frag case) to 14.717MB for 173860-byte alloca
tion
D/dalvikvm( 513): GC_FOR_ALLOC freed 1K, 15% free 15039K/17564K, paused 53ms, t
otal 53ms
I/a ( 2341): Registering default exceptions handler
I/a ( 2341): TRACE_VERSION: 1.0.6
D/a ( 2341): APP_PACKAGE: com.anddoes.fancywidgets
D/a ( 2341): APP_VERSION: 3.5.5
D/a ( 2341): Looking for exceptions in: /data/data/com.anddoes.fancywidget
s/files
D/dalvikvm( 2302): GC_FOR_ALLOC freed 742K, 12% free 8791K/9900K, paused 22ms, t
otal 22ms
I/dalvikvm-heap( 2302): Grow heap (frag case) to 8.775MB for 173860-byte allocat
ion
I/BatteryStatsProxy( 2302): retrieving parcel
I/BatteryStatsProxy( 2302): reading CREATOR field
D/dalvikvm( 2302): GC_FOR_ALLOC freed <1K, 12% free 8960K/10072K, paused 15ms, t
otal 15ms
D/libEGL ( 2319): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL ( 2319): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL ( 2319): loaded /system/lib/egl/libGLESv2_adreno200.so
I/Adreno200-EGL( 2319): <eglInitialize:269>: EGL 1.4 QUALCOMM build: Nondetermin
istic AU_full_mako_PARTNER-ANDROID/JB-MR1-DEV_CL2961380_release_AU (CL2961380)
I/Adreno200-EGL( 2319): Build Date: 12/10/12 Mon
I/Adreno200-EGL( 2319): Local Branch:
I/Adreno200-EGL( 2319): Remote Branch: m/partner-android/jb-mr1-dev
I/Adreno200-EGL( 2319): Local Patches: NONE
I/Adreno200-EGL( 2319): Reconstruct Branch: NOTHING
D/OpenGLRenderer( 2319): Enabling debug mode 0
D/dalvikvm( 2302): GC_CONCURRENT freed 64K, 7% free 9408K/10072K, paused 1ms+3ms
, total 20ms
I/StatsProvider( 2302): whichRealtime = 51462 batteryRealtime = 51462000 timeBat
teryUp=51462
I/TAG ( 2302): getWifiOnTime with params 51462000 and 2 returned 0
I/TAG ( 2302): getGlobalWifiRunningTime with params 51462000 and 2 returned
0
I/TAG ( 2302): getPhoneDataConnectionTime with params 0, 51462000and 2 retur
ned 9368000
I/TAG ( 2302): getPhoneSignalStrengthTime with params 0, 51462000and 2 retur
ned 9368000
I/TAG ( 2302): getPhoneSignalStrengthTime with params 1, 51462000and 2 retur
ned 0
I/TAG ( 2302): getPhoneSignalStrengthTime with params 2, 51462000and 2 retur
ned 0
I/TAG ( 2302): getPhoneSignalStrengthTime with params 3, 51462000and 2 retur
ned 0
I/TAG ( 2302): getPhoneSignalStrengthTime with params 4, 51462000and 2 retur
ned 0
I/TAG ( 2302): getScreenBrightnessTime with params 0, 51462000and 2 returned
0
I/TAG ( 2302): getScreenBrightnessTime with params 1, 51462000and 2 returned
0
I/TAG ( 2302): getScreenBrightnessTime with params 2, 51462000and 2 returned
0
I/TAG ( 2302): getScreenBrightnessTime with params 3, 51462000and 2 returned
0
I/TAG ( 2302): getScreenBrightnessTime with params 4, 51462000and 2 returned
0
D/StatsProvider( 2302): Added Deep sleep: (0 s) Ratio: 0.0%
D/StatsProvider( 2302): Current value: Deep Sleep (0 s) Ratio: 0.0%
D/StatsProvider( 2302): Current value: Awake 51 s (51 s) Ratio: 100.0%
D/StatsProvider( 2302): Current value: No Data Connection 9 s (9 s) Ratio: 17.6
%
D/StatsProvider( 2302): Current value: No or Unknown Signal 9 s (9 s) Ratio: 17
.6%
D/dalvikvm( 2302): GC_CONCURRENT freed 555K, 8% free 9325K/10072K, paused 2ms+2m
s, total 21ms
I/ActivityManager( 513): Displayed com.teslacoilsw.widgetlocker/.WidgetLocker:
+511ms
D/dalvikvm( 2319): GC_FOR_ALLOC freed 126K, 3% free 9001K/9192K, paused 11ms, to
tal 11ms
D/dalvikvm( 2319): GC_FOR_ALLOC freed 9K, 3% free 9181K/9376K, paused 11ms, tota
l 11ms
I/dalvikvm-heap( 2319): Grow heap (frag case) to 9.615MB for 656116-byte allocat
ion
I/ReferenceStore( 2302): Saved ref ref_screen_off
I/References( 2302): Create ref ref_current at 15811 d 6 h 51 m 48 s
D/dalvikvm( 2319): GC_CONCURRENT freed <1K, 2% free 9821K/10020K, paused 3ms+4ms
, total 22ms
D/dalvikvm( 2319): WAIT_FOR_CONCURRENT_GC blocked 18ms
D/dalvikvm( 2319): WAIT_FOR_CONCURRENT_GC blocked 16ms
I/BatteryStatsProxy( 2302): invoking android.os.ServiceManager.getService("batte
ryinfo")
I/BatteryStatsProxy( 2302): android.os.ServiceManager.getService("batteryinfo")
returned a service binder
I/BatteryStatsProxy( 2302): invoking com.android.internal.app.IBatteryStats$Stub
.asInterface
I/BatteryStatsProxy( 2302): invoking getStatistics
D/dalvikvm( 2319): GC_FOR_ALLOC freed 8K, 2% free 10029K/10204K, paused 11ms, to
tal 11ms
D/dalvikvm( 2319): GC_FOR_ALLOC freed 65K, 2% free 10346K/10556K, paused 11ms, t
otal 11ms
D/dalvikvm( 513): GC_FOR_ALLOC freed 239K, 16% free 14872K/17564K, paused 57ms,
total 57ms
D/dalvikvm( 2302): GC_FOR_ALLOC freed 826K, 13% free 8850K/10072K, paused 15ms,
total 16ms
I/BatteryStatsProxy( 2302): retrieving parcel
I/BatteryStatsProxy( 2302): reading CREATOR field
W/IInputConnectionWrapper( 2319): showStatusIcon on inactive InputConnection
D/dalvikvm( 2302): GC_CONCURRENT freed 35K, 9% free 9247K/10072K, paused 9ms+3ms
, total 24ms
D/dalvikvm( 2302): GC_CONCURRENT freed 310K, 7% free 9377K/10072K, paused 1ms+3m
s, total 17ms
I/StatsProvider( 2302): whichRealtime = 51462 batteryRealtime = 51462000 timeBat
teryUp=51462
I/TAG ( 2302): getWifiOnTime with params 51462000 and 2 returned 0
I/TAG ( 2302): getGlobalWifiRunningTime with params 51462000 and 2 returned
0
I/TAG ( 2302): getPhoneDataConnectionTime with params 0, 51462000and 2 retur
ned 9368000
I/TAG ( 2302): getPhoneSignalStrengthTime with params 0, 51462000and 2 retur
ned 9368000
I/TAG ( 2302): getPhoneSignalStrengthTime with params 1, 51462000and 2 retur
ned 0
I/TAG ( 2302): getPhoneSignalStrengthTime with params 2, 51462000and 2 retur
ned 0
I/TAG ( 2302): getPhoneSignalStrengthTime with params 3, 51462000and 2 retur
ned 0
I/TAG ( 2302): getPhoneSignalStrengthTime with params 4, 51462000and 2 retur
ned 0
I/TAG ( 2302): getScreenBrightnessTime with params 0, 51462000and 2 returned
0
I/TAG ( 2302): getScreenBrightnessTime with params 1, 51462000and 2 returned
0
I/TAG ( 2302): getScreenBrightnessTime with params 2, 51462000and 2 returned
0
I/TAG ( 2302): getScreenBrightnessTime with params 3, 51462000and 2 returned
0
I/TAG ( 2302): getScreenBrightnessTime with params 4, 51462000and 2 returned
0
D/StatsProvider( 2302): Added Deep sleep: (0 s) Ratio: 0.0%
D/StatsProvider( 2302): Current value: Deep Sleep (0 s) Ratio: 0.0%
D/StatsProvider( 2302): Current value: Awake 51 s (51 s) Ratio: 100.0%
D/StatsProvider( 2302): Current value: No Data Connection 9 s (9 s) Ratio: 17.6
%
D/StatsProvider( 2302): Current value: No or Unknown Signal 9 s (9 s) Ratio: 17
.6%
E/WifiHW ( 513): Supplicant not running, cannot connect
I/ReferenceStore( 2302): Saved ref ref_current
D/Globals ( 2302): Wakelock BBS_WAKELOCK_WHILE_SAVING_REF released
I/LargeWidgetProvider( 2302): onReceive method called, action = 'BBS_WIDGET_UPDA
TE' at 2013-04-16 02:51:48
D/LargeWidgetProvider( 2302): Alarm called: updating
I/LargeWidgetProvider( 2302): No widget found to update
I/MediumWidgetProvider( 2302): onReceive method called, action = 'BBS_WIDGET_UPD
ATE' at 2013-04-16 02:51:48
D/MediumWidgetProvider( 2302): Alarm called: updating
I/MediumWidgetProvider( 2302): No widget found to update
I/SmallWidgetProvider( 2302): onReceive method called, action = 'BBS_WIDGET_UPDA
TE' at 2013-04-16 02:51:48
D/SmallWidgetProvider( 2302): Alarm called: updating
I/SmallWidgetProvider( 2302): No widget found to update
D/dalvikvm( 2302): GC_CONCURRENT freed 390K, 7% free 9382K/10072K, paused 4ms+1m
s, total 20ms
W/IdleConnectionHandler( 1611): Removing a connection that never existed!
W/IdleConnectionHandler( 1611): Removing a connection that never existed!
W/IdleConnectionHandler( 1611): Removing a connection that never existed!
W/IdleConnectionHandler( 1611): Removing a connection that never existed!
W/IdleConnectionHandler( 1611): Removing a connection that never existed!
E/WifiHW ( 513): Supplicant not running, cannot connect
E/WifiHW ( 513): Supplicant not running, cannot connect
E/WifiHW ( 513): Supplicant not running, cannot connect
D/dalvikvm( 1081): GC_CONCURRENT freed 384K, 6% free 10149K/10704K, paused 30ms+
1ms, total 93ms
E/WifiHW ( 513): Supplicant not running, cannot connect
E/WifiStateMachine( 513): Failed to setup control channel, restart supplicant
E/WifiHW ( 164): Failed to write wlan fw path param (Operation not permitted)
E/SoftapController( 164): Softap fwReload - failed: -1
E/WifiStateMachine( 513): Failed to reload STA firmware java.lang.IllegalStateE
xception: command '53 softap fwreload wlan0 STA' failed with '400 53 Softap oper
ation failed (Operation not permitted)'
W/CommandListener( 164): Failed to retrieve HW addr for wlan0 (No such device)
D/CommandListener( 164): Setting iface cfg
E/WifiStateMachine( 513): Unable to change interface settings: java.lang.Illega
lStateException: command '55 interface setcfg wlan0 0.0.0.0 0 down' failed with
'400 55 Failed to set address (No such device)'
E/WifiHW ( 513): Unable to open connection to supplicant on "wlan0": No such f
ile or directory
I/wpa_supplicant( 3635): Successfully initialized wpa_supplicant
I/wpa_supplicant( 3635): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 3635): nl80211: Could not configure driver to use managed mode

E/wpa_supplicant( 3635): Could not read interface p2p0 flags: No such device
E/wpa_supplicant( 3635): p2p0: Failed to initialize driver interface
I/logwrapper( 3633): /system/bin/wpa_supplicant terminated by exit(255)
E/WifiHW ( 513): Supplicant not running, cannot connect