maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus5 based on CM13 alpha release (https://talk.maemo.org/showthread.php?t=99377)

mautz 2017-10-12 18:27

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Build 0.1 and 0.4 are basically the same, the only difference is that one package was added, which fixes the missing keyboards after installation.

So, a
Code:

pkcon install patterns-sailfish-consumer-generic
in terminal, will give you build 0.4.

mautz 2017-10-21 23:12

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
1 Attachment(s)
I stumbled upon this post on TJC about wifi tethering on Xperia X. After some testing and modyfing of the script by joschobart, i think we finally got working wifi tethering on the Nexus 5.

For any one willing to try download or grab the attachment and remove the txt extension.

Do not copy and paste the script from the code box!
It's just there so that you can see what you get :rolleyes:

Code:

#!/bin/bash

##Original script by joschobart can be found here: https://together.jolla.com/question/170006/xperia-x-wlan-sharing-not-working/ ##

if [ "$EUID" -ne 0 ]
  then echo "Please run as root (type devel-su first)"
  exit 1
fi

if [[ $1 == "off" ]]; then
  echo "Switch Tethering off..."
  /bin/dbus-send --print-reply --type=method_call --system --dest=net.connman /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:false > /dev/null 2>&1
  sleep 1
  echo 0 > /sys/module/bcmdhd/parameters/op_mode
  /bin/dbus-send --print-reply --type=method_call --system --dest=net.connman /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:true > /dev/null 2>&1
  sleep 1
  ifconfig wlan0 down
  ifconfig wlan0 up
  systemctl restart connman
  echo "...Tethering should be turned off now"
  exit 0
elif [[ $1 == "on" ]]; then
  echo "Switch Tethering ON.."
  /bin/dbus-send --print-reply --type=method_call --system --dest=net.connman /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:false > /dev/null 2>&1
  sleep 1
  echo 2 > /sys/module/bcmdhd/parameters/op_mode
  sleep 1
  echo "Now enable hotspot (\"Settings > Internet sharing\")"
  read -p "Done with the instruction above? Then press [Enter] to continue..."
  ip link set dev wlan0 master tether
  sleep 1
  echo "Enjoy tethering on your Nexus5 ;)"
  exit 0
else
  echo "USAGE: $0 <on><off>"
  exit 1
fi

then make the file executable:
Code:

chmod +x hotspot.sh
.

To turn on tethering run
Code:

devel-su ./hotspot.sh on
and follow the instructions. Please wait until the Hotspot enable button stops blinking until you proceed.

To stop tethering
Code:

devel-su ./hotspot.sh off
should be enough.

claustn 2017-10-22 07:49

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Does it work even on older version of Sailfish? I'll try later on :)

claustn 2017-10-22 19:27

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
1 Attachment(s)
It works!
but...it doesn't find net.connman when activating it and afterwards I cannot turn the wifi on anymore, after deactivating it. Even restarting network connections with Utilities didn't work, a reboot was needed.
Btw, better than nothing :D on Sailfish 2.0.4.13
P.s.: someone has to update the wiki https://wiki.merproject.org/wiki/Adaptations/libhybris

mautz 2017-10-22 19:39

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Have you downloaded the hotspot.sh file or created your own one with the content i posted? Line 30 and 31 don't contain the parts, you get as an errors, maybe something went wrong while copying and pasting....could you try to download the file?

claustn 2017-10-22 20:35

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Quote:

Originally Posted by mautz (Post 1537476)
Have you downloaded the hotspot.sh file or created your own one with the content i posted? Line 30 and 31 don't contain the parts, you get as an errors, maybe something went wrong while copying and pasting....could you try to download the file?

Ok script downloaded and now works without issues! I think it was a problem of copying and pasting to the terminal via ssh.
Good job :)

mautz 2017-10-22 20:43

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Did you test it on cm12.1 or cm13?

claustn 2017-10-22 20:48

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Still on CM12.1 because CM13 lacks video recording and sfdroid.

mautz 2017-10-22 20:53

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Nice to know it also works on cm12.1.

mautz 2017-10-23 18:56

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Have you tried reinstalling it? And you don't need to boot into cm.


All times are GMT. The time now is 13:41.

vBulletin® Version 3.8.8