<div dir="ltr"><div dir="ltr"><div>Using the Debian Stretch plus SID Source repository and satisfying all the dependencies required for a build, everything happens perfectly.</div><div>The installation of the packages after the compilation is perfect, the modules work correctly.</div><div>However, in my first compilation of the nvidia-persistenced package without any modification, I had an error that causes the "nvidia-persistenced.service" service to not work.</div><div><br></div><div>Compilation method:</div><div><br></div><div>sudo apt-get -b source nvidia-driver nvidia-settings nvidia-modprobe nvidia-settings nvidia-support glx-alternative-nvidia init-system-helpers nvidia-persistenced</div><div><br></div><div>Installation response via apt (I've created a local repository to facilitate):</div><div><br></div><div>Note: I tested the installation on a VM, since I already have a distro with the functional driver</div><div><br></div><div>...</div><div>Configuring nvidia-persistenced (418.56-1) ...</div><div>Alert: The home directory /var/run/nvpd/ you specified can not be accessed: No such file or directory</div><div>Adding system user 'nvpd' (UID 115) ...</div><div>Adding new group 'nvpd' (GID 118) ...</div><div>Adding new user 'nvpd' (UID 115) with group 'nvpd' ...</div><div>Not creating personal directory '/var/run/nvpd/'.</div><div>Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service → /lib/systemd/system/nvidia-persistenced.service.</div><div>Job for nvidia-persistenced.service failed because the control process exited with error code.</div><div>See "systemctl status nvidia-persistenced.service" and "journalctl -xe" for details.</div><div>...</div><div><br></div><div>Checking service status:</div><div><br></div><div><br></div><div>stretch@debian:/usr/src/nv$ systemctl status nvidia-persistenced.service</div><div>● nvidia-persistenced.service - NVIDIA Persistence Daemon</div><div>   Loaded: loaded (/lib/systemd/system/nvidia-persistenced.service; enabled; vendor preset: enabled)</div><div>   Active: failed (Result: exit-code) since Wed 2019-05-08 01:59:51 -03; 7min ago</div><div><br></div><div>Verifying further details:</div><div><br></div><div>stretch@debian:/usr/src/nv$ sudo journalctl -xe</div><div>-- Defined-By: systemd</div><div>-- Support: <a href="https://www.debian.org/support">https://www.debian.org/support</a></div><div>-- </div><div>-- The nvidia-persistenced.service drive is starting.</div><div>mai 08 01:59:51 debian nvidia-persistenced[19166]: Started (19166)</div><div>mai 08 01:59:51 debian nvidia-persistenced[19166]: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory</div><div>mai 08 01:59:51 debian nvidia-persistenced[19165]: nvidia-persistenced failed to initialize. Check syslog for more details.</div><div>mai 08 01:59:51 debian nvidia-persistenced[19166]: Shutdown (19166)</div><div>mai 08 01:59:51 debian systemd[1]: nvidia-persistenced.service: Control process exited, code=exited status=1</div><div>mai 08 01:59:51 debian systemd[1]: Failed to start NVIDIA Persistence Daemon.</div><div>-- Subject: A unidade nvidia-persistenced.service falhou</div><div>-- Defined-By: systemd</div><div>-- Support: <a href="https://www.debian.org/support">https://www.debian.org/support</a></div><div>-- </div><div>-- The nvidia-persistenced.service unit failed.</div><div>-- </div><div>-- The result is failed.</div><div>mai 08 01:59:51 debian systemd[1]: nvidia-persistenced.service: Unit entered failed state.</div><div>mai 08 01:59:51 debian systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.</div><div>mai 08 02:00:24 debian systemd[1]: Reloading.</div><div>mai 08 02:00:24 debian systemd[1]: apt-daily-upgrade.timer: Adding 58min 40.128838s random time.</div><div>mai 08 02:00:24 debian systemd[1]: anacron.timer: Adding 4min 57.391958s random time.</div><div>mai 08 02:00:24 debian systemd[1]: apt-daily.timer: Adding 1h 8min 57.545202s random time.</div><div>mai 08 02:00:34 debian sudo[17446]: pam_unix(sudo:session): session closed for user root</div><div>mai 08 02:00:37 debian PackageKit[860]: get-updates transaction /228_becdbacd from uid 1000 finished with success after 916ms</div><div>mai 08 02:00:38 debian PackageKit[860]: get-updates transaction /229_eaccaccc from uid 1000 finished with success after 913ms</div><div>mai 08 02:01:29 debian sshd[1441]: pam_unix(sshd:session): session closed for user stretch</div><div>mai 08 02:01:29 debian systemd-logind[351]: Removed session 5.</div><div>-- Subject: Session 5 has been terminated</div><div>-- Defined-By: systemd</div><div>-- Support: <a href="https://www.debian.org/support">https://www.debian.org/support</a></div><div>-- Documentation: <a href="http://www.freedesktop.org/wiki/Software/systemd/multiseat">http://www.freedesktop.org/wiki/Software/systemd/multiseat</a></div><div><br></div><div>However, when checking if the package is installed:</div><div><br></div><div>stretch@debian:~$ dpkg -l libnvidia-cfg1* | grep ^ii</div><div>ii  libnvidia-cfg1:amd64 418.56-2     amd64        NVIDIA binary OpenGL/GLX configuration library</div><div><br></div><div>Recompiling manually by removing the line containing the "--no-create-home \" code from the files:</div><div><br></div><div>rm -rf nvidia-persistenced*.deb</div><div>cd `ls -d */ | grep nvidia-persistenced`</div><div>sed -i "/--no-create-home/d" `find . -type f -a -exec grep -l "\-\-no-create-home"  '{}' \;`</div><div>cd -</div><div>dpkg-scanpackages -m -t deb . | sudo gzip -c > "$BDIR"Packages.gz</div><div>sudo apt-get update</div><div>sudo apt-get install --reinstall nvidia-persistenced</div><div><br></div><div>...</div><div>Configuring nvidia-persistenced (418.56-1) ...</div><div>Job for nvidia-persistenced.service failed because the control process exited with error code.</div><div>See "systemctl status nvidia-persistenced.service" and "journalctl -xe" for details.</div><div>...</div><div><br></div><div>Note 2: This error that occurred was due to the VM because you do not have the NVidia card in it, but note that the following error disappears:</div><div><br></div><div>Alert: The home directory /var/run/nvpd/ you specified can not be accessed: No such file or directory</div><div>Not creating personal directory '/var/run/nvpd/'.</div><div><br></div><div>The NVidia driver compiled and installed on my actual machine contains the following information:</div><div><br></div><div>dpkg -l nvidia-persistenced* | grep ^ii</div><div>ii  nvidia-persistenced 418.56-1     amd64        daemon to maintain persistent software state in the NVIDIA driver</div><div><br></div><div>systemctl status nvidia-persistenced.service</div><div>● nvidia-persistenced.service - NVIDIA Persistence Daemon</div><div>   Loaded: loaded (/lib/systemd/system/nvidia-persistenced.service; enabled; vendor preset: enabled)</div><div>   Active: active (running) since Wed 2019-05-08 06:18:48 -03; 2h 54min left</div><div>  Process: 4967 ExecStart=/usr/bin/nvidia-persistenced --user nvpd (code=exited, status=0/SUCCESS)</div><div> Main PID: 4974 (nvidia-persiste)</div><div>    Tasks: 1 (limit: 4915)</div><div>   CGroup: /system.slice/nvidia-persistenced.service</div><div>           └─4974 /usr/bin/nvidia-persistenced --user nvpd</div><div><br></div><div>sudo systemctl restart nvidia-persistenced.service</div><div>sudo journalctl -xe</div><div>-- Subject: Unidade nvidia-persistenced.service being turned off</div><div>-- Defined-By: systemd</div><div>-- Support: <a href="https://www.debian.org/support">https://www.debian.org/support</a></div><div>-- </div><div>-- The nvidia-persistenced.service unit  is being turned off.</div><div>mai 08 03:28:57 DarkElven systemd[1]: Stopped NVIDIA Persistence Daemon.</div><div>-- Subject: A unidade nvidia-persistenced.service completed the shutdown</div><div>-- Defined-By: systemd</div><div>-- Support: <a href="https://www.debian.org/support">https://www.debian.org/support</a></div><div>-- </div><div>-- The nvidia-persistenced.service unit  completed the shutdown</div><div>mai 08 03:28:57 DarkElven systemd[1]: Starting NVIDIA Persistence Daemon...</div><div>-- Subject: Unidade nvidia-persistenced.service being initiated</div><div>-- Defined-By: systemd</div><div>-- Support: <a href="https://www.debian.org/support">https://www.debian.org/support</a></div><div>-- </div><div>-- The nvidia-persistenced.service unit  is being started.</div><div>mai 08 03:28:57 DarkElven nvidia-persistenced[9105]: Started (9105)</div><div>mai 08 03:28:57 DarkElven systemd[1]: Started NVIDIA Persistence Daemon.</div><div>-- Subject: Unidade nvidia-persistenced.service completed the startup</div><div>-- Defined-By: systemd</div><div>-- Support: <a href="https://www.debian.org/support">https://www.debian.org/support</a></div><div>-- </div><div>-- The nvidia-persistenced.service unit completed the startup</div><div><br></div><div><br></div><div>While testing the builds, I noticed that the repositories were updated on "2019-05-06 23:23". The compilation I made, where I specified the missing "/var/run/nvpd/" folder was made in "2019-05-05" and today when I did a new build without modifying anything, it worked correctly.</div><div><br></div><div>I noticed that what I compiled for the first time, "nvidia-persistenced.service" was specifying the folder in "ExecStart", so the error occurred. Now it is not specified:</div><div><br></div><div>[Unit]</div><div>Description=NVIDIA Persistence Daemon</div><div>Wants=syslog.target</div><div><br></div><div>[Service]</div><div>Type=forking</div><div>ExecStart=/usr/bin/nvidia-persistenced --user nvpd</div><div>ExecStopPost=/bin/rm -rf /var/run/nvidia-persistenced</div><div><br></div><div>[Install]</div><div>WantedBy=multi-user.target</div><div><br></div><div>Now the compiled package is working normally, which means that the error I mentioned is already fixed. However, you should be very careful when choosing which packages to use for it so that it is as stable as possible.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em seg, 6 de mai de 2019 às 03:03, Debian Bug Tracking System <<a href="mailto:owner@bugs.debian.org">owner@bugs.debian.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank you for filing a new Bug report with Debian.<br>
<br>
You can follow progress on this Bug here: 928497: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928497" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928497</a>.<br>
<br>
This is an automatically generated reply to let you know your message<br>
has been received.<br>
<br>
Your message is being forwarded to the package maintainers and other<br>
interested parties for their attention; they will reply in due course.<br>
<br>
As you requested using X-Debbugs-CC, your message was also forwarded to<br>
  <a href="mailto:elppansmk@gmail.com" target="_blank">elppansmk@gmail.com</a><br>
(after having been given a Bug report number, if it did not have one).<br>
<br>
Your message has been sent to the package maintainer(s):<br>
 Debian NVIDIA Maintainers <<a href="mailto:pkg-nvidia-devel@lists.alioth.debian.org" target="_blank">pkg-nvidia-devel@lists.alioth.debian.org</a>><br>
<br>
If you wish to submit further information on this problem, please<br>
send it to <a href="mailto:928497@bugs.debian.org" target="_blank">928497@bugs.debian.org</a>.<br>
<br>
Please do not send mail to <a href="mailto:owner@bugs.debian.org" target="_blank">owner@bugs.debian.org</a> unless you wish<br>
to report a problem with the Bug-tracking system.<br>
<br>
-- <br>
928497: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928497" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928497</a><br>
Debian Bug Tracking System<br>
Contact <a href="mailto:owner@bugs.debian.org" target="_blank">owner@bugs.debian.org</a> with problems<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Att.:<br>Marcelo Klumpp<br>Analista de Suporte - GNU/Linux</div>