Jump to content

How to automatically turn on a pc at a scheduled time?

Wictorian

I know you can do it in BIOS but can I do it with code [prefably python] so that IO can have more control on it?

 

Link to comment
Share on other sites

Link to post
Share on other sites

Not on the machine itself obviously but you can enable Wake on LAN and program another machine to send the WoL packet.

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to comment
Share on other sites

Link to post
Share on other sites

Wake on LAN is a legitimate solution. 

 

Another option would be to enable wake on key press or mouse click and emulate a keyboard / mouse with an arduino or pi  connected in the back of the pc.

if the PC is turned off, you could turn it on by simply shorting the two pins of the power on switch in the front panel header ... can be done using a mechanical relay (if full isolation is required or you want basic components), or with a transistor / mosfet ... 

You can configure in bios to have the power button act as sleep / stand-by  instead of power off and then shorting the two pins are basically sleep / wake up  

 

There are also programmable mains sockets , some also accept remote commands through bluetooth or regular wireless ... so in theory such outlet could be turned on when desired and the pc could be set from bios to automatically turn on as soon as power is detected.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

46 minutes ago, Wictorian said:

I know you can do it in BIOS but can I do it with code [prefably python] so that IO can have more control on it?

Windows or Linux? Under Linux it's pretty simple, but I'm not sure Windows support RTC-wakeups.

Hand, n. A singular instrument worn at the end of the human arm and commonly thrust into somebody’s pocket.

Link to comment
Share on other sites

Link to post
Share on other sites

On 2/25/2021 at 11:52 AM, mariushm said:

Wake on LAN is a legitimate solution. 

 

Another option would be to enable wake on key press or mouse click and emulate a keyboard / mouse with an arduino or pi  connected in the back of the pc.

if the PC is turned off, you could turn it on by simply shorting the two pins of the power on switch in the front panel header ... can be done using a mechanical relay (if full isolation is required or you want basic components), or with a transistor / mosfet ... 

You can configure in bios to have the power button act as sleep / stand-by  instead of power off and then shorting the two pins are basically sleep / wake up  

 

There are also programmable mains sockets , some also accept remote commands through bluetooth or regular wireless ... so in theory such outlet could be turned on when desired and the pc could be set from bios to automatically turn on as soon as power is detected.

 

 

@Kilrah Can I do it through my phone?

Link to comment
Share on other sites

Link to post
Share on other sites

On 2/25/2021 at 12:05 PM, WereCatf said:

Windows or Linux? Under Linux it's pretty simple, but I'm not sure Windows support RTC-wakeups.

Windows but I guess it supports

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Wictorian said:

@Kilrah Can I do it through my phone?

There are android apps to send WoL packets, so I guess yes.

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×