<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=6990&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / no sleep with pm-utils & nvidia 565.77]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6990</link>
		<description><![CDATA[The most recent posts in no sleep with pm-utils & nvidia 565.77.]]></description>
		<lastBuildDate>Wed, 29 Jan 2025 19:26:13 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: no sleep with pm-utils & nvidia 565.77]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54332#p54332</link>
			<description><![CDATA[<p>I had the same problem, with the same driver and a RTX A400, but also with poweroff and logout issues.</p><p>All is good now: I deinstalled the 565.77 version and installed the devuan one (535.216.01 currently), even if <span class="bbc">nvidia-detect</span> said that this card is unsupported (it works perfectly).</p><p>I use your <span class="bbc">99-nvidia</span> file (modified a little), with the <span class="bbc">pm-suspend</span> command. Hibernation is OK too with <span class="bbc">pm-hibernate</span>. <span class="bbc">NVreg_PreserveVideoMemoryAllocations</span> is in use.</p><p>In <span class="bbc">/etc/modprobe.d</span> came a longer <span class="bbc">nvidia.conf</span>.</p><p>Many thanks <span class="bbc">hwd</span> for your file, I didn&#039;t know how to do without systemd…</p><p>The command line for the installation was:</p><div class="codebox"><pre><code> apt install firmware-misc-nonfree nvidia-kernel-dkms nvidia-driver nvidia-cuda-dev nvidia-settings nvidia-smi nvidia-xconfig nvidia-opencl-icd nvidia-opencl-common nvidia-detect nvidia-suspend-common</code></pre></div><p>In the <span class="bbc">sources.list</span> I added:</p><div class="codebox"><pre><code>deb https://deb.devuan.org/merged daedalus main non-free-firmware non-free contrib</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (meridian)]]></author>
			<pubDate>Wed, 29 Jan 2025 19:26:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54332#p54332</guid>
		</item>
		<item>
			<title><![CDATA[Re: no sleep with pm-utils & nvidia 565.77]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53624#p53624</link>
			<description><![CDATA[<p>Ok ... I found out that in order to fire pm-utils hooks, it is necessary to trigger the whole thing using <span class="bbc">pm-suspend</span>.</p><p>Unfortunately this led to the same result, even though I can see in <span class="bbc">/var/log/pm-suspend.log</span> that all hooks are fired, including mine from <span class="bbc">/etc/pm/sleep.d</span></p><p>So it seems that it&#039;s not pm-utils but the driver.</p><p>I guess I have to go deeper down the rabbit hole <img src="https://dev1galaxy.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[dummy@example.com (hwd)]]></author>
			<pubDate>Wed, 25 Dec 2024 17:29:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53624#p53624</guid>
		</item>
		<item>
			<title><![CDATA[no sleep with pm-utils & nvidia 565.77]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53619#p53619</link>
			<description><![CDATA[<p>Hi folks,</p><p>I&#039;ve been trying for 2 days to get my setup to go into standby mode (S2R) and have been unsuccessful in my attempts.</p><p>It is a system with a self compiled kernel 6.12.6 from the .config of ‘linux-image-6.1.0-28-amd64’ (<span class="bbc">make bindeb-pkg</span>) and the proprietary nvidia drivers version 565.77 for a RTX 3070/8Gb.</p><p>So far everything is running.</p><p>KDE/Plasma on X11 runs normally, gaming with wine works great ... just not sending the computer to sleep.</p><p>To achieve this I have done the following so far:</p><p>pm-utils (1.4.1-19) installed</p><div class="codebox"><pre><code>cat /proc/cmdline 

BOOT_IMAGE=/boot/vmlinuz-6.12.6-hwd root=UUID=3b0bb9e5-6471-4d97-a584-5799ea851273 ro resume=UUID=39b90cbc-cc65-4006-bd3d-9f9305d10db7 nvidia-drm. modeset=1 nvidia.NVreg_PreserveVideoMemoryAllocations=1 nvidia.NVreg_TemporaryFilePath=/var/tmp</code></pre></div><div class="codebox"><pre><code>cat /etc/pm/sleep.d/99-nvidia 
#!/bin/sh

logger ‘pm-sleep.d-99-nvidia’

case ‘$1’ in

    suspend|hibernate)
	logger ‘SLEEP’ &amp;&amp; /usr/bin/nvidia-sleep.sh suspend
        ;;

    resume|thaw)
	logger ‘RESUME’ &amp;&amp; /usr/bin/nvidia-sleep.sh resume
        ;;

esac</code></pre></div><p>However, if I now send my system to sleep using <span class="bbc">echo freeze &gt; /sys/power/state</span>, the screens go off briefly, but then come back on again immediately and the system greets me with the login screen.<br /><span class="bbc">dmesg</span> says:</p><div class="codebox"><pre class="vscroll"><code>[11399.192259] PM: suspend entry (s2idle)
[11399.205067] Filesystems sync: 0.012 seconds
[11400.050938] Freezing user space processes
[11400.052735] Freezing user space processes completed (elapsed 0.001 seconds)
[11400.052737] OOM killer disabled.
[11400.052738] Freezing remaining freezable tasks
[11406.019704] Freezing remaining freezable tasks completed (elapsed 5.966 seconds)
[11406.019712] printk: Suspending console(s) (use no_console_suspend to debug)
[11406.028557] r8169 0000:0c:00.0 eth1: Link is Down
[11406.036832] r8169 0000:0b:00.0 eth0: Link is Down
[11406.040375] sd 8:0:0:0: [sdb] Synchronizing SCSI cache
[11406.044838] NVRM: GPU 0000:01:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the &#039;Configuring Power Management Support&#039; section in the driver README.
[11406.044840] nvidia 0000:01:00.0: PM: pci_pm_suspend(): nv_pmops_suspend [nvidia] returns -5
[11406.044970] nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend returns -5
[11406.044974] nvidia 0000:01:00.0: PM: failed to suspend async: error -5
[11406.057238] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[11406.210880] PM: Some devices failed to suspend, or early wake event detected
[11406.216183] nvme nvme0: D3 entry latency set to 10 seconds
[11406.217214] nvme nvme2: D3 entry latency set to 10 seconds
[11406.218043] nvme nvme2: 8/0/0 default/read/poll queues
[11406.218096] nvme nvme0: 16/0/0 default/read/poll queues
[11406.218180] nvme nvme2: ctrl returned bogus length: 16 for NVME_NIDT_EUI64
[11406.218221] nvme nvme2: Ignoring bogus Namespace Identifiers
[11406.377399] r8169 0000:0b:00.0 eth0: Link is Down
[11406.387071] r8169 0000:0c:00.0 eth1: Link is Down
[11406.517806] ata6: SATA link down (SStatus 0 SControl 300)
[11406.517828] ata5: SATA link down (SStatus 0 SControl 300)
[11406.517845] ata4: SATA link down (SStatus 0 SControl 300)
[11406.517863] ata3: SATA link down (SStatus 0 SControl 300)
[11406.517892] usb 1-5.3: reset high-speed USB device number 6 using xhci_hcd
[11406.934994] usb 1-5.3.3: reset full-speed USB device number 8 using xhci_hcd
[11407.119860] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[11407.119874] cp210x 1-5.3.3:1.0: device disconnected
[11407.121088] cp210x 1-5.3.3:1.0: cp210x converter detected
[11407.122098] usb 1-5.3.3: cp210x converter now attached to ttyUSB0
[11407.122176] OOM killer enabled.
[11407.122177] Restarting tasks ... done.
[11407.123380] random: crng reseeded on system resumption
[11407.123413] PM: suspend exit
[11409.479482] r8169 0000:0c:00.0 eth1: Link is Up - 1Gbps/Full - flow control off
[11409.935543] r8169 0000:0b:00.0 eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx</code></pre></div><p>In the kernel log, however, I cannot find any lines from the script <span class="bbc">/etc/pm/sleep.d/99-nvidia</span><br />Neither that the script was executed (<span class="bbc">logger ‘pm-sleep.d-99-nvidia’</span>), nor that it entered any branch in the case tree (<span class="bbc">logger ‘SLEEP’</span>/<span class="bbc">logger ‘RESUME’</span>)</p><p>Accordingly, I am assuming an error in my pm-utils configuration. However, I have no idea where to start here.<br />I first thought that I forgot to start the service, but there is no init-script for the pm-utils in <span class="bbc">/etc/init.d</span></p><p>Maybe one of you has an idea how I can execute the hook.</p><p>Many thanks in advance!</p>]]></description>
			<author><![CDATA[dummy@example.com (hwd)]]></author>
			<pubDate>Wed, 25 Dec 2024 11:32:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53619#p53619</guid>
		</item>
	</channel>
</rss>
