# Flickering Issues on Ubuntu 24.04

**URL:** https://discourse.slicer.org/t/flickering-issues-on-ubuntu-24-04/40678
**Category:** Support
**Created:** [December 13, 2024, 12:09pm UTC](https://discourse.slicer.org/t/flickering-issues-on-ubuntu-24-04/40678 "2024-12-13T12:09:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Kulizoop](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kulizoop](https://discourse.slicer.org/u/Kulizoop)
#### Post date: [December 13, 2024, 12:09pm UTC](https://discourse.slicer.org/t/flickering-issues-on-ubuntu-24-04/40678/1 "2024-12-13T12:09:17Z")

</div>

Dear Community,

I upgraded from Ubuntu 22.04 to 24.04 and since then, Slicer is constantly flickering when using it.

Does anybody else experience the same issues or knows where this might come from?

I use 5.7 but the issue also appears in 5.6.

Thank you in advance 🙂

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [December 13, 2024, 4:29pm UTC](https://discourse.slicer.org/t/flickering-issues-on-ubuntu-24-04/40678/2 "2024-12-13T16:29:02Z")

</div>

We use 24.04 and there is no flickering. Maybe the display drivers have been upgraded incorrectly? I’d start there (but I’m no Linux expert)

---

<div class="post-metadata">

### Author: ![Kulizoop](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kulizoop](https://discourse.slicer.org/u/Kulizoop)
#### Post date: [December 15, 2024, 6:12pm UTC](https://discourse.slicer.org/t/flickering-issues-on-ubuntu-24-04/40678/3 "2024-12-15T18:12:28Z")

</div>

I have found out that the issue only appears on wayland and not on xorg.

So the drivers are up-to-date and seem to be okay - but thank you very much! 🙂

I too don’t understand enough why Xorg works and wayland does not, but this seems to be a temporary fix.

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [December 15, 2024, 6:29pm UTC](https://discourse.slicer.org/t/flickering-issues-on-ubuntu-24-04/40678/4 "2024-12-15T18:29:33Z")

</div>

> [@Kulizoop](#):
>
> on wayland and not on xorg

I don’t have flickering issues on Wayland in Arch. There are other troubles like excessive console messages, splash screen and other windows strictly positioned according to KDE rules with self-built Slicer but not with downloadable factory archive.

All these are resolved however with:

> export QT\_QPA\_PLATFORM=“xcb”

You may add this line to a startup bash script to simplify things, if it’s not done already.

---

<div class="post-metadata">

### Author: ![Kulizoop](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kulizoop](https://discourse.slicer.org/u/Kulizoop)
#### Post date: [December 19, 2024, 11:09am UTC](https://discourse.slicer.org/t/flickering-issues-on-ubuntu-24-04/40678/5 "2024-12-19T11:09:02Z")

</div>

Thank you for your answer. I have no experience with bash scripts, so the following 2 lines are what I use. However, this does not fix the issue yet

```auto
#!/bin/bash
export QT_QPA_PLATFORM="xcb"
/opt/Slicer5.7.0/Slicer "$@"

```

---

<div class="post-metadata">

### Author: ![Kulizoop](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kulizoop](https://discourse.slicer.org/u/Kulizoop)
#### Post date: [March 11, 2025, 2:12pm UTC](https://discourse.slicer.org/t/flickering-issues-on-ubuntu-24-04/40678/6 "2025-03-11T14:12:14Z")

</div>

The problem was entirely removed by upgrading the nvidia driver from 550 to 570.
