yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] vetzki:
is there a way to get a better terminal? especially one where select and copy text is less psin in the ass?

Also is there a browser which allows to select and copy text?
[Nexus 4 Android Development] bolek1337:
There's some modified versions of fingerterm out there in the wild, some are slightly better, not sure if there's one with better copy-paste.

SFOS 2.1 comes with copy-paste in the native browser. Stay tuned!
[Nexus 4 Android Development] vetzki:
another question, how to remove orphaned packages? (like apt-get autoremove?)

best regards,
[Nexus 4 Android Development] Kubino:
https://forums.opensuse.org/showthread.php/519895-Zypper-Equivalent-for-apt-get-autoremove
[Nexus 4 Android Development] vetzki:
My zypper supports neither --unneeded nor --orphaned

Last login: Sat Mar 25 13:20:14 2017 from 192.168.178.25
NOTICE: Env value ignored HYBRIS_LD_LIBRARY_PATH=/usr/libexec/droid-hybris/system/lib:/vendor/lib:/system/lib
,---
| SailfishOS 2.0.5.6 (Haapajoki) (armv7hl)
'---
[nemo@Sailfish ~]$ devel-su
Password:
[root@Sailfish nemo]# echo "ssh_wake" > /sys/power/wake_lock
[root@Sailfish nemo]# zypper pa --unneeded
Unknown option '--unneeded'
[root@Sailfish nemo]# zypper pa --unneeded
Unknown option '--unneeded'
[root@Sailfish nemo]# exit
[nemo@Sailfish ~]$ zypper pa --orphaned
Unknown option '--orphaned'
[nemo@Sailfish ~]$ zypper help pa
packages (pa) [options] [repository] ...

List all packages available in specified repositories.

Command options:

-r, --repo <alias|#|URI> Just another means to specify repository.
-i, --installed-only Show only installed packages.
-u, --uninstalled-only Show only packages which are not installed.
-N, --sort-by-name Sort the list by package name.
-R, --sort-by-repo Sort the list by repository.

I uninstalled with warehouse uninstall button, so zypper rm --clean-deps package isnt possible

here are some of the unneeded dependencies which got installed, but not uninstalled after removing package (was "patchmanager2" and "droplet")

rpm -qa --last | head -n 30
perl-threads-1.86-1.1.28 Sat Mar 25 15:06:18 2017
perl-Filter-1.40-1.1.28 Sat Mar 25 15:06:18 2017
perl-threads-shared-1.40-1.1.28 Sat Mar 25 15:06:17 2017
perl-parent-0.225-1.1.28 Sat Mar 25 15:06:13 2017
perl-Pod-Perldoc-3.17.00-1.1.28 Sat Mar 25 15:06:13 2017
perl-Pod-Parser-1.51-1.1.28 Sat Mar 25 15:06:13 2017
perl-Socket-2.001-1.1.28 Sat Mar 25 15:06:12 2017
perl-Module-Pluggable-4.00-1.1.28 Sat Mar 25 15:06:12 2017
perl-Scalar-List-Utils-1.25-1.1.28 Sat Mar 25 15:06:11 2017
perl-Pod-Simple-3.20-1.1.28 Sat Mar 25 15:06:11 2017
perl-Pod-Escapes-1.04-1.1.28 Sat Mar 25 15:06:11 2017
perl-5.16.1-1.1.28 Sat Mar 25 15:06:09 2017
perl-libs-5.16.1-1.1.28 Sat Mar 25 15:05:50 2017
perl-macros-5.16.1-1.1.28 Sat Mar 25 15:05:46 2017
patch-2.7.5+git1-1.2.2 Sat Mar 25 15:05:45 2017
groff-1.18.1.4-1.1.19 Sat Mar 25 15:05:45 2017
libsailfishapp-launcher-1.0.12-10.9.1.jolla Sat Mar 25 14:59:27 2017
Messwerk-0.2-1 Sat Mar 25 12:35:59 2017
systemdatascope-0.4.0-1 Sat Mar 25 09:36:11 2017
collectd-5.5.0.git.2016.09.19-1 Sat Mar 25 09:36:03 2017
rrdtool-1.5.6-3 Sat Mar 25 09:36:02 2017
python-libs-2.7.9-1.3.8 Sat Mar 25 09:35:54 2017
python-2.7.9-1.3.8 Sat Mar 25 09:35:50 2017
libkeepalive-glib-1.3.8-1.10.3 Sat Mar 25 09:35:50 2017
gdbm-1.8.3-1.1.4 Sat Mar 25 09:35:49 2017
harbour-warehouse-0.3-30 Sat Mar 25 09:29:06 2017
...
[Nexus 4 Android Development] matusala:
devel-su pkcon remove "package name"
[Nexus 4 Android Development] rinigus:
When I was looking for it, I couldn't find any "autoremove" alternative. Not sure whether I tried zypper (unneeded), but I basically had to give up after searching around in SFOS and RPM-world forums. Was thinking on trying to make some solution like porting apt-get (apt-rpm?), but never took time for it. I am afraid you would have to remove packages manually.
[Nexus 4 Android Development] vetzki:
sometimes I have problems with sensors (sensors.qcom and sensorfwd), which results in much higher cpu usage (both almost 10%) then normal (both about 1%).

Does anyone have the same problem or is there a way to fix this ?

sorry for bad english
[Nexus 4 Android Development] vetzki:
Another question, is this purple flashing "led" the proximity sensor ?

Only visible if I use camera or film with another phone

I added a zipped mp4 video to show what I mean
[Nexus 4 Android Development] radbme:
Hey all! How's the 2.1 build coming along? I'm pretty excited about it.
[Nexus 4 Android Development] bolek1337:
Great! I'll try to make a build soon, want to be an early tester?
[Nexus 4 Android Development] radbme:
Of course!
[Nexus 4 Android Development] Kubino:
I want to be an early tester too. ;)

yesterday I reboot my phone after 26 days uptime and the bug with 25% cpu usage in sleep is back. I think that is caused by sensors because before reboot didn't work dynamicly turning screen by sensor (I think that turning screen stopped work since when the bug with cpu usage was gone).

In Czech: včera jsem restartoval můj mobil po 26 dnech uptime a ten problém s 25% vytížením procesoru ve spánku je zpátky. Myslím, že je to způsobeno senzory protože před restartem nefungovalo dynamické otáčení displeje podle senzoru. A to dynamické otáčení přestalo fungovat v době, kdy zmizel ten problém s vytížením procesoru ve spánku.
[Nexus 4 Android Development] bolek1337:
I updated the configs for 2.1.0.11, and pushed the built droid-hal packages out, but we need to wait until build.merproject.org adds 2.1.0.11 as a target. Currently the builds fail on the last available target - 2.1.0.9 - due to missing some Qt dependencies.
[Nexus 4 Android Development] nexus4still:
Is there a TCP settings for sailfish? VPN from android is not working with SF 2.0, ive tried securefishnet and openvpn rig but I cannot get them to work...
[Nexus 4 Android Development] retro486:
Out of curiosity, is 2.1.x still based on CM11 sources?
[Nexus 4 Android Development] matusala:
I have got it working. I just install openvpn with command "devel-su pkcon install openvpn" and use my generated client files in securefishnet. it works pretty well. Had not problem i have set up openvpn 6 or 7 times on my two nexus 4s and nexus 5
[Nexus 4 Android Development] nexus4still:
how to generate these files from securefish? ive installed it but im not sure where to locate the files for it to work?
[Nexus 4 Android Development] matusala:
When you use VPN you have to have VPN server. I have mine on my laptop and that's where you generate files for your clients. Then you copy those client files on your phone and use them in securefishnet.

I have 6 clients on my VPN server. 3 phones (SFOS phones nexus 4s and nexus 5), 1 work PC, 1 friends PC and 1 raspberry pi.
[Nexus 4 Android Development] nexus4still:
what im using is just Hammer VPN from playstore that works when im in android os. it directs to a different TCP address that i specify, which I dont see here in sfos. i dont really have to use my sfos on any work related topics, if theres only a tcp settings that we can tweak...
[Nexus 4 Android Development] Warburgia:
sfdroid on Nexus 4 Sailfish OS 2.0.5.6

Was this answered? I seem to have the same problem on my Nexus 4 - the only thing that I may have done non-standard was to install the sfdroid-mako-for_cm11.zip from TWRP before I installed pkcon SDL2 in Terminal (I have tried reflashing the zip, no change)
[Nexus 4 Android Development] preflex:
Is there any way to get LTE working on Sailfish OS?

EDIT: I answered my own question.

This worked for me:

Use hybrid radio 33-107 from http://bit.ly/makostuff

Set enable4G=true in /etc/ofono/ril_subscription.conf
[Nexus 4 Android Development] ddaggebi:
May I causiously ask about the process of development? I am always eager about new SFOS versions, sorry...
[Nexus 4 Android Development] Jorge R:
"50 years have passed.....

....And did not release the new version"

[IMG="samurai sailfish"]http://i.imgur.com/4cwuL6f.jpg[/IMG]
[Nexus 4 Android Development] rinigus:
For those using Nexus 4 on SFOS, I would suggest to take the porting into your own hands. In general, state of the port is good and it should relatively simple to get it running on 2.1.x. I have not been working on the port and following its progress for about 6-9 months, so I might have missed something. Reasons are simple: I moved to onyx and I don't think ballock is using N4 as a primary device either.

To start porting yourself is simple:

* Get Sailfish HADK, read it (no need to remember anything, just look through)

* Ask on the porters IRC channel (#sailfishos-porters freenode) what's the state of the port. If no-one knows, tell that you want to make an update. Ask where can you get latest sources.

* Start following HADK instructions taking into account that many things have been taken care of in the sources already. Just check that all is fine

* When you get problem, ask IRC. They will forward you to Porters FAQ.

* When getting problem that's not covered in FAQ, ask on IRC again

* Flash and test your port, distribute your work when ready

In general, IRC channel is exceptionally good and friendly. People are polite and help you out regardless to your level - beginners are very well educated there.

So, in short, if you want to use N4 with updated SFOS, please start working on the port.
[Nexus 4 Android Development] justmix4:
Deleted.
[Nexus 4 Android Development] Kubino:
Did someone try to use HADK for porting Sailfish 2.1 to Nexus 4?
[Nexus 4 Android Development] bolek1337:
Keep them coming, that's the third request. If I get enough feedback on how much you like the port, all the effort put into it and all, I might consider the time spent doing that worth it.

That's the other way to take. This one is nicer - you get the experience, you can release any new version without delay, you can even build a pre-release version to find the new and fancy features that nobody else has!

And true, Mako due to its lack of full-range LTE (and a shattered screen) is not my primary device any longer. I can give a hand, especially on the #sailfishos-porters Freenode IRC channel, or I can even hand over the maintainership. PROTIP: Use a persistent IRC client, one that you can leave open and collect response on the following day.
[Nexus 4 Android Development] preflex:
I've been using it as a daily driver on my mako all year. An update would be great. I'd take a stab at it myself, but just downloading all the CM sources would chew up all of my data allowance for the month. My USB doesn't work for data either, which would make things tricky.
[Nexus 4 Android Development] Veraendert:
I just wanted to say thanks for this beautiful software. I hope someone finds the time to update.
[Nexus 4 Android Development] preflex:
I'll have access to unmetered internet this weekend, so I'll try to scrape up the sources and take a stab at it.

I've tried to build SFOS once before, but I couldn't get past the kernel-checker. Hopefully, I'll have better luck this time.
[Nexus 4 Android Development] rinigus:
RE kernel checker: check out ballock's repos https://github.com/ballock for N4 port. He should have settings all fine. My latest builds had undervolting enabled for the kernel at https://github.com/rinigus/android_kernel_google_msm which worked quite fine, as much as I could tell. With the configurations, check whether the correct one is loaded. As far as I remember, CM build wanted to load cyanogen_mako_defconfig instead of mako_defconfig. That's why I had corresponding symbolic link at https://github.com/rinigus/android_kernel_google_msm/tree/hybris-12.1/arch/arm/configs .

The latest working release was against CM11 and I would suggest to stick to it. CM12.1 was almost working (except selfie camera), but it required larger patching of the base.

Great to hear that you want to try. If you get into any trouble, ask on IRC.
[Nexus 4 Android Development] preflex:
That worked. Thanks!

Also, i had to comment out

# this allows us to disable 4G on mako through config in sparse
Provides: ofono-configs
Obsoletes: ofono-configs-mer

in droid-config-mako.spec in order to run build_packages.sh. I'm not sure what the impact will be, but I don't need to disable 4G, since I use hybrid modem, otherwise I'd just need to re-enable it.

Anyway, I'm slowly making progress. With a little luck, I'll have a zip ready for testing this weekend.
[Nexus 4 Android Development] ddaggebi:
This weekend? This is fast... You should take your time :) Thanks for your commitment!

Just a quick question. Which version will the release have?
[Nexus 4 Android Development] preflex:
The timeframe is just a guesstimate based upon how much is left to do and my general rate of progress. It might take longer. I said i'd need luck. ;)

I'm targeting the current release: 2.1.0.11.
[Nexus 4 Android Development] rinigus:
Without disabling 4G on devices that don't have it, there were multiple issues with the mobile network. As far as I remember, even if you select 3G in configs it didn't stick properly. You would have to enable it somehow and, I think, it was relatively simple. Most probably the scheme is known and IRC would help you out on it.
[Nexus 4 Android Development] ddaggebi:
Giant leap in versions :)

Please, take your time. I really appreciate guys like you who still develop things for this 4yo phone. I changed from 6p to N4 because of circumstances, and I don't need android apps anymore. Latest SFOS will be perfect.

---------- Post added at 08:19 AM ---------- Previous post was at 08:03 AM ----------

Ah, and one more question to this community. Can't we do anything about jolla-xt9? I need it for my native language(Korean) keyboard, and also for (english) keyboard prediction. But it was removed in latest releases because of licensing issues from what I've heard. Is there any way to get it working again or is there any alternatives to it?
[Nexus 4 Android Development] preflex:
Is there any reason users with devices that don't have 4G can't install the hybrid modem to enable it? I'd prefer not to hack around this.

I'm currently stuck on a missing package for geoclue-providers-hybris, and building it chokes on a missing locationservices.h. Looking at the IRC logs, I noticed Matemana had the same problem a few months ago: http://www.merproject.org/logs/#sailfishos-porters/#sailfishos-porters.2017-03-24.log.html . However, I think I'm done with this for today. If I can't make sense of the logs, I'll pm him or ask #sailfishos-porters in the morning.
[Nexus 4 Android Development] rinigus:
As far as I remember, the fix was simple, much simpler than starting to flash hybrid modem. But you could surely do it later, when you get to the first boot.

Did you check HADK-FAQ? Url is given in IRC channel header. Regarding the issue that you have, see

Building geoclue-providers-hybris fails: Building geoclue-providers-hybris fails with the error locationsettings.h for local builds update dhd submodule and in case of OBS build change the branch to jb36857

---------- Post added at 12:42 ---------- Previous post was at 12:36 ----------

Yes, we can fix absence of xt9 properly. For that, it should be sufficient to port text predictions from Ubuntu Touch. They had text predictions and I am quite sure that its open source. I was thinking to take it myself since I am annoyed by it as well, but that would happen until I finish working on the first full version of offline navigation (server is almost done and I would like after that to help with the clients). I would expect that porting Ubuntu's solution would be way easier than navigation business. But would be great to get volunteers that can start working on keyboard stack.
[Nexus 4 Android Development] Jorge R:
https://twitter.com/HaliumProject/status/871592584136622081

This can be very, very useful
[Nexus 4 Android Development] Veraendert:
Search brought up this: buildmw geoclue-providers-hybris jb36857 from github. Sorry, can't post links yet. Hope that helps a little.
[Nexus 4 Android Development] Jorge R:
https://halium.org/
[Nexus 4 Android Development] Jorge R:
Halium is the collaborative project to unify the Hardware Abstraction Layer for projects which run GNU/Linux on mobile devices with pre-installed Android.

Project Halium will contain:

Linux kernel (source provided by device vendor)

Android services required to talk with hardware

Libhybris

In addition, Project Halium also aims to standardize the middleware software used by various projects to talk with android daemons and make use of hardware, for instance:

OFono/RILd

Camera service

Pulseaudio / Audiofingerglue

GPS

Media codecs

This project will not control the following higher level parts of the stack. Each distribution controls these aspects:

Display server

Toolkit

User interface

Applications
[Nexus 4 Android Development] preflex:
Hooray! My image booted! No phone, sms, mobile data, or audio, but it boots! WLAN looks like it works. At least, it scans.

https://mega.nz/#!ZFpijBYL!a1EW5KEseKumV18sF-21vdV51bER0SB94KeRh7DCqYk

running "usr/libexec/droid-hybris/system/bin/logcat -b radio" gives

D/use-Rlog-RLOG-Diag_lib( 1866): actp_diag_init: call_diag init function with AE091209
E/use-Rlog-RLOG-Diag_lib( 1866): Diag_LSM_Init: Failed to open handle to diag driver, error = 13
E/use-Rlog-RLOG-Diag_lib( 1866): actp diag_init failed

This is going to be tough to figure out. Since my nexus 4 is my only internet connection, I need to reboot back to 2.0.5.6 just to be able to google errors.
[Nexus 4 Android Development] Veraendert:
Did you ask on IRC ? Since you had probs with internet connection- should i ask ?
[Nexus 4 Android Development] preflex:
Not yet. I think i'm done hacking at this for today. There's some related stuff in the IRC logs, and I haven't looked over everything yet looking for that specifically.

Since my Nexus 4 is also my gateway, I don't have any way of checking whether wifi actually works. If you'd like to install the rom and check for me, that would be nice. Use the same CM11 base as the other releases.
[Nexus 4 Android Development] n0b0dy666:
I have a spare N4 so I can test out stuff like wifi. Is it required to flash a specific modem image or will the latest, stock avaliable do the job?
[Nexus 4 Android Development] Veraendert:
Wifi works, i can login at Jolla with my account apparently.

This is without flashing any radio.img.
[Nexus 4 Android Development] ddaggebi:
Wifi works , but I can't log into my jolla account. 'Unnamed application is not responding' etc(logging in later from settings doesn't work, either.). Camera isn't working, browser is a bit buggy. Sound doesn't seem to work. And celluler network doen't work.

However, it's a lot more smoother than 2.0.5.6. And it feels much more stable. Big Thanks for this release, [MENTION=5228177]preflex[/MENTION]. I am looking forward to fixed version.
[Nexus 4 Android Development] preflex:
Thanks for checking! That helps me narrow things down a little.

I kept all the changes related to the ril config intact. No need for hybrid modem.

It was built using this manifest: https://xdaforums.com/showpost.php?p=70362089&postcount=629

The only changes I made were to the kernel. I symlinked the cyanagen_mako_defconfig to mako_defconfig. Furthermore, I ensured all of the following was set in mako_defconfig:

CONFIG_CGROUP_DEVICE=y

CONFIG_CPUSETS=y

CONFIG_CGROUP_MEM_RES_CTLR=y

CONFIG_CGROUP_PERF=y

CONFIG_UTS_NS=y

CONFIG_IPC_NS=y

CONFIG_USER_NS=y

CONFIG_PID_NS=y

CONFIG_DEVPTS_MULTIPLE_INSTANCES=y

I added these options a a test, because I want to try to port plasma-mobile next (but I'm not optimistic I'll get very far without working USB). However, these changes should also allow systemd-nspawn to work, which should be useful for my VersaChroot app for SFOS.

I'll be back at it tomorrow, after today's holiday in the US.

---------- Post added at 12:48 PM ---------- Previous post was at 12:41 PM ----------

Sadly, that's not my fault. Users on other devices have been complaining about this.
[Nexus 4 Android Development] Veraendert:
We thank you [MENTION=5228177]preflex[/MENTION].

Re Browser: Just use Webcat.
[Nexus 4 Android Development] preflex:
In case you're curious, since wifi tethering doesn't work with SFOS on mako, and my USB doesn't work, this is how I connect to the internet. I connect my nexus to my home wlan, and setup forwarding. My desktop runs the dhcp server because my router sucks and I couldn't find a dhcp server package for sfos (I didn't look very hard).

I run this script on my Nexus:

tethertonet.sh

#!/bin/bash

rfkill unblock all
wpa_supplicant -B -Dwext -c /home/nemo/wpa_supplicat.conf -iwlan0
ifconfig wlan0 192.168.6.113
sysctl net.ipv4.conf.rmnet_usb0.forwarding=1
iptables -t nat -A POSTROUTING -o rmnet_usb0 -j MASQUERADE
sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

/home/nemo/wpa_supplicant.conf

network={
ssid="mySSID"
psk="myWifiPassword"
}

For a bit of security, "chmod 600 /home/nemo/wpa_supplicant.conf" (the file is owned by root)

Then, I just tell other devices on my network to use 192.168.6.113 as the gateway.

---------- Post added at 01:36 PM ---------- Previous post was at 01:09 PM ----------

Well, finally having text selection in the stock browser is one of the main features of SFOS 2.1, so it's a bummer to hear that the browser is buggy.

However, if you want a full-featured browser, The desktop version of Chromium works well when run from an Archlinux chroot. It has good multitouch support and lots of extensions. Hopefully, systemd-nspawn works out, becuase the dbus-shenanigans needed to get chroot stuff working are unpleasant.
[Nexus 4 Android Development] preflex:
Sadly, my mako's battery has balooned.

Since I'm going to have to go in there, I might as well replace the USB board as well, I will be unable to work on this until I can score some spare parts. I found both parts on amazon for a total of about $17, but I don't have $17, so it might be a while.
[Nexus 4 Android Development] Veraendert:
That sucks. I would send you my spare with shattered screen but i presume it costs about as much as buying spare parts where you live
[Nexus 4 Android Development] fishears:
You're lucky, when mine ballooned it busted it's way through the back glass :laugh:

What I did to fix the battery was make a small hole in the plastic cover then squeeze the poisonous gas out. It's been fine since then
[Nexus 4 Android Development] Veraendert:
No news on this, i presume?
[Nexus 4 Android Development] Malakay666:
Hi guys,

I have a problem - my GPS is not working - still keeps searching signal, but never will, gps info told me that some sattelites are seen and maybe 3 have a fix, but any android navigation like sygic, osmand and navfree is not working, still just searching signal. Is there any solution? And usb MTP is not working (i know that is a known thing), but I´m just wondering if it is even possible get it to work?
[Nexus 4 Android Development] Veraendert:
Since you have Android apps installed- did you install sfdroid? Does any gps viewer show a signal or is there none at all? Google services installed ?
[Nexus 4 Android Development] preflex:
EDIT: Information no longer relevant has been removed.

[/COLOR]

Yes, I did install SFDroid on my 2.0.5.6 installation. I was also able to install the sfdroid privileged extension so that sfdroid can auto-update. Furthermore, I installed GApps and Google Play services. See the last few posts in the AlienDalvik on Nexus 4 thread on talk.maemo.org for more details about installing the SFDroid privileged extension. As I understand it, details about Alien for Nexus 4 are verboten on XDA, as the only available version is an unlawful leak (apologies for not linking, I hope you understand).

I don't know about GPS. I don't use it because I know my hometown very well and when I travel, I travel with friends who are happy to handle navigation without my advice. AFAIK, GPS doesn't work on my last build, but non-working GPS isn't the biggest issue. The lack of telephony, data, audio, and sms are far more pressing problems.
[Nexus 4 Android Development] Veraendert:
I'm on holiday right now but if you give me an address, i'll send you my spare phone. Broken screen. Otherwise working fine. Including battery. May take some time though.