# Linux Display shows nothing

**URL:** <https://forums.ankiweb.net/t/linux-display-shows-nothing/24890>\
**Category:** Help\
**Created:** [November 24, 2022, 7:26pm UTC](https://forums.ankiweb.net/t/linux-display-shows-nothing/24890 "2022-11-24T19:26:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CherryTree](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@CherryTree](https://forums.ankiweb.net/u/CherryTree)\
**Post date:** [November 24, 2022, 7:26pm UTC](https://forums.ankiweb.net/t/linux-display-shows-nothing/24890/1 "2022-11-24T19:26:05Z")

</div>

Hi when I open up anki there is nothing shown. Only the top menu. The decks and card options are missing.

 ![anki](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/a610936a0b84739c9424f2a19b6bc66c01fe23f9.png)

in the terminal it gives a message:

“”"  
Anki starting…  
Initial setup…  
Preparing to run…  
Starting main loop…  
mpv not found, reverting to mplayer  
Qt warning: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2978, resource id: 21956697, major code: 40 (TranslateCoords), minor code: 0  
“”"

Any Idea what is causing the error?

---

<div class="post-metadata">

**Author:** ![rafaeldepaula](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/rafaeldepaula/32/11821_2.png) [@rafaeldepaula](https://forums.ankiweb.net/u/rafaeldepaula)\
**Post date:** [November 24, 2022, 9:33pm UTC](https://forums.ankiweb.net/t/linux-display-shows-nothing/24890/2 "2022-11-24T21:33:20Z")

</div>

For Anki v2.1.50+, there’s two versions of the program (Qt5 and Qt6). On Linux, Qt6 version fixes that issue:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/d/d0afe7305d0bc64e04b706f79f2897fe8b3464cc.png)

If you want the v2.1.49 or older, you should edit these lines on the .desktop file of Anki to look something like this:

```auto
TryExec=anki --no-sandbox
Exec=anki --no-sandbox %f

```

---

<div class="post-metadata">

**Author:** ![CherryTree](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@CherryTree](https://forums.ankiweb.net/u/CherryTree)\
**Post date:** [November 25, 2022, 10:33am UTC](https://forums.ankiweb.net/t/linux-display-shows-nothing/24890/3 "2022-11-25T10:33:38Z")

</div>

thanks for the answer. I can´t get it to work with qt6. with qt5 at least the buttons work in the upper taskbar but with qt6 the programm seems to crash already on startup. I can´t click or do anything.

Okay This worked for me:

Hardware acceleration defaults to on. If you experience blank screens or display issues, you can try enabling software rendering using the terminal:

```auto
echo software > ~/.local/share/Anki2/gldriver6

```

If you wish to switch back to the default, change `software` to `auto`, or remove that file.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [December 25, 2022, 10:34am UTC](https://forums.ankiweb.net/t/linux-display-shows-nothing/24890/4 "2022-12-25T10:34:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
