Remote desktop keeps going to sleep

  1. Hi, I am using my home PC [Win 10] to connect to my headless Server [Win 2016] via Remote Desktop. If my home PC goes to sleep then my Remote Desktop session pauses and then resumes once my home PC wakes up. This is quite annoying especially if something is running on the server and then my home PC goes to sleep. I don't want to keep my home PC on all the time just to keep the remote desktop session alive. Is there a way to keep the remote desktop session alive whilst my home PC sleeps.

    The only solution to come to mind is to run TightVNC instead. Any other suggestions?

  2. Hi there

    @snifftheglove

    The problem basically is that if your server is running an application started by you then it will pause if your user becomes suspended -- i.e in sleep mode or whatever . You can get round this by running [if possible] an application in the background [on the server] so in fact having things like a music / video server running shouldn't be a problem as you can connect to it at any time. That's why on the whole I prefer Linux boxes as servers - especially for running headless -- really simple with things like CRONTAB to schedule tasks like backups to be run at specific times . I'm sure though as Windows 2016 server is a professional product there must be ways of scheduling jobs to run whether you are logged on or not. Without knowing what types of work you are doing on the server it's difficult to give any more advice. One thing I'd look at though is say running some Linux VM's on the server -- these can then do all sorts of things - even submit jobs to the server etc without you having to connect via RDP. The problem inherently with Windows [not server editions] is that they are essentially single user systems so when logged off or in sleep mode" processes started by that user are quiesced - unless background jobs !! Cheers

    jimbo

  3. Interesting, my experience has been decidely different. I have several machines that I run headless where my only access is via remote desktop. I have all sorts of tasks running on those systems that continue to run for weeks and months even if my remote desktop connection is suspended. These include: Recording live television broadcasts compressing video [which I start manually and which continues when remote desktop is suspended] software downloads performing automatic backups or even manually initiated backups which continue when remote desktop is suspended performing other automated tasks of various kinds sending automated e-mail responses lots more! Basically, anything that doesn't need direct user interaction should be able to continue on even while your remote desktop session is suspended. Of course, you need to make sure that the system is not configured to go to sleep after a period of time. I don't know right off the top of my head where the sleep / timeout settings are for Server 2016, but unlike client operating systems, the server systems are usually not set to sleep by default. So the test to determine if this is what is happening would be to hookup a monitor / mouse / keyboard just temorarily as a test. Do your programs get suspended after some period of inactivity? If so, that would indicate to me that the issue is one of the system going to sleep and suspending operations.

    - - - Updated - - -

    snifftheglove,

    The more I think about this, the more it bothers me

    . Do you have any more information about this? Is it some specific apps that are getting suspended?

    Let's face it, there are data centers filled with tens of thousands of Windows servers that all run headless and have no problems continuing to perform their tasks when remote desktop sessions are disconnected so your experience is not the norm. Or am I simply misunderstanding the question?

    Let me know some specifics and maybe I can even stand up a 2016 server and see if I can recreate your scenario.


 

With Remote Desktop Connection [RDC], you can sit at a computer and connect to another computer in a different location [the remote computer].  For example, you can sit at your home PC and connect to your work PC, and use all of your apps, files, and network resources as if you were sitting right in front of your work PC.  The remote desktop feature is compatible with sleep mode in the Apple, Windows 7, Windows 8, and Windows 10 operating systems.

A client [desktop] computer must either be on or in sleep mode for remote access to work.  In order to wake a computer from sleep mode for a remote desktop session, you’ll need to have the ARP [Address Resolution Protocol] offload and the NS [Neighbor Solicitation] offload features turned on [on the desktop’s network card.]   These features allow the network card to maintain and renew the network address lease and routing information on behalf of the PC while the PC is in a low-power sleep state.  With these features turned on, a user can connect to a sleeping computer just as he/she would if the machine were on. 

The ARP offload and NS offload features differ from Wake on LAN [WOL]: they make the PC addressable via its IP address and do not require that data be sent via “Magic Packet” to the broadcast address before getting routed to the sleeping host machine.  Hence, when the ARP and NS offloads are active, a remote desktop connection can be made to a sleeping host in the same manner as a PC that is awake, with only an IP address.

The ARP offload and NS offload features are found on the advanced properties tab of the network card.  They are typically turned on by default, so it’s really about determining whether the card has the features.  Most computers manufactured since 2010 have cards with these features, and any network card based on nVIDIA NX1 or NX2 chip sets will have it as well.

Note that network card manufacturers may use slightly different names for these features, but the names are generally similar to “Address Resolution Protocol offload” and “Neighbor Solicitation offload” [e.g., “ARP Proxy”].  You can always call the computer OEM or the network card vendor if you can’t locate the features. 

Visit the following Microsoft webpages for additional information about remote access:

  • Networking Power Management – features available in Windows 7.
  • Microsoft Remote Desktop Clients – an overview
  • Remote Desktop Connection  FAQs – this link will detect the OS you're using, so make sure you access this link from the computer of interest.  Note that this web page incorrectly states that, “you'll need to make sure the settings for sleep and hibernation are set to Never, since you can't connect to a PC that's asleep or hibernating.”  This statement is false when ARP offload and NS offload features are turned on, and Energy Star has requested that Microsoft clarify it.

I have a windows 10 desktop machine and want to run this machine for an infinite amount of time. To do so, the following changes are made on my machine.

With this change, I expect my machine to run for infinite time. However, machine goes into sleep mode after remote connection.

Please help me to keep machine awake for an infinite amount of time even after remote connection.

2

Dear all, On a Win7 PC lab we have sleep enabled and want to retain the sleep function. If a local user is logged and has jobs, the computer doesn't go to sleep, as expected. We can also easily wake the computer when initating the remote session. However, when only a Remote desktop session is active, and jobs [programs that are processor heavy] are started in the session, and the session is disconnected [but not logged off!], the computer goes to sleep, regardless of the programs still running. If the connection to the RD session is kept open, the sleep is disabled. The question: how to prevent sleep if programs are still running in an active but dicsonnected RD session? Seems silly that a RD session must be kept open to prevent sleep, even if processor is engaged 100% in both cases.

Thanks!

0

Define 'jobs'. Usually a PC will go to sleep even if stuff is running, unless someone is actively moving the mouse or using the keyboard.

0

You are going to want to go to do this. 1. Go to Control Panel 2. Go to Power Options 3. On the left hand side there should be and option that says "Change when the computer sleeps" click that option if not change whichever plan setting you are currently on. 4. On the drop down box for "Put the computer to sleep" change to whichever you desire, since you don't want it to go to sleep then change the option to "Never" and the bottom of the options from the drop down box.

I Hope this helps

0

4. On the drop down box for "Put the computer to sleep" change to whichever you desire, since you don't want it to go to sleep then change the option to "Never" and the bottom of the options from the drop down box.

Thanks for the quick answer, but I _want_ the computer to go to sleep when no user programs are running [e.g. my application has finished and I don't connect for several days] and _not_ to go to sleep otherwise [e.g. if any user application is running].

In answer to 'SomeoneSomewhere', when I leave a computer with open local session and applications [jobs] running, it won't go to sleep, even if the session is locked and noone is at the pc. This is what I want with a RD session, to behave the same. But it doesn't...

0

4. On the drop down box for "Put the computer to sleep" change to whichever you desire, since you don't want it to go to sleep then change the option to "Never" and the bottom of the options from the drop down box.

Thanks for the quick answer, but I _want_ the computer to go to sleep when no user programs are running [e.g. my application has finished and I don't connect for several days] and _not_ to go to sleep otherwise [e.g. if any user application is running].

In answer to 'SomeoneSomewhere', when I leave a computer with open local session and applications [jobs] running, it won't go to sleep, even if the session is locked and noone is at the pc. This is what I want with a RD session, to behave the same. But it doesn't...

Ok what you can do when you are finished on your computer open command prompt and type "shutdown /h" [without the quotations] this puts the computer into hibernation mode which is a sleep mode and all you would have to do is move the mouse or hit a key and it wakes the computer up.

0

You can either disable sleep in power options or use a FREE program called "caffeine" created by Zhorn Software. Great little program that pressed a function key in the background every few seconds.

0


Ok what you can do when you are finished on your computer open command prompt and type "shutdown /h" [without the quotations] this puts the computer into hibernation mode which is a sleep mode and all you would have to do is move the mouse or hit a key and it wakes the computer up.

Ah thanks again for your effort, but I still need the following: 1. if no user programs are running, go to sleep [say in 1 hour] 2. if console sessison is active and programs are running, don't sleep 3. if a remote session is active and programs are running, don't sleep

The problem is, 1 and 2 work, but 3 doesn't...

[Long story] why all this, because we have number of students working both locally and remotely, and we want computers to sleep when not being used for days... but to be available remotely. [this works, we can wake them remotely]

0


Ok what you can do when you are finished on your computer open command prompt and type "shutdown /h" [without the quotations] this puts the computer into hibernation mode which is a sleep mode and all you would have to do is move the mouse or hit a key and it wakes the computer up.

Ah thanks again for your effort, but I still need the following: 1. if no user programs are running, go to sleep [say in 1 hour] 2. if console sessison is active and programs are running, don't sleep 3. if a remote session is active and programs are running, don't sleep

The problem is, 1 and 2 work, but 3 doesn't...

[Long story] why all this, because we have number of students working both locally and remotely, and we want computers to sleep when not being used for days... but to be available remotely. [this works, we can wake them remotely]

Ok you are going to want to go this site:

//www.softwareok.com/?seite=Microsoft/DontSleep

And you want to click this link :

Then this link:

Run the program and edit the settings however you wish. Hopefully this works for you if not you can try to contact the company whichever program you are running and ask them if they would ad a line of code to prevent the computer from shutting down. If don't know the code they can visit this site:

//msdn.microsoft.com/en-us/library/aa373208%28VS.85%29.aspx

0

Run the program and edit the settings however you wish. Hopefully this works for you if not you can try to contact the company whichever program you are running and ask them if they would ad a line of code to prevent the computer from shutting down.

I'm really thankful for your effort, but this still doesn't solve my problem... basically, I just need that a RD session behaves the same as a console session: _not_ to go to sleep when programs running in foreground, but to sleep otherwise [progams idle]. For some reason the RD session is not the same... [Long story] Manually turning sleep off is not the idea, because we run our own programs which run for hours or days [optimization and machine learning] and we don't know exactly how long [until a soultion is found!]. Typical scenario: I start jobs on several computers and go for a week. Now I need those sessions _not_ to sleep [of course] while programs are running, and to _go to sleep_ once programs are finished [to save power etc]! I have this functionality if I use console sessions, but since I also need to start jobs remotely, I need the remote sessions to behave the same - and they don't...

Adding instructions to go to sleep at the end of the program execution also is not an option, because there are also student programs, and because several programs are running at one machine.

0

This is not an objective answer because I work selling and installing a PC Power Management tool [Verdiem Surveyor] that gives you great control for what you need. You can fine tune CPU, HD i/o and NIC traffic thresholds so you never sleep an "active" computer. You can also set sleep with remote sessions yes/no, and other settings that can make your computers behave the way you need, even you can use "Application Protection", a system to allow you to declare what to do [even custom made scripts] when a certain app is open. I don't know if this is too late or not, but you can also give it a try if you want.

Page 2

I am having problems copying Excel spreadsheets from Windows 7 on my desktop to a USB flash drive. I get a message staing " there was a problem sending the command to the program". I have tried starting a new spreadsheet on the USB drive and I get the same message. I have tried different USB drives with the same message. I did not have this problem before and do not understand why this has changed. Please help.
Thanks. j

0

Is the file open when trying saving it, or you're copying it as any other file on the USB drive and not working?

0

Yes, I am. is that a problem? Should I close it before I paste it to the USB drive?

0

Yes, try closing it, then copy and paste.

0

HI,
I tried that and I'm still getting the same message" problem sending command to the program". Now what?

0

Can you copy a different file to the USB drive?

0

I can copy Word files but not Excel. Let me put it this way. I can copy the Excel spreadsheet but once I close it, I am unable to open it. I get the unable to send the command to the progrma message. Does that make a difference?

0

I see. Try //www.askvg.com/fix-there-was-a-problem-sending-the-command-to-the-program-error-message-in-windows/ or look for similar.

Page 3

Hi, so today i left my computer to go take a shower. I came back like 2 hours later because i got caught up in something and i see my monitor just black, it says there is no signal. Weird because I hear the fans running. I check my tower and sure enough the CPU light is on. I click my keyboard and nothing. My mouse has LEDs and they were off, i click the mouse and the led turns on for a second and then turns off again, every-time i clicked it the led turned on then off. I try to shut down my computer but the power button is useless, nothing. I hold the power button for like 10 seconds still nothing. I try the reset button, same thing. I proceed to completely disconnect the tower and monitor from power and waited and then reconnected. As soon as i reconnect my power, the tower automatically turns on and the same thing happens. Nothing on screen, fans going. I wait a little and nothing.

At this point im thinking the RAM failed or something just happened to my mobo. I turn off my power supply and disconnect the speakers, my printer, and my ethernet cable which was blinking before i disconnected it.

I powered the PSU again, this time the fans were louder, the keyboard leds were on, so was the mouse's . The monitor didnt show anything for like 10 seconds until it finally showed my login screen, my account was locked but it was still logged in, so I guess windows resumed? But it was SUPER slow, I opened task manager to find like 10 chrome.exe processes running, and vibranceGUI [a small process for CS:GO, toggles on vibrancy in graphics card settings ] I quickly end process tree and after some crash reports from chrome they shut off and my pc is back to normal now...

WTF happened???

Page 4

I have a SONY VAIO Ultrabook with a 128GB SSD. It is a SAMSUNG. I'd like to go to 512GB. Any advice?

0

Does the Sony have an M.2 slot?

It does NOT have a PCI-E M.2 slot...It MAY have an M.2 interface.

0

The specs on the SSD card are from a run of CrystalDiskInfo. I do not understand enough to know what the upgrade SSD would be. ---------------------------------------------------------------------------- CrystalDiskInfo 6.3.2 [C] 2008-2015 hiyohiyo Crystal Dew World : //crystalmark.info/ ---------------------------------------------------------------------------- OS : Windows 8.1 [6.3 Build 9600] [x64] Date : 2015/05/13 17:54:33 -- Controller Map ---------------------------------------------------------- + Standard SATA AHCI Controller [ATA] - SAMSUNG MZHPU128HCGM-00000 - Microsoft Storage Spaces Controller [SCSI] -- Disk List --------------------------------------------------------------- [1] SAMSUNG MZHPU128HCGM-00000 : 128.0 GB [0/0/0, pd1] - sg ---------------------------------------------------------------------------- [1] SAMSUNG MZHPU128HCGM-00000 ---------------------------------------------------------------------------- Model : SAMSUNG MZHPU128HCGM-00000 Firmware : UXM6401Q Serial Number : S1ACNYAD505294 Disk Size : 128.0 GB [8.4/128.0/128.0/128.0] Buffer Size : Unknown Queue Depth : 32 # of Sectors : 250069680 Rotation Rate : ---- [SSD] Interface : Serial ATA Major Version : ACS-2 Minor Version : ATA8-ACS version 4c Transfer Mode : SATA/600 | SATA/600

0

Not the specs on your current SSD, but rather what interfaces does the Sony motherboard support? Does it have an M.2 interface? In an ultrabook, maybe not. Space restrictions.... You could just switch to a 500GB SATA SSD, which your system DOES support.

0

USAFRet, I think you know quite a lot about this field. Unfortunately I do not. First of all, thank you for the very rapid runaround in response. Here is what I understand of our thread. I have a SATA SSD [based upon my CrystalDiskInfo information above. If I want to use the more advanced M.2 SSD, I must inspect the motherboard to see if it supports M.2. [Is there a way to do this without opening the machine?] If it does not support the M.2, then just goe with a 512GB Sata SSD. Mine is a samsung today. Do I have other options with Sata SSDs? Once installed, are there places in this forum that explain how to move everything from one SSD to another? Lots of questions, lots of ignorance on my part. Thanks again.

0

No problem. Not ignorance, just 'not knowing'. Without actually looking, I'd suspect that your Sony does NOT have an M.2 port. Those are pretty new. So...for a larger SSD. Yes, you can switch relatively easily. You have 2 options, either a whole new OS install on the new, larger SSD or Migrate from the old 128GB drive to the new larger drive. Either 250GB, or 500GB, or whatever. Samsung drives come with a migration software, and often include a USB cable to do it with. Connect the new drive via the included USB cable, run the migration software [hopefully it works OK]. Take the laptop apart and swap the drives. Boot, and it will probably work.

The one thing you REALLY have to look at is the thickness of the drive you wish to purchase.

All current SSD's are 2.5" format. But possibly slightly different thickness. I believe the Sony Ultrabook relies on a 7mm thick drive, as opposed to the more common 9.5mm thick drive. //www.pcworld.idg.com.au/review/sony/vaio_t_series_svt13116fgs_ultrabook/433511/

"It's worth noting that once you remove the battery, you can also remove the access panel, which allows you to access the free memory slot and the SATA drive bay, which accepts 2.5in drives that are up to 7mm thick."

Such is life with an 'ultrabook'. That's how they make them 'thin'. So...look around for a SATA 3 SSD, in a 7mm thickness. They are ALL 2.5" wide. Just a few are 7mm thick, as opposed to the normal 9.5mm.

For the M.2 possibility...look in the user manual and specs. But I doubt it.

0

USAFRet, this is terrific information. And I'm going to go look for a 512GB Samsung GB replacement drive. When I have done this so far, using SAMSUNG MZHPU128HCGM-00000, I keep getting the the XP941 PCIe, M.2 replacements [nothing about SATA]. So maybe the software that's reporting on the type/model is giving me incorrect results. My plan is to pull the SSD and go to Fry's and ask them what the 512GB upgrade is since I can't seem to find what I'm looking for on the Web. You are right. The form factor for the existing SSD is going to have to be very slim. This ultrabook is very cool, very light, and I have been very pleased with it [except for the limited space].

Thanks again for all the help. I'll let you know what happens next.

Video liên quan

Chủ Đề