LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-25-2023, 02:36 PM   #1
Donny Bahama
Member
 
Registered: Aug 2009
Location: Margaritaville (a state of mind west of Las Vegas), NV
Distribution: Linux Mint
Posts: 61

Rep: Reputation: 1
Bind rtcwake to a key to wake up suspended computer?


For whatever reason, my Linux Mint machine, when suspended, won't wake up via a key press or mouse move/click - I have to manually press the power switch to wake it up. This is rather inconvenient since it's in a rackmount case inside a rack with a door - so I have to open the rack door, flip down the case's front panel, press the power switch, close the front panel, then close the rack door.

I've tested running a cron job with rtcwake and that works but I need to wake my computer whenever (not at specific times). So I'm wondering if there's a way to bind a key to run rtcwake. Instinctively, I think there's no way since, if the computer won't wake up at a key press, how is it going to respond to a keypress to trigger rtcwake? But maybe someone out there knows something I don't.
 
Old 08-25-2023, 02:47 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Output of:
Code:
grep . /sys/bus/usb/devices/*/power/wakeup
Example:
Code:
echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
And/Or
Code:
lsusb
Look at:
/etc/udev/rules.d/10-wakeup.rules

Or
Look at you systemctl rules

Look at Mints docs.
 
1 members found this post helpful.
  


Reply

Tags
cron, sleep



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
rtcwake doesn't wake PC up Teufel Linux - Software 1 01-21-2018 04:45 AM
[SOLVED] how might i resolve a broken laptop's LVDS preventing pm-hibernate and rtcwake functions ? badbetty Slackware 6 02-19-2017 07:48 AM
browser log-out when using rtcwake cauliflower Linux - Software 2 10-25-2015 04:11 AM
rtcwake on sun V100 with Debian Lenny cpparkin Linux - Hardware 0 01-23-2010 05:15 PM
eeepc + rtcwake = alarm clock pmate Linux - Laptop and Netbook 8 02-21-2009 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:25 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