---
title: 'fix long loading of zathura'
url: 'https://willifix.net/blog/fix-long-loading-of-zathura'
markdown: 'https://willifix.net/blog/fix-long-loading-of-zathura.md'
date: '2026-08-04'
description: 'In the last few days I have been working with PDF files again. I noticed that the PDF reader I use, Zathura, takes a surprisingly long pause of 2-3 seconds the first time I start it. However, this behavior only occurred the first time I started the application. So I started to analyze the problem. …'
---

# fix long loading of zathura

## [fix long loading of zathura](https://willifix.net/blog/fix-long-loading-of-zathura)

    4th Aug 2026  

In the last few days I have been working with PDF files again. I noticed that the PDF reader I use, [Zathura](https://pwmt.org/projects/zathura), takes a surprisingly long pause of 2-3 seconds the first time I start it. However, this behavior only occurred the first time I started the application.

So I started to analyze the problem. I used the strace tool, which promptly gave me valid answers. ![trace.jpg](https://willifix.net/user/pages/03.blog/fix-long-loading-of-zathura/trace.jpg)

On the picture you can see that `Zathura` tries to request something from the `nvidia` card. And right there it takes about 2 seconds until the process is completed (line 10 close =0)

This information narrowed down the error considerably. So it's not the application's fault, but the application wants to do something with the graphics card. What do such applications do today? They use hardware acceleration to render the content.

#### the fix

I have been able to work out a workaround for `Zathura`. `Zathura` can be made not to use the hardware acceleration with the help of an environment variable. The variable **GSK\_RENDERER=cairo** takes care of this. Strictly speaking, it is the GTK engine that gets the information to render purely software-based.

i added a alias in my .zshrc

```bash
alias zathura="GSK_RENDERER=cairo zathura"
```

After that I could no longer notice any loading delay with `Zathura`

#### some notes

The problem here is the dynamic power management which I have activated on my graphics card (options nvidia NVreg\_DynamicPowerManagement=0x02) with 0x00 it does not hang

useful commands for analyses:

```bash
watch cat /proc/driver/nvidia/gpus/0000:01:00.0/power
cat /proc/driver/nvidia/params
echo off | sudo tee /sys/bus/pci/devices/0000:01:00.0/power/control
cat /usr/share/glvnd/egl_vendor.d/*.json
```

 [ Previous Post](https://willifix.net/blog/spotiplay-withouth-nodered) [Next Post ](https://willifix.net/blog/monitoring-tpm-pcr-state-changes)

---

## Navigation

- Parent: [Blog](https://willifix.net/blog.md)
- Previous: [Monitoring TPM PCR State Changes](https://willifix.net/blog/monitoring-tpm-pcr-state-changes.md)
- Next: [grav2 spotify playing plugin without needing Node-RED](https://willifix.net/blog/spotiplay-withouth-nodered.md)
