Just want to confirm if this is a hardware issue. - Nexus 7 (2013) Q&A

My nexus 7 2013 stopped connecting to wifi a week ago. Then realized bluetooth doesn't work. Wifi won't show any networks; it just fails to turn on and shows no mac address. I thought this must be a weird software issue that some config got mucked up. This happened with running stock 5.1.1 but then tried cm 12.1 to see if it will fix it. Before trying cm I did a factory reset (was stuck at the wifi signin screen) and I cleared the cache and data and cleared dalvik cache. So then I tried CM but unfortunately, this also happens. This has me pretty much convinced that it is a hardware issue and something is wrong with the wifi/bluetooth chip.
Just wanted to see what others thought. After the above, I can't see how this isn't a hardware issue. I was looking and motherboards aren't too expensive and it doesn't look too hard so I might try that.
Oh a weird thing, in this state it is causing an excessive battery drain even when off. It's been off for 8 hours at 100% charge and now is at 74%. So I'm keeping an eye on it to keep it charged until I get a motherboard replacement.

Nothing? Wouldn't others think that this sounds like a hardware problem as the issue persisted across ROMs?
Should I be concerned during disassembly that the battery continues to have an excessive drain even when off?

Do you have root? If you do, install Terminal Emulator, and type the following commands:
su
cat /proc/kmsg >> /sdcard/kmsg.log
Hold down 'Volume Down' key and press C to exit the cat program
Click to expand...
Click to collapse
Then copy the /sdcard/kmsg.log file to your computer, open it up and search for WCNSS and WLAN and see what errors you get.
EDIT:Well this is dumb, you don't have internet so...you can't download Terminal Emulator. If you can, try to get the Terminal Emulator APK downloaded from your PC and transfer it to your phone.

Thanks. I got TE transferred over. I left it for a bit and came back and cat /proc/dmsg was still running. I read that it has something to do with syslogd. I went through the logs but not much of interest. The only time WCNSS is mentioned is here:
Code:
request_suspend_state: sleep (0->3) at 9764978636663 (2015-08-18 23:22:18.939577499 UTC)
<6>[ 9764.990417] early_suspend: call handlers
<4>[ 9764.990600] [ektf3k]:[elan] elan_ktf3k_ts_suspend: enter
<6>[ 9764.991394] active wake lock PowerManagerService.Broadcasts
<6>[ 9764.991577] active wake lock PowerManagerService.WakeLocks
<6>[ 9764.991699] active wake lock PowerManagerService.Display
<6>[ 9764.991790] active wake lock pil-wcnss
<6>[ 9764.992034] PM: Syncing filesystems...
<6>[ 9765.030700] sync done.
WLAN is never mentioned, but ELAN is
Code:
<5>[18419.063201] hall_sensor: [lid_interrupt_handler] LID interrupt handler...gpio: 1..
<5>[18419.129028] hall_sensor: [lid_report_function] SW_LID report value = 1
<6>[18419.207550] request_suspend_state: wakeup (3->0) at 18419196013287 (2015-08-19 01:46:33.156923606 UTC)
<6>[18419.207855] late_resume: call handlers
<4>[18419.208129] [ektf3k]:[elan] elan_ktf3k_ts_resume: enter
<4>[18419.209289] mipi_dsi_panel_power+, on=1
<4>[18419.209930] [ektf3k]:[elan] dump repsponse: 58
<6>[18419.209930] late_resume: done
And also here:
Code:
hall_sensor: [lid_report_function] SW_LID report value = 1
<6>[18419.207550] request_suspend_state: wakeup (3->0) at 18419196013287 (2015-08-19 01:46:33.156923606 UTC)
<6>[18419.207855] late_resume: call handlers
<4>[18419.208129] [ektf3k]:[elan] elan_ktf3k_ts_resume: enter
<4>[18419.209289] mipi_dsi_panel_power+, on=1
<4>[18419.209930] [ektf3k]:[elan] dump repsponse: 58
<6>[18419.209930] late_resume: done
<4>[18419.291656] mipi_dsi_panel_power-
<6>[18419.297668] mipi_JDI_lcd_on+
<6>[18419.297668] mipi_JDI_lcd_on, JDI display on command+, command bl
<6>[18419.441711] mipi_JDI_lcd_on, JDI display on command-
<6>[18419.441711] mipi_JDI_lcd_on-
<7>[18419.457427] EXT_COMMON: hdmi_common_wta_hpd: '1' (unchanged)
I don't see anything that stands out. I was looking for a line confirming (or failing) to activate the wifi/bluetooth.
I attached dmesg but didn't see anything more that stood out, but I might be missing something.
Is there any other way to troubleshoot wifi/bluetooth?
EDIT: I found out adb logcat -d > log.txt seems to give the same as cat /proc/kmsg. I'm looking through it now, but I thought I'd attach that too.

Related

Wifi doesn't work anymore, for no reason

[I didn't realize there is this HTC Desire specific subforum, so I'm copypasting my question from General Q&A forum].
I've been running Miui happily for over a year on my HTC Desire, just to notice last week that wifi works only right after power-up (not reboot!) and until switched off. After that, it won't start again. I've tried different things, roms, clean installs, just to confirm the same behaviour, regardless of the rom installed. Detailed explanation is available here:
[EDIT: Being a new member, I'm not allowed to post links. So here it is, 'unlinked': http is.gd slash pZ1TDo ]
(includes logs and everything).
Please help, what to do next?
Thanks,
MB
When you have the error, open a terminal and type dmesg.
Please paste the output here.
You can redirect the output by typing "dmesg > /sdcard/file.txt" ( Without quotes )
dqb said:
When you have the error, open a terminal and type dmesg.
Please paste the output here.
You can redirect the output by typing "dmesg > /sdcard/file.txt" ( Without quotes )
Click to expand...
Click to collapse
Hello, thanks for reply.
Here's the output (too big for copypaste here):
http ge.tt (slash) 3nqEYdF/v/0?c
Sorry, still not allowed to paste links.
The bcm4329 module seems ok.
Sometimes when i use the widget to power on/off wifi, it won't connect.
To get wifi working, I go into wifi settings and power on the wifi here.
Could you try like this and tell us if this working ?
dqb said:
The bcm4329 module seems ok.
Sometimes when i use the widget to power on/off wifi, it won't connect.
To get wifi working, I go into wifi settings and power on the wifi here.
Could you try like this and tell us if this working ?
Click to expand...
Click to collapse
I tried all of the combinations - settings/wireless, status bar, specific widgets - nothing works. At least I have consistent behaviour
This is my original post on miui forum (when I thougt it was miui related). It explains what actions I performed while trying to nail the problem. Still no luck.
Code:
Hello,
Recently I've noticed that wifi on my HTC Desire is acting very strangely - it connects just the first time after reboot, every other time I get "Error" message in Wifi settings. Where I can check what actually went wrong?
After looking in the logs, I hope to have more information on this issue, but for now I believe it's hardware related, since the same problem appears even with the fresh install of the latest MIUI or after restoring a backup.
Thanks.
mblenton, Monday at 9:59 PM Edit Report
#1 Reply
Google Adsense
Pele
Admin
Message Count:
278
You can use the MIUI Android Logcat miuiandroid.com / community/link-forums/logcat.82/
Or you could try a fresh download install again : reboot into cwm, factory reset > wipe dalvik > clear cache partition install rom
But try the logcat and also check you router etc and other things that may influence.
Regards
If you require more help speak to ibotpeaches as he is a HTC expert : join the miui irc chat :)
MIUI Android Logcat System
MIUI Android Statistics
...Im all about the end user
Samsung Galaxy S I9000 & I9100 Expert
Black Android Theme Developer Website & Twitter
Pele, Monday at 11:34 PM Report
#2 Like Reply
mblenton
Members
Message Count:
7
Hello Pele,
Thanks for the reply.
I've tried already clean install with wiping everything, even restored an old bkp which for sure is correct, but all without luck. I don't think it's a router thing, since the same problem appears regardless of my location (at home, at work... all the same). I'll join the miui irc chat, good idea, thanks!
Regarding the logcat - the link you sent is just a form for pasting logs - am I seeing it correctly?. Is there some specific miui logcal app? I've installed 'aLogcat' which seems good, but I couldn't find anything on *wifi* or *wpa* which could indicate some sort of error in any of the logs aLogcat is displaying.
Cheers,
mblenton
mblenton, Tuesday at 9:30 AM Edit Report
#3 Reply
Pele
Admin
Message Count:
278
Hi,
Try to restore your back up without wifi settings. Failing that yes come to irc chat for about 12pm GMT+0 and chat with ibotpeaches
Regards
MIUI Android Logcat System
MIUI Android Statistics
...Im all about the end user
Samsung Galaxy S I9000 & I9100 Expert
Black Android Theme Developer Website & Twitter
Pele, Tuesday at 10:31 AM Report
#4 Like Reply
mblenton
Members
Message Count:
7
Hello Pele,
I've tried several combinations of rom/backup flashing, titanium backup restore etc. but the problem persists, even on a clean installation with just one accesspoint defined.
mblenton, Tuesday at 3:09 PM Edit Report
#5 Reply
mblenton
Members
Message Count:
7
Update: I've updated to the newest radio, but the problems are still there.
mblenton, Tuesday at 3:51 PM Edit Report
#6 Reply
iBotPeaches
Admin
Message Count:
569
Yes, you need a logcat to further figure this out.
developer.android.com / guide/developing/tools/logcat.html
Freenode #miuiandroid
iBotPeaches, Tuesday at 6:51 PM Report
#7 Like Reply
mblenton
Members
Message Count:
7
Hello iBotPeaches, thanks for the link, I didn't realize Pele's refering to that logcat. I'll have to set up abd, though.
In the mean time, I've tried the following (plus the actions described earlier):
- Format system and boot partitions (since Wipe Data/Factory Reset doesn't do that) and clean latest miui install
- Clean Cyanogenmod install
Nothing's changed, I still can connect to wifi network the first time after power up, and then all I get is 'Error' msg. Interesting, but reboot doesn't actually help, just power off/power on.
mblenton, Tuesday at 9:04 PM Edit Report
#8 Reply
mblenton
Members
Message Count:
7
Hello again,
I've installed adb and used logcat to generate this file: ge.tt /9UkgUaF/v/0?c
I'm not quite sure what would be interesting for debugging purposes, so I performed the following procedure:
0. Wifi is enabled, but not working; power down the device; start adb logcat - waiting for device -
1. Power on (wifi will be enabled and connected to SSID Hotspot)
2. Open browser, open google (everything works)
3. Close browser, turn off wifi (via status bar, but it doesn't make any difference)
4. Open settings, try to turn on wifi
5. Wifi couldn't be turned on, 'Error' message is displayed
6. Power down the phone
Thanks in advance!
mblenton, Yesterday at 10:36 AM Edit Report
#9 Reply
mblenton
Members
Message Count:
7
Yet another update, not I'm pretty sure this issue is not miui related.
I've installed Gingerbread RUU and performed the power-on/wifi-on--works/wifi-off--won't-start-anymore procedure with the same results. Here are the logs: ge.tt /9sOVXbF/v/0?c
Where I should look for help?
Ok, after you got the error, go in a terminal and type lsmod ( list loaded modules )
If you see the bcm4329 loaded ( wifi module ), go in a terminal and type modprobe -r bcm4329 ( unload module )
Verify with lsmod if the module is unload.
After that, try to activate the wifi in settings/wireless. Twice if the first gives you an error, it should "unload" the first time, and the second time it should load.
I just tested by inducing an error.
Tell us is this work !
Hello again,
I've tried what you suggested, and this is the result:
Issuing lsmod while wireless is OK:
bcm4329 200131 0 - Live 0xbf000000
After turning off wireless, lsmod doesn't display anything.
After trying to turn wireless back on, lsmod also doesn't display anything, regardless of the times I tried to turn wireless on (and getting Error every time is Settings)
modprobe bcm4329 returns
modprobe: 'bcm4329.ko': invalid parameter
insmod bcm4329 or bcm4329.ko says it can't open bcm4329 (.ko)
So, the linux system under the android seems to be working ok.
Hi,
Ok, after power off/on wifi, the driver doesn't load :/
With some tests and by inducing an error, it works on my side
When you have the error, try this as root :
Code:
su
lsmod ( if bcm4329 is loaded then rmmod bcm4329 )
svc wifi enable ( it's to turn on wifi manually, I waited a few seconds, and everything was properly unloaded ! And wifi off.. idk why )
svc wifi enable ( if the first time it didn't work, it worked for me, it might work for you )
svc wifi disable
but I've intentionally caused an error, not you. And i think that svc is the same as widget/settings..
BTW, for insmod you need to give the full path of the module : /system/lib/modules/bcm4329.ko and the fw path, but it will not work like that you need to set/config interface etc.. I'll try to do it manually.
I just looked quickly one of your old logcat because i'm tired and i'm going to sleep, I'll look more in detail this night if we can find the most important thing : what causes this problem.
dqb said:
Hi,
Ok, after power off/on wifi, the driver doesn't load :/
With some tests and by inducing an error, it works on my side
When you have the error, try this as root :
Code:
su
lsmod ( if bcm4329 is loaded then rmmod bcm4329 )
svc wifi enable ( it's to turn on wifi manually, I waited a few seconds, and everything was properly unloaded ! And wifi off.. idk why )
svc wifi enable ( if the first time it didn't work, it worked for me, it might work for you )
svc wifi disable
but I've intentionally caused an error, not you. And i think that svc is the same as widget/settings..
BTW, for insmod you need to give the full path of the module : /system/lib/modules/bcm4329.ko and the fw path, but it will not work like that you need to set/config interface etc.. I'll try to do it manually.
I just looked quickly one of your old logcat because i'm tired and i'm going to sleep, I'll look more in detail this night if we can find the most important thing : what causes this problem.
Click to expand...
Click to collapse
Hello,
Thank you for attepts to help me, unfortunatelly none of your advices haven't succeeded to turn on wifi once it was turned off. I don't know what to do next. I actually keep it turned on all the time, and it works OK. Not quite happy with that
Hi mblenton,
Ok
I just found how to really turn on the wifi manually.
First, in a root terminal run : getprop wifi.interface, I have eth0, if you have another interface, replace the following by yours.
After error, make sure your eth0 interface is down by running in a root terminal "netcfg" you'll not find eth0 interface, or "ifconfig eth0" must return " eth0: No such device " same for "iwconfig eth0".
If eth0 is up, run as root : "ifconfig eth0 down" and retry to turn on wifi as usual.. maybe it will work.
If not, make sure bcm4329 module isn't loaded ( lsmod ), make sure eth0 is down and try this :
Code:
su
modprobe bcm4329 firmware_path=/system/vendor/firmware/fw_bcm4329_apsta.bin
start wpa_supplicant
dhcpcd -BKL eth0 &
If "modprobe bcm4329 firmware_path=/system/vendor/firmware/fw_bcm4329_apsta.bin" return you an error, try this :
Code:
insmod /system/lib/modules/bcm4329.ko firmware_path=/system/vendor/firmware/fw_bcm4329_apsta.bin
But it's better to load a module with modprobe.
What the commands do :
1) Be root
2) Is for loading module and firmware properly
3) Start wpa_supplicant as service with right user, and load your wireless config
4) Run dhcpcd on background for getting an ip by dhcp ( which implies not have configured the ip manually )
If the wireless icon is not activated in notification bar, it's normal.
ping -c2 google.com or open a browser and try a google search, it worked for me..
If it work for you, cool, we can make a bash script to get the wifi works temporarily, the time to found the cause of the malfunction !
A guy that I helped had a problem with bluetooth, it was a permission problem.. he found a fix :
Daiksi said:
with rom manager i did fix permission and IT WORKED!!!!!!!!YATTA!!!
Click to expand...
Click to collapse
Try that, it can only do good things !
Hello,
I've tried what you suggested, including permission fixing, and the situation remained the same. I'm surprized there's nothing in the logs, though.
Thank you once more.

[Q] No Wifi broadcasting when in Hotspot mode

I'm having an interesting issue with my AT&T Galaxy Nexus.
At some point, most likely after an update, Wifi tethering stopped working. Because this is a feature I use irregularly, I cannot say for certain when it stopped working. I'm currently using 4.2, but the error persisted into 4.2.1. I know that tethering was working in the past, perhaps in 4.1 or 4.1.2.
The symptom is that when I activate the tethering hotstop, the phone does not turn on the wifi radio (specifically in AP mode). There is no indication of problems on the handset, all of the icons are correct for being in hotspot more, no error message are given. However no other device such as my laptop, Nexus 7, daughters iPod, etc, etc, shows an available wifi network. Tethering and IP forwarding are working because I can correct to the Galaxy Nexus's bluetooth for internet sharing. The problem seems confined to just the Wifi radio.
I did some digging into the logs and discovered the following:
E/hostapd ( 6484): Configuration file: /data/misc/wifi/hostapd.conf
E/hostapd ( 6484): HT (IEEE 802.11n) in 11b mode is not allowed, disabling HT capabilites
I/hostapd ( 6484): rfkill: Cannot open RFKILL control device
E/hostapd ( 6484): nl80211: Failed to set interface wlan0 into AP mode
as well as:
E/hostapd ( 6484): nl80211 driver initialization failed.
All of the log entries for Tethering and TetherController seem correct when I turn off and on the hotspot service.
My /data/misc/wifi/hostapd.conf is pretty basic and has not been hand modified:
interface=wlan0
driver=nl80211
ctrl_interface=/data/misc/wifi/hostapd
ssid=tcgmobile
channel=6
ieee80211n=1
(i have the network open for now during my testing)
The WIFI works fine in normal client mode.
Can anyone shed any light on this? Perhaps there is a driver bug in 4.2?
My next move will be to start wiping and flashing various older ROM versions to try and diagnose this further if no one has any suggestions.
Thanks
mckinleytabor said:
I'm having an interesting issue with my AT&T Galaxy Nexus.
At some point, most likely after an update, Wifi tethering stopped working. Because this is a feature I use irregularly, I cannot say for certain when it stopped working. I'm currently using 4.2, but the error persisted into 4.2.1. I know that tethering was working in the past, perhaps in 4.1 or 4.1.2.
Click to expand...
Click to collapse
I can confirm the issue, seeing the very same behaviour my Nexus S with 4.2.1. It worked with 4.1.1, not sure with 4.1.2
DMESG shows this when trying to enable thetering:
<4>[ 4001.586766] wl_android_wifi_off in
<6>[ 4001.587047] wake disabled for irq 164
<4>[ 4001.587205] wifi_set_power = 0
<4>[ 4001.587275] =========== WLAN placed in RESET ========
<4>[ 4001.601863] dhd_prot_ioctl : bus is down. we have nothing to do
<3>[ 4001.601970] CFG80211-ERROR) wl_cfg80211_change_virtual_iface : WLC_SET_INFRA error (-1)
<4>[ 4001.602190] dhd_prot_ioctl : bus is down. we have nothing to do
<3>[ 4001.602345] CFG80211-ERROR) wl_cfg80211_change_virtual_iface : WLC_SET_INFRA error (-1)
<4>[ 4001.602515]
<4>[ 4001.602518] Dongle Host Driver, version 5.90.195.75
<4>[ 4001.602522] Compiled in drivers/net/wireless/bcmdhd on Sep 10 2012 at 14:10:03
<4>[ 4001.602758] wl_android_wifi_on in
<4>[ 4001.602889] wifi_set_power = 1
<4>[ 4001.808894] =========== WLAN going back to live ========
<4>[ 4001.809548] sdio_reset_comm():
<4>[ 4001.827717] F1 signature read @0x18000000=0x9934329
<4>[ 4001.829946] DHD: dongle ram size is set to 294912(orig 294912)
<4>[ 4001.874294] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
<6>[ 4001.927125] wake enabled for irq 164
<4>[ 4001.928275] wifi_get_mac_addr
<4>[ 4001.931207] Firmware up: op_mode=2, Broadcom Dongle Host Driver mac=02:1a:11:f6:58:92
<3>[ 4001.937722] CFGP2P-ERROR) wl_cfgp2p_supported : wl p2p error -23
the default wireless tether is working fine here, but third party tether apps do not work until updated for 4.2.X. are you using the default wireless tether with security? try leaving the network open.
Fixed... In a mannor of speaking.
Being somewhat inpatient I went ahead and started experimenting with reflashing ROMs on my device. I didn't actually get very far because it worked on my first attempt.
I did a complete factory reset and reflashed the ROM I had on the device to start with. The ROM is located here: http://forum.xda-developers.com/showthread.php?t=1737849
It would seem that the factory reset did the trick. I went back and confirmed the log files and config files on the new flashing and they are essentially identical to the old flashing. Ergo whatever was preventing the driver from loading was not related to my previous post.
I did have to spend a fun 90 minutes reinstalling all of my software and restoring a manual backup of the SD card data but that needs to be done periodically anyways to clear all the stuff I don't use. So all's well that ends well.
simms22 said:
the default wireless tether is working fine here, but third party tether apps do not work until updated for 4.2.X. are you using the default wireless tether with security? try leaving the network open.
Click to expand...
Click to collapse
I tried the default wireless tethering with various options including secure, open, and different permutations of the network SSID.

[Q] Bad DeepSleeping

I know my phone is deepsleeping, but for some reason, when i try to wake it, it would take up to a minute for any response, on top of that I found that android OS is using about 40% of my battery, used Android tuner( the one that requires xposed framework) to see, and it turns out that the battery drain was caused by the android os, "sh" thread.
Any ideas to fix this?
MinChains said:
I know my phone is deepsleeping, but for some reason, when i try to wake it, it would take up to a minute for any response, on top of that I found that android OS is using about 40% of my battery, used Android tuner( the one that requires xposed framework) to see, and it turns out that the battery drain was caused by the android os, "sh" thread.
Any ideas to fix this?
Click to expand...
Click to collapse
"sh" = shell
It seems that something installed on the phone is starting shell (it's a text terminal) in a background and not stopping it. It may be a broken script installed in /etc/init.d or some app that is broken. The worst case scenario is a malicious program that resides in background to do something (not very probable). It will be hard to find the cause as "sh" is a part of the system - please try to correlate the beginning of the problem to installation of some program. Try to use Teminal Emulator and issue the command "su", press enter, write "top -n 3" and enter, to list all tasks running in the system. Scroll up to check column headers, find CPU% and by that locate this rouge "sh" process. Look in column UID to find who has started it (user id). Post your search result.
Found it pid 32444 bu doesnt really help as i can lt find it activitymanager.runningappprocessinfo
Any idea what this is?
32444 2 24% R 1 896K 428K root /system/bin/sh
Rebooted, pid changed to 4790
Update:
After i killed this prpcess, swapoff takes over and causes an i/o storm for abour 2 mins then system ui and surfaceflinger uses about 30% and 20% cpu respectively it doesnt go down even after 5 hours.
Using agni kernel for 4.3 btw patched to fix network error
What cpu governor are You using?
Try to set ondemand.
Sent from galaxy n7105

Tab Pro 8.4 + TWRP 2.7.0.2 + CM11 = wrong date & time

Hi, I have some weird behavior with date and time in CM11 - I can set it through settings (I can`t use network time, I do it manually), but after reboot it reverts back to 2nd January 2014 It is not frozen though, it changes in time. Another strange thing that in TWRP time is total different from actual and that reverted in CM11. So I have three "times": original we live in, for CM11 after reboot and for TWRP
As I can`t find anything about it, I suppose everyone`s time is fine. So can someone with CM11 and TWRP please try to set some wrong time manually and check whether it is changes on reboot? Thanks.
EDIT: While researching, I find this line on dmesg output:
"alarm_set_rtc: Failed to set RTC, time will be lost on reboot"
Found this topic
http://forum.xda-developers.com/showthread.php?t=2480713
So, maybe crpalmer could confirm that all is needed is to recompile kernel with `rtc_write_enable` to `true` flag?
Zero-V said:
Hi, I have some weird behavior with date and time in CM11 - I can set it through settings (I can`t use network time, I do it manually), but after reboot it reverts back to 2nd January 2014 It is not frozen though, it changes in time. Another strange thing that in TWRP time is total different from actual and that reverted in CM11. So I have three "times": original we live in, for CM11 after reboot and for TWRP
As I can`t find anything about it, I suppose everyone`s time is fine. So can someone with CM11 and TWRP please try to set some wrong time manually and check whether it is changes on reboot? Thanks.
EDIT: While researching, I find this line on dmesg output:
"alarm_set_rtc: Failed to set RTC, time will be lost on reboot"
Found this topic
http://forum.xda-developers.com/showthread.php?t=2480713
So, maybe crpalmer could confirm that all is needed is to recompile kernel with `rtc_write_enable` to `true` flag?
Click to expand...
Click to collapse
My time is correct (via network time services). Why (and how) are you unable to use them?
Can you provide specific steps to reproduce the problem that you are seeing?
crpalmer said:
My time is correct (via network time services). Why (and how) are you unable to use them?
Can you provide specific steps to reproduce the problem that you are seeing?
Click to expand...
Click to collapse
I`m not surprised that your time via network sync is correct. About why - I`ll make long story short: I have no wifi now and will not have for some times in future.
Specific steps are easy enough: set manually time&date in settings, then reboot - time&date are far from what you have set (without network syncing of course).
Can you go to terminal or adb shell and see if that rtc message is there? E.g.
dmesg | grep time
or
adb shell su -c dmesg | grep rtc
Zero-V said:
Hi, I have some weird behavior with date and time in CM11 - I can set it through settings (I can`t use network time, I do it manually), but after reboot it reverts back to 2nd January 2014 It is not frozen though, it changes in time. Another strange thing that in TWRP time is total different from actual and that reverted in CM11. So I have three "times": original we live in, for CM11 after reboot and for TWRP
As I can`t find anything about it, I suppose everyone`s time is fine. So can someone with CM11 and TWRP please try to set some wrong time manually and check whether it is changes on reboot? Thanks.
EDIT: While researching, I find this line on dmesg output:
"alarm_set_rtc: Failed to set RTC, time will be lost on reboot"
Found this topic
http://forum.xda-developers.com/showthread.php?t=2480713
So, maybe crpalmer could confirm that all is needed is to recompile kernel with `rtc_write_enable` to `true` flag?
Click to expand...
Click to collapse
I finally got a chance to try this out for you and I think that the reason that the write is disabled is that our hardware PM hardware doesn't have an RTC that can be set.
When I enable the write, it tries it and fails:
Code:
<6>[ 7.226332] qcom,qpnp-rtc qpnp-rtc-e1946600: Seconds value to be written to RTC = 1392714221
<3>[ 7.226437] qcom,qpnp-rtc qpnp-rtc-e1946600: SPMI write failed
<3>[ 7.226443] qcom,qpnp-rtc qpnp-rtc-e1946600: Write to RTC reg failed
which means that there isn't much that I can do to fix it.
crpalmer said:
I finally got a chance to try this out for you and I think that the reason that the write is disabled is that our hardware PM hardware doesn't have an RTC that can be set.
When I enable the write, it tries it and fails:
Code:
<6>[ 7.226332] qcom,qpnp-rtc qpnp-rtc-e1946600: Seconds value to be written to RTC = 1392714221
<3>[ 7.226437] qcom,qpnp-rtc qpnp-rtc-e1946600: SPMI write failed
<3>[ 7.226443] qcom,qpnp-rtc qpnp-rtc-e1946600: Write to RTC reg failed
which means that there isn't much that I can do to fix it.
Click to expand...
Click to collapse
Strange, so there is no way to change hardware clock from OS? Even from stock Samsung`s Android? Maybe from recovery? I mean I think it has to be a way to set it somehow...
EDIT:
Wait, are you saying there is no hardware RTC of any type? I doubt it! Because when rebooted, tablet`s clock is not set to specific date&time, it is go back by some N seconds. And anyway not having RTC in such device is almost impossible imho.

Serious issue with sudden turnoffs

I've noticed that my device has suddenly turned off on several occasions; I only notice because it does not respond to the power button and to use it I must take out and reinsert the battery.
I am running the latest installer build. Is this an issue with CM, the phone or something else? I need it fixed quickly because I am missing important text messages and phone calls. Should I flash M9 over the installer build, or is it something serious enough to merit a deeper change?
RaymieHumbert said:
I've noticed that my device has suddenly turned off on several occasions; I only notice because it does not respond to the power button and to use it I must take out and reinsert the battery.
I am running the latest installer build. Is this an issue with CM, the phone or something else? I need it fixed quickly because I am missing important text messages and phone calls. Should I flash M9 over the installer build, or is it something serious enough to merit a deeper change?
Click to expand...
Click to collapse
It sounds like you're having issues with your phone not waking up. A couple things you can try immediately(these are terminal commands to enter in terminal emulator or adb):
### lower wakeup thresholds
Code:
su
sysctl -w kernel.random.read_wakeup_threshold = 64
sysctl -w kernel.random.write_wakeup_threshold = 128
### increase max frequency
Code:
su
echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq
When your phone screen doesn't turn on when you press the power button, try plugging it into the charger to see if turns on then.
Also this can sometimes be a kernel related issue. Try flashing some afterstock kernels like Fancy or Dirty V.

Categories

Resources