Jump to content

LuneOS UI: Difference between revisions

From postmarketOS Wiki
m Fix image formatting
update to gitlab.postmarketos.org
 
(33 intermediate revisions by 8 users not shown)
Line 3: Line 3:
| graphics = Wayland
| graphics = Wayland
| toolkit = QT5
| toolkit = QT5
| image = File:LuneOS Browser.png|Illustration image of LuneOS UI. Not running on pmOS
| image = File:LuneOS Browser.png|LuneOS UI running on pmOS
| unavailable = yes
}}
}}


User interface from LuneOS, a continuation of webOS (Palm/HP's discontinued and open sourced mobile operating system updated with Wayland and QT5). A UI port is under development.[https://github.com/postmarketOS/pmbootstrap/issues/629]
[[File:luna_qemu_pmos_dec13.png |thumb| LuneOS UI running in QEMU]]


User interface from LuneOS, a continuation of webOS (Palm/HP's discontinued and open sourced mobile operating system updated with Wayland and QT5).


== Current Status ==
== Unmaintained ==


[[File:luna_qemu_pmos.png |thumb|left| LuneOS UI running in QEMU]]
We were able to present an initial version in [https://postmarketos.org/blog/2017/12/31/219-days-of-postmarketOS/#luneos-ui December of 2017]. But after that, LuneOS was unmaintained and didn't build anymore ({{issue|49|pmaports}}). '''The packages have been removed from postmarketOS.''' If you are interested in making it work again and maintaining the packages, [https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/tree/0.6.0/aports/luna here are the old build recipies] for reference.


The UI currently starts in QEMU, as do all of the core services (luna-sysmgr, luna-prefs, ls-hubd).
'''All information above is outdated.'''


As of today, the mouse does not work, which precludes further testing to see what else may be broken.
''It's sad that we can't maintain this right now and had to remove it. But nevertheless, some of the efforts lived on, because ncopa from Alpine Linux could use some of the musl related qt5-qtwebengine patches that magmastonealex created to make LuneOS UI work on postmarketOS. And who knows, we could be able to support this UI again in the future if someone steps up to maintain it.''
 
Current work can be found in [https://github.com/magmastonealex/pmbootstrap/tree/postmarketos-ui-luna magmastonealex]'s repository, soon to be merged in to the `postmarketos-ui-luna` feature branch.
 
 
== Running ==


== Running (QEMU) ==
{{outdated|You cannot choose luna in UI section anymore.}}
{{note|Choosing luna in the UI selection in <code>pmbootstrap init</code> is not enough to make it start right now!}}
Install:
Install:


* luna-next-cardshell
* postmarketos-ui-luna
* luna-sysmgr
* mesa-dri-virtio (if in QEMU)
* luneos-components
* mesa-dri-virtio (if in QEMU, mesa-dri-swrast otherwise)
* mesa
* mesa
* mesa-egl
* mesa-egl


Run, in the same shell:
Edit /usr/bin/start_luna.sh, to set your desired input devices on the luna-next line. Run /usr/bin/start_luna.sh to start everything. The first-use app should open.
 
See also {{issue|629}} for more instructions and ideas for getting this running on non-accelerated phones.


* ''export LD_PRELOAD=/usr/lib/libwayland-server.so.0''
Complete the steps, when you get to the black screen, click where the "next" button should be. It's not clear what causes that yet.
* ''export QT_QPA_PLATFORM=eglfs''
 
* ''export QT_QUICK_BACKEND=softwarerenderer''
Once the app exits and you're presented with the home screen, run '''luna-send -n 1 'luna://com.palm.configurator/run' '{"types":["dbkinds","dbpermissions","activities"]}'''' in another terminal. Stop luna, reboot, and start luna again, and everything should be usable.
* ''export QML2_IMPORT_PATH=/''
* ''/usr/sbin/ls-hubd --conf /etc/luna-service2/ls-private.conf & ''
* ''/usr/sbin/ls-hubd --public --conf /etc/luna-service2/ls-public.conf &''
* ''luna-prefs-service -d & ''
* ''LunaSysMgr -l debug &''


== Major to-dos ==
== Major to-dos ==
 
* Running this on ARM (Everything is packaged. Currently seems to crash on non-hardware accellerated devices in swrast somewhere.)
* Getting the mouse to work (next priority for magmastonealex)
* Trying to get this running with software rendering (Appears to work somewhat, no luck on armhf yet.) Zhuowei has a lot of research in {{issue|629}}.
* Running this on ARM (Needs a device with hardware acceleration & EGL support)
* Trying to get this running with software rendering (Mesa seems to theoretically support this, though I (magmastonealex) never got it working)
* Getting the HAL working (nyx-lib). (Probably involved, but can support only a couple things at first)
* Getting the HAL working (nyx-lib). (Probably involved, but can support only a couple things at first)
* Getting webapps to run (should theoretically just need to package luna-webappmanager)
* Create init service files to get services starting at boot.
* Packaging core luna apps (notes, messages, settings, etc.)
* See [https://trello.com/b/5tzrh9gw/luneos-porting magmastonealex's trello board]
* Create init service files
* Applying the LuneOS patches for <code>qt5-qtwebengine</code> again. magmastonealex [https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/tree/ac17316441ab522b9d7bbfcf53dc6f41d1420754/aports/main/qt5-qtwebengine made a version] that worked with QT 5.9, but these patches are incompatible with later QT versions (details: {{issue|1459}})




[[Category:Interface]]
== See also ==
* [https://postmarketos.org/blog/2017/12/31/219-days-of-postmarketOS/#luneos-ui 219 days of postmarketOS: LuneOS UI]
* {{issue|629}} initial issue about packaging LuneOS UI with lots of information and photos
* {{issue|49|pmaports}} LuneOS is broken (issue migrated from {{issue|1459}})
* [https://trello.com/b/5tzrh9gw/luneos-porting magmastonealex' LuneOS UI trello board]

Latest revision as of 06:40, 3 November 2024

LuneOS UI
Name LuneOS UI
Graphics stack Wayland
Toolkit QT5
In postmarketOS
Package N/A
Status Unavailable
LuneOS UI running in QEMU

User interface from LuneOS, a continuation of webOS (Palm/HP's discontinued and open sourced mobile operating system updated with Wayland and QT5).

Unmaintained

We were able to present an initial version in December of 2017. But after that, LuneOS was unmaintained and didn't build anymore (pmaports#49). The packages have been removed from postmarketOS. If you are interested in making it work again and maintaining the packages, here are the old build recipies for reference.

All information above is outdated.

It's sad that we can't maintain this right now and had to remove it. But nevertheless, some of the efforts lived on, because ncopa from Alpine Linux could use some of the musl related qt5-qtwebengine patches that magmastonealex created to make LuneOS UI work on postmarketOS. And who knows, we could be able to support this UI again in the future if someone steps up to maintain it.

Running (QEMU)

OUTDATED! You cannot choose luna in UI section anymore.
Note Choosing luna in the UI selection in pmbootstrap init is not enough to make it start right now!

Install:

  • postmarketos-ui-luna
  • mesa-dri-virtio (if in QEMU)
  • mesa
  • mesa-egl

Edit /usr/bin/start_luna.sh, to set your desired input devices on the luna-next line. Run /usr/bin/start_luna.sh to start everything. The first-use app should open.

See also #629 for more instructions and ideas for getting this running on non-accelerated phones.

Complete the steps, when you get to the black screen, click where the "next" button should be. It's not clear what causes that yet.

Once the app exits and you're presented with the home screen, run luna-send -n 1 'luna://com.palm.configurator/run' '{"types":["dbkinds","dbpermissions","activities"]}' in another terminal. Stop luna, reboot, and start luna again, and everything should be usable.

Major to-dos

  • Running this on ARM (Everything is packaged. Currently seems to crash on non-hardware accellerated devices in swrast somewhere.)
  • Trying to get this running with software rendering (Appears to work somewhat, no luck on armhf yet.) Zhuowei has a lot of research in #629.
  • Getting the HAL working (nyx-lib). (Probably involved, but can support only a couple things at first)
  • Create init service files to get services starting at boot.
  • See magmastonealex's trello board
  • Applying the LuneOS patches for qt5-qtwebengine again. magmastonealex made a version that worked with QT 5.9, but these patches are incompatible with later QT versions (details: #1459)


See also