# Disable Chromium at boot up

**URL:** <https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429>\
**Category:** Support\
**Created:** [March 16, 2021, 5:53am UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429 "2021-03-16T05:53:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mizan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/mizan/32/2119_2.png) [@mizan](https://discuss.pynq.io/u/mizan)\
**Post date:** [March 16, 2021, 5:53am UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/1 "2021-03-16T05:53:47Z")

</div>

Is there any way to disable the chromium at starting up? I am using zcu104 running PYNQ 2.5. I don’t want to start the os if display port is connected.

Thanks.

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [March 16, 2021, 7:50am UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/2 "2021-03-16T07:50:07Z")

</div>

Chromium is started by the script `/root/.fluxbox/startup`. You can remove the call to Chromium there

Peter

---

<div class="post-metadata">

**Author:** ![mizan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/mizan/32/2119_2.png) [@mizan](https://discuss.pynq.io/u/mizan)\
**Post date:** [March 16, 2021, 8:26am UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/3 "2021-03-16T08:26:09Z")

</div>

Thank you Peter. I have disabled the chromium. But displayport output still shows the linux starting text and the kernel. Is there any way to completely blackout the DisplayPort Out without showing any text there?

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [March 22, 2021, 3:02pm UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/4 "2021-03-22T15:02:53Z")

</div>

Do you want the DisplayPort to be available at all? What’s the end result you are after?

If you want to disable the DIsplayPort altogether you can just disable it in the device tree. If you want access to it from PYNQ but not to be used anywhere else that’s a more generic Linux boot configuration setting that I don’t know the answer to.

Peter

---

<div class="post-metadata">

**Author:** ![mizan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/mizan/32/2119_2.png) [@mizan](https://discuss.pynq.io/u/mizan)\
**Post date:** [March 23, 2021, 6:16am UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/5 "2021-03-23T06:16:19Z")

</div>

I was actually trying to do the latter one

> If you want access to it from PYNQ but not to be used anywhere

Also, I am still stuck with the problem of running a program without connecting to the DisplayPort connection. I wanted to do a timeout/any workaround if dp connection is not available. Even though I have a workaround for HDMI But unfortunately I couldn’t find any solution for DisplayPort. The program just quit if connection is not there.

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [March 23, 2021, 11:00am UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/6 "2021-03-23T11:00:04Z")

</div>

That’s a limitation in our implementation unfortunately. I’ll add it to the list of things to look at for the next release. The `DisplayPort` class has a `modes` attribute you can use to both see if a monitor is connected and if it supports the resolution you want to use. It’ll be empty if there is no monitor is connected or something else has gone wrong otherwise it’ll be a list of VideoMode objects that are supported by the display. Excuse the `for/else` notation I’ve used for brevity, I hope it gets the idea across.

```auto
mode = VideoMode(1280, 720, 24)
displayport = DisplayPort()
for m in displayport.modes:
    if m.width == mode.width and m.height == mode.height
        displayport.configure(mode, PIXEL_RGB)
        break
else:
    print("Monitor not connected or doesn't support resolution")

```

---

<div class="post-metadata">

**Author:** ![mizan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/mizan/32/2119_2.png) [@mizan](https://discuss.pynq.io/u/mizan)\
**Post date:** [March 23, 2021, 11:19am UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/7 "2021-03-23T11:19:39Z")

</div>

I already have tried this one. But it doesn’t work. If I run this on jupyter, the kernel died. If I run from kernel as python program, dump out and exit.

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [March 23, 2021, 11:35am UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/8 "2021-03-23T11:35:25Z")

</div>

That’s weird - it’s working on my ZCU104 and 2.6 image. Can you post the contents of the error you are seeing when you run the code on the command line?

Peter

---

<div class="post-metadata">

**Author:** ![mizan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/mizan/32/2119_2.png) [@mizan](https://discuss.pynq.io/u/mizan)\
**Post date:** [March 23, 2021, 11:56am UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/9 "2021-03-23T11:56:35Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/a/a5be737d828f591f8131b418515fe867a53f040f.png)

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [March 23, 2021, 12:15pm UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/10 "2021-03-23T12:15:18Z")

</div>

You need to remove the `configure` on line 5

---

<div class="post-metadata">

**Author:** ![mizan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/mizan/32/2119_2.png) [@mizan](https://discuss.pynq.io/u/mizan)\
**Post date:** [March 23, 2021, 12:42pm UTC](https://discuss.pynq.io/t/disable-chromium-at-boot-up/2429/11 "2021-03-23T12:42:54Z")

</div>

Thank you very much. I can’t express enough gratitude. It is already been more than two months, I am stuck at this point. It worked though the print command is not running in both jupyter and kernel. But I don’t need that.  
Thanks a lot.
