Skip to content
Snippets Groups Projects

add the gnome-mobile UI

Merged Imported Administrator requested to merge feature/gnome-mobile into master

Gnome mobile is a fork of gnome-shell and mutter with phone specific patches to make it more usable on phones, the user interface feels quite similar to Phosh in design, a demo can be seen here: https://twitt.re/tobias_bernard/status/1564619111396773897

unfortunately it doesn't want to build yet, currently stuck getting mozjs102 to compile.

Current branch should build and function!

Known issues

  • Keyboard doesn't pop up on apps like telegram desktop
  • Often the application isn't correctly "shifted" to make the textbox visible (e.g. when typing in the address bar on firefox with firefox-mobile-config).
  • When the application is shifted it is shifted slightly further than the keyboard height (confirmed on OnePlus 6, maybe was originally hardcoded for PinePhone?)
  • Scaling by default only goes up to 250% on op6 which is a bit smaller than preferred. the MR is now merged and this is fixed, gnome-mobile uses the same scaling algorithm as Phosh now and 300% scaling is an option. It's recommended to run gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']" to enable fractional scaling, otherwise 200% is the maximum shown

TODO

  • create postmarketos-ui-gnome-mobile
  • write wiki page explaining it and it's WIP status, and a guide on installing it along side Phosh (installing side by side currently not recommended due to conflicting packages); https://wiki.postmarketos.org/wiki/Gnome_Shell_for_Mobile
  • update branches once verdre removes pinephone pro specific hacks
Edited by Administrator

Merge request reports

Checking pipeline status.

Approved by

Merged by AdministratorAdministrator 2 years ago (Sep 15, 2022 7:33am UTC)

Merge details

  • Changes merged into master with b663e55b.
  • Deleted the source branch.

Pipeline #199551 passed

Pipeline passed for b663e55b on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Author Owner

    Left some comments :) Hopefully we can fix mozjs102 soon :)

    By Dylan Van Assche on 2022-09-04T16:23:33

  • Administrator added category::ui label · Imported

    added category::ui label

  • Administrator added 5 commits · Imported

    added 5 commits

    • 424acded - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • 9e805026 - temp/gcr-4: new aport (for gnome-mobile, will be moved to alpine)
    • 9f477836 - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • 41aee5b8 - temp/mutter-mobile: new aport
    • d86ca1ce - temp/gnome-shell-mobile: new aport

    Compare with previous version

    By Caleb Connolly on 2022-09-05T01:29:09

  • Administrator changed the description · Imported

    changed the description

    By Caleb Connolly on 2022-09-05T01:32:44

  • Administrator added 7 commits · Imported

    added 7 commits

    • c07954f3 - samsung-p4note: fix kernel partition name
    • a020b715 - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • 1441bc0c - temp/gcr-4: new aport (for gnome-mobile, will be moved to alpine)
    • 05c2904e - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • 91eacc1f - temp/mutter-mobile: new aport
    • 27df322d - temp/gnome-shell-mobile: new aport
    • 8af84afe - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-05T13:21:34

  • Administrator added 13 commits · Imported

    added 13 commits

    • 8af84afe...759ae7db - 7 commits from branch master
    • cf849381 - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • b3895b13 - temp/gcr-4: new aport (for gnome-mobile, will be moved to alpine)
    • ebd0e7d3 - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • 29c94a25 - temp/mutter-mobile: new aport
    • 532d9d90 - temp/gnome-shell-mobile: new aport
    • 75af47a4 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-05T13:21:52

  • Administrator marked the checklist item create postmarketos-ui-gnome-mobile as completed · Imported

    marked the checklist item create postmarketos-ui-gnome-mobile as completed

    By Newbyte on 2022-09-05T13:22:06

  • Administrator added 13 commits · Imported

    added 13 commits

    • c07954f3 - samsung-p4note: fix kernel partition name
    • 37bd0822 - main/postmarketos-base: add replace for busybox-openrc (MR 3400)
    • 66a38dc6 - cross/busybox-static-*: upgrade to 1.35.0-r24
    • ff42e7a2 - main/postmarketos-ui-phosh: add phosh-mobile-settings to recommends (MR 3396)
    • d93905dc - community/linux-pine64-pinephonepro: enable SPI flash (MR 3401)
    • c802cccd - xiaomi-polaris: Make touchscreen work during boot (MR 3399)
    • 1566a134 - main/postmarketos-ui-plasma-mobile: add callaudiod to properly route audio (MR 3406)
    • 50bb230d - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • 80831fcd - temp/gcr4: new aport (for gnome-mobile, will be moved to alpine)
    • 4784f521 - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • 2db43a79 - temp/mutter-mobile: new aport
    • efc0cb85 - temp/gnome-shell-mobile: new aport
    • ef498665 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-05T13:35:12

  • Administrator added 13 commits · Imported

    added 13 commits

    • ef498665...759ae7db - 7 commits from branch master
    • cfb4a198 - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • ce2d0d8a - temp/gcr4: new aport (for gnome-mobile, will be moved to alpine)
    • 8ddd73e1 - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • 335d5350 - temp/mutter-mobile: new aport
    • b9c3863d - temp/gnome-shell-mobile: new aport
    • 4489415d - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-05T13:37:12

  • Administrator added 13 commits · Imported

    added 13 commits

    • c07954f3 - samsung-p4note: fix kernel partition name
    • 3d842b10 - main/postmarketos-base: add replace for busybox-openrc (MR 3400)
    • 34c87042 - cross/busybox-static-*: upgrade to 1.35.0-r24
    • 238c6bff - main/postmarketos-ui-phosh: add phosh-mobile-settings to recommends (MR 3396)
    • abef1053 - community/linux-pine64-pinephonepro: enable SPI flash (MR 3401)
    • 89be8308 - xiaomi-polaris: Make touchscreen work during boot (MR 3399)
    • bbb85a41 - main/postmarketos-ui-plasma-mobile: add callaudiod to properly route audio (MR 3406)
    • 291d810b - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • ac70d343 - temp/gcr4: new aport (for gnome-mobile, will be moved to alpine)
    • 50953ca3 - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • f2286cbd - temp/mutter-mobile: new aport
    • fae1c1db - temp/gnome-shell-mobile: new aport
    • 4dcf59f9 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-05T13:47:25

  • Administrator added 13 commits · Imported

    added 13 commits

    • 4dcf59f9...759ae7db - 7 commits from branch master
    • ef296aef - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • 211986eb - temp/gcr4: new aport (for gnome-mobile, will be moved to alpine)
    • 02300d15 - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • 59756e83 - temp/mutter-mobile: new aport
    • 0cb38298 - temp/gnome-shell-mobile: new aport
    • ff4c45ec - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-05T13:47:33

  • Administrator added 5 commits · Imported

    added 5 commits

    • 301c24eb - temp/gcr4: new aport (for gnome-mobile, will be moved to alpine)
    • 89317205 - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • 0d94592c - temp/mutter-mobile: new aport
    • ba7d4d5e - temp/gnome-shell-mobile: new aport
    • 83f50046 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-05T13:58:07

  • Administrator resolved all threads · Imported

    resolved all threads

    By Newbyte on 2022-09-05T13:58:18

  • Administrator changed the description · Imported

    changed the description

    By Caleb Connolly on 2022-09-05T17:07:02

  • Administrator added 4 commits · Imported

    added 4 commits

    • 78fe4d49 - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • 5d3c26fb - temp/mutter-mobile: new aport
    • 92e10616 - temp/gnome-shell-mobile: new aport
    • 6db9115f - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-08T12:14:44

  • Administrator added 4 commits · Imported

    added 4 commits

    • 5ad37e11 - temp/mozjs102: new aport (for gnome-mobile, will be moved to alpine)
    • 3891642c - temp/mutter-mobile: new aport
    • 7ddc1283 - temp/gnome-shell-mobile: new aport
    • 11bccfb7 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-08T13:35:59

  • Author Owner

    I pushed mozjs102 to Alpine: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/38803

    It succeeds on some arches and fails on some.

    By Newbyte on 2022-09-09T11:42:43

    • Author Owner
      Resolved by Administrator

      Keyboard doesn't pop up on apps like telegram desktop

      Most likely because telegram is an x11 app. Only way to work around that would be adding an ugly keyboard button like Phosh has, I'd prefer to avoid that.

      Often the application isn't correctly "shifted" to make the textbox visible (e.g. when typing in the address bar on firefox with firefox-mobile-config).

      Gtk bugs that are not fixable in mutter, I'm working on fixing it on gtk side.

      When the application is shifted it is shifted slightly further than the keyboard height (confirmed on OnePlus 6, maybe was originally hardcoded for PinePhone?)

      There's no hardcoding there, in theory that should work just fine, not sure what's wrong there.

      By verdre on 2022-09-09T17:35:41

      Edited by Ghost User
  • Administrator added 3 commits · Imported

    added 3 commits

    • 35e048ca - temp/mutter-mobile: new aport
    • 416b3162 - temp/gnome-shell-mobile: new aport
    • 96c66a6e - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-09T18:00:13

  • Administrator added 16 commits · Imported

    added 16 commits

    • 96c66a6e...7adba98f - 11 commits from branch master
    • 8cb31c14 - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • 340590fb - temp/gcr4: new aport (for gnome-mobile, will be moved to alpine)
    • e9d2d939 - temp/mutter-mobile: new aport
    • 8e28f317 - temp/gnome-shell-mobile: new aport
    • 794040b1 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-09T18:05:38

  • Administrator added 5 commits · Imported

    added 5 commits

    • f825627e - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • b71a8ff3 - temp/gcr4: new aport (for gnome-mobile, will be moved to alpine)
    • b8ad3892 - temp/mutter-mobile: new aport
    • 5067f506 - temp/gnome-shell-mobile: new aport
    • 235275d9 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-09T19:32:19

  • Administrator marked this merge request as ready · Imported

    marked this merge request as ready

    By Newbyte on 2022-09-09T19:49:51

  • Administrator resolved all threads · Imported

    resolved all threads

    By Newbyte on 2022-09-09T19:57:00

  • Administrator
  • Administrator
    • Author Owner
      Resolved by Administrator

      installing this (for qemu) fails for me:

      (016655) [13:08:56] (rootfs_qemu-amd64) % apk --no-progress add -u --virtual .pmbootstrap /mnt/pmbootstrap-packages/x86_64/postmarketos-ui-gnome-mobile-1-r0.apk /mnt/pmbootstrap-packages/x86_64/gnome-shell-mobile-43.0_beta-r0.apk /mnt/pmbootstrap-packages/x86_64/gnome-shell-mobile-schemas-43.0_beta-r0.apk /mnt/pmbootstrap-packages/x86_64/gcr4-base-3.92.0-r0.apk /mnt/pmbootstrap-packages/x86_64/gjs-1.73.2-r0.apk /mnt/pmbootstrap-packages/x86_64/mutter-mobile-43.0_beta-r0.apk
      (1/7) Installing polkit-openrc (121-r0)
      (2/7) Installing .pmbootstrap (20220909.200856)
      (3/7) Installing mutter-lang (42.4-r0)
      ERROR: mutter-lang-42.4-r0: trying to overwrite usr/share/locale/am/LC_MESSAGES/mutter.mo owned by mutter-mobile-lang-43.0_beta-r0.
      ERROR: mutter-lang-42.4-r0: trying to overwrite usr/share/locale/ar/LC_MESSAGES/mutter.mo owned by mutter-mobile-lang-43.0_beta-r0.
      ERROR: mutter-lang-42.4-r0: trying to overwrite usr/share/locale/as/LC_MESSAGES/mutter.mo owned by mutter-mobile-lang-43.0_beta-r0.
      ERROR: mutter-lang-42.4-r0: trying to overwrite usr/share/locale/ast/LC_MESSAGES/mutter.mo owned by mutter-mobile-lang-43.0_beta-r0.
      ... output truncated
      (4/7) Installing gnome-shell-schemas (42.4-r0)
      (5/7) Installing gnome-shell-lang (42.4-r0)
      ERROR: gnome-shell-lang-42.4-r0: trying to overwrite usr/share/locale/af/LC_MESSAGES/gnome-shell.mo owned by gnome-shell-mobile-lang-43.0_beta-r0.
      ERROR: gnome-shell-lang-42.4-r0: trying to overwrite usr/share/locale/an/LC_MESSAGES/gnome-shell.mo owned by gnome-shell-mobile-lang-43.0_beta-r0.
      ... output truncated

      I proposed the following in chat, since apk seems to be getting confused with "provides=" (again...):

      13:23:25 @craftyguy: Newbyte: how about using the same name as the alpine package and setting pkgver to 9999 or something?
      13:24:40 @craftyguy: that would affect the 'gnome' ui, but I don't think the gnome folks are going to maintain two separate gnome-shells, right? i.e. the gnome-shell beta that supports mobile should still work on a desktop without giving some mobile interface there?
      13:26:02 @craftyguy: so instead of making new packages for gnome-shell (+ deps) to use the latest version, just fork gnome-shell (+ deps) from alpine and upgrade it in pmaports. what do you think?

      By clayton craft on 2022-09-09T20:35:34

  • Administrator
  • Administrator added 12 commits · Imported

    added 12 commits

    • 235275d9...d8cb4fea - 7 commits from branch master
    • 4fe0f8a5 - temp/gjs: temporarily fork to upgrade for gnome-mobile
    • 63f21855 - temp/gcr4: new aport (for gnome-mobile, will be moved to alpine)
    • 341dbb87 - temp/mutter-mobile: new aport
    • 49ce0baa - temp/gnome-shell-mobile: new aport
    • 0a5c7823 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-12T08:11:49

  • Administrator added 3 commits · Imported

    added 3 commits

    • eb6ba254 - temp/mutter-mobile: new aport
    • 6ab137ca - temp/gnome-shell-mobile: new aport
    • 2ac66a85 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-12T08:35:22

  • Author Owner

    write wiki page explaining it and it's WIP status, and a guide on installing it along side Phosh

    I'm not sure whether this will be possible since this depends on schemas from GNOME 43 and Phosh currently expects schemas from GNOME 42. It may be fine by luck.

    By Newbyte on 2022-09-12T08:37:59

  • Administrator added 3 commits · Imported

    added 3 commits

    • 43ee1973 - temp/mutter-mobile: new aport
    • dcabd9da - temp/gnome-shell-mobile: new aport
    • 867250a6 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-12T08:55:16

  • Administrator resolved all threads · Imported

    resolved all threads

    By Newbyte on 2022-09-12T08:55:33

  • Author Owner

    I have an issue running this on the PinePhone, it launches into the "oh no" screen. It seems like gcr4 doesn't get installed when installing this UI. using --add gcr4 fixes it for me.

    By Martijn Braam on 2022-09-12T21:17:50

  • Author Owner

    The current UI package is missing some standard apps I expect, mainly calls and chatty

    By Martijn Braam on 2022-09-12T21:20:07

  • Administrator added 2 commits · Imported

    added 2 commits

    • 18e25a79 - temp/gnome-shell-mobile: new aport
    • df47acc3 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-13T08:54:03

  • Administrator added 1 commit · Imported

    added 1 commit

    • c45203e3 - main/postmarketos-ui-gnome-mobile: add missing gcr4 dep

    Compare with previous version

    By Caleb Connolly on 2022-09-13T14:40:42

  • Administrator added 1 commit · Imported

    added 1 commit

    • f09d6806 - main/postmarketos-ui-gnome-mobile: add _pmb_recommends based on phosh

    Compare with previous version

    By Caleb Connolly on 2022-09-13T16:01:51

  • Administrator added 1 commit · Imported

    added 1 commit

    • 2ada1d00 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-13T16:11:21

  • Author Owner

    Built an image for the SHIFT6mq using this, it built fine and seems to work with the exception of the previously noted bugs:

    • keyboard scaling borked in terminal
    • closing the first app causes gnome to crash and be restarted by GDM, seems to not be exclusively the first app?

    By Caleb Connolly on 2022-09-13T16:16:55

  • Administrator changed the description · Imported

    changed the description

    By Caleb Connolly on 2022-09-13T16:19:26

  • Administrator added 1 commit · Imported

    added 1 commit

    • 7736f2a4 - main/postmarketos-ui-gnome-mobile: new aport

    Compare with previous version

    By Newbyte on 2022-09-13T18:38:31

    • Author Owner
      Resolved by Administrator

      I've built and tested df47acc3 (it says above: added by Newbyte 14 hours ago) on the pinephone. So not the most recent one, but I guess it didn't change much since then; it had gcr4 but not yet all the _pmb_recommends.

      IMHO this is good enough to be merged as initial version. Writing a wiki page sounds good, but I wouldn't block the MR over this as it's quite some effort to build all this.

      I've adjusted the welcome app, please review: https://gitlab.com/postmarketOS/postmarketos-welcome/-/merge_requests/17

      When I tested it, also the gnome-tour app was started. It's not adaptive yet and the pmOS welcome app shows more relevant information (-> that it's currently in prototype state, expect crashes etc.) so I'd disable that (doesn't need to be done in this MR).

      By Oliver Smith on 2022-09-13T23:21:06

      Edited by Ghost User
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading