SailfishOS 2.0 on RAZR HD

vevgeniev

Senior Member
Feb 20, 2015
65
38
0
Pernik
www.vladislavonline.com
  • Like
Reactions: JoseBerga

drkdeath5000

Senior Member
Jan 17, 2010
332
21
0
The Photon Q and RAZR M folk seem to have it working well so in theory it should work fine on our RAZR HDs but i've tried on numerous occasions and have been unable to get Sailfish to boot on my RAZR HD (xt926). CM11 will boot up fine but Sailfish wont boot past the bootloader unlocked screen. Really i cant understand it as they are essentially the same devices, there is very little differences between them hardware wise and i've flashed many photon and razr m roms on my hd before now. If anyone figures it out please let me know as id love to give Sailfish a try.
https://forum.xda-developers.com/photon-q-4g-lte/general/sailfishos-2-0-motorola-photon-q-t3281262
https://forum.xda-developers.com/photon-q-4g-lte/general/sailfishos-3-photon-q-t3870979

UPDATE:

I finally got this to work on my XT926 thanks to the help of a @elros34 It turned out to be quite a simple fix in the end which involves telnetting to the device and changing the touch screen driver.

To summarise the process:

1) Firstly you need to be on jellybean bootloader
2) This step might be unecessary but since technically this is a XT907 ROM i flashed TWRP 3.0.2-1 for the XT907. Link is here https://forum.xda-developers.com/droid-razr-m/general/recovery-t3614899
3) Download and flash cm-11-20150626-SNAPSHOT-XNG3CAO1L8-moto_msm8960_jbbl.zip https://archive.org/download/cmarch...626-SNAPSHOT-XNG3CAO1L8-moto_msm8960_jbbl.zip
4) Download and flash the sailfish zip for the xt907 https://forum.xda-developers.com/showpost.php?p=75093335&postcount=156
5) Reboot and wait a good 10 mins. You should eventually see a red or orange led with a black screen which indicates sailfish is trying to boot.
6) At this point you need to reboot to TWRP and issue the following command. Note i did this using the adb shell but you could do the same using the TWRP terminal
Code:
rm /data/.stowaways/sailfishos/init_disable_telnet
7) Now that telnet is enabled you need to reboot and telnet to the device using a linux or windows machine connected through usb, you might have to reboot several times until telnet connects. Note i used putty under windows but you could use the standard linux or windows terminal as long as you have telnet installed and enabled.
Code:
telnet 192.168.2.15 2323
8) Once your in through telnet cd to the following directory
Code:
/var/lib/environment/compositor
and edit the following file using vi
Code:
vi droid-hal-device.conf
. Enter insert mode using "i" and change "/dev/touchscreen" to "/dev/input/event1". Exit insert mode using "esc". save the file using ":wq" and reboot.
9) Result Sailfish should boot correctly.
 
Last edited:

elros34

Senior Member
May 25, 2016
91
53
18
Telnet is only needed for debugging so simplified instruction could be:
...
4) Flash sailfish
5) As a root in TWRP:
Code:
/system/xbin/sed -i 's!/dev/touchscreen!/dev/input/event1!' /data/.stowaways/sailfishos/var/lib/environment/compositor/droid-hal-device.conf