From: JimDiamond@ns.sympatico.ca   
      
   On 2022-04-05 at 10:46 ADT, Giovanni wrote:   
   > On 4/5/22 12:52, John Forkosh wrote:   
   >   
   >> You might be able to add a file in /etc/acpi/events/ so that it   
   >> ignores that AC power connected/disconnected event. I'd tried but   
   >> failed to do a similar thing on a yoga-style laptop -- disable the   
   >> keyboard when folded to yoga-style, and re-enable it when folded   
   >> back. So, first modify the acpi/acpi_handler.sh to log every single   
   >> event it ever sees. Then plug/unplug the AC power and check the   
   >> logs. If you're actually trapping those events, then you should   
   >> likely be able to add some events/ scripts to handle them however you   
   >> prefer. (But, like I said, I failed to accomplish all that.)   
   >   
   > That may work on 14.2 and lower versions. The elogind daemon intercepts   
   > the events before they get to the acp handler.   
   >   
   > In 15.0 had to change the file /etc/elogind/logind.conf to ignore 'halt'   
   > and 'suspend' events.   
      
   Hi Giovanni,   
      
   as I mentioned to John, I was hoping to avoid it waking up in the   
   first place, which I assume (*cough*) is because of some change in how   
   "hardware events" are handled.   
      
   I did change a couple of entries in /etc/elogind/logind.conf when I   
   initially installed 15.0, but that file hasn't been changed since well   
   before 5.15.27 was installed.   
      
    Jim   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|