yashsingh1/xdaforums huggingface dataset:
[Motorola Photon Q 4G LTE] nailfrompg:
I was wrong, ctrl really appointed instead capslock. Combinations ctrl + (arrows, backspace) works, but the combination of ctrl + (c, v, x, z) (in Russian keyboard layout) does not work, instead it prints letters. I have added include "capslock (ctrl_modifier)", include "ctrl (swapcaps)", changed the value in evdev (as a result, ctrl began working for all layouts). But the key combination ctrl + (c, v, x, z) is still not working. It seems that the combination of ctrl and Cyrillic characters are not processed.

What command is responsible for switching layouts?
[Motorola Photon Q 4G LTE] elros34:
You can switch layout using dconf:

dconf write /desktop/lipstick-jolla-home/layout "'us'"

there are also other options but I don't tested them:

rules: evdev

model: jollasbj

variant:

options:

Be aware that ctrl + c, v, x, a, z will not work inside jolla browser but will work ok in any other gui application. It's hard to debug xkb so if you use } instead ] or ; in wrong place then it can behave strange. I doubt it's related to Cyrillic.
[Motorola Photon Q 4G LTE] klinglerware:
Thanks, that worked.

As for the "not waking up from sleep" issue, I went and cleaned the battery contacts. That seemed to have fixed it...
[Motorola Photon Q 4G LTE] elros34:
Did anybody tried to enable ffmemless vibration driver? I have zero experience with kernel. I was trying to add pm8xxx-vibrator.c to kernel but in vain. There wasn't any new device in /dev/input.

Anyway I was able to apply mtp patch.
[Motorola Photon Q 4G LTE] nailfrompg:
Some new detected bugs:

Offline charging does not work (the device reboots);

Once locked, the screen does not turn on receiving system notifications, calls, pressing the camera button.
[Motorola Photon Q 4G LTE] elros34:
It works and even annoys me because of that (I mean camera key).

If you have sensorfwd-restart* then maybe try lastest photonq-helper which I use:

https://1drv.ms/u/s!AuDqiTFly4jxgnniJv7VN4PXR_zP
[Motorola Photon Q 4G LTE] nailfrompg:
Yes, the latest photonq-helper solved this problem.

Switching layouts using dconf works. So, how to bind layouts switching to the keyboard shortcut?

Also, you forget to include repository for wget.
[Motorola Photon Q 4G LTE] elros34:
As I said I can probably write some code to handle switching layouts in helper but I would not do this if sailfish already handle it. You must just try it.

https://www.x.org/releases/X11R7.6/doc/xorg-docs/input/XKB-Config.html

"XkbLayout" "us,cz,de"

"XKbOptions" "grp:alt_shift_toggle

looks like layout and options keys in dconf
[Motorola Photon Q 4G LTE] nailfrompg:
Well, a couple of days ago I installed setxkbmap. When I try to call setxkbmap with the command setxkbmap -rules evdev -layout "us, ru" -option "grp: alt_shift_toggle" it displays the message Can not open display "default display".

I tried to configure switching of layouts using the command localectl set-x11-keymap "us, ru" grp: alt_shift_toggle. Without results, although /etc/X11/xorg.conf.d/00-keyboard.conf file is created.

The screen does not turn on (when receiving the notifications) with the enabled service sensorfwd-restart.timer about an hour after the restart. The command systemctl restart sensorfwd solves the problem, but only for a certain time.
[Motorola Photon Q 4G LTE] elros34:
I mean:

dconf write /desktop/lipstick-jolla-home/layout "'us,ru'"

dconf write /desktop/lipstick-jolla-home/options "'grp: alt_shift_toggle'"

Sailfish use wayland + lipstick instead X so setxkbmap will not work.

The problems with sensors are known on many devices. Since long time I didn't notice any proximity issue (photonq-helper and restart timer active) but I will investigate it.

If display remains blank when you cover sensor while pressing camera key and switch on in other cases, then sensors are good and problem is somewhere else.

One solution is to find other sensors blob which will work better with sailfish.
[Motorola Photon Q 4G LTE] elros34:
vevgeniev, there is a problem with bluetooth on 2.0.5.6. Directory /etc/bluetooth is empty and it's impossible to activate bluetooth. Copying configuration files from 2.0.2.48 fix it.

Edit, one more problem on latest image: I can't play some mp4 with aac video files but they works good on 2.0.2.48
[Motorola Photon Q 4G LTE] jrk190:
Out of curiosity, had anyone managed to boot this on xt907 yet?
[Motorola Photon Q 4G LTE] elros34:
Some logs related to problem with gstreamer on 2.0.5.6.
[Motorola Photon Q 4G LTE] elros34:
Jolla Store works! Thanks to mal and of course Jolla.
[Motorola Photon Q 4G LTE] mp107:
Link to the CyanogenMod ROM on www.vladislavonline.com/sailfishos-for-photon-q/ does not work.

Working link to the used CyanogenMod ROM:

http://oss.reflected.net/jenkins/115627/cm-11-20150626-SNAPSHOT-XNG3CAO1L8-moto_msm8960_jbbl.zip

or

http://web.archive.org/web/20160704110915/http://oss.reflected.net/jenkins/115627/cm-11-20150626-SNAPSHOT-XNG3CAO1L8-moto_msm8960_jbbl.zip

And to the instruction of flashing CyanogenMod:

http://web.archive.org/web/20161224203809/https://wiki.cyanogenmod.org/w/Install_CM_for_xt897
[Motorola Photon Q 4G LTE] jrk190:
Anyone have luck with xt907? Nobody?
[Motorola Photon Q 4G LTE] elros34:
jrk190, be the first :P

I have working audio recording. It will be upstreamed (I hope).
[Motorola Photon Q 4G LTE] jrk190:
I've tried to boot it several times but each time it hangs on the Motorola boot logo.
[Motorola Photon Q 4G LTE] elros34:
After failure try to boot to recovery and check whether /proc/last_kmsg exists. If not then try to boot sailfish once again, connect it to pc and telnet 192.168.2.15 2323. Then provide logs from:

dmesg

/usr/libexec/droid-hybris/system/bin/logcat

journalctl -a -l

You can get immediate help at IRC channel: sailfishos-porters at freenode.
[Motorola Photon Q 4G LTE] jrk190:
It doesn't even get that far. Literally all it does is sit on the Motorola bootloader logo.

I've tried booting just the cm-11, and it works just fine.

I flash sailfish and nada. No boot. Nothing but a black screen with a red circle around an M.

So weird.
[Motorola Photon Q 4G LTE] elros34:
My first sailfish 2.1.0.11 alpha image [outdated].

Edit: After first boot:

systemctl-user enable photonq-helper

systemctl-user start photonq-helper

Warehouse can be downloaded from:

https://github.com/elros34/orn-ware...d/0.3-30/harbour-warehouse-0.3-30.armv7hl.rpm

For blank screenshot issue use tweaked lipstick:

https://github.com/elros34/lipstick/releases/download/0.30.4/lipstick-qt5-0.30.4-1.81.4.armv7hl.rpm

For xt907 use this image. Thanks go to jjjhhhppp for providing needed logs.
[Motorola Photon Q 4G LTE] santamanga:
Unfortunately, I broke the touchscreen of my photon q and had to change mobiles. So I'm outta this nice thread.
[Motorola Photon Q 4G LTE] sasha19323:
I don't know why, but I can't find any mobile networks to make it work properly. Phone just can't find any carrier.

Despite this, it's very good build, keep it up :good:

PS: Also alien dalvik doesn't work there, unfortunately. Maybe I do something wrong.
[Motorola Photon Q 4G LTE] elros34:
sasha19323, flash cm kernel and check whether modem works in android. Also check for obvious errors related to modem in dmesg, logcat and journalctl (remember to always do it as root).

In regard leaked dalvik I didn't tried it but I believe it need tweaking configuration file.

Unfortunately sfdroid require a lot of ram and skill to port it.
[Motorola Photon Q 4G LTE] jjjhhhppp:
Booting on XT907

[IMG="XT907"]http://i.imgur.com/Y4xhxbK.jpg[/IMG]

I got it to boot on my XT907 using elros34's build from here

It is surprisingly fast compared to CM, and aside from some occasional hangs it runs amazingly!
[Motorola Photon Q 4G LTE] elros34:
Alpha 2 image for xt897 and xt907.

Changelog:

- jolla-camera: finally works + patches for volume and camera keys support

- hybrid vibra driver: any improvements are welcome

Vibra driver parameters can be adjusted in /sys/module/board_mmi_vibrator/parameters/

Sailfish configuration files are located: /usr/share/ngfd/plugins.d/ngf-vibra-moto_msm8960_jbbl.ini and /usr/lib/qt5/plugins/feedback/qtfeedback-moto_msm8960_jbbl.ini
[Motorola Photon Q 4G LTE] sasha19323:
Stuck on "Running installation script..."
[Motorola Photon Q 4G LTE] elros34:
sasha19323, I have flashed image to photon once again and can't reproduce your problem. Make sure you have enough place in data partition or zip file is not corrupted.
[Motorola Photon Q 4G LTE] boofus:
Can I flash this over CM13? Is there anything else I need to do after except install warehouse/lipstick? (There was something about LEDs in the first post?)
[Motorola Photon Q 4G LTE] elros34:
The sailfish was built using cm11 tree so you must use cm11. I never had problem with LEDs so probably you don't have to copy it. Modified warehouse and lipstick are included in alpha 2 image.
[Motorola Photon Q 4G LTE] boofus:
Thanks. I can't find CM11 anywhere to download any more! Can anyone link me?

EDIT: Found it! https://archive.org/download/cmarch...626-SNAPSHOT-XNG3CAO1L8-moto_msm8960_jbbl.zip

---------- Post added at 01:16 PM ---------- Previous post was at 12:31 PM ----------

I am also stuck on "Running installation script ..."

I did factory reset, installed CM11 and then (without rebooting) installed sailfish alpha 2. Not sure whether to reboot now.

EDIT: Tried again, this time I booted up into CM11 before flashing alpha 2, still stuck in the same place (unless it takes > 10 mins)

EDIT again: Tried with alpha 1, same thing. I'm using TWRP recovery BTW.
[Motorola Photon Q 4G LTE] elros34:
Unpacking sailfish image took about 8 minutes on my device.

I really don't know where is the problem, it works for me. What about TWRP logs?

The only thing that comes to my mind is to manually unpack image according to updater-script and updater-unpack.sh and then flash kernel using fastboot.

Is the same thing happening on vevgeniev's images?
[Motorola Photon Q 4G LTE] boofus:
Ok, I am going to try again and leave it for 20 minutes. Maybe it is because I have the slower flash in my device and I didn't leave it long enough

Edit: I feel dumb now - I just needed to leave it for longer! Took not much longer than ten minutes here! Thanks a lot for working on this, really looking forward to trying it!
[Motorola Photon Q 4G LTE] elros34:
I am glad it works for you :P Inside zip there is ~700MB sailfish compressed to ~300MB tarball so it may take a time.
[Motorola Photon Q 4G LTE] boofus:
I was wrong, it isn't working :( After booting up I realised some things didn't work - no network (GSM/HSPA etc) connection, camera not working etc. I had flashed it over Lineage 14!

I tried again flashing over CM11 and left it 30 minutes, fell asleep and left it carrying on, battery was dead when I woke up (had been fully charged). Have charged it and it has booted up into CM11, so I guess there is a problem with what I am flashing it over? Can you point me at the image you're using from here? https://archive.org/download/cmarchive_snapshots/
[Motorola Photon Q 4G LTE] elros34:
I am using cm-11-20150626-SNAPSHOT-XNG3CAO1L8-moto_msm8960_jbbl.zip

What about this? "Running installation script" it's basically tar -xvjf command.
[Motorola Photon Q 4G LTE] klinglerware:
I am really enjoying using this image. It feels the most polished yet. I especially appreciate the integration of your PhotonQ helper.

I don't see any big problems so far. The one regression I see between 2.0 and 2.1 is that I have more difficulties with bluetooth pairing. I guess that this is an issue with 2.1 itself and not the adaptation, since this is also a problem with the OPX 2.1 adaptation that I use.
[Motorola Photon Q 4G LTE] elros34:
I also had problems with bluetooth pairing one day but after reboot I can't reproduce it now. Try restarting lipstick (shift + tab + k) or execute "/bin/sh /usr/bin/droid/droid-hcismd-up.sh".

I have added few properties from init.qcom.bt.sh to droid-hcismd-up.sh so it can also be a reason.

Maybe systemd-analyze plot could shed some light on it.
[Motorola Photon Q 4G LTE] klinglerware:
Thanks. I have noticed that I occasionally cannot turn bluetooth on. Rebooting fixes this.

Bluetooth pairing generally works--I've paired successfully to bluetooth headphones, speakers, and other mobile devices.

My main issue is trying to pair with car bluetooth. My car can successfully find my phone, but pairing fails. The pairing dialog screen (where you enter a four digit code generated by the car bluetooth) fails to come up on the phone.

Again, I think this is a problem with Iijoki. My Oneplus X with 2.1 has the same problem. This was not an issue with the 2.0 adaptations...
[Motorola Photon Q 4G LTE] elros34:
Dirty workaround for browser crash after watching video. It cause memory leak!
[Motorola Photon Q 4G LTE] boofus:
I tried this again having first factory reset, wiped data, and installed cm-11-20150626-SNAPSHOT-XNG3CAO1L8-moto_msm8960_jbbl.zip

It just keeps saying "Running installation script" until battery dies. When I ask twrp to copy logs to SD card all I have is a log file for open gapps install.

I am trying again now, this time I have wiped everything except SD card and am booting up CM before flashing sailfish...

---------- Post added at 11:47 AM ---------- Previous post was at 11:34 AM ----------

It works! Booting up now!

EDIT:

A few questions: Can I get it to switch orientation automatically when the keyboard is opened? I noticed that the shift key on the keyboard doesn't work. The camera doesn't seem to work with the normal app, I thought I saw a post saying this was working?

I haven't tested quite a lot of things yet, but it seems really good, very fast compared to android! Enjoying it, thank you.

EDIT2:

Ok, I got keyboard working properly with:

dconf write /desktop/lipstick-jolla-home/layout "'us'"

dconf write /desktop/lipstick-jolla-home/options "'grp: alt_shift_toggle'"

Camera plus also works, just not "camera", ok.

So now is there some way to make orientation work?

GPS is not working? And no whatsapp client :(

EDIT3:

Ok, so keyboard orientation works if you go in developer mode, set or at least get password, and in terminal do "devel-su" (maybe "su nemo" first?) then "systemctl-user enable photonq-helper" and "systemctl-user start photonq-helper".

GPS I think was just disabled.
[Motorola Photon Q 4G LTE] elros34:
Good to hear it!

Auto lock to landscape is builtin in photon q helper so if you have my latest image then it should works in 98% cases :P Open terminal, set UI Orientation to Auto in side menu then open keyboard. Does it works? Remember sailfish doesn't have landscape support enabled in phones so you need few patches from openrepos.net to make it work.

I have mapped caps lock to shift, shift to ctrl, and SYM to alt in /usr/share/X11/xkb/keycodes/evdev. If you want to change keyboard layout use Polish (/usr/share/X11/xkb/symbols/pl) as example because it has 4 levels keys (key, shift + key, alt + key, shift + alt + key). Additionally shift and alt are sticky.

Jolla camera should works if you have latest alpha2 image.

Edit: cat /usr/share/jolla-camera/pages/capture/CaptureView.qml | grep maximumFrameRate should print nothing.
[Motorola Photon Q 4G LTE] boofus:
Ah great, this makes sense. So it looks like everything is ok except I don't have the latest image installed. "cat /usr/share/jolla-camera/pages/capture/CaptureView.qml | grep maximumFrameRate" tells me 30 fps. Is it this one: https://xdaforums.com/showpost.php?p=72487881&postcount=126

I just looked and I do have the alpha 1 image on my SD card. Just downloaded alpha 2, will try it later.
[Motorola Photon Q 4G LTE] boofus:
Just installed alpha 2, and had none of the above problems, everything just works from the beginning! Love how fast this is, it feels like a new phone!

Is there a way to install android apps? I looked for aptoide in the jolla store but didn't find it. If I could install google maps and whatsapp it would be awesome!
[Motorola Photon Q 4G LTE] boofus:
So I like the default keyboard layout except I cant figure out where the single quote, pipe and squiggly brackets/braces are. The single quote on the keyboard produces a backtick, and the others I have no clue about.
[Motorola Photon Q 4G LTE] elros34:
I never cared about other layouts then pl so missing characters are probably not mapped. Switch to pl layout and it should works. Pipe is shift + alt + 1, brackets are under shift, alt + 9 / 0 combinations.

Feel free to improve layouts. They are in /usr/share/X11/xkb/symbols.

I will update us layout in next image.
[Motorola Photon Q 4G LTE] elros34:
Does anyone use xt907 daily with sailfish (download count is very low)? I am wondering whether I should try to split droid-*-moto_msm8960_jbbl or I shouldn't bother about it.
[Motorola Photon Q 4G LTE] boofus:
I am using it daily with xt897. I have mixed feelings about it to be honest, some of the apps crash sometimes but I have found that it's generally more responsive than android on this device. And I somewhat miss google navigate. I am not a very demanding user though.
[Motorola Photon Q 4G LTE] elros34:
If apps crash because OOM killer then you can try enable zram:

echo 600M > /sys/block/zram0/disksize
mkswap /dev/zram0
swapon -p 100 /dev/zram0

You can also create swap partition on sd card (I use it all the time) and it will be automatically used. Another option (dangerous for nand) would be using cache partition as a swap.

If you need navigation then there is active development on OSM Scout Server so it's worth a try.
[Motorola Photon Q 4G LTE] Galaxyninja66:
I am on the Sailfish OS 2.1 alpha build 2 on xt907, it runs really smoothly and everything works accept for the headphone jack.
[Motorola Photon Q 4G LTE] elros34:
Galaxyninja66, I you headphone doesn't work then pastebin logs:

evdev_trace
evdev_trace -t // plug in and out your headphones
[Motorola Photon Q 4G LTE] Galaxyninja66:
okay I will grab a log tonight. Sorry for the late reply, it didn't notify me. Use [MENTION=6359761]Galaxyninja66[/MENTION] next time

---------- Post added at 03:57 PM ---------- Previous post was at 03:43 PM ----------

okay, I took a look at the logs, and the device absolutely knows I am plugging my headphones in, it just wont reroute sound/mute speakers, so I am going to play some music and run evdev_trace -t while plugging them in and out, but first I will need to figure out how to get the out put off the device. I really wish you could just highlight the contents of the terminal and email them to yourself.
[Motorola Photon Q 4G LTE] Goodevil95:
[MENTION=7495219]elros34[/MENTION], Can I install android apps on this port?
[Motorola Photon Q 4G LTE] elros34:
No, only official devices have alien dalvik support.
[Motorola Photon Q 4G LTE] Galaxyninja66:
It is 100% possible to install alien dalvik on unofficial devices, but it is a pain. You need the aliendalvik rpm file, and a modified platform_extraenvsetup.sh for your device. elros is right though, using an official sfos device is a cake walk compared to the tinkering required with ports.
[Motorola Photon Q 4G LTE] elros34:
Alpha 3 release for xt897 and xt907

Changelog:

- low audio recording level in camera fixed

- build on OBS (small chance for OTA - only xt897)

- xkb layout for us ( F1-F12 => OK + {1-0,O,P}, PageUp/Down => OK + a/z)

If phone stuck in first boot with glowing LED just reboot it.

Problem with not working mp4 with aac mentioned here can be partially solved by my app orangeplayer.
[Motorola Photon Q 4G LTE] rahimali:
Somebody shared this on 4pda and posted a positive review (and screenies) as well. Apparently though the headphone jack is still not working. I've also added a mirror here.
[Motorola Photon Q 4G LTE] Galaxyninja66:
Excited to play around with this. I'll edit my comment with how it goes.

EDIT: So far so good, I have been using this since this morning, and it is now the afternoon. It was a bit jittery at first, it froze for a few seconds here and there, but I decided to give it a chance to settle and it seemed to stop after about 30 minutes or so of on and off usage. I am very pleased with this rom, everything seems to work perfectly on xt907 (just like alpha2, except now it's 2.1.3.7!!!). not to mention THE HEADPHONE JACK IS FIXED!

This is fantastic, and I think it's great that our device of all devices has one of the most stable and rock solid ports of sailfish OS around! I am sad however that the launcher combined patch stopped working in this build, but I think that has more to do with sfos 2.1.3.7 then this port itself. thanks to [MENTION=7495219]elros34[/MENTION], and hopefully we see more updates for this device! :D

---------- Post added at 10:21 PM ---------- Previous post was at 10:20 PM ----------

[/COLOR]

Theres a fix for the jack
[Motorola Photon Q 4G LTE] elros34:
[MENTION=6359761]Galaxyninja66[/MENTION], I have no idea about freezes but I suggest to always reboot after first boot (systemd races).

I used to use combined launcher patch too. Jolla constantly change ui code so patches need to be updated for evey new release, it's not related to port itself.
[Motorola Photon Q 4G LTE] Galaxyninja66:
I know I know, the freezes only lasted about 2 seconds, hangs more than anything, and they stopped after about 30 minutes or so, everything is absolutely PERFECT now. I also updated my index and rom link for the razr m.
[Motorola Photon Q 4G LTE] knmish:
I use some times this rom on my xt907, it works very nice.

But today I didnt connected to free wifi because on registration page I didnt have screen keyboard.
[Motorola Photon Q 4G LTE] elros34:
[MENTION=8861496]knmish[/MENTION]: blame jolla, I am not responsible for every bug in os:)

I fixed bug in fingerterm (for which I'm responsible), you can update package:

zypper ref # make sure elros34-sailfishapps repo is enabled

zypper in fingerterm
[Motorola Photon Q 4G LTE] elros34:
2.1.4.14 - First OTA release (only for photon q)

changelog:

- proper fix for video crash in browser

How to update:

#make a backup using TWRP
#unapply all patches
RELEASE=2.1.4.14
ssu release $RELEASE
ssu ar elros34-sailfishapps http://repo.merproject.org/obs/home:/elros34:/sailfishapps/sailfishos_$RELEASE/
ssu lr
# ^ double-triple check that no -two- enabled repos point to the same URL

# You may have many of OpenRepos enabled. It's recommended to disable them, even
# though version --dup will do its best-effort to isolate repositories:
ssu lr | grep openrepos | cut -d" " -f3 | xargs -I {} ssu dr {$1}
ssu lr

devel-su zypper clean -a
devel-su zypper ref -f

version --dup
# if above fails, try again
# version --dup
sync

devel-su /usr/share/sfos-moto_msm8960_jbbl-adaptation/moto_msm8960_jbbl.sh

reboot

I also updated my sailfishos-old-cover-patch for 2.1.4.14. There are still some random swipe steals but I think it's related to bug in qml itself so I am releasing it anyway.
[Motorola Photon Q 4G LTE] Galaxyninja66:
Argh the Italian Post is so slow and lazy, I can't wait for my Photon Q to get here
[Motorola Photon Q 4G LTE] Ginosius:
So how does it compare to the original jolla 1 in terms of performance?
[Motorola Photon Q 4G LTE] Galaxyninja66:
Based on what I am seeing, its much better. I have never owned a Jolla 1 and the only downside is the lack of aliendalvik (for now ha ha ha), but afaik its really really bad on the jolla 1, drains battery, heats up, lags, force closes, etc. but don't worry, there are people busy trying to get AD working :good:
[Motorola Photon Q 4G LTE] boofus:
Offtopic: My photon q died horribly... screen cable is completely dead. With no other reasonable keyboard phones available, I am wondering whether to get another one and SIM mod it rather than replacing the cable, as I think performance of mine was always killed by the slow flash. But it seems very hit and miss finding one with a fast flash chip.

Ontopic: Is there really a likelihood of getting alien dalvik working on the photon Q? I would be far more interested in getting a replacement if I can run sailfish and have android apps (whatsapp and pebble, primarily).