SailfishOS 2.0 for the Touchpad

Search This thread

John944S2

Senior Member
May 15, 2015
114
44
Schieder-Schwalenberg
Hello guys!

Now that Jolla gave us Sailfish 2.0 (which should fit nicely for the Touchpad because of proper landscape mode), I decided to start porting it to the Touchpad.

So I am currently following the hadk guide (https://sailfishos.org/develop/hadk/).

Now I have a problem, maybe someone can help me out with.
In the guide on page 16, I have to create a manifest file with references to cyanogen source and kernel source.
The file which I created looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/hp/tenderloin" name="CyanogenMod/android_device_hp_tenderloin" revision="cm-11.0" />
<project path="kernel/hp/tenderloin" name="invisiblek/android_kernel_hp_tenderloin" revision="cm-11.0" />
</manifest>

I chose the invisiblek kernel (https://github.com/invisiblek/android_kernel_hp_tenderloin/tree/cm-11.0), but I don't know if this is the right one. I would like to use the 3.4.106-tenderloin from jcsullins but I can't find it on github.
Also I get an error when trying to sync:
Code:
error: in `sync --fetch-submodules`: revision cm-11.0 in invisiblek/android_kernel_hp_tenderloin not found
:confused::confused:
 

John944S2

Senior Member
May 15, 2015
114
44
Schieder-Schwalenberg
OK, after hours of googling I found the github repositories of @jshafer817 (he ported sailfish successfully to the Touchpad).
So I took the manifest file from here https://github.com/jshafer817/SailFishOS.
And then doing
Code:
repo sync --fetch-submodules
This resulted in downloading several thousand files.
After half an hour or so I get the following error:
Code:
error: in `sync --fetch-submodules`: revision refs/tags/cm-11.0-XNPH44S-bacon-5fa8c79c0b in cyngn/android_vendor_cyngn not found
It seems that this repo is missing (http://forum.cyanogenmod.org/topic/116446-android-vendor-cyngn-deleted-from-github-page/).
No idea how to fix this :(.

By the way, am I the only one who would like to see Sailfish 2.0 on the Touchpad?
 

jshafer817

Senior Member
Jul 11, 2010
386
483
NRH, TX.
www.onsitedentalsystems.com
:fingers-crossed:
This is cool! Really exiting, can't wait for it...
I gave up on it, but I know you can do it :good:!!

If I can be of any help, let me know!!

You got stuck on something, I think it was the wireless modules in boardconfig.mk, sfos can't compile those on the fly, so just remove from BoardConfig.mk

I have a rootfs built, I can usb into it... but... something is wrong. Gonna go on irc. I am using the 3.0 kernel this time, instead of 3.4.... so... who knows.
 

John944S2

Senior Member
May 15, 2015
114
44
Schieder-Schwalenberg
You got stuck on something, I think it was the wireless modules in boardconfig.mk, sfos can't compile those on the fly, so just remove from BoardConfig.mk

I have a rootfs built, I can usb into it... but... something is wrong. Gonna go on irc. I am using the 3.0 kernel this time, instead of 3.4.... so... who knows.

Hopefully, there are some devs left at Jolla to help you out...
 

jshafer817

Senior Member
Jul 11, 2010
386
483
NRH, TX.
www.onsitedentalsystems.com
Hopefully, there are some devs left at Jolla to help you out...

I have graphics up! that is the hardest part... Should have something in a couple of days to share.

I forgot I had to do this last time..

system.mount needs to be changed from /dev/store/cm-data to /dev/dm-10 for /system to mount, not to mention changing the init in ramdisk for lvm

Edit: Bugging IRC on how to get thing to do TRUE landscape mode.
 
Last edited:
  • Like
Reactions: blmvxer

John944S2

Senior Member
May 15, 2015
114
44
Schieder-Schwalenberg
I have graphics up! that is the hardest part... Should have something in a couple of days to share.

I forgot I had to do this last time..

system.mount needs to be changed from /dev/store/cm-data to /dev/dm-10 for /system to mount, not to mention changing the init in ramdisk for lvm

Edit: Bugging IRC on how to get thing to do TRUE landscape mode.

Sounds like you are making good progress :good:.
I thougt Sailfish 2.0 does true landscape mode by default, because of the Jolla tablet?
 

blmvxer

Senior Member
Jan 13, 2012
1,480
607
Excited! I haven't used sailfish in awhile! I'll definitely do some application modding once the build is up!
 

jshafer817

Senior Member
Jul 11, 2010
386
483
NRH, TX.
www.onsitedentalsystems.com
Excited! I haven't used sailfish in awhile! I'll definitely do some application modding once the build is up!

I now have wifi working... and it boots everytime. Right now the goal is, get the new sensor service up and running, and see how rotation, landscape, etc is working.

Might use PowerMenu2 or some patch in openrepos... There is also some line you can change from > Medium.Screen to Small.Screen, stuff like that.

If this does not fly, I might just use a portrait rom, and see how that flies, with rotation. Closer.
 

blmvxer

Senior Member
Jan 13, 2012
1,480
607
I now have wifi working... and it boots everytime. Right now the goal is, get the new sensor service up and running, and see how rotation, landscape, etc is working.

Might use PowerMenu2 or some patch in openrepos... There is also some line you can change from > Medium.Screen to Small.Screen, stuff like that.

If this does not fly, I might just use a portrait rom, and see how that flies, with rotation. Closer.

If you would like to upload what you have working I can start modifying the launcher and see if I can't get it working. I still have the patched version of powermenu 2 in my github which fixed the top border.
 

jshafer817

Senior Member
Jul 11, 2010
386
483
NRH, TX.
www.onsitedentalsystems.com
I now have wifi working... and it boots everytime. Right now the goal is, get the new sensor service up and running, and see how rotation, landscape, etc is working.

Might use PowerMenu2 or some patch in openrepos... There is also some line you can change from > Medium.Screen to Small.Screen, stuff like that.

If this does not fly, I might just use a portrait rom, and see how that flies, with rotation. Closer.

I should have something to upload soon. I saw your powermenu something.. somewhere... Sensor should be easy, sound should be easy... once those are working, I will upload and then we can play. Regardless if rotation or landscape is working... I figure they won't rotate until the sensor service works... I tried powermenu2 and some patch, but it doesn't seem to work....
 

jshafer817

Senior Member
Jul 11, 2010
386
483
NRH, TX.
www.onsitedentalsystems.com
Last edited:

blmvxer

Senior Member
Jan 13, 2012
1,480
607

blmvxer

Senior Member
Jan 13, 2012
1,480
607
I have about 1 1/2hrs until I'm off work and then I can start messing around with rotation issues.
 

John944S2

Senior Member
May 15, 2015
114
44
Schieder-Schwalenberg
Temporary:
CM11 https://drive.google.com/file/d/0B0ERXWZfh_RJclhfcFNHVnlQN2M/view?usp=sharing
SF2 https://drive.google.com/file/d/0B0ERXWZfh_RJbWZuV2JZX2hIaEU/view?usp=sharing

Hardware works.
Orientation still needs work (as promised)...might compile as portrait and then try to rotate??
codecs still need to be done, gst-droid is in...

Give it a try. Might need to set the dpi....

Thank you so much :good:!! I flashed it couple of minutes ago and it works fine in portait mode.
First thing I noticed, the browser isn't starting.

I am now giong to test my apps.
 

blmvxer

Senior Member
Jan 13, 2012
1,480
607
Thank you so much :good:!! I flashed it couple of minutes ago and it works fine in portait mode.
First thing I noticed, the browser isn't starting.

I am now giong to test my apps.

Go to settings - display - and change from dynamic to portrait and the browser will work.

Also @JSHAFfer do you have a github up where I can see the source for the rotation services?
 

John944S2

Senior Member
May 15, 2015
114
44
Schieder-Schwalenberg
Go to settings - display - and change from dynamic to portrait and the browser will work.

Also @JSHAFfer do you have a github up where I can see the source for the rotation services?

Ok, the browser now starts, but it is not really usable. Every user input causes strange behaviour.
Bigger problem is I can't install any RPM. I get an error that libsailfishapp.so.1 is missing.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Fixed headphone jack

    Hello guys,
    I don't know if someone is still using SFOS on the Touchpad but at least I still do :).

    Finally I managed to fix the headphone jack. Here is a little howto.
    My sources:
    http://xdaforums.com/showpost.php?p=66830214&postcount=251
    http://xdaforums.com/showpost.php?p=66190892&postcount=145
    https://together.jolla.com/question/56413/an-app-to-manually-switch-audio-output-from-headphones-to-speaker/

    First, we need a file named "headphonejack" and place it in directory /usr/bin/:
    Code:
    #!/bin/bash
    # This script listens on input event5 for headphone jack insert/pull out events.
    # If such an event is detected, the appropriate command is given.
    while true; do
      cmd=`/usr/bin/hexdump -n 14 /dev/input/event5 | /bin/cut -c41-42`
      if [ "$cmd" = "01" ]; then
        pactl set-sink-port sink.primary output-wired_headset
      fi
      if [ "$cmd" = "00" ]; then
        pactl set-sink-port sink.primary output-speaker
      fi
    done

    Now a second file named "headphonejack.service" and place it in "/etc/systemd/user/":
    Code:
    [Unit]
    Description=Headphone jack daemon
    After=user-session.target
    
    [Service]
    ExecStart=/bin/bash /usr/bin/headphonejack
    
    [Install]
    WantedBy=post-user-session.target

    Then we make the first file executable:
    Code:
    chmod a+x headphonejack
    And now we restart the device or start the daemon manually:
    Code:
    systemctl-user enable headphonejack

    Should work now ;)
    3
    Hello guys!

    Now that Jolla gave us Sailfish 2.0 (which should fit nicely for the Touchpad because of proper landscape mode), I decided to start porting it to the Touchpad.

    So I am currently following the hadk guide (https://sailfishos.org/develop/hadk/).

    Now I have a problem, maybe someone can help me out with.
    In the guide on page 16, I have to create a manifest file with references to cyanogen source and kernel source.
    The file which I created looks like this:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
    <project path="device/hp/tenderloin" name="CyanogenMod/android_device_hp_tenderloin" revision="cm-11.0" />
    <project path="kernel/hp/tenderloin" name="invisiblek/android_kernel_hp_tenderloin" revision="cm-11.0" />
    </manifest>

    I chose the invisiblek kernel (https://github.com/invisiblek/android_kernel_hp_tenderloin/tree/cm-11.0), but I don't know if this is the right one. I would like to use the 3.4.106-tenderloin from jcsullins but I can't find it on github.
    Also I get an error when trying to sync:
    Code:
    error: in `sync --fetch-submodules`: revision cm-11.0 in invisiblek/android_kernel_hp_tenderloin not found
    :confused::confused:
    3
    OK, after hours of googling I found the github repositories of @jshafer817 (he ported sailfish successfully to the Touchpad).
    So I took the manifest file from here https://github.com/jshafer817/SailFishOS.
    And then doing
    Code:
    repo sync --fetch-submodules
    This resulted in downloading several thousand files.
    After half an hour or so I get the following error:
    Code:
    error: in `sync --fetch-submodules`: revision refs/tags/cm-11.0-XNPH44S-bacon-5fa8c79c0b in cyngn/android_vendor_cyngn not found
    It seems that this repo is missing (http://forum.cyanogenmod.org/topic/116446-android-vendor-cyngn-deleted-from-github-page/).
    No idea how to fix this :(.

    By the way, am I the only one who would like to see Sailfish 2.0 on the Touchpad?
    3
    This sounds intriguing. I'd be willing to try this out, but as inexperienced as I am with flashing stuff to the TP I'd need a step-by-step guide. Are any of you guys working on such at the moment? I'll help test it.

    ---------- Post added at 05:04 PM ---------- Previous post was at 05:02 PM ----------

    Also what can be run on SailFishOS? all I'd really want media players and maybe a browser for FaceBook and stuff.

    OK, here is the guide:
    - first go here: http://xdaforums.com/hp-touchpad/help/rom-guide-how-to-install-android-4-4-x-t2912820
    - follow the steps all the way to 5A (I decided to ditch webOS in step 2). Don't go further, last step is 5A!!!
    - go on "Resize Android Volumes" in TPToolbox and give 1.5Gb to system, 1.0Gb to cache, and 8.0Gb to data.
    - now, reboot and choose "webOS recovery mode" from boot menu
    - go here and download clockworkmod https://www.androidfilehost.com/?fid=23610159112654009
    - unzip the files to a folder. Go to your system terminal (I hope you use linux :D) and load CWM to the Touchpad with:
    Code:
    novacom boot mem:// < uImage.ClockworkMod
    - then you download the two zip files from this thread (I currently use the ones from post #15)
    - now you push the three zip files to the Touchpad (CWM, cm11 and SF2)
    Code:
    adb push filename_of_zip /sdcard/
    - reboot the Touchpad and you will find Sailfish in the boot menu

    Report back if you achieved this and you will get further advice...
    2
    Temporary:
    CM11 https://drive.google.com/file/d/0B0ERXWZfh_RJclhfcFNHVnlQN2M/view?usp=sharing
    SF2 https://drive.google.com/file/d/0B0ERXWZfh_RJbWZuV2JZX2hIaEU/view?usp=sharing

    Hardware works.
    Orientation still needs work (as promised)...might compile as portrait and then try to rotate??
    codecs still need to be done, gst-droid is in...

    Give it a try. Might need to set the dpi....