# Running webOS headless

**URL:** <https://forum.webosose.org/t/running-webos-headless/569>\
**Category:** Platform Development\
**Created:** [October 10, 2018, 7:03am UTC](https://forum.webosose.org/t/running-webos-headless/569 "2018-10-10T07:03:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![n-jay](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/n-jay/32/126_2.png) [@n-jay](https://forum.webosose.org/u/n-jay)\
**Post date:** [October 10, 2018, 7:03am UTC](https://forum.webosose.org/t/running-webos-headless/569/1 "2018-10-10T07:03:15Z")

</div>

Is there a way for webOS to be run headless?  
As in, an RPi running webOS can be connected to a power source and the system takes care of the rest without any user intervention. That is, without the need for connecting a display or any peripherals/IO devices.

This is ideally achieved by having a specific app set as the "launcher". When the power is on, the system automatically launches that app and goes to work. The app can include only JS Services and be completely devoid of any visual component.

Is such a thing possible?

---

<div class="post-metadata">

**Author:** ![ericblade](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/ericblade/32/39_2.png) [@ericblade](https://forum.webosose.org/u/ericblade)\
**Post date:** [October 11, 2018, 2:19am UTC](https://forum.webosose.org/t/running-webos-headless/569/2 "2018-10-11T02:19:00Z")

</div>

it seems that there's been a problem where if you don't have a display attached, surface-manager will crash . . which likely means that systemd or upstart or whatever is being used right now, will probably attempt to restart it over and over ...

> [@Is there any booting issue related to HDMI connection?](http://forum.webosose.org/t/is-there-any-booting-issue-related-to-hdmi-connection/544/2):
>
> You are correct. When we boot without HDMI, the surface-manager will get crashed due to DRM issue.

probably fixing that crash would be a good place to go, first, and then you could probably run whatever you wanted in whatever fashion.

i'm thinking webOS could make a fantastic home-controller type system, i wanted to dig into that on one of the old tablets, but never really got the time to deal with it. An Ethernet connected Pi with webOS would be a fantastic device, IMO, to connect a bunch of disparate home automation devices together.

on the other hand, there's a ton of hardware/software for doing that out there in the market now, unlike a few years ago

---

<div class="post-metadata">

**Author:** ![n-jay](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/n-jay/32/126_2.png) [@n-jay](https://forum.webosose.org/u/n-jay)\
**Post date:** [October 11, 2018, 3:42am UTC](https://forum.webosose.org/t/running-webos-headless/569/3 "2018-10-11T03:42:02Z")

</div>

> [@ericblade](#):
>
> it seems that there's been a problem where if you don't have a display attached, surface-manager will crash . . which likely means that systemd or upstart or whatever is being used right now, will probably attempt to restart it over and over ...
> 
> probably fixing that crash would be a good place to go, first, and then you could probably run whatever you wanted in whatever fashion.
> 
> ![](https://yyz1.discourse-cdn.com/flex031/uploads/developer1/original/1X/57deae20e6dc3bca3b0aef4ec84d2582f88575f2.png) [Is there any booting issue related to HDMI connection?](http://forum.webosose.org/t/is-there-any-booting-issue-related-to-hdmi-connection/544/2)

Noted. That's pretty interesting.  
It seems that @JawPark has suggested a temporary fix in his question itself. I'll give it a go and see.

In the case that webOS cannot be run headless, is there any resource which I can refer to that includes which repos I need to work on if I plan to implement it?  
Based on the link you shared earlier I have a hunch that I'd have to work on the **surface-manager** and **wam** repos. Then again this is just wild guessing.

IMHO, while the documentation for app development is pretty solid, I've had some trouble finding similar docs for platform development.

> [@ericblade](#):
>
> i'm thinking webOS could make a fantastic home-controller type system,  
> ...An Ethernet connected Pi with webOS would be a fantastic device, IMO, to connect a bunch of disparate home automation devices together.

Mozilla has started their "Web of Things" project with similar intentions. Although it's not webOS it has a similar architecture from the looks of it.  
I think it's worth being checked out. 🙂

---

<div class="post-metadata">

**Author:** ![ericblade](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/ericblade/32/39_2.png) [@ericblade](https://forum.webosose.org/u/ericblade)\
**Post date:** [October 11, 2018, 10:49pm UTC](https://forum.webosose.org/t/running-webos-headless/569/4 "2018-10-11T22:49:11Z")

</div>

if surface-manager runs without crashing, then i would think that probably the remaining services and things (such as wam) would also run without crashing, and then you could safely ignore them. 😃 If you're running headless, though, you probably don't need surface-manager and wam, so you could disable them. I'm not sure if any specific upstart signaling is done by those components though . . it might be possible that some other system services wait until surface-manager or wam are available before they activate.

---

<div class="post-metadata">

**Author:** ![n-jay](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/n-jay/32/126_2.png) [@n-jay](https://forum.webosose.org/u/n-jay)\
**Post date:** [October 12, 2018, 12:44pm UTC](https://forum.webosose.org/t/running-webos-headless/569/5 "2018-10-12T12:44:59Z")

</div>

> [@ericblade](#):
>
> If you're running headless, though, you probably don't need surface-manager and wam, so you could disable them. I'm not sure if any specific upstart signaling is done by those components though . .

Is there any documentation I could refer to get some clear insight into how this whole pipeline works? Maybe something from the Palm days (assuming the stack hasn't undergone any drastic changes).

---

<div class="post-metadata">

**Author:** ![ericblade](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/ericblade/32/39_2.png) [@ericblade](https://forum.webosose.org/u/ericblade)\
**Post date:** [October 14, 2018, 2:14am UTC](https://forum.webosose.org/t/running-webos-headless/569/6 "2018-10-14T02:14:41Z")

</div>

I believe all the startup stuff is in /etc/init on device, and is usually supplied by each component. Traditionally, webOS has used Ubuntu's upstartd, I think. I'm not sure if that's different now.

---

<div class="post-metadata">

**Author:** ![Herrie](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@Herrie](https://forum.webosose.org/u/Herrie)\
**Post date:** [October 17, 2018, 9:54am UTC](https://forum.webosose.org/t/running-webos-headless/569/7 "2018-10-17T09:54:14Z")

</div>

OSE is moving or has moved to systemd recently.

---

<div class="post-metadata">

**Author:** ![Gadg3ts](https://avatars.discourse-cdn.com/v4/letter/g/48db29/32.png) [@Gadg3ts](https://forum.webosose.org/u/Gadg3ts)\
**Post date:** [October 23, 2018, 3:05pm UTC](https://forum.webosose.org/t/running-webos-headless/569/8 "2018-10-23T15:05:54Z")

</div>

If it doesn't work without something plugged into the port, the easiest solution is a HDMI 'dummy plug' like one of these:

> **[HDMI dummy plug,Headless Ghost, Display Emulator: Amazon.co.uk: Electronics](https://www.amazon.co.uk/dp/B072PV6K8J/)**
>
> £6.79

---

<div class="post-metadata">

**Author:** ![n-jay](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/n-jay/32/126_2.png) [@n-jay](https://forum.webosose.org/u/n-jay)\
**Post date:** [October 23, 2018, 5:22pm UTC](https://forum.webosose.org/t/running-webos-headless/569/9 "2018-10-23T17:22:02Z")

</div>

That looks pretty interesting @Gadg3ts,

But still it would be a stop gap. It'd be cool if webOS could be run purely headless similar to Android Things without any shoddy patchwork.
