yashsingh1/xdaforums huggingface dataset:
[Motorola Photon Q 4G LTE] arrrghhh:
Yea I think it's a general CM issue, I saw similar reports on the forum for my tablet.
[Motorola Photon Q 4G LTE] Elanzer:
May 14th build is broken too, just in a different way (upgrading bootloop)
[Motorola Photon Q 4G LTE] arrrghhh:
Please refrain from reporting issues unless you have tried clean flashing.

Thanks.
[Motorola Photon Q 4G LTE] stargo:
It's really broken, will be fixed when this gets merged: http://review.cyanogenmod.org/#/c/98416/

Cheers,

Michael
[Motorola Photon Q 4G LTE] arrrghhh:
Ah, thanks. Looks like it was merged quickly, so next nightly...
[Motorola Photon Q 4G LTE] espeon:
http://review.cyanogenmod.org/#/c/98073/ fixed half the mobile data settings problem for cdma phones, but the quicksettings tile is still borked (this only fixed the toggle in the settings app)

Can't really file a bug report for now, though, and it works well enough for if you actually need to toggle cdma data on or off.
[Motorola Photon Q 4G LTE] tobby88:
I just did another test with my Lapdock. Keyboard and Touchpad are working (I think this was a problem a while ago?) - but I don't get any image on the lapdock-screen. My HDMI-port looks a little bit damaged. So now I am now sure if there is a problem with my HDMI-port or if it's a problem with the ROM.
[Motorola Photon Q 4G LTE] espeon:
I can't restore any backups now since twrp keeps trying to restore /system using make_ext4fs and that breaks on my phone for whatever reason. Is there any way to force it to restore backups using make_f2fs, at least for /system?
[Motorola Photon Q 4G LTE] arrrghhh:
Just a thought, maybe don't try to restore system apps? I know it's a pain, but restoring stuff from previous builds back into new builds can cause all sorts of weird behavior, even if it seems to work correctly.
[Motorola Photon Q 4G LTE] Die Bruine:
Lapdock

I can confirm Lapdock not working. This is an Atrix. I flashed back to stock to check the phone ports. It worked. So CM12.1 no Lapdock support. it seems. Didn't expect it to hones ;) . But is was worth a shot.
[Motorola Photon Q 4G LTE] tobby88:
OK, thanks for testing... Hope we can get the lapdock back running at some point :)
[Motorola Photon Q 4G LTE] Freundschaft:
hi there, I have issues since returning from china that my phone is not able to discover any networks (with or without sim card).

when I go to network operators and search for available networks I always either get an error or it continues searching indefinitely. Is there a known bug or something? Thanks in advance!

edit: okay sorry I found out the issue remains with all ROMS that I have tried so far, so its not a CM 12.1 related issue
[Motorola Photon Q 4G LTE] espeon:
I found a weird bug that, after talking on #cyanogenmod some, appears to not affect other devices.

My phone has scheduled downtime from midnight to noon, and I turned it off at ~2am yesterday. When I turned it back on after noon, it didn't exit downtime (the ringtone/notification streams had a null/unchangeable volume) but also didn't say it was still in downtime.

Can't file a bug report since it's not a regression afaik, but weird, and needed to write this down somewhere so I can file it later.
[Motorola Photon Q 4G LTE] Al936:
OTG support

Does CM 12.1 support OTG? I am on the latest nightly (3 Jun) and OTG does not work.
[Motorola Photon Q 4G LTE] arrrghhh:
I'm not sure many people care about / use OTG on this device since it has a proper mSD slot...
[Motorola Photon Q 4G LTE] Al936:
Oh, just forgot about mSD slot in Q :). Q is my secondary phone. The primary one is Moto X which does not have mSD slot and working OTG is important for Moto X. So, thank you to remind me about mSD slot in Q!
[Motorola Photon Q 4G LTE] tobby88:
Just tested it - works here!
[Motorola Photon Q 4G LTE] pathia:
I still can't for the life of me connect on Sprint's network. Oddly enough I can switch the radio over and it roams fine. However since I cannot connect to sprint, it won't do LTE at all. Was fine in CM12 as far as I can recall.
[Motorola Photon Q 4G LTE] Christopher Price:
I can confirm the Sprint bug. I've posted a full regression of it on CyanogenMod's forum:

http://forum.cyanogenmod.org/topic/111296-bug-photon-q-xt897c-not-provisioning-on-sprint-cdma/

Unfortunately, nobody has responded after a week or so.
[Motorola Photon Q 4G LTE] Kokumotsu:
guys im having an issue with this phone.

my friend keeps saying their phone is lagging so i wanted to help them out by installing a custom rom

i got everything working except installing the rom part

ive tried probably 7 different roms , cm 12 xt897, cm11 xt897c, carbon moto-msmx8960 and several other roms based around the same xt897 and x8960 and nothing works

they all keep saying something about this files is for xt897 (insert some name like alritec C) this decive is xt897

the best outcome ive had was with the CM11 xt897c and it failed and caused a bootloop. which was fixed

what roms work on a CSpire Photon q 4g? because nothing seems to be working
[Motorola Photon Q 4G LTE] Loader009:
Have you flashed an up2date recovery?
[Motorola Photon Q 4G LTE] Kokumotsu:
i assume i did.

which cwm do i use clockwork shows 2 photons

one being Q and the other 4G
[Motorola Photon Q 4G LTE] Loader009:
Flash the recovery in the first post of this thread.

Others are probably out of date and do not support some ROMs.

btw. the photon 4G is not the same as the photon Q 4G LTE.
[Motorola Photon Q 4G LTE] Savrik:
Hi!

I use CM 12.1 a few weeks. There are several problems:

1. SMS to the number in international format, like "+3805 01234 567" can not be sent. logcat here:

On a number "050 1234 567" sends correctly

2. Tile the top menu "Data" is not actually ON \ Off transmission and opens the menu item "Data Usage"

P.S. I'm use CDMA mode
[Motorola Photon Q 4G LTE] dsfdfsdfs:
Responsiveness / lag issues, seemingly caused by zcache

Hi all,

For the last few months (maybe longer) I've had quite severe responsiviness issues with CM12.1 on my XT897.

Specifically, after 1-2 days of normal use without rebooting, browsing internet using Chrome would constantly freeze for ~0.5-5 seconds at a time, and when receiving phone calls half the time the UI would be so frozen/laggy that by the time call dialog came up it had already gone to voicemail. I think overall the experience was quite laggy as well (i.e. UI often freezes for seconds at a time), but those were the most noticiable things to me.

I used the CPU usage overlay to determine that every time everything was laggy (i.e. frozen for multi-second periods), it was kswapd0 using the CPU time. Since that suggests it was either zram or zcache doing work at the time of lagginess, I then tried, one at a time, switching off zram and zcache. While disabling zram only seemed to make other things worse without improving anything, disabling zcache actually seemed to make all the above issues go away.

I've now been running without zcache for 2 days, and everything is still going fine and no lag issues have come back - the overall responsiveness seems much better as well. I guess it could still be placebo/luck in case it is just my usage patterns having been different the last few days, but I'm optimistic.

Has anyone else been experiencing these kind of issues? If so, please see below:

I've put a test build of current nightly (~20150707, no need to wipe if upgrading from an older one) here, with zcache disabled (zram is still enabled): http://onse.fi/files/msm8960-nozcache/cm-12.1-20150707-UNOFFICIAL-xt897.zip

It has this patch but is otherwise stock CM12.1: http://onse.fi/files/msm8960-nozcache/0001-msm8960_jbbl-common-disable-zcache.patch

I'm not entirely sure why zcache seems to be causing these issues while zram is not, as both of them are something that run on memory pressure and compress (different) stuff in RAM (zram appears as swap and thus less used application memory is put there, while zcache is, simplified and when used as a backend for cleancache as on CM12.1 msm8960 kernel, a compressed disk cache where regular cached pages are moved to on memory pressure). I guess it could be that the generic swapper (which uses zram) does something more intelligently than cleancache (which uses zcache), or maybe compressing clean pages is somehow inherently more disruptive than normal swapping.

Theoretically disabling zcache could cause slower multitasking etc. since more storage ("disk") access is required as there is no compressed page cache anymore, but my experience has been the opposite so far (i.e. presumably inserting stuff to the compressed page cache causes enough CPU use to counteract the positive effects, or alternatively the CPU use resulting from decompressing from page cache could be more disruptive than actual storage access).

tl;dr: zcache seems to cause lagging and freezing on my device, above is a link to a test build with zcache disabled (zram still enabled)
[Motorola Photon Q 4G LTE] tobby88:
Thanks! I had the same issues and improved it by switching to f2fs. The lags are less often, but still there sometimes. And because of the randomly occuring corruption of the f2fs-formatted /data-partition I disabled the mount of /data/media as an internal storage and built my own TWRP without /data/media support as well.

This also helps me regarding to my free space, because I have some huge apps installed and my /data partition is pretty full, so it's great that no apps are writing to /data/media as well.

I think I'll try to disable zcache, too, in my own (/data/media-removed-)CM-builds and see if the lags will be less often. :)
[Motorola Photon Q 4G LTE] Loader009:
I think you have forgotten to remove the initial zero.

national number: 050 1234 567

international: +38 50 1234 567

Correct me if I am wrong.
[Motorola Photon Q 4G LTE] Fr4gg0r:
When the screen goes off, the gpu frequency goes to maximum frequency, acording to the /sys/class/kgsl interface.

Is this a read out problem or a bug in the governor?
[Motorola Photon Q 4G LTE] tobby88:
I think, you are wrong. The international access code +38 doesn't exist anymore (has been Yugoslavia). I think he means +380 for the Ukraine. So if you forget to remove the initial zero it would be +380 050 1234567. Correct version is +380 50 1234567, like he said.
[Motorola Photon Q 4G LTE] Savrik:
Yes, +380 - this is international code of Ukraine. Also, in Ukraine adopted national dialing format 050(operator code) 1234567(telephone number)
[Motorola Photon Q 4G LTE] Loader009:
Well, sorry for that, the number was not separated like before so I thought the zero has been forgotten to be removed.
[Motorola Photon Q 4G LTE] Savrik:
On another forum confirmed that in GSM mode works with +38 050 1234567 and 050 1234567. In a mode CDMA problem with the number in an international format
[Motorola Photon Q 4G LTE] dsfdfsdfs:
There is a non-xt897 specific workaround in PhoneNumberUtils.java which replaces +62 with 0 when making a local call in India on CDMA, maybe something similar is needed for Ukraine as well? Just a guess, I'm not familiar with CDMA.
[Motorola Photon Q 4G LTE] arrrghhh:
When I had this phone on Sprint (CDMA) in the US it was not able to do + dialing, at all.

Anytime I would use Google Maps it was unable to call any of the numbers, because it would insert a +1 before the number dialed out. I never really looked into fixing it, because removing the + would allow the call to go out...
[Motorola Photon Q 4G LTE] Loader009:
You can try to replace the "+" with a double zero "00".

Afaik the + does exactly this.
[Motorola Photon Q 4G LTE] dsfdfsdfs:
Did you (or anyone else who tried it) notice any difference?

I've been running it well over a week now and responsiveness has remained good, so this is definitely something I'll try to get in in some form.
[Motorola Photon Q 4G LTE] tobby88:
I am testing it since the 10th of July with f2fs and with zcache disabled and I am not really happy. It seems like the responsiveness is worse than with zcache enabled.

So I can summarize about the responsiveness:

ext with zcache: bad, sometimes hangs for seconds and reacts slowly

ext without zcache: haven't tested - but you say its an improvement

f2fs without zcache: never hangs for a few seconds, but overall it reacts slowly

f2fs with zcache: sometimes hangs for a few seconds, but less often than with ext. But overall it reacts real quick.
[Motorola Photon Q 4G LTE] dsfdfsdfs:
OK, thanks. I guess I'll have to do more testing with different configs (including f2fs), then, to try to understand/confirm what is happening, then.

---------- Post added at 11:14 PM ---------- Previous post was at 10:51 PM ----------

I read the kernel code a bit, and it looks like zcache is not be used at all for f2fs. It does not call cleancache_init_fs() so no cleancache pool is allocated for mounted f2fs filesystems, and thus zcache won't be used (as it is cleancache that uses zcache).

So this might (at least partly) explain why you are seeing less of the "hangs" with /data on f2fs (as only /system will use zcache then).

But as I said, I'll run some more tests :)
[Motorola Photon Q 4G LTE] kabaldan:
[MENTION=361961]Savrik[/MENTION] Please try this test build: https://dl.orangedox.com/sGcoEgAuSfraEr9yMa/cm-12.1-20150715-UNOFFICIAL-xt897.zip

Please let me know if it fixes the international number issue (cdma & Ukraine specific). If it works fine, I'll push the fix to CM gerrit review. (thanks to [MENTION=2561169]dsfdfsdfs[/MENTION] for pointing out the already existing workaround for Indonesia).

Please let me also know whether the missing data toggle issue (cdma specific) is still present in this build. If it's fixed, I'll push another fix to gerrit.

Also please note that this build has zcache disabled (by kernel cmdline), which causes the build to be a bit less responsive for me most of the time (I'm using f2fs on data and cache) - I've built it with zcache disabled to check it myself again after [MENTION=2561169]dsfdfsdfs[/MENTION] brought up the zcache topic.
[Motorola Photon Q 4G LTE] Savrik:
The error isn't fixed - I can not dial a number in the international format
[Motorola Photon Q 4G LTE] kabaldan:
please post your output of

su
getprop | grep gsm.
[Motorola Photon Q 4G LTE] Savrik:
In reality operator "Intertelecom"
[Motorola Photon Q 4G LTE] kabaldan:
If you set the gsm.sim.operator.iso-country to ua, the added rewrite rule should start working

su
setprop gsm.sim.operator.iso-country ua
[Motorola Photon Q 4G LTE] Savrik:
I try to set the gsm.sim.operator.iso-country to ua, but this take no effect
[Motorola Photon Q 4G LTE] arrrghhh:
Did you type 'su' first as kabaldan asked you to do?

It appears your terminal is not root, it should have a # instead of $.
[Motorola Photon Q 4G LTE] Savrik:
I'm sorry, I did not enable root access on the menu )

And - IT WORKS! Now I can call to the numbers in international format!

kabaldan - very thanks for you!
[Motorola Photon Q 4G LTE] kabaldan:
http://review.cyanogenmod.org/103523 has been merged so the fix will be present in the official cm12.1 nightlies from now on.
[Motorola Photon Q 4G LTE] dsfdfsdfs:
Hmm, after some testing I noticed that cleancache/zcache is never used for read-only devices either (ext4_setup_super() does not call cleancache_init_fs() for read-only mounts).

So if one uses f2fs for data and cache, no filesystems actually have zcache enabled and it should not matter if its on or off...

[MENTION=2218140]kabaldan[/MENTION], yet you said that you noticed worse performance with zcache disabled even though you use f2fs on data+cache. Can you check with zcache enabled again, and check how much zcache is actually used? e.g. with this:

$ adb shell '
zk=$(($(cat /sys/kernel/mm/zcache/zbud_curr_raw_pages) * 4))
tk=$(cat /proc/meminfo | head -n1 | awk "{ print \$2 }")
zzk=$(($(cat /sys/kernel/mm/zcache/zbud_curr_zpages) * 4))
failed_gets=$(cat /sys/kernel/mm/cleancache/failed_gets)
succ_gets=$(cat /sys/kernel/mm/cleancache/succ_gets)
echo "zcache RAM usage: $zk kB ($((zk*100/tk))%)"
echo "data in zcache: $zzk kB"
echo "zcache hit rate: $((succ_gets*100/(succ_gets+failed_gets)))%"
'

For me this usually shows something like

zcache RAM usage: 54516 kB (6%)
data in zcache: 96740 kB
zcache hit rate: 23%

I've also verified by going back-and-forth with zcache enabled/disabled that it indeed is what is causing the responsiveness issues for me, and is not just placebo/changed usage behavior.
[Motorola Photon Q 4G LTE] Savrik:
I just install the updates - all work after command setprop gsm.sim.operator.iso-country ua (I don't have a SIM-mod)!

Thanks!
[Motorola Photon Q 4G LTE] tobby88:
Is it possible to use a RTL8152-based (Realtek) USB network card on the Photon Q via OTG?

On my Photon Q it will find the network adapter after plugging it in. "lsusb" shows two new IDs then, "1d6b:0002" - this is a Linux USB Root Hub and "0bda:8152" - the network adapter itself.

But "lsmod" shows me that it doesn't seem to load any new modules. "ls /sys/bus/drivers" doesn't show any realtek drivers, too, I think.

When using "ip link show" it looks good - as there is a new device called "eth0" showing up.

16: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
link/ether 00:e0:4c:36:01:59 brd ff:ff:ff:ff:ff:ff

So why is it down? So let's do a "ip link set eth0 up" and see, if it worked ("ip link show")

17: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 1000
link/ether 00:e0:4c:36:01:59 brd ff:ff:ff:ff:ff:ff

State unknown? Hmm doesn't look very good...

So let's try to get an IP adress: "dhcpcd eth0". This takes a while, then "ip addr show" shows me:

17: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 1000
link/ether 00:e0:4c:36:01:59 brd ff:ff:ff:ff:ff:ff
inet 169.254.125.210/16 brd 169.254.255.255 scope global eth0
inet6 fe80::2e0:4cff:fe36:159/64 scope link
valid_lft forever preferred_lft forever

So only a link-local-adress, not a "valid" one.

Any ideas what I am doing wrong?

Cable is plugged in, yellow LED is lighting and green LED is blinking. On my laptop it works, so adapter and connection are ok.
[Motorola Photon Q 4G LTE] thk_ms:
Hello Everbody,

I'm very glad about my new used Photon Q with cm 12.1 an d Sim/Mod. But I#m looking for an option to suppress the software keyboad in landscape-mode. Can someone help me or is it a mistake in the actual nightlies?

Thanks, thk_ms
[Motorola Photon Q 4G LTE] kabaldan:
AFAIK, RTL8152 driver was first added in 3.10 kernel, so it would have to be backported to our 3.0 kernel.
[Motorola Photon Q 4G LTE] kabaldan:
Tap on the IME selector icon in navigation bar ( http://i.stack.imgur.com/LEgX5.png ) and then turn off the Hardware/Show input method switch.
[Motorola Photon Q 4G LTE] thk_ms:
Hello,

thanks for your answer but I doesn't have such an Icon in my navigation bar. Depends ist on the softwarekeyboard with ist activ?

Thanks a lot, thk_ms
[Motorola Photon Q 4G LTE] kabaldan:
For the selector icon to be shown:

1. in Settings > Language & input - the Selector icon switch under Keyboard & input methods category has to be enabled

2. some text input has to be currently active
[Motorola Photon Q 4G LTE] thk_ms:
Hello,

I know the way to change it. The input methods category is enabled on my device. So, it must be a mistake in the nightly!?

By the way: To start ervery sentence with capitals don't work at my device, too. Surly I have it enabeld on my device.

[IMG="Input Methods Category"][/IMG]

[IMG="Screenshot Navigation Bar"][/IMG]

Best regards, thk_ms
[Motorola Photon Q 4G LTE] tobby88:
Ah, damn it ^^ Thanks for the info!
[Motorola Photon Q 4G LTE] Y_Yan_C:
Hi, my hardware keyboard double clicks. Is it just my device?
[Motorola Photon Q 4G LTE] Tristanlogd:
Is there any word on the progress with this working on Ting (Sprint) CDMA? I have read through the thread, and I do not have any kind of data (Signal Bars have an exclamation point) and the phone app is constantly crashing. Other than that its a very smooth experience, but would love data. Is there anything I can do log wise to help?
[Motorola Photon Q 4G LTE] huhu1312:
there are 2 version xt897 and xt897c

the c is for cdma network

https://download.cyanogenmod.org/?device=xt897c

https://download.cyanogenmod.org/?device=xt897
[Motorola Photon Q 4G LTE] Tristanlogd:
The c variant appears to be deprecated and is at CM 11.
[Motorola Photon Q 4G LTE] palmbeach05:
True, and it is right to mention that the dl page is outdated. You need to look at the msm8960 jbbl page for latest build
[Motorola Photon Q 4G LTE] Tristanlogd:
Where can I find that page? Are you talking about a thread on XDA or a CM wiki page?
[Motorola Photon Q 4G LTE] palmbeach05:
The link that was provided was to the CM dl page. My comment stated that for CM11 builds, that page is outdated, and that you should look at the msm8960 jbbl CM dl page for up to date builds. You can find it using the listing on the left side of the CM dl page
[Motorola Photon Q 4G LTE] Tristanlogd:
Ok I thought you meant there was a different location for cm 12 downloads than the one provided.
[Motorola Photon Q 4G LTE] palmbeach05:
I hear you. Now I did notice that it was said that the c variant was CDMA. Let me look into some CM12.1 files I have and see if you might be able to use one with a small tweak to things. Our devices got unified into the msm8960. MSM8960 got split into the kkbl and jbbl families once the ota for kk got released, and then got cut back down to device level with CM12. I'm on the AHD, and have had success in running QHD and RHD (GSM) CM12/12.1 ROMs on my device. So while everyone says things got de-unified, there still exists the opportunity to have the unification we had on CM11. I've pointed this out a few times with no luck in being heard, which is fine.

The CM package changed once CM12 got released, but there is a way to see into the package and see the old setup (all the different files within the system partition). I have the tool, but its on my laptop and I'm at work for a few more hrs. Let me get out of work and look into one of my CM12.1 update zips to see if there's any chance for a CDMA support for your device.
[Motorola Photon Q 4G LTE] Tristanlogd:
Thank you so much! :laugh: Let us know what you uncover! :highfive: :D
[Motorola Photon Q 4G LTE] Tristanlogd:
On a side note, I did download CM 12.0 which was in the thread "CM12 LP msm8960_JBBL". This works pretty well, even have LTE on ting. Did the source get de-unified at 12 or 12.1?
[Motorola Photon Q 4G LTE] huhu1312:
Its not true that u need to look at MSM8960 page.

this was true in the past. but they splited the devices some monthes ago.

so maybe they not support the xt897c anymore
[Motorola Photon Q 4G LTE] arrrghhh:
Guys, from the OP:

This just means the unified moto devices (RAZR HD, Atrix HD etc) - xt897/xt897c should both be supported on 12.1 under the "xt897" device. However, I don't think anyone is really testing/supporting the CDMA device - kabaldan does his best, but he can't test anything for it. So if there are issues with CDMA, you will have to work with him to help fix it. I can't anymore, I was one of the few with CDMA who was helping with the device early on.
[Motorola Photon Q 4G LTE] palmbeach05:
Based off of what I see, it matches what was said on the post above. Everything seems to be in order, but it may or may not fully support the CDMA. I can't test it out since i'm on AT&T (Gsm network)
[Motorola Photon Q 4G LTE] Tristanlogd:
I am downloading source now, I will see if I can poke around and see whats going on. Thanks guys!