yashsingh1/xdaforums huggingface dataset:
[HTC Desire C] demonizator:
I recently flashed this ROM and am mostly happy with it. I have one huge problem though - no matter what the wifi policy settings say, once the screen of my Desire C turns off my wifi disconnects. Even worse my mobile data does too, so I don't get any internet connection when my screen is off. Please, advise!
[HTC Desire C] Quasar:
Well, it's a very well known bug. You can use WiFi keep alive to fix that
[HTC Desire C] demonizator:
Thank you, didn't know that, it's my first encounter with CM. What is the best app for that?
[HTC Desire C] Quasar:
Surprisingly, WiFi keep alive!

The one by shantanu goel
[HTC Desire C] demonizator:
Surprisingly, there're at least 5 results for this search in Google Play, otherwise I wouldn't ask! Thanks anyways..
[HTC Desire C] mikee286:
So if the wifi and cell data turn off when the screen is off can calls still come in?
[HTC Desire C] kodirovshchik:
yep. if it isn't voip call. but... mobile data? rly? does mobile data turns off too?
[HTC Desire C] Sertico:
yeah... i got this problem as well... when i flashed this rom my wifi wasn't working...i restarted once, but my data trafic after a while, turns the indicator grey and dont get any data till i reboot.... can you help me? i really like this rom

P.S Im new on this xD
[HTC Desire C] peter12345678910:
I use this every day, with neutron - 64 bit encode music player, fully over-clocked to 900. I just want to say thanks, really has worked well in the last 6 months. Connects very fast to usb, fastboot works.

Thanks
[HTC Desire C] h1gh1:
I did some work on the ROM, and was able to fix some of the things:

- changed from Unix standard socket ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=wifi to Android private socket with ramdisk init.golfu.rc change

(removed /data/system/wpa_supplicant directories and previous entries in /data/misc/wifi)

- authentication problem with WiFi is caused by compat module. But, it is NOT needed at all for WiFi to work! So, I changed init.golfu.rc to load only fg80211, and had no problems with wifi not reconnecting with authentication error. However, WiFi still disconnects after sleep. I guess that module for WiFi should be called with parameteres,

- made new framework.res with fixes for tethering and now WiFi and USB tethering work.

- fixed permissions for IO schedulers - changing them from performance now works.

- fixed some permissions with interactive and ondemand governor

BUGS:

- Wifi direct does not work. Tested quite a few configs for p2p_supplicant and none works.

- Wifi disconnects on sleep

I saw in dmesg that when you load compat.ko it says that it was compiled from backports-wireless, and gives date and commit, so maybe fixable. Tried latest driver from backports, driver loads but wifi does not work, tried wifi driver from solk2 that compiles with kernel, but tethering does not work, so those are not working...

All this is done with a kernel and framework-res.apk repack, some directories have to be removed for wpa_supplicant to work properly with Android private socket (wlan0).
[HTC Desire C] Quasar:
Nice! At least someone cares about this device! Though, if you have the time and inclination, could you make a new build of CM10 synced with the last updates of the CyanogenMod 10 commits?
[HTC Desire C] h1gh1:
I care for it, because I'm still using it :D. Did a build with cuteprinces device tree, and prometheus kernel with fixes on top of it. One major bug, that I have with my boot.img, and not with repacked kernel is that adb over usb is not working...

Will post here repacked kernel, and framework-res.apk with instructions, so people could test if it works for them first. But, I guess that a repack would do just fine, as I have fixed Settings.apk that work with profiles. So, with new kernel, some fixes for apks, ROM should be fully functional. Wpa_supplicant behaves strangely still, not sure if WiFi P2P is fixable - precompiled ath6kl_sdio just does not like parameters that should work.

O.T.: Nikhil's abandoned 4.2 looks like a good starting point to me, it should have functional device and kernel tree, and wifi should work with solk2 fix of loading cfg80211 in init, as it is almost the same kernel. Will go there probably... But first I will try to find from which backport HTC did compile that wireless driver. They are in violation of GPL, as source code was not published with kernel, and it is visible from dmesg that drivers from wireless backports was used.

---------- Post added at 02:33 PM ---------- Previous post was at 02:13 PM ----------

Compat is

<6>[ 5528.269409] Compat-wireless backport release: LOST_REQ_20120308-6-gb1f165e-p

Backport based on cs_msm-115-gaaea928
[HTC Desire C] Quasar:
Man! If you got a working CM10.1 it would be amazing!
[HTC Desire C] Sertico:
At last someone take back on the development forma this device, almost all post i found héroe are from 2012-2013. Can wait to test
[HTC Desire C] h1gh1:
I think that this should solve wireless going down during sleep:

WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/ath6kl_sdio.ko"

WIFI_DRIVER_MODULE_NAME := "ath6kl_sdio"

-WIFI_DRIVER_MODULE_ARG := "suspend_mode=2 ar6k_clock=26000000"

-WIFI_DRIVER_P2P_MODULE_ARG := "suspend_mode=2 ar6k_clock=26000000 ath6kl_p2p=1 debug_mask=0x2413"

+WIFI_DRIVER_MODULE_ARG := "suspend_mode=3"

+WIFI_DRIVER_P2P_MODULE_ARG := "suspend_mode=3 ath6kl_p2p=1 debug_mask=0x2413"

WIFI_SDIO_IF_DRIVER_MODULE_PATH := "/system/lib/modules/cfg80211.ko"

WIFI_SDIO_IF_DRIVER_MODULE_NAME := "cfg80211"

WIFI_SDIO_IF_DRIVER_MODULE_ARG := ""

Seems that driver does not like ar6k_clock=26000000, I can't insmod with it. However, when I did insmod with

insmod /system/lib/modules/ath6kl_sdio.ko suspend_mode=3, I downloaded a whole rom while lockscreen was on. Maybe P2P_MODULE_ARG fixes wired behaviour of wpa_supplicant and p2p_supplicant service...

Maybe even forcing load of cfg80211.ko from init.golfu.rc will be not necessary anymore...

Will try to rebuild the full ROM tonight, with fix for tethering.

Meanwhile, here are some of the fixes for you to try:

Prometheus kernel with changes in init.golfu.rc and init.rc

Fixed framework-res.apk

- Replace framework-res.apk in /system/framework/ somehow - root explorer or adb push and reboot to bootloader.

- Flash the kernel in fastboot.

- Delete /data/system/wpa_supplicant or wireless will fail.

- Rename /data/misc/wifi/wpa_supplicant.conf and /data/misc/wifi/p2p_supplicant.conf - (here are your networks, probably in p2p_supplicant.conf, because of problems with init of these services).

- Replace /system/etc/wifi/wpa_supplicant.conf with this one: wpa_supplicant.conf

Wireless should work, you should be able to tether, then switch it off, and continue to use wireless without authentication problems. IO scheduler selectable from Performance menu in system settings.

Also, a fix for our device failed enumeration for our phone on Windows 8.1 - you must have this patch installed, should be up to date though...
[HTC Desire C] h1gh1:
OK, compiled the rom. Got the modules loading, you must create ath6kl folder in /system/lib/modules and link cfg80211.ko and ath6kl_sdio.ko.

Supplicant fails to start... Drivers load properly, but p2p_supplicant service creates it's own file, with ctrl_interface=/data/misc/wifi/sockets... Not sure why is this happening, kernel is the same, modules are same, build.prop looks same regarding wifi...

EDIT: WiFi on with my build. Had to specify

service p2p_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -pp2p_device=1 -c/data/misc/wifi/wpa_supplicant.conf -dddd

class main

socket wpa_wlan0 dgram 660 wifi wifi

disabled

oneshot

in init.golfu.rc. Not satisfied with it, though as I can not see why would wpa_supplicant get different default config with my build?

Oh... Found out solk2 did patch wifi.c - compiled in libhardware_legacy.so... That's what's doing it...

EDIT2: Tried libhardware_legacy.so from working rom - not working. Same problem.
[HTC Desire C] h1gh1:
Guys, got discouraged from lack of one repo with updated source for CM 10 - Cuteprince's tree lacks some of wifi fixes, etc... Think I could do better with CM 10.1 source from Nikhil:

1. WiFi will work at least as good as it works now on CM 10 - Nikhil built ROM with module name = ath6kl.ko. So I replaced modules, renamed ath6kl_sdio.ko to ath6kl, and I could connect to non secure network and surf.

2. SDCard can be fixed, just need time to dig...
[HTC Desire C] h1gh1:
Well, I did not give up - tried a few things to get fully working wifi.

1. Imported driver from TheWhisp jellybean tree for Samsung Galaxy Mini 2, as it has the same wifi:

- ath6kl-compat compiles from source, and I was able to compile static library for wpa_supplicant

- compat, cfg80211 and ath6kl all load into memory, but WiFi does not start, and no messages at all in dmesg from ath6kl, which is strange. Guess Prometheus kernel is missing something.

2. Found out solk2 reply in Fixing WiFi for CM 10.1 and there is a kernel, modified Prometheus, which has a driver that compiles from source, and it is working, but wifi.c patch for libhardware_legacy must be applied again. Testing out so far...
[HTC Desire C] kodirovshchik:
i'm sorry, but i have a stupid question. ath6kl-compat is ath6kl driver backported for some specific kernel. So, what do you mean when u wrote "compat, cfg80211 and ath6kl"?
[HTC Desire C] h1gh1:
ath6kl-compat is driver ported for older kernels. Here it is:

https://github.com/TheWhisp/android_hardware_atheros_wlan/tree/jellybean

When you compile it (some minor changes needed), you get compat.ko (compatibility module for older kernels), cfg80211.ko and ath6kl,ko - but it is not working. I can modprobe compat, modprobe cfg80211 and insmod ath6kl.ko, no errors in dmesg, but no messages also.
[HTC Desire C] h1gh1:
Compiled solk2 modified Prometehus kernel that includes ath6kl_sdio driver, and that driver works. but all the problems are still there... Will try to get TheWhisps ath6kl driver working.
[HTC Desire C] maniknarang:
Good going dude!
[HTC Desire C] h1gh1:
Solk2 kernel integrated driver is working, but has the same bug as the precompiled one from stock - disconnects on sleep. Also, tethering does not work with source compiled driver - with precompiled does. Those drivers are dual licensed - BSD and GPL and HTC chose not to disclose their source for this device... Which sucks. I tried to compile the driver that TheWhisp was using for Galaxy S Mini 2, and I can compile it, but driver does not initialize the card - nothing appears in dmesg... I was in contact with solk2, and he said that he knew that newer compat drivers are not compatible with this device - some init problem. Not sure if it is fixable without deeper knowledge of the driver's source. Will try to post to atheros compat maililng list and see if they are willing to help...
[HTC Desire C] Quasar:
You're referring to CM10.1?
[HTC Desire C] h1gh1:
Did some further digging trough kernel for Samsung Galaxy Mini S2, and found out that the initialization code for WiFi is integrated in the kernel, in arch/arm/mach-msm - without it, backports driver cannot work, and that's why it did not, even though it compiles and loads properly. Will try to integrate that code in Prometheus.
[HTC Desire C] SVR:
I was on MiniCM from this development thread. Tried clean Installation of this ROM following OP Guidelines. ROM is Booting up but restarting automatically during initial setup say at Google account. Tried flashing twice. I am using fusiongapps superstripped as the Gapps link in OP is not working. Can some one help please.
[HTC Desire C] nemanjsb:
U need to use low frequency and for this rom use this gapps, for MiniCM use this.
[HTC Desire C] Quasar:
Can you look into the WiFi problem in the ROM I posted? Whatever I do, it doesn't seem to work!
[HTC Desire C] h1gh1:
I can, just give me the link. Ttrying to port the driver from 3.4 kernel to our kernel - definitions and initalization looks exactly the same as in the driver that solk2 ported from other 3.0 kernel before, and I think it can be done.
[HTC Desire C] Quasar:
http://xdaforums.com/showthread.php?p=55295908. Here you go. Thanks
[HTC Desire C] h1gh1:
Can you post relevant Boardconfig.mk for WiFi here?
[HTC Desire C] Quasar:
Okay. Hang on.
[HTC Desire C] pendgy:
USB OTG support?

I am using this ROM with Nope kernel more than one year and I am very satisfied. Does it support USB OTG?
[HTC Desire C] hazar1907:
please gaapps link renew.. dosnt work
[HTC Desire C] nemanjsb:
Try this .
[HTC Desire C] sohailrabani:
Hi

bro i have downloaded build 3 its working fine fast as well but camera dont work just opens and says unfortunately gallery stopped working also gapps link dont work its dead any update?/???
[HTC Desire C] calinorg:
Now that cm11 is almost stable, are there any chances of atleast fixing wifi in cm10? i think that with fixed wifi issues cm10 would live again :)
[HTC Desire C] wijba:
Hi, i'm new to the Desire C scene, and I have some questions before I will install this ROM. Must the phone be S-Off and rooted? Which recovery should I use? CWM/4Ext/TWRP?

TX GTZ Wijnand :cool:
[HTC Desire C] nemanjsb:
Must be rooted and use TWRP recovery.
[HTC Desire C] wijba:
Is TWRP 2.8.4.0 ok?

How do I root the phone?
[HTC Desire C] atomomega:
You can root it with the search bar.
[HTC Desire C] wijba:
I tried the searchbar, nothing happened ;)

I have to go into bootloader, but i cannot go into it. I did Vol.up + Vol.down+ power, but that just fastboots. On HTCDev there is no HTC Desire C Unlock instruction. There is HTC Desire, but there is no RUU for my phone.

I also tried Hasoon's AIO toolkit, but I still have to go in bootloader first.
[HTC Desire C] atomomega:
I unlocked and rooted my Desire C with Hasoon's AIO. It works if you follow the steps.
[HTC Desire C] h1gh1:
This should not be hard now. With custom wifi, and some tweaks to init.golfu.rc, WiFi should be working like in CM11.
[HTC Desire C] calinorg:
So basically, can we use samsung WiFi driver like in cm11, or we would have to do more hacking?
[HTC Desire C] h1gh1:
Kernels that I did for CM11 (non - ION) can be used for CM10 - one would only need to (optionally?) disable SELinux features. Driver will work, CM version is not important. When I finish with CM11, will try to do something for CM10 before I switch to CM12 development again. When I said, custom WiFi, I meant something like this -

https://github.com/SlimLP-Y300/andr...27a-common/tree/lp5.0/libhardware_legacy/wifi - that should hopefully fix the need to reboot once you activate WiFi.
[HTC Desire C] calinorg:
Could that fix WiFi disconnects too?

P. S. Thank you for all the hard work :)
[HTC Desire C] h1gh1:
WiFi would work just the same as in CM11 - of course, you would need to change some params in BoardConfig.mk, add a repo with ath6kl private lib, recompile, but everything is already there in CM11.
[HTC Desire C] wijba:
Yes, I did it....

Unfortunately some things don't work or give errors.

* Android keyboard (AOSP) stopped, so I can't type anything on the phone. (fixed with other keyboard from Google Play)

* Sometimes a black window pops up in the screen, and immediately dissapears again. I don't know what it says. (Fixed when installing other keyboard)

* The lockscreen doesn't work, so when I press the on/off button, the startscreen appears and not the wipe or pattern unlocker. (Fixed, probably by installing other Gapps)

Hope someone can help me with these problems...

Gr. Wijnand :cool:
[HTC Desire C] h1gh1:
I made a build that has WiFi fixed properly - you still have to reboot for it to work, but there are no disconnects and I have not seen authentication errors.

Change log:

- new kernel with source compiled, properly working WiFi drivers, proper wireless init in init.golfu.rc

- deprecated releasetools (changing IO scheduler works now, permission are correct, as init.rc is generated in build process)

- simplified definitions for usb init

- used some prebuilt apks from CodeName lungo ROM - solves issues with fc on Settings -> Profiles

Build will be uploaded later today. Kernel is built with same toolchain as the ROM, an old one, but it will be fine for testing. Newer Linaro toolchain for kernel later.

There are issues with rendering on some applications (Google Maps, Sygic) - and that is due to old adreno libraries. An ION build would be needed to fix that - [MENTION=5158920]kirmaniarslan[/MENTION] thinks that 4.1.2 Desire 300 libs could be used, and he is probably right. Everything is there, ION kernel, but I am not sure if I want to invest more time in CM10.
[HTC Desire C] atomomega:
I'm gonna speak for myself. I thank you, [MENTION=5158920]kirmaniarslan[/MENTION] and [MENTION=2312523]zevox[/MENTION] sincerely for all the hard work you've done for this device. It shows you guys are a natural talent.

You maintain CM11 and now CM10 too. I haven't seen any more devs working on this phone so I'd say -and I understand it's totally up to you- that it'll be cool to have one final release for CM10 with the fixes you mentioned in your post. Then focus on CM12 and just maintain CM11 in case improvements can still be achieved.

EDIT: I meant zvox from the CM12 Dev thread
[HTC Desire C] h1gh1:
As promised, here is a new source build with new kernel, and source built WiFi:

CM10 build 4 (138.4MB)

Android File Host

md5: 21942531a660e9f2c5b88218df4d52b4​

Change log:

- new kernel build (updated) with source compiled, properly working WiFi drivers, proper wireless init in init.golfu.rc

- deprecated releasetools (changing IO scheduler works now, permission are correct, as init.rc is generated in build process)

- simplified definitions for usb init

- used some prebuilt apks from CodeName lungo ROM - solves issues with fc on Settings -> Profiles

Waiting for feedback. Also, if you want progress on this, drop by to CM11 thread in original development, and state your opinion there.
[HTC Desire C] nemanjsb:
When i try to install fb and messanger apps phone restarts. Other apps working...
[HTC Desire C] h1gh1:
Not sure what could be the problem... What's the situation when you go to Settings -> Apps? Are there apps consuming 0.00B memory?
[HTC Desire C] nemanjsb:
Yes...
[HTC Desire C] h1gh1:
Will take a look at that. Is WiFI working properly now?
[HTC Desire C] nemanjsb:
Wifi working properly! GJ
[HTC Desire C] kirmaniarslan:
here is the fix https://github.com/HtcLegacy/android_kernel_htc_pico/commit/44f4f0c0c5f5c14ec2e388a4c2f6b9de9adfa791
[HTC Desire C] spcd:
Do I need to apply this fix myself if I want to use the new build? Or can I go ahead and test build #4 as it is ?

edit: i just realize this fix is not just a file, but it's code. So I guess this will be included in a future build #5 ? :)
[HTC Desire C] h1gh1:
I've given up on CM10. Can not build and develop CM10, CM11 and CM12. Will upload source tree with fixed WiFi, so if someone wants to pick up, feel free to do so.
[HTC Desire C] spcd:
I can't expect you to keep everything up to date. You are doing great work! I've been using your CM11 RC1 for a while. :good:
[HTC Desire C] wapmast123:
you need to create one application that were not closed?
[HTC Desire C] Tetsujin101:
After intense testing (cm11 rc1, 2, 3, 4 every variant > ext4 and f2fs, also cm12 a1) I've come back to this rom. Like High1 said, cm10 is the "best" for the desire c. I can really understand. Feels like home. It would be nice if the 0.00 mb bug getting fixed. But I can understand if there are to less interest ore to much to do with the other development projects.

I have to thank to all the devs, for butting so much effort and time to this little old device. Thank you all.

Best regards.
[HTC Desire C] Theeboon:
I guess if the 0.00mb bug was fixed this would be a near perfect rom.
[HTC Desire C] Tetsujin101:
100% true. Even 4.4 is optimized for low end devices, cm10 feels most natural for the hardware and the size.

Sent from my Nexus 9
[HTC Desire C] AvgPhoneUser:
Help please!

Does anyone have the gapps? I cannot download from goo.im...
[HTC Desire C] nemanjsb:
http://xdaforums.com/showthread.php?t=2240652
[HTC Desire C] AvgPhoneUser:
Can you please upload the exact file on zippyshare? Bcoz I cannot download from that site either... Fail.

EDIT:found on page 85
[HTC Desire C] h1gh1:
The fix is already known, just a kernel compile is needed. And one thing makes this ROM not perfect - graphical glitches because of old Adreno blobs. This ROM needs ION to use newer libraries, and that would need a lot of work.
[HTC Desire C] Theeboon:
I haven't noticed graphical glitches with this ROM before!
[HTC Desire C] h1gh1:
Try Google Maps. Or Sygic. Or Nokia HERE.
[HTC Desire C] Theeboon:
Oh, I do remember Google Maps working weirdly yes. True. Oh well.
[HTC Desire C] cine$ref:
Hi,

Can upload new screenshoots ?
[HTC Desire C] atomomega:
This ROM is dead, it still works fine though.
[HTC Desire C] King-V:
Suggest re-adding some up-to-date screenshots for this, as the current links for it lead no-where.
[HTC Desire C] Kubanac:
WiFi is working but whenever phone go to sleep WiFi is disabled and I don't get Viber messages, is there a fix for this?
[HTC Desire C] nemanjsb:
Have you tried wifi keep alived?
[HTC Desire C] Mapuku:
wi-fi not working.

desire c.
[HTC Desire C] sancho_sk:
Is there any chance for USB host? Seems like it's not working with this ROM :(
[HTC Desire C] nikhil16242:
I am sure cute_prince will get this working :fingers-crossed: . We will findout if it works by this weekend , I guess :)
[HTC Desire C] Jaizu:
Are the best cute, really thanks for all and for your BIG effort (:
[HTC Desire C] Jelly Android:
Oh, we are happy, all other i already fixed, and spent a lot of money to test cm10, like gps tester...
[HTC Desire C] bigpipe22:
i'm sure we all bought megabyte packages from our provider :D
[HTC Desire C] LaputaCake:
You've just made my day :)
[HTC Desire C] calinorg:
Excellent news. I hope it will work. Btw, which phone is that (that has the same wifi chip)?
[HTC Desire C] cute_prince:
Its ZTE Blade III :)

https://github.com/KonstaT/android_device_zte_atlas40/tree/jellybean
[HTC Desire C] arvinivra:
Thanks cute_prince, when you release new build?
[HTC Desire C] nhieu92:
Let's quick make new version with wifi fixed, bro :good:
[HTC Desire C] LaputaCake:
Party!!!!!!!!!!!!!!!
[HTC Desire C] bigpipe22:
great

when u will realeas the update? ? :D
[HTC Desire C] cute_prince:
I'll compile new build on coming Friday and give [MENTION=4822628]nikhil16242[/MENTION] for testing WiFi. If WiFi works, I'll release it publically on Saturday itself :)
[HTC Desire C] LaputaCake:
I'll test it aswell if you like
[HTC Desire C] lead3r1:
way to go cute_prince if WiFi works then we would go head over heels but if it doesn't even then we gotta thank u for ur kind work of selflessness I'm indebted to you we never thought that we'd see d day cm10 on our devices this soon thank you and may god bless u in ur future endeavours :D
[HTC Desire C] Jaizu:
If the WIFI works, will it work also CM9?

And another thing.

Shall you create CM10.1 if WIFI works?

Thanks for everything cute, hopefully work (:
[HTC Desire C] cute_prince:
Yes, it should work with CM9. About CM10.1, I am leaving that project to devs of Desire C community :)
[HTC Desire C] Jelly Android:
Okey. thanks.
[HTC Desire C] Phenziox:
If wifi works man, i'll be your slave forever and ever

omgomgomgomgomgomgomgomg
[HTC Desire C] ekiMheT:
Now we play the waiting game. . .
[HTC Desire C] LaputaCake:
It's the final countdown
[HTC Desire C] :
once we get wifi to work, we should add the device to the unofficial ports list at http://wiki.cyanogenmod.org/w/Unofficial_Ports
[HTC Desire C] whoamigriffiths:
Started running cm10 last night and kept getting gapps force closes and the keyboard fc'ing .

I've tried all the kernels by me4488 as well as manually stopping play store and other apps and clearing caches .

I've reinstalled gapps , I've wiped dalvik and cache after flashing gapps .

I did a clean install , but have dirty flashed cm10 over the original cm10 as well to try to fix .Has anyone else been having fc's or is it perhaps the kernel ?

Thanks in advance

rich