LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-14-2022, 11:32 AM   #1
will41
Member
 
Registered: Jul 2020
Posts: 85

Rep: Reputation: Disabled
ACPI Wake-up Triggers


I'm running Fedora 36 with Cinnamon. If I run
Code:
cat /proc/acpi/wakeup
I get a list of devices that are triggers apparently for waking the system. Some are enabled, but most are disabled. Are these enabled triggers used for anything else other than waking a sleeping (suspended) system? Are there any side effects to disabling any or all of them?

I'm asking because, at some point, my Dell xps became unable to stay suspended. Something is causing the system to re-wake almost immediately. I have found that if I disable one of the triggers I can, at least, suspend the system from the command line using
Code:
systemctl suspend
If it is OK to keep it that way, I need to figure out how to make it persist (it goes back to the original enabled setting after re-boot).

Last edited by will41; 10-14-2022 at 11:34 AM.
 
Old 10-15-2022, 08:11 PM   #2
Jason_25
Member
 
Registered: Nov 2001
Posts: 183

Rep: Reputation: 23
/etc/rc.local would be the standard place for something like that. This runs at system startup. It can be created if needed. If it does not work right off the bat you can make sure it is executable and add a "shebang" up top and an exit 0 at the end.

You can put it in bashrc to have it run at login instead. You can put it in xsessionrc to have it run with a display manager session or put it in xinitrc to have it run with a scripted or manual xorg session. In the old days or with a sysvinit setup like I use you could put it in a script in /etc/init.d and use update-rc.d or something like that. Finally, you could hijack an existing script you know that runs and put your code in there.

This is how you how change those kinds of variables with sudo without having to become root by the way. But /etc/rc.local runs by default as root so you can just write it as normal.
Code:
sudo sh -c "echo '1' >> /proc/sys/net/ipv4/ip_forward"
edit: I forgot to add the scripting option of having the DE start your script for you. For KDE it is in system settings > startup and shutdown > autostart.

Last edited by Jason_25; 10-15-2022 at 08:15 PM.
 
Old 10-15-2022, 11:09 PM   #3
will41
Member
 
Registered: Jul 2020
Posts: 85

Original Poster
Rep: Reputation: Disabled
I am unsure of what changes to make without screwing something up.
Are these enabled triggers used for anything else other than waking a sleeping (suspended) system?
Are there any side effects to disabling any or all of them?
When I run
Code:
dmesg -k
I get the following, printed largely in red, repeated several times within a long list of other information
Code:
[221670.943313] nvidia 0000:01:00.0: PM: pci_pm_suspend(): nv_pmops_suspend+0x0/0x20 [nvidia] returns -5
[221670.944067] nvidia 0000:01:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 returns -5
[221670.944082] nvidia 0000:01:00.0: PM: failed to suspend async: error -5
[221671.216668] PM: Some devices failed to suspend, or early wake event detected
I assume that this gives a clue to my problem, but I have no idea on what to do to fix it. I think I have all of the Nvidia drivers installed properly.

Last edited by will41; 10-16-2022 at 01:02 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disable touchpad ACPI wake-up navigium Slackware 2 01-04-2015 08:49 AM
Can I wake up a server in "standby" or "memory" mode using wake-on-lan? songweijia Linux - Server 2 03-03-2010 07:51 PM
wake on lan not working. is this related to acpi? andrews-mark Linux - Networking 12 07-16-2009 07:28 PM
wake on lan magic packet does not wake. albean Linux - Networking 1 06-30-2007 04:57 PM
how to wake up from S3 acpi sleep state? bluesmanu Linux - Laptop and Netbook 4 01-15-2006 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration