LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-19-2021, 02:28 AM   #1
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Rep: Reputation: Disabled
What remote actions count as 'activity' against the Suspend setting?


This is hopefully a straightforward question:

I have a machine running Ubuntu 20.04.2 LTS - it's a desktop with a monitor and keyboard and everything, and I remotely connect to it via ssh and sftp from other computers in my house (LAN only) throughout the day, however its currently set to suspend when idle (I think the timer is 15 or 20 minutes - it isn't terribly long). The problem is, even with open sftp connections or an ssh terminal, it will still suspend - I've tried leaving htop running thinking 'well that refreshes over and over that may do it' and it still suspended. I have also tried 'streaming' music from it, and it still suspends. So what can I do to keep it 'up' short of sending more WoL packets everytime it times out or disabling the suspend feature?
 
Old 04-19-2021, 12:40 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
xdotool with a mouse-wiggling script?
This did it for me:
Code:
# Because the above might've taken a very long time,
# wiggle the mouse to disable screensaver:
xdotool mousemove_relative --sync -p 0 100; sleep 0.1; xdotool mousemove_relative --sync -p 180 100
 
  


Reply



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] KDE suspend not working but pm-actions work fine - Slackware 13.37.0 paladin.michael Linux - Laptop and Netbook 8 07-07-2011 05:06 PM
DBD::mysql::st execute failed: Column count doesn't match value count at row 1 shifter Programming 2 02-24-2010 07:42 PM
Need a way to count sub-directories and get a total count Mo-regard Linux - Newbie 1 08-14-2009 09:10 AM
LXer: SCO v Linux: renewed actions to cease and desist against SCO in Germany LXer Syndicated Linux News 0 11-10-2007 11:30 PM
Should posts in general count on your post count? Joey.Dale General 16 01-27-2004 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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