<?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=2767&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [Solved] Editing /proc/acpi/wakeup]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2767</link>
		<description><![CDATA[The most recent posts in [Solved] Editing /proc/acpi/wakeup.]]></description>
		<lastBuildDate>Wed, 03 Apr 2019 14:48:01 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [Solved] Editing /proc/acpi/wakeup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15268#p15268</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p> ... if I can bash out a modification.</p></div></blockquote></div><p>It would seem that <span class="bbc">acpitool</span> is just an application that writes to <span class="bbc">/proc/acpi/wakeup</span>, just like you would do by using echo.&#160; </p><p>Found a helping hand at Stack Overflow and put this script to execute at boot (in <span class="bbc">rc.local</span>)</p><div class="codebox"><pre><code>#!/bin/sh
# set /proc/acpi/wakeup to disabled with acpitool

PATH=/sbin:/bin:/usr/sbin:/usr/bin:

for i in $(seq 1 9)
do
    /usr/bin/acpitool -W $i
done
groucho@devuan:~$ </code></pre></div><p>This is the result, sleep to all input devices seen by <span class="bbc">acpitool</span> set to <span class="bbc">disabled</span>:</p><div class="codebox"><pre><code>$ acpitool -w
   Device	S-state	  Status   Sysfs node
  ---------------------------------------
  1. USB0	  S4	*disabled  pci:0000:00:1d.0
  2. USB1	  S4	*disabled  pci:0000:00:1d.1
  3. USB2	  S4	*disabled  pci:0000:00:1d.2
  4. USB5	  S4	*disabled
  5. EUSB	  S4	*disabled  pci:0000:00:1d.7
  6. USB3	  S4	*disabled  pci:0000:00:1a.0
  7. USB4	  S4	*disabled  pci:0000:00:1a.1
  8. USB6	  S4	*disabled  pci:0000:00:1a.2
  9. USBE	  S4	*disabled  pci:0000:00:1a.7
  10. P0P1	  S4	*disabled  pci:0000:00:01.0
  11. P0P2	  S4	*disabled  pci:0000:00:06.0
  12. P0P3	  S4	*disabled  pci:0000:00:1c.0
  13. BR11	  S4	*disabled
  14. BR12	  S4	*disabled
  15. BR13	  S4	*disabled
  16. P0P4	  S4	*disabled  pci:0000:00:1c.4
  17. BR15	  S4	*disabled
  18. P0P5	  S4	*disabled  pci:0000:00:1e.0
  19. GBE	  S4	*disabled  pci:0000:00:19.0
  20. SLPB	  S4	*disabled
$ </code></pre></div><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 03 Apr 2019 14:48:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15268#p15268</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Editing /proc/acpi/wakeup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15245#p15245</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Rather than use <span class="bbc">acpitool</span> ...</p></div></blockquote></div><p>Indeed ...</p><p>That&#039;s the <em>first</em> option I came across when I started with this but I was at odds with the posted script because (as I understand it) it activates when the machine is going into suspend, which my machine will not do as I have turned off all PM options.</p><p>It&#039;s a Sun Ultra 24 with a buggy BIOS (last version available) and ACPI issues so as part of the intended fix, I have deactivated all PM features. </p><p>When I found <span class="bbc">sysctl</span> (which does not work with /proc/sys) and then <span class="bbc">acpitool</span>, I went with the latter as it <em>did</em> work and seemed rather more straightforward, albeit with my very clumsy script.&#160; </p><p>I&#039;ll look into the posted script again and see if I can bash out a modification. (pun intended).&#160; =-)</p><p>Thanks a lot for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 02 Apr 2019 11:35:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15245#p15245</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Editing /proc/acpi/wakeup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15233#p15233</link>
			<description><![CDATA[<p>Rather than use <span class="bbc">acpitool</span> you can <span class="bbc">echo</span> the desired values into /proc/acpi/wakeup directly.</p><p>Found this: <a href="https://askubuntu.com/questions/152403/how-do-i-make-changes-to-proc-acpi-wakeup-permanent" rel="nofollow">https://askubuntu.com/questions/152403/ … -permanent</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 02 Apr 2019 06:10:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15233#p15233</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Editing /proc/acpi/wakeup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15226#p15226</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>I could be wrong here but ...</p></div></blockquote></div><p>There&#039;s a post here <a href="https://unix.stackexchange.com/questions/417956/make-changes-to-proc-acpi-wakeup-permanent#comment921417_417965" rel="nofollow">https://unix.stackexchange.com/question … 417_417965</a> that may indicate that you are right ...</p><div class="quotebox"><blockquote><div><p>/proc/acpi/wakeup is not a child of /proc/sys, sysctl doesn&#039;t work here.</p></div></blockquote></div><p>... but it&#039;s over my pay grade, no idea how that works. =-/</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... script is the &quot;correct&quot; solution.</p></div></blockquote></div><p>Yes, the script is a solution and the one I&#039;m using works but it&#039;s awfull.</p><p>If I cannot find a way for the command <span class="bbc">acpitool -W</span> to address multiple entries in /proc/acpi/wakeup at once, I need a more complex script ie: with a minimum of elegance to do it with.</p><p>Any idea where I can get a sample script to modify from?</p><p>Thanks in advance.</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 02 Apr 2019 02:05:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15226#p15226</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Editing /proc/acpi/wakeup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15211#p15211</link>
			<description><![CDATA[<p>I could be wrong here but I think <span class="bbc">sysctl</span> can only be used for settings under /proc/sys:</p><div class="codebox"><pre><code>alpine:~$ sysctl acpi.wakeup
sysctl: cannot stat /proc/sys/acpi/wakeup: error code 2
alpine:~255$</code></pre></div><p>So a startup script is the &quot;correct&quot; solution.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 01 Apr 2019 18:37:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15211#p15211</guid>
		</item>
		<item>
			<title><![CDATA[[Solved] Editing /proc/acpi/wakeup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15174#p15174</link>
			<description><![CDATA[<p>Hello:</p><p>In an effort to weed out an acpi problem, I need to set all the <span class="bbc">/proc/acpi/wakeup</span> variables to <span class="bbc">disabled</span>.</p><p>Like this:</p><div class="codebox"><pre><code>groucho@devuan:~$ acpitool -w
   Device	S-state	  Status   Sysfs node
  ---------------------------------------
  1. USB0	  S4	*disabled  pci:0000:00:1d.0
  2. USB1	  S4	*disabled  pci:0000:00:1d.1
  3. USB2	  S4	*disabled  pci:0000:00:1d.2
  4. USB5	  S4	*disabled
  5. EUSB	  S4	*disabled  pci:0000:00:1d.7
  6. USB3	  S4	*disabled  pci:0000:00:1a.0
  7. USB4	  S4	*disabled  pci:0000:00:1a.1
  8. USB6	  S4	*disabled  pci:0000:00:1a.2
  9. USBE	  S4	*disabled  pci:0000:00:1a.7
  10. P0P1	  S4	*disabled  pci:0000:00:01.0
  11. P0P2	  S4	*disabled  pci:0000:00:06.0
  12. P0P3	  S4	*disabled  pci:0000:00:1c.0
  13. BR11	  S4	*disabled
  14. BR12	  S4	*disabled
  15. BR13	  S4	*disabled
  16. P0P4	  S4	*disabled  pci:0000:00:1c.4
  17. BR15	  S4	*disabled
  18. P0P5	  S4	*disabled  pci:0000:00:1e.0
  19. GBE	  S4	*disabled  pci:0000:00:19.0
  20. SLPB	  S4	*disabled
groucho@devuan:~$ </code></pre></div><p>As doing it via terminal lasts only till the next reboot, for the time being I&#039;m doing it with a script in <span class="bbc">/etc/rc.local</span>:</p><div class="codebox"><pre><code>usr/bin/acpitool -W 1 &amp;&amp; usr/bin/acpitool -W 2 &amp;&amp; usr/bin/acpitool -W 3 &amp;&amp; usr/bin/acpitool -W 5 &amp;&amp; usr/bin/acpitool -W 6 &amp;&amp; 
usr/bin/acpitool -W 7 &amp;&amp; usr/bin/acpitool -W 8 &amp;&amp; usr/bin/acpitool -W 9</code></pre></div><p>Now this is really <em>not</em> an elegant way to do this (running the same instruction eight times with a different variable each time!) something which is clearly reflected as the output rolls off the screen although for some reason it is not getting logged anywhere. </p><p>The man file does not indicate how to set multiple devices at once.</p><p>I understand there&#039;s also the <em>proper</em> way to do this: with a *.conf file in the /etc/sysctl.d directory.</p><div class="codebox"><pre><code>groucho@devuan:~$ cat /etc/sysctl.d/README.sysctl
Kernel system variables configuration files

Files found under the /etc/sysctl.d directory that end with .conf are parsed within sysctl(8) at boot time.  If you want to set kernel variables you can either edit /etc/sysctl.conf or make a new file.

The filename isn&#039;t important, but don&#039;t make it a package name as it may clash with something the package builder needs later. It must end with .conf though.

My personal preference would be for local system settings to go into /etc/sysctl.d/local.conf but as long as you follow the rules for the names of the file, anything will work. See sysctl.conf(8) man page for details of the format.
groucho@devuan:~$ </code></pre></div><p>I cannot figure out the syntax and cannot find any examples on line.</p><p>Anyone know how to do this?</p><p>Thanks in advance.</p><p>A.</p><p>Edit 01/04/19<br />Dir name correction</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 31 Mar 2019 22:22:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15174#p15174</guid>
		</item>
	</channel>
</rss>
