Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on S4mini cyanogenmod 11 #10

Open
obifur opened this issue Jun 26, 2014 · 7 comments
Open

Doesn't work on S4mini cyanogenmod 11 #10

obifur opened this issue Jun 26, 2014 · 7 comments

Comments

@obifur
Copy link

obifur commented Jun 26, 2014

Hi,
I thought this is exactly what I need: I don't use mobile data but only wifi and K9 mail with push notification. Because wifi is off in standby (which is good because I want to save battery) I need a tool to switch it on from time to time while the phone is not in use.

The problem:
Batteryfu is simply not switching wifi. Not automatically nor manually. Even if i disable Batteryfu I'm not able to switch wifi in the Android settings manually until restart.

@tobykurien
Copy link
Owner

This sounds like I'm passing the buck, but I would suspect that the problem might be to do with the ROM. I have 3 devices with CM11, and they all toggle wifi and mobile data fine using BatteryFu. One of them fails after a while and I have to reboot to get toggling working again, which is a problem with the ROM.

@obifur
Copy link
Author

obifur commented Jun 27, 2014

Would a logcat be helpful? Am I be able to attach a file here or do I have to cp paste it (which would be a long post)?

@tobykurien
Copy link
Owner

A logcat might be helpful. Also check your WiFi sleep policy. I have set mine to always keep WiFi on, even during sleep mode. BatteryFu will then take care of toggling it.

@obifur
Copy link
Author

obifur commented Jun 28, 2014

Ok, I did the following (btw, it's CM11-M7):

  • set wifi to always On
  • Start/enabled batteryfu
  • reboot

Then wifi is always off and can't be activated in any way.
Here's the log:

06-28 08:56:54.660 I/AudioFlinger( 354): loadHwModule() Loaded r_submix audio interface from Wifi Display audio HAL (audio) handle 4
06-28 08:56:59.725 D/ConnectivityService( 836): wifiOnly=false
06-28 08:56:59.745 I/WifiService( 836): WifiService starting up with Wi-Fi disabled
06-28 08:57:01.367 I/QuickSettingsController( 927): Tiles list: toggleBrightness|toggleCamera|toggleSettings|toggleBluetooth|toggleGPS|toggleWifi|toggleNfc|toggleFlashlight|toggleAirplane|toggleAutoRotate
06-28 08:57:06.492 D/PicasaUploader( 1433): wifiOnlyPhoto changed to true
06-28 08:57:06.492 D/PicasaUploader( 1433): wifiOnlyVideo changed to true
06-28 08:57:13.189 D/MccTable( 1034): WIFI_COUNTRY_CODE set to de
06-28 08:57:13.189 I/WifiService( 836): WifiService trying to set country code to de with persist set to true
06-28 08:58:10.343 D/WifiService( 836): setWifiEnabled: false pid=2446, uid=10121
06-28 08:58:15.188 D/Finsky ( 2015): [1] CheckWifiAndAutoUpdate.cancelCheck: Cancelling auto-update wifi check.
06-28 08:59:03.113 I/BatteryFu( 2446): DataToggler enabling wifi
06-28 08:59:03.113 D/WifiService( 836): setWifiEnabled: true pid=2446, uid=10121
06-28 08:59:03.513 D/WifiMonitor( 836): startMonitoring(wlan0) with mConnected = false
06-28 08:59:03.643 D/WifiConfigStore( 836): Loading config and enabling all networks
06-28 08:59:03.653 E/WifiConfigStore( 836): Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
06-28 08:59:03.673 D/WifiMonitor( 836): startMonitoring(p2p0) with mConnected = true
06-28 08:59:04.534 D/WifiStateMachine( 836): scancount not found
06-28 08:59:04.534 E/WifiStateMachine( 836): scanCount==0 - aborting
06-28 08:59:05.185 D/WifiStateMachine( 836): VerifyingLinkState enter
06-28 08:59:05.195 D/WifiStateMachine( 836): VerifyingLinkState GOOD_LINK_DETECTED: transition to captive portal check
06-28 08:59:05.195 D/WifiStateMachine( 836): CaptivePortalCheckState enter
06-28 08:59:05.195 D/WifiStateMachine( 836): CaptivePortalCheckState CMD_CAPTIVE_CHECK_COMPLETE
06-28 08:59:05.195 D/ConnectivityService( 836): Captive portal check NetworkInfo: type: WIFI[], state: CONNECTING/CAPTIVE_PORTAL_CHECK, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 08:59:05.195 D/ConnectivityService( 836): handleCaptivePortalTrackerCheck: call captivePortalCheckComplete ni=NetworkInfo: type: WIFI[], state: CONNECTING/CAPTIVE_PORTAL_CHECK, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 08:59:05.205 D/ConnectivityService( 836): ConnectivityChange for WIFI: CONNECTED/CONNECTED
06-28 08:59:05.205 D/ConnectivityService( 836): Setting TCP values: [1] which comes from [net.tcp.usercfg.wifi]
06-28 08:59:05.205 D/ConnectivityService( 836): Setting TCP values: [20] which comes from [net.tcp.delack.wifi]
06-28 08:59:05.205 E/ConnectivityService( 836): Unexpected mtu value: android.net.wifi.WifiStateTracker@42072670
06-28 08:59:08.258 D/CaptivePortalTracker( 836): NoActiveNetworkState{ when=-1ms what=1 obj=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false target=com.android.internal.util.StateMachine$SmHandler }
06-28 08:59:08.278 D/StatusBar.NetworkController( 927): updateConnectivity: networkInfo=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 08:59:09.259 D/StatusBar.NetworkController( 927): updateConnectivity: networkInfo=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 08:59:18.449 D/CaptivePortalTracker( 836): Not captive network NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 08:59:18.449 D/CaptivePortalTracker( 836): notifyPortalCheckCompleted: captive=false ni=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 08:59:18.449 D/ConnectivityService( 836): captivePortalCheckCompleted: ni=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false captive=false
06-28 08:59:25.176 D/WifiService( 836): setWifiEnabled: true pid=2626, uid=1000
06-28 08:59:34.506 D/WifiService( 836): setWifiEnabled: false pid=2446, uid=10121
06-28 08:59:34.606 D/WifiStateMachine( 836): scancount not found
06-28 08:59:34.606 E/WifiStateMachine( 836): scanCount==0 - aborting
06-28 08:59:34.606 D/ConnectivityService( 836): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
06-28 08:59:37.780 D/CaptivePortalTracker( 836): Disconnected from active network NetworkInfo: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: , roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 09:00:45.300 D/WifiService( 836): setWifiEnabled: false pid=2446, uid=10121
06-28 09:02:25.293 I/BatteryFu( 2199): DataToggler enabling wifi
06-28 09:02:25.343 D/WifiService( 836): setWifiEnabled: true pid=2199, uid=10121
06-28 09:02:26.114 D/WifiMonitor( 836): startMonitoring(wlan0) with mConnected = false
06-28 09:02:26.164 D/WifiConfigStore( 836): Loading config and enabling all networks
06-28 09:02:26.174 E/WifiConfigStore( 836): Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
06-28 09:02:26.234 D/WifiMonitor( 836): startMonitoring(p2p0) with mConnected = true
06-28 09:02:26.965 D/WifiStateMachine( 836): scancount not found
06-28 09:02:26.965 E/WifiStateMachine( 836): scanCount==0 - aborting
06-28 09:02:27.816 D/WifiStateMachine( 836): VerifyingLinkState enter
06-28 09:02:27.836 D/WifiStateMachine( 836): VerifyingLinkState GOOD_LINK_DETECTED: transition to captive portal check
06-28 09:02:27.836 D/WifiStateMachine( 836): CaptivePortalCheckState enter
06-28 09:02:27.856 D/WifiStateMachine( 836): CaptivePortalCheckState CMD_CAPTIVE_CHECK_COMPLETE
06-28 09:02:27.856 D/ConnectivityService( 836): Captive portal check NetworkInfo: type: WIFI[], state: CONNECTING/CAPTIVE_PORTAL_CHECK, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 09:02:27.856 D/ConnectivityService( 836): handleCaptivePortalTrackerCheck: call captivePortalCheckComplete ni=NetworkInfo: type: WIFI[], state: CONNECTING/CAPTIVE_PORTAL_CHECK, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 09:02:27.866 D/ConnectivityService( 836): ConnectivityChange for WIFI: CONNECTED/CONNECTED
06-28 09:02:27.866 D/ConnectivityService( 836): Setting TCP values: [1] which comes from [net.tcp.usercfg.wifi]
06-28 09:02:27.876 D/ConnectivityService( 836): Setting TCP values: [20] which comes from [net.tcp.delack.wifi]
06-28 09:02:27.876 E/ConnectivityService( 836): Unexpected mtu value: android.net.wifi.WifiStateTracker@42072670
06-28 09:02:30.909 D/CaptivePortalTracker( 836): NoActiveNetworkState{ when=-1ms what=1 obj=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false target=com.android.internal.util.StateMachine$SmHandler }
06-28 09:02:30.929 D/StatusBar.NetworkController( 927): updateConnectivity: networkInfo=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 09:02:31.810 D/StatusBar.NetworkController( 927): updateConnectivity: networkInfo=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 09:02:41.050 D/CaptivePortalTracker( 836): Not captive network NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 09:02:41.050 D/CaptivePortalTracker( 836): notifyPortalCheckCompleted: captive=false ni=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 09:02:41.050 D/ConnectivityService( 836): captivePortalCheckCompleted: ni=NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "obiWlan_ext", roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false captive=false
06-28 09:06:32.100 D/WifiService( 836): setWifiEnabled: false pid=3347, uid=10121
06-28 09:06:32.410 D/ConnectivityService( 836): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
06-28 09:06:32.650 D/WifiStateMachine( 836): scancount not found
06-28 09:06:32.650 E/WifiStateMachine( 836): scanCount==0 - aborting
06-28 09:06:35.743 D/CaptivePortalTracker( 836): Disconnected from active network NetworkInfo: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: , roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
06-28 09:07:23.204 D/Finsky ( 2015): [1] CheckWifiAndAutoUpdate.cancelCheck: Cancelling auto-update wifi check.
06-28 09:14:34.650 I/BatteryFu( 3347): DataToggler enabling wifi
06-28 09:14:34.650 D/WifiService( 836): setWifiEnabled: true pid=3347, uid=10121
06-28 09:14:35.511 E/WifiHW ( 348): Failed to write wlan fw path param (Operation not permitted)
06-28 09:14:35.511 E/WifiStateMachine( 836): Failed to reload STA firmware java.lang.IllegalStateException: command '72 softap fwreload wlan0 STA' failed with '400 72 SoftAP command has failed'
06-28 09:14:35.601 E/WifiStateMachine( 836): Unable to change interface settings: java.lang.IllegalStateException: command '74 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 74 Failed to set address (No such device)'
06-28 09:14:35.631 D/WifiMonitor( 836): startMonitoring(wlan0) with mConnected = false
06-28 09:18:31.080 D/WifiService( 836): setWifiEnabled: false pid=3347, uid=10121
06-28 09:28:42.183 I/BatteryFu( 3179): DataToggler enabling wifi
06-28 09:28:42.193 D/WifiService( 836): setWifiEnabled: true pid=3179, uid=10121
06-28 09:28:43.645 I/BatteryFu( 3347): Wifi not connected after timeout, enabling mobile data
06-28 09:28:45.597 E/WifiHW ( 836): Supplicant not running, cannot connect
06-28 09:28:46.598 E/WifiHW ( 836): Supplicant not running, cannot connect
06-28 09:28:47.609 E/WifiHW ( 836): Supplicant not running, cannot connect
06-28 09:28:48.610 E/WifiHW ( 836): Supplicant not running, cannot connect
06-28 09:28:49.611 E/WifiHW ( 836): Supplicant not running, cannot connect
06-28 09:28:49.611 E/WifiMonitor( 836): startMonitoring(wlan0) failed!
06-28 09:28:49.621 E/WifiStateMachine( 836): Failed to setup control channel, restart supplicant
06-28 09:28:50.162 E/WifiMonitor( 836): startMonitor called with unknown iface=wlan0
06-28 09:28:52.254 I/BatteryFu( 3179): Wifi not connected after timeout, enabling mobile data
06-28 09:32:38.025 D/WifiService( 836): setWifiEnabled: false pid=3347, uid=10121
06-28 09:33:00.579 I/BatteryFu( 3347): DataToggler enabling wifi
06-28 09:33:00.589 D/WifiService( 836): setWifiEnabled: true pid=3347, uid=10121
06-28 09:33:15.535 D/WifiService( 836): setWifiEnabled: true pid=927, uid=10009
06-28 09:33:25.145 D/WifiService( 836): setWifiEnabled: true pid=927, uid=10009
06-28 09:33:30.271 D/SubSettings( 3955): Launching fragment com.android.settings.wifi.WifiSettings

@tobykurien
Copy link
Owner

As can be seen from that log, BatteryFu does attempt to put WiFi on, but it doesn't turn on for some reason, and it gives up and turns mobile data on. Does your WiFi ever come on, even manually? Is it associated with an access point?

@obifur
Copy link
Author

obifur commented Jun 30, 2014

Directly after starting batteryfu wifi turns off. But it is still possible to switch wlan on again by choosing "go online now" or "always online". Also manually via settings. Choosing "standard" let it switch off again even with option "data while screen on".
Once the phone switched to standby after a few minutes or after a reboot with autostarting batteryfu, wlan can't be switched on in any way even after deactivating batteryfu. Then the phone must be rebooted.

@obifur
Copy link
Author

obifur commented Jul 11, 2014

no change with CM11 M8 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants