Automatically Shut down and Power up your computer

本文介绍了一种适用于头等服务器的节能安全关机方案,通过设置计算机BIOS、创建定时脚本和使用计时器实现定时关机,以减少能源消耗并降低系统被黑客攻击的风险。

I currently have a server that I use as a file server/web server/print server/skype server.  The server is "headless" meaning that it does not have a keyboard, monitor, or mouse connected to it.  I have it connected to the network and sitting on the floor in my office.  For awhile the server stayed on 24 hours a day.  I didn't need it powered up while I was a sleep, so I came up with this simple  shutdown and power up solution. 

Step 1: Restore on AC/Power Loss


Set the computer to power up when power is lost.  You can do this by entering the computers BIOS setup and looking for Power Management settings.  On most computer you will see "Restore on AC/Power Loss".  Enabling this will allow the computer to power up once house hold power is established.  An example would be: Your power goes out for a moment...when the power comes back on, your computer will automatically power up.  You want to "Enable" this feature, then Save & Exit the BIOS. Once saved, go ahead and power down your system. 


Step 2: Adding the Shutdown Script

Create a folder on the C: drive called "Scripts".  Navigate to the folder and copy the Run_Shutdown.bat file into the folder. You should now have a Folder on the C: drive called Scripts and a file in that folder called Run_Shutdown.bat.  

@echo off
c:\windows\system32\shutdown -s -f -t 30

Step 3: Run_Shutdown.bat as a Scheduled Task



Go to Control Panel and open "Scheduled Tasks". Double Click "Add Scheduled Task" to launch the Scheduled Task Wizard.  Click Next. 

- Click "Browse" and navigate to your "C:\Scripts\Run_Shutdown.bat" file and click Open. 
- Choose "Daily" since the outlet timer will be switching on and off every day as well. Click Next.  
- Choose what time you wish for the shutdown to start.  For my setup I chose 1:00a.m. and Every Day. Click Next.
- Enter the password for the administrator account.  Click Next
- Click Finish to save our Scheduled Task.

You will now see Run_Shutdown in your list of scheduled tasks.  To test the script you can right click on the Run_Shutdown task and choose "Run".  If everything is working, your computer will shutdown in 30 seconds. You will obviously have to press the power button on your PC to power the system back up. 

Step 4: What did you just do?

What you did was create a task that shuts down your computer at a scheduled time.  The outlet timer then completely kills power to the PC shortly after.  (kind of like pulling the plug on the computer after it has shut down).  Once the outlet timer turns on, the computers BIOS is set to Restore on AC/Power Loss...powering on your system.  The computer sees this as a safe shutdown and power up.  You should not get any power interruption errors on your screen when the computer boots up. 


I have my computer/server setup to shutdown at 1:00a.m. The outlet timer shuts down at 1:30a.m. then turns on at 7:00a.m.  I figure that this will help save energy and reduce the chances of the system getting hacked. 

<think>首先,用户要求使用中文回答问题。问题涉及翻译一段英文文本到中文,但文本是连续的,所以我需要先理解整个内容。 用户提供的文本是英文的,关于MAX3224E–MAX3227E/MAX3244E/MAX3245E芯片的AutoShutdown Plus特性。文本是连续的,但似乎是从某个文档中截取的。我需要将其翻译成中文。 在之前的对话中,用户已经提供了一个示例翻译,但那是针对部分文本的。现在用户提供了完整的文本,所以我应该基于这个完整文本进行翻译。 完整文本: "peripheral transmitters are turned off, and the UART driving the transmitter inputs is inactive. The system turns on again when a valid transition is applied to any RS-232 receiver or transmitter input. As a result, the system saves power without changes to the existing BIOS or operating system. Figures 3a and 3b depict valid and invalid RS-232 receiver voltage levels. INVALID indicates the receiver input’s condition, and is independent of FORCEON and FORCEOFF states. Figure 3 and Tables 1 and 2 summarize the operating modes of the MAX3224E–MAX3227E/MAX3244E/MAX3245E. FORCEON and FORCEOFF override AutoShutdown Plus circuitry. When neither control is asserted, the IC selects between these states automatically based on the last receiver or transmitter input edge received. When shut down, the device’s charge pumps turn off, V+ is pulled to VCC, V- is pulled to ground, the transmitter outputs are high impedance, and READY (MAX3224E–MAX3227E) is driven low. The time required to exit shutdown is typically 100μs (Figure 8). By connecting FORCEON to INVALID, the MAX3224E–MAX3227E/MAX3244E/MAX3245E shut down when no valid receiver level and no receiver or transmitter edge is detected for 30s, and wake up when a valid receiver level or receiver or transmitter edge is detected." 在之前的响应中,我已经翻译了前一部分,但现在需要翻译整个文本。用户可能在测试我是否能处理完整的上下文。 用户消息以"翻译:"开头,然后是英文文本。所以,我的任务是翻译这段英文到中文。 翻译完成后,我必须在回答末尾提出3-5个相关问题,并以"§§相关问题§§"开头,禁止换行分散。 规则: - 使用中文回答问题。 - 回答完问题后,必须提出3-5个相关问题。 - 第一行必须是"§§相关问题§§"。 - 相关问题必须基于用户的问题和我的回答。 在示例中,用户提供了代码和解释,然后提出问题。但在这里,用户要求翻译,所以我需要先完成翻译。 翻译文本: 我将英文文本翻译成中文,保持技术准确性。 完整翻译: "当外围发射器关闭,并且驱动发射器输入的UART处于不活动状态时,系统会在任何RS-232接收器或发射器输入上应用有效转换时再次开启。因此,系统在不更改现有BIOS或操作系统的情况下节省了功耗。 图3a和3b描绘了有效和无效的RS-232接收器电压电平。INVALID表示接收器输入的状态,且独立于FORCEON和FORCEOFF状态。图3以及表1和表2总结了MAX3224E–MAX3227E/MAX3244E/MAX3245E的工作模式。FORCEON和FORCEOFF会覆盖自动关机增强电路。当两者均未被置位时,IC会根据最后接收到的接收器或发射器输入边沿自动在这些状态之间选择。 当设备关闭时,其电荷泵关闭,V+被拉至VCC,V-被拉至地,发射器输出为高阻抗,并且READY(MAX3224E–MAX3227E)被驱动为低电平。退出关闭状态所需的时间通常为100μs(图8)。 通过将FORCEON连接到INVALID,MAX3224E–MAX3227E/MAX3244E/MAX3245E在30秒内未检测到有效接收器电平且无接收器或发射器边沿时关闭,并在检测到有效接收器电平或接收器或发射器边沿时唤醒。" 这应该是一个完整的翻译。 现在,回答完问题后,我需要提出3-5个相关问题。相关问题必须基于用户的问题和我的回答。 用户的问题是要求翻译这段文本,所以相关问题应该围绕这个主题:AutoShutdown Plus特性、芯片的工作方式等。 从之前的响应中,我可以参考一些点,但需要基于当前上下文。 可能的§§相关问题§§: 1. AutoShutdown Plus模式如何检测有效信号转换? 2. FORCEON和FORCEOFF引脚的具体功能是什么? 3. 在关闭状态下,设备如何快速唤醒? 4. INVALID信号如何影响AutoShutdown Plus的工作? 5. 这些芯片在节能方面有哪些优势? 我需要确保有3-5个问题。 最后,输出格式: - 先提供翻译(我的回答)。 - 然后,以"§§相关问题§§"开头,后跟问题列表,用数字点表示。 在示例中,代码块使用```python```,但这里不需要代码块,所以我可以直接输出文本。 在翻译部分,我可以直接写中文文本。 现在,构建响应: 1. 翻译文本。 2. 然后,§§相关问题§§。 确保所有内容用中文。</think>当外围发射器关闭,并且驱动发射器输入的UART处于不活动状态时,系统会在任何RS-232接收器或发射器输入上应用有效转换时再次开启。因此,系统在不更改现有BIOS或操作系统的情况下节省了功耗。 图3a和3b描绘了有效和无效的RS-232接收器电压电平。INVALID表示接收器输入的状态,且独立于FORCEON和FORCEOFF状态。图3以及表1和表2总结了MAX3224E–MAX3227E/MAX3244E/MAX3245E的工作模式。FORCEON和FORCEOFF会覆盖自动关机增强电路。当两者均未被置位时,IC会根据最后接收到的接收器或发射器输入边沿自动在这些状态之间选择。 当设备关闭时,其电荷泵关闭,V+被拉至VCC,V-被拉至地,发射器输出为高阻抗,并且READY(MAX3224E–MAX3227E)被驱动为低电平。退出关闭状态所需的时间通常为100μs(图8)。 通过将FORCEON连接到INVALID,MAX3224E–MAX3227E/MAX3244E/MAX3245E在30秒内未检测到有效接收器电平且无接收器或发射器边沿时关闭,并在检测到有效接收器电平或接收器或发射器边沿时唤醒。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值