Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. doniks
    D
    • Profile
    • Following 5
    • Followers 3
    • Topics 15
    • Posts 628
    • Best 138
    • Groups 0

    doniks

    @doniks

    206
    Reputation
    1473
    Profile views
    628
    Posts
    3
    Followers
    5
    Following
    Joined Last Online
    Website gitlab.com/doniks

    doniks Follow

    Best posts made by doniks

    • Dekko2 Developer Community Thread

      This is a place to coordinate developers working on dekko2. (It is not the place to discuss individual bugs)

      In the good old days we had dekko and it mostly worked ok. At some point a rewrite as dekko2 was deemed necessary. The rewrite was started but not completely finished. In addition the platform has moved on beneath dekko (xenial). Time has gone by and development rate of dekko has dropped.

      As of today, there is no working dekko for xenial UT.

      Over the last couple weeks I see here and there on various UT telegram channels messages pop up about various people trying to work on dekko. Some wrestling with the build system. Somewhere a test build showed up. Some critical bugs were mentioned (settings, system load). Workarounds and some fixes too. I think it's time to coordinate efforts. So we don't independently solve the same problems multiple times, but instead move forward faster.

      So all you dekko2 hackers, speak up below with whatever you do / did on dekko2. What you need help with.

      Let's make it happen!

      PS: This is not an attempt to hijack the project from the current maintainer @DanChapman . Personally, I think the best future for email on UT would be a Dan maintained dekko2 with a small community of developers cooperating. Dan seems to be on a hiatus right now. Let's see what the future brings.

      PPS: If you are not actively developing on dekko, then help us stay focussed by not going off topic here! Maybe you really want to encourage people to work on dekko. Or maybe you are very frustrated because you really need an email client. Well, yes, we know. We all are. Feel free to up (or down) vote posts. Or maybe you want to report an issue or suggest a feature. Then use the bug tracker. Or you just have a question. Then start a new thread or go here https://forums.ubports.com/topic/1750/dekko-0-1-6-beta2-released/1

      posted in App Development
      D
      doniks
    • RE: Ubuntu Touch Q&A 74 This Saturday at 19:00 UTC

      I almost don't dare to ask, but .... Qt update? 🙈

      posted in News
      D
      doniks
    • Dekko 0.1.6-beta2 released

      It is our pleasure to announce the release of Dekko2 for Xenial

      You find it in the open-store on your device and at https://open-store.io/dekko2.dekkan

      Yes there are still bugs. We know, but it should definitely be good enough to allow you to read and write your emails from UT.

      Try it out and feel free to praise or curse us below. Let us know what you think.

      Bugtracker is over here: https://gitlab.com/dekkan/dekko/issues
      Source code: https://gitlab.com/dekkan/dekko
      Dev thread: https://forums.ubports.com/topic/1477/dekko2-developer-community-thread

      PS: Yes, patches are welcome 🙂

      posted in General
      D
      doniks
    • RE: OTA 3 suggestions: your wanted features

      Pick one (any) convergent user story and make it a perfect experience out of the box.

      For example: I receive an email from a coworker asking me to work on some spreadsheet. Dock phone and work desktop style, listening to music on my headphones. Realise I miss some info. Text another person with a question. Receive a phone call interupting me. Take the phone out of the dock and talk while I walk to the coffee shop. End the call and finish the spreadsheet on the phone/tablet interface in the coffee shop. Email the file back.

      All those features are kinda there, but there are a bunch of usability features that kill this (and similar) workflows. I would suggest you draft a story like this, then test it and prioritise any bugs you run into. Docking ain't reliable - fix this. Email app closes and interrupts my drafting when switching to browser /spreadsheet - fix that. Out of the box UI scaling for localc doesn't allow me to work efficiently on a tablet display - fix it.

      No need to make everything perfect, but pick one story and maybe one device and make that one really shine. If it ain't the "mobile office work" above it could be the visual artist - now you need to make sure that krita works perfectly on the tablet - does taht require better touch input in xmir well then this is your top prio feature. Or maybe its wayland on mir. The user is not gonna care as long as the workflow is awesome.

      Pick a story that is achievable, but sets ubports apart from ios/android. Getting krita to run is too hard - what about preparing, adjusting and giving a presentation from the phone including live pdf annotation xournal style.

      Make sure to produce a release video that shows off! Focus on the added value for the user instead of the technical feature of how you adjusted the dpi for Xmir or whatever.

      posted in OS
      D
      doniks
    • Porting Halium to Nexus 7 deb

      I'm trying to get Halium running on the Nexus 7 2013 gsm variant "deb".

      I've made a few steps already. Most notably: Plasma Mobile starts!

      I'm keeping (and updating while I progress) the summary below, so that:

      • I don't forget what steps I took
      • Others can help to improve this
      • Others can use this as inspiration for their ports

      Setup sources

      • Follow the Porting Guide for halium-7.1 here https://docs.halium.org
      • lineageos kernel sources: https://github.com/LineageOS/android_kernel_google_msm
      • my local_manifest: https://gist.github.com/doniks/7ee302c7792450761332d8f8712f29f6
      • binaries : https://developers.google.com/android/nexus/drivers MOB30X
      • my repo with all kernel changes: https://github.com/doniks/android_kernel_google_msm

      Kernel image

      config

      source build/envsetup.sh 
      add_lunch_combo lineage_deb-userdebug
      lunch lineage_deb-userdebug
      
      • kernel config: kernel/google/msm/arch/arm/configs/lineageos_flo_defconfig
      • Primary source to check for wrong configs: https://github.com/lbt/mer-kernel-check
      • my kernel config: https://gist.github.com/doniks/7406a87e5f15e1eab5a64aa90ad8f633
      • other config checkers for reference:
        • CONFIG=out/target/product/deb/obj/KERNEL_OBJ/.config lxc-checkconfig
        • https://github.com/janimo/phablet-porting-scripts/blob/master/kernel/check-config

      patches

      • https://gist.github.com/doniks/75d16dda43d241feb79b721bab6c4940

      • https://gist.github.com/doniks/44faf86a23f7467b80744f033fb08100

      • add cgroup_disable=memory to the HYBRIS_BOOTIMG_COMMANDLINE in halium/hybris-boot/Android.mk (this fixes some problem with systemd/cgroups, can't remember what exactly 😛 )

      common porting errors

      • Halium Porting Error Knowledge Base
        https://gist.github.com/doniks/2ac14a1bb6750165bf782f62139c8aab#file-gistfile1-txt-L61
      • Reference of older kernel versions http://elixir.free-electrons.com/linux/v2.6.39.4/source
      • [https://public.etherpad-mozilla.org/p/r.0aae797a3bd13b4cd923b82fe29a2f47](Sailfish HADK FAQ)

      test and debug

      • Follow steps here http://docs.halium.org/en/latest/porting/debug-build/
      • if you want to force init into telnet, add kernel parameter bootmode=debug:
      fastboot -c "$(abootimg -i hybris-boot.img | sed -ne '/cmdline/s/. cmdline . //p' ) bootmode=debug" boot hybris-boot.img
      

      Android image

      cd halium
      mka systemimage
      ls -l out/target/product/deb/system.img
      

      Rootfs

      Halium rootfs

      get it

      • https://docs.halium.org/en/latest/porting/install-build/reference-rootfs.html

      install it

      • to install the rootfs you need working adb. I use this twrp recovery: https://eu.dl.twrp.me/deb/twrp-3.0.2-0-deb.img.html (had some problems with 3.1.1-0)
      • boot into twrp recovery
      git clone https://github.com/Halium/halium-scripts
      ./halium-scripts/halium-install halium-rootfs-20170630-151006.tar.gz halium/out/target/product/deb/system.img 
      
      • The device should reboot and get to the point where it announces usb networking:
      lsusb -vd 0fce: | grep -i serial
        iSerial                 3 GNU/Linux Device on usb0 10.15.19.82
      
      • reboot into twrp recovery to set the root password
      adb shell
      cd /data
      mkdir mnt
      mount rootfs.img mnt/
      chroot mnt /bin/bash 
      export PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
      passwd
      

      connect to it

      • reboot the device and wait for usb networking to come up as above
      • configure usb network on your desktop in a similar way as above for telnet, but now for ssh
      sudo ip address add 10.15.19.1 dev enp0s20f0u7 
      sudo ip route add 10.15.19.82 dev enp0s20f0u7
      
      • login via ssh
      ssh root@10.15.19.82 
      
      • fix path variable
      echo $PATH
      /usr/bin:/bin
      export PATH=/usr/sbin:/sbin:$PATH
      echo 'export PATH=/usr/sbin:/sbin:$PATH' >> /root/.bashrc
      

      what works

      • test_lights makes the led breathe
      • EGL_PLATFORM=hwcomposer test_hwcomposer shows rotating spiral! I need echo 200 > /sys/class/leds/lcd-backlight/brightness to turn up the display brightness, so I can actually see the spiral 🙂
      • wifi: http://docs.halium.org/en/latest/porting/debug-build/wifi.html
      nmcli d # no wlan0
      echo 1 > /dev/wcnss_wlan 
      echo sta > /sys/module/wlan/parameters/fwpath 
      nmcli d # shows wlan0
      nmcli dev wifi # list wifis 
      nmcli dev wifi connect <SOMEOPENWIFI>
      # or
      # sudo nmcli device wifi connect <SOMEENCRYPTEDWIFI> password <PASSWORD>
      ping -c 2 8.8.8.8
      ping -c 2 debian.org
      # install some missing packages
      apt update
      apt install openssh-client bash-completion command-not-found binutils nano
      
      • buttons: evtest /dev/input/event5
      • touchscreen: evtest /dev/input/event0
      • adb:
        • TWRP
        • chroot into rootfs
        • systemctl enable adb
      • test_egl_config : https://gist.github.com/doniks/4e9ea8a8f5aaf1968c2e42846b5a9158

      what doesn't work

      • test_audio nothing to hear
      ACDB init open file failed
      [ACDB Init]->File is not found on the system
      [ACDB Init]->ACDB init success!
      
      • test_camera
      library "libcamera_compat_layer.so" not found
      Segmentation fault
      
      • test_egl segfaults
      • test_glesv2 segfault
      • test_gps, honestly I don't know whether that output below constitutes success of failure ... since I can't recognise any coordinates, I think it failed. I've waited 5 minutes or so. There are more *** tracking lines but no coordinates
      *** setup signal handler
      *** get gps interface
      *** device info
       id = gps
       name = loc_api GPS Module
       author = Qualcomm USA, Inc.
      *** init gps interface
      *** set capabilities
      capability is 00000007
       ** Creating thread: 'Loc_hal_worker' (start=0xb69f23b5, arg=0x1d02080)
       ** After thread_create: 'Loc_hal_worker', error=0 (start=0xb69f23b5, arg=0x1d02080)
       **** Thread wrapper start (start=0xb69f23b5, arg=0x1d02080) ****
      *** setting positioning mode
      *** start gps track
      *** gps tracking started
      *** tracking.... 
      
      • test_input
      library "libis_compat_layer.so" not found
      Segmentation fault
      
      • test_media, get a video from http://bbb3d.renderfarming.net/download.html
      wget http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi
      wget http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4
      scp bbb_sunflower_1080p_60fps_normal.mp4 root@10.15.19.82:
      ssh root@10.15.19.82
      test_media bbb_sunflower_1080p_60fps_normal.mp4
      library "libmedia_compat_layer.so" not found
      Segmentation fault
      
      • test_nfc
      Starting test_nfc.
      Finding NFC hardware module.
      test_nfc: test_nfc.c:156: testNfc: Assertion `hwModule != NULL' failed.
      Aborted
      
      • test_recorder
      Test application for video recording using the camera
      Recording start with volume up button. And stops with volume down.
      The result is stored to /root/test_video.avi
      
      library "libcamera_compat_layer.so" not found
      Segmentation fault
      
      • test_sensors
      library "/system/lib/hw/sensors.oem.so" not found
      libsensor_add_waiting_client adding cb 0
      Hardware module ID: sensors
      Hardware module Name: Qualcomm Sensors Module
      Hardware module Author: Qualcomm Inc.
      Hardware module API version: 0x1
      Hardware HAL API version: 0x100
      Poll device version: 0x1000001
      API VERSION 0.1 (legacy): 0x1
      API VERSION 0.1: 0x65537
      API VERSION 1.0: 0x16777217
      API VERSION 1.1: 0x16842753
      API VERSION 1.2: 0x16908289
      API VERSION 1.3: 0x16973825
      API VERSION 1.4: 0x17039361
      libsensor_add_waiting_client adding cb 1
      Got 0 sensors
      
      • test_wifi 1 says :
      Cannot load driver (err -1)
      

      not supported

      • test_vibrator , segfaults, but anyway the N7 doesn't have a haptic motor to vibrate
      Segmentation fault
      

      UBports rootfs

      Tried the rootfs from here: http://cdimage.ubports.com/rootfs/ but it doesn't do too much for me:

      • screen stays on the Google logo
      • no usb iSerial messages
      • no usb network interface seems to come up
      • last_kmsg shows that systemd does take over http://paste.ubuntu.com/25419054/ however,
      • it complains that "systemd[1]: Failed to start LXC Android Config and Container Initialization."
      • no adb interface comes up, even though in TWRP/chroot I see that android-tools-adbd.service is enabled

      Plasma mobile rootfs

      git clone https://github.com/bhush9/rootfs-builder bhush9-rootfs-builder
      cd bhush9-rootfs-builder
      # follow the instructions in README to patch lb_chroot_live-packages
      sudo ./build.sh
      # waaaaait
      # install it
      

      The reboot takes about a minute. Then you'll hear an audible greeting and afterwards you are greeted by the plasma mobile login screen. You can login and play around a bit. Not much to do though. No network connection and it's not possible to ssh in.

      Reboot back into TWRP and chroot.

      1. To be able to use the ssh server, you need to generate ssh server keys: dpkg-reconfigure openssh-server
      2. Preferably enable password less login :
      adb shell mkdir /home/phablet/.ssh
      adb push ~/.ssh/id.pub /home/phablet/.ssh/authorized_keys
      // todo : some chmod/chown needed?
      
      1. reboot, setup usbnet and then reboot and login as ssh phablet@10.15.19.82
      2. Alternatively, you can set the passwords, but I don't do this because it seems to actually break the graphical login:
      passwd 
      passwd: Authentication token manipulation error
      passwd: password unchanged
      # fix passwd
      apt remove libnss-extrausers
      pam-auth-update 
      # select everything but extrausers
      passwd # set root password 
      passwd phablet # set user password
      

      Debian

      Haven't tried yet.
      https://archive.org/download/halium-debian-rootfs/
      https://github.com/JBBgameich/rootfs-builder/tree/debian

      Arch

      https://github.com/Halium/rootfs-builder/tree/archlinux
      https://github.com/mickybart/rootfs-builder/tree/archlinux
      Haven't tried yet. I'm not very familiar with arch.

      What's next?

      • Get ubports to run
      • Get PM to run on halium-boot
      • Check out LuneOS
      • Check out SailfishOS
      • Build a .zip file, only makes sense if some OS is remotely usable, PM is close but still not there
      • get lxc-attach to work
      • patch out the noise dmesg logging of the battery

      Any tips or feedback appreciated!

      posted in Porting
      D
      doniks
    • RE: Q&A 30 This Saturday 16/06/18 @ UTC 19:00

      Oh and of course, the elephant in the room: How's 16.04 coming along?

      posted in News
      D
      doniks
    • RE: Ubuntu Touch Q&A 74 This Saturday at 19:00 UTC

      Tell me. How awesome is it to work on one "real" recent Linux kernel for the Pine Phone instead of a dozen incompatible and weird and ancient Android hacks?

      posted in News
      D
      doniks
    • RE: Ubuntu Touch Q&A 63 This Saturday 16th Of November At 19:00 UTC

      How big is your head- and heartache after seeing the responses to your thread: Want To Develop UT And Need A Device? 🙂

      posted in News
      D
      doniks
    • RE: We're delaying Ubuntu Touch Q&A 26

      Enjoy your real lives guys. Well deserved. And thanks for the continuous updates!

      posted in General
      D
      doniks
    • RE: PinePhone

      @3arn0wl said in PinePhone:

      is it right to assume that the PinePhone, being a Linux phone, won't need Libertine to run Xorg apps?

      No. It is "more" of a Linux phone than others that run some (old, forked) version of the Linux kernel in the sense that it runs a recent upstream version of the Linux kernel.

      Everything that happens on top of the kernel is up to the distro you run. In the case of Ubuntu Touch, it will be Mir and Libertine. If you run Plasma, Lune, Postmarket, something else it will be whatever that distro provides

      posted in General
      D
      doniks

    Latest posts made by doniks

    • RE: Libertine Tweak Tool

      @johndoe Hey thanks a lot! Yea, the current one is an eye sore I know. I need to dig up a device to test and see whether it is ok in all places.

      Looking at the aestetics I really like the hatband. I think it is a nice subtle clue for the hat shape, especially where the icon is really small. And the cogwheel on top is very intuitive hint to distinguish between libertine proper and the libertine tweak tool.

      What I am not so sure about are the colors. I associate a top hat with distinguished subtelty. But the striking green on black and orange on green contrasts remind me more of St Patricks day. Fun, but not subtle!

      Would you mind trying other colors? Maybe a silver hatband and keep the orange cogwheel. Or maybe hatband and cogwheel in some shade of grey?

      Update: maybe it could also be a tiny bit smaller? right now the hat gets cut at the top and at the bottom

      posted in Support
      D
      doniks
    • RE: Saving app data

      @bambi I have been bitten by this before and it took me forever to figure out that it is my responsibility to maintain this id in multiple places. I wonder whether there is a way to remove this headache and have only one single place to specify it making it impossible to forget that other place. or if we cant have a single truth, maybe at least get something to warn app developers when they changed one but not the other....

      posted in App Development
      D
      doniks
    • RE: Unable to install Anbox on BQ Aquaris M10 FHD

      @lalu said in Unable to install Anbox on BQ Aquaris M10 FHD:

      The problem seems to have to do with / and /dev/loop0 but I don't know how to advance from here. Any hint is appreciated.

      I've never touched a M10, but from what you show (loop0) your root filesystem is mounted from a .img file and not from the system partition. The Nexus 7, which I have, is also like this. It is very easy to resize the .img file and get a larger root filesystem. I don't have it around right now to double check, but as far as I remember, I do this: boot to recovery, adb shell, to get into it and then resize2fs /data/ubuntu.img 4G to increase the size to 4 gigabyte . Of course, if you break it you get to keep the pieces, so make your own decisions wrt backups, and worst case fall back to reinstalling with the installer, which should always work

      posted in Support
      D
      doniks
    • RE: Building images for the Pinephone

      I don't know how to build a rootfs locally, but maybe you don't have to do that. From a developer perspective the rootfs is composed via deb packages, so you can use an existing rootfs from CI and then http://docs.ubports.com/en/latest/systemdev/index.html#system-software-guides should work also on pinephones. If you're interested in the kernel side have a look here: http://docs.ubports.com/en/latest/systemdev/kernel-pinephone.html

      posted in OS
      D
      doniks
    • RE: Libertine and Desktop apps in OTA-14

      @gdegrez Ah, right. I didn't read it carefully enough. Tbh, I only have second hand knowledge about puritine. I understand it was a prerolled, read only container that Canonical shipped. My guess is: It's probably best to not care too much about that anymore. UBports has made lots of updates to repositories, so you're probably better off today with a self created libertine container anyway. I don't think puritine ever offered any unique advantage over a self created container, other than sparing you the creation 🙂

      posted in Support
      D
      doniks
    • RE: Libertine and Desktop apps in OTA-14

      @gdegrez said in Libertine and Desktop apps in OTA-14:

      @gdegrez said in Libertine and Desktop apps in OTA-14:

      PS2: As they don't work, I would like to uninstall Firefox and Frescobaldi/Lilypond. How to do that properly is unclear to me.
      Any help would be appreciated.

      Got this one from http://docs.ubports.com/en/latest/userguide/dailyuse/libertine.html

      That also solves "PS3", right?!

      posted in Support
      D
      doniks
    • RE: compatibility layer between UT and other OSes

      @poVoq said in compatibility layer between UT and other OSes:

      Last but not least Open-Store could be expanded to other system, as currently there isn't really a Playstore like 3rd party app distribution model on those. At least for Plasma Mobile it should be easy to get the open-store app running.

      this sounds like an interesting idea. and maybe this wouldn't be too hard. the open-store is basically a service where packaged apps are distributed.

      Developers can create an account, upload an app, specify which OS it's for (15.04, 16.04, armhf, arm64), describe it, do changelog and updates and get some installation stats. I think it also has a rating system for users since a little while.

      Mobile OS' can inquire the list of apps compatible with itself are in the store and updates for installed apps and download and install stuff.

      I don't even think that too much of this infrastructure is UT or click specific. Some pieces are of course, like the app submission to the store does a click review and for apps in the store it shows some apparmor click permissions, etc. Also the graphical design on the open-store website is UT specific. But it feels like this is the sugar on top of the machine that makes open-store.

      Maybe it wouldn't be too hard to add another OS like plasma mobile to the list and then someone has to teach plasma to get app packages from there. Whatever format pm uses ... debs? or flatpak? If Open-Store learns flatpak that way, this might also be a nice option for UT at some point in the future.

      Then you have One store where mobile linux app developers mingle with their apps. Initially it would be separate camps who only develop their apps for this OS or that OS, but it gives the devs exposure to each other. Some apps have already been ported to multiple OS' .... some navigation app ... the name escapes me. If the devs then are all mingling in the same pond, they might learn tricks about porting from one OS to another.

      It would still bring a multiplication of work and complexity to the open-store code/infrastructure/team, so that would weigh against it, but I find it an interesting idea! At least the name Open-Store itself would definitely still work, so no branding problem 🙂

      posted in General
      D
      doniks
    • RE: libertine

      @Macadam said in libertine:

      lowkeylone: I applied your instructions but without any result. Set to 220 DPI or higher, there is no change. Moreover, when I close libertine-tweak-tool, all settings are erased; is this normal?

      no, this is not normal. What's the id of your container?

      How do you know that the settings are erased?

      Is the solution going through the terminal?

      that's possible. All the app does is write the .Xdefaults file in the home dir of your container /home/phablet/.local/share/libertine-container/user-data/CONTAINERID. It writes a line like Xft.dpi: 220

      posted in Support
      D
      doniks
    • RE: Nexus 5 Wifi problems with AnBox

      @antonyj said in Nexus 5 Wifi problems with AnBox:

      I can help to correct the doc. What should I do for that ? Send a corrected version of the HTML file on the forum or to a particular person ? Don't hesitate to tell how we can help.

      make a pull request at https://github.com/ubports/docs.ubports.com/ with your proposed changes

      posted in Support
      D
      doniks
    • RE: Changing the Layout of a Physical Keyboard in anbox on a Nexus 5

      ah, sure, either way, What I mean is, you explicitly mention

      Copy /home/phablet/anbox-data/android.img to your desktop system

      to tell people to get the img from the phone to the desktop, but I don's see a step when people should get it back onto the phone

      posted in Off topic
      D
      doniks