AsteroidOS / asteroid

Build script for AsteroidOS, an open-source operating system for smartwatches
http://asteroidos.org
GNU General Public License v2.0
870 stars 64 forks source link

RFC: Port to smart glasses #169

Open TheOneWithTheBraid opened 2 years ago

TheOneWithTheBraid commented 2 years ago

I'd kindly ask for your thoughts on the idea of having Asteroid OS on smart glasses.

Theoretically, e.g. the Google Glass Explorer Edition is pretty much similar to smartwatches in regard of its technique: It's Android-based too, bootloader is unlockable, similar screen resolution to smartwatches.

I'm aware it would require lots of adjustments in the UI as smart glasses' principal feature is definitely not showing the time, nor it should feature a wallpaper within your vision field.

But aside of these differences, the general architecture should be similar, I guess.

What are your thoughts on this? I think, especially, the Google Glasses might get a new use by Asteroid OS as Google discontinued them.

TheOneWithTheBraid commented 2 years ago

I was just having a look at the SoC used in the Google Glass Explorer Edition v1 (which is the cheapest smart glass out there at the moment).

The OMAP 4430 itself should be supported by Linux. I am unsure whether the Google Glass uses the built-in video output of the OMAP 4430 but in case it does, video should work on the SoC.

I am unsure how the touch field at the glasses' side is built/connected - but that should be a minor driver issue.

Is there other basic hardware components to be checked before porting?

jrtberlin commented 2 years ago

Hi, I started working on a port a while back. https://github.com/jrtberlin/meta-glass1-hybris

There is additional information on the sensors here: https://github.com/jrtberlin/meta-glass1-hybris/wiki/Basic-Info

I think the touchpad emulates a dpad which was a common control in earlier versions of android as seen in the old emulator controls and on new TV remotes for Android TV.

old Android emulator

Let me know if I can help you in any way. I think we need to extend the controls in the launcher at least to support navigation with a gesture pad.

TheOneWithTheBraid commented 2 years ago

Thanks a lot! I will then buy a Google Glass v1 and do some initial tests.

jrtberlin commented 2 years ago

I have one. Let me know if you want to check something before you buy one.

TheOneWithTheBraid commented 2 years ago

I now got a Glass for testing.

For transparency: The entire kernel (including the suspicious d-pad driver) is made available here: https://android.googlesource.com/kernel/omap/+/glass-omap-xrr02

The touch bar at the side is not a normal d-pad, as it provides fractional gestures instead of simply triggering a direction.

@jrtberlin Did you try out the provided kernel by the manufacturer?