3

Evince (the pdf viewer) used to reload my .pdf files after I compiled them in LaTeX. However, this behavior has recently stopped to the point where I have to manually reload Evince (control + R) to show changes. I have tried resetting the desktop environment (i.e. reboot) but this doesn't help.

Any ideas on how I can go about troubleshooting this? My Googling has given me the vague awareness that Evince depends on other services (inotify?) for this feature, but I am not sure how I can go about diagnosing what the problem is precisely.

  • System, version, etc? I have 14.04 on three different computers and it does not show the problem. Yes, it depends on inotify, but that should work out of the box on all Ubuntus. – Rmano May 26 '15 at 16:06
  • 1
    This is still 12.04. I have tried upgrading evince to it's latest version (i.e. newer than on the repository) through a .deb file, and this hasn't helped. I have another 12.04 installation on a different machine for which this behavior works perfectly. Also, it used to work on this machine, but has recently stopped. For a time it would stop working on-and-off, but now it never works. – evencoil May 26 '15 at 16:25
  • 1
    You could be running out of inotify watches. Checkout this question and the ensuing answers. – Luís de Sousa Jun 1 '15 at 12:27
3

Luis' suggestion worked. I used the following command:

echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p

as suggested by the question he linked to, which was addressing Dropbox syncing.

  • I used the mentioned command but not worked. I use pdflatex examplefile.tex to create pdf file. Is anything needed to view changes? – alhelal May 1 '17 at 8:59

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.