- Local time
- 10:59 AM
- Posts
- 615
- OS
- Win 11 Pro 24H2
Hello :)
I am making a PC status display to monitor all sorts of things in my PC. The Raspberry Pi board that runs this status display gets its information from the PC over USB serial. The trick is that the RasPi must be shut down cleanly prior to the main power going off or it will potentially get corrupted. I could do it within the Pi by detecting the loss of DTR/DTS when the PC shuts down, but I think it would be cleaner to do it with a Windows task:
-> Run a batch file with the Pi shut down command over the serial port.
I can get the signal to the Pi no problem, but I need to execute it at shut down.
Am I able to do this? I don't know a lot about task scheduler, unfortunately.
I am making a PC status display to monitor all sorts of things in my PC. The Raspberry Pi board that runs this status display gets its information from the PC over USB serial. The trick is that the RasPi must be shut down cleanly prior to the main power going off or it will potentially get corrupted. I could do it within the Pi by detecting the loss of DTR/DTS when the PC shuts down, but I think it would be cleaner to do it with a Windows task:
-> Run a batch file with the Pi shut down command over the serial port.
I can get the signal to the Pi no problem, but I need to execute it at shut down.
Am I able to do this? I don't know a lot about task scheduler, unfortunately.
- Windows Build/Version
- 11 22h2
My Computer
System One
-
- OS
- Win 11 Pro 24H2
- Computer type
- PC/Desktop
- Manufacturer/Model
- Self build
- CPU
- Intel i7 13700KF
- Motherboard
- Gigabyte Z790 UD AC
- Memory
- 32 GB Team Group DDR5 - 6000 CL 30
- Graphics Card(s)
- ASUS TUF GAMING RTX 3070 Ti
- Sound Card
- On board Realtek
- Monitor(s) Displays
- ACER 34 inch
- Screen Resolution
- 4K
- Hard Drives
- 1 TB Samsung 980 Pro Nvme, 1 TB Samsung 970 EVO Nvme, 2 x Samsung 970 2TB SSD SATA
- PSU
- EVGA 1000Q
- Case
- Rosewill something or other
- Cooling
- Noctua NH-D15. A whole schwak of Noctua case fans. $$$
- Keyboard
- Logitech G815
- Mouse
- Logitech G502 Hero
- Internet Speed
- 700 up, 600 down
- Browser
- Firefox
- Antivirus
- MalwareBytes