|
Just an idea: Why not use a the new TI Launchpad board (or any microcontroller board for that matter) and wire it parallel to the on/off switch of your motherboard. Then programm the Launchpad to close and open a port at a specific time. The wiring is extremelly simple to do even with little knowledge, but a lot of care.
We did something similar (shutdown and turn on of a PC through IR receiver and a microcontroller) for a project we had some 10 years back and it was easy even then, so this should be VERY easy now.
PS: I just mention the launchpad because it is very cheap, and also it has a thermometer built in. I can understand that most of us have preferences.
|
|
|
|
|
OK - but what if your computer is not hibernating or in a suspended state: really "off"?
You can buy power supplies that respond to "power on" signals, there are even power supplies that respond to SMS messages. (I had a remote installation near to the North Pole where the power continually failed and the machine had to be rebooted remotely - worked fine, perhaps because it was Linux with no GUI ).
Why make life more difficult than it is?
|
|
|
|
|
There's usually a setting in the bios to turn on a computer at a specific time.
|
|
|
|
|
Go buy an iBoot its a remotly controllable surge protector/ power supply. Most will run a website but others have a web service like interface you can code to, to do things. Or it may have a scheduling feature, some also can send out heartbeats and do things when they miss a certain number of packets. We used it to automatically reboot the web server when its NIC would crash. yes we replaced the server, only took a day or 3 to get one from dell.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Most BIOS's have a feature for turning on the machine at a certain time/date.
"People demand freedom of speech to make up for the freedom of thought which they avoid."
|
|
|
|
|
Really? I've never seen that in any of my computers.
|
|
|
|
|
|
OK, maybe I have then and just never realized what it was. Thanks. This could be useful.
|
|
|
|
|
Nobody's mentioned this hardware solution yet. A great many BIOSes have an option to power the system back on when power is restored. So, if you have a programmable outlet timer (easily purchased at a hardware store) and you know with absolute certainty that the system will always, always, always be off during a certain window before the desired power-on time, that could be an option. Just set the timer to turn off power a few minutes earlier, then turn it on again at your chosen time.
Bingo, you only spent about as much on this as you would on a sandwich or some Starbucks, and you got to visit the hardware store. I'd call that a two-for-one bonus, wouldn't you?
|
|
|
|
|
Assuming you're away from your machine, probably the best you're going to do is have it in hibernation with an alarm to wake it up at the appointed time. If you're accessing the machine remotely, it shouldn't be hard to send it a command to return to hibernation (I'm assuming this - never tried it) when you're done. Or, you can train your cat to push the power button.
|
|
|
|
|
Does your machine/NIC support Wake on LAN? And do you have another machine on the same LAN that is constantly up and running?
|
|
|
|
|
I know it is possible, as I had a virus do it to a Gateway 509GE I used to have. Every night, even though it was off, shutdown, not in sleep mode, it would turn itself on at a certain time. I fixed it by resetting the bios and completely reformatting the disk. But I don't know how the turning itself on was done.
|
|
|
|
|
Drill a small hole in the bottom of a bucket.
Fill the bucket full of sand.
Let the sand fall out of the bucket onto some scales.
When the scales swing down, this will turn on a switch and turn on a computer.
The computer will turn on a toy car that will drive across the room and hit a second switch.
This will turn on the second computer.
The second computer will then move a robotic arm.
This arm will turn on a switch.
This will turn on the third computer.
The third computer will turn on a magnet.
This will lift a gate and let a ball roll down a track.
The ball will hit a switch at the bottom to the track and turn on the forth computer.
The forth computer will then blow the main fuse as you are using too much electricity!
|
|
|
|
|
But Mark ... this is the C#-forum. I can't see, where you use C# in your solution.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
That happens whenever you see the scale/car/arm/ball pound into a switch to start the next computer in the chain.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
High tech Mousetrap; I like it.
|
|
|
|
|
|
Your question is an oxymoron.
If your PC is turned off than no apps can run on the same PC in that state.
You need some HW accessing your PC's MOB integrated and battery powered clock to get the system time. This HW should also have a kind of source of power (i.e. a battery), read your clock, compare values and turn on your PC.
How about a programmable UPS, or use your sprinkler control unit for manually regulate on/off times in advance, or just set your alarm (clock manual, phone via a program), wake up and use your finger to turn it on.
Why even turn your PC completely off? What should the PC do after it is on?
Garavan
OPTILUS Inc.
|
|
|
|
|
I think this is specific to Windows Vista, but I am not entirely sure.
When a certain form opens in my Windows Form App, the form comes up blank. None of the controls on the form appear. I can change the resolution on the screen and then change the resolution back to the original and the controls appear on the form.
Has anyone had this occur before, and if so what did you do to fix it?
|
|
|
|
|
Check your display drivers - it's where I'd start.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
I'm shocked. And in dubio. Not sure wow! or huh? is in order.
|
|
|
|
|
eddieangel wrote: Has anyone had this occur before
No.
People who haven't had such mishap might still be able to help you out, provided you tell some more about your app, what is on the form, what special things you do in the constructor, and the Load and Shown events, etc. And if necessary also show some of the relevant code.
eddieangel wrote: I think this is specific to Windows Vista, but I am not entirely sure.
You shouldn't really make such allegations, unless you can make them hard, and then you should tell about that too. FWIW: I've been using mostly Vista for the last two years.
|
|
|
|
|
It is not a completely unfounded accusation of Windows Vista. I used Vista for quite some time and have no complaints about it, but it appears to be the only common thread under which this occurs. Machines using Windows 7 or Windows XP have not experienced this issue.
In regards to the form itself, it is a fairly standard Windows Form. It has several data bound text boxes, combo boxes and a picture box that is filled on the fly.
When the form opens it does the following things:
1. Populates appropriate data tables from dataset.
2. Populates combo boxes and textboxes from relative data elements.
3. Populates the picture box control from data fields (Using data from the database to reference a picture location, not an actual data image)
This same situation occurs when the binding navigator is changed. The issue is that no controls at all appear, so it seems like the issue is occurring before the controls are ever rendered. The form is coming up ok, that is to say it appears as well as it's title, control box, etc... But the controls themselves refuse to show up until I change the resolution on the computer.
|
|
|
|
|
I'm intrigued and willing to investigate. If interested, feel free to e-mail me (with the below widget) a ZIP with a small project that exhibits such behavior on Vista.
When/where do you set up the data binding?
Is the amount of data that needs to be loaded any relevant?
|
|
|
|
|
This is the form load code:
Private Sub frmTheForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
Me.KeyPreview = True
With Me.DsLookups
Me.defectLookupTA.Fill(.tbl_ref_defect)
Me.categoryLookupTA.Fill(.tbl_ref_category)
Me.subLookupTA.Fill(.tbl_cdf_subcontractor, myCaseId)
Me.addressLookupTA.Fill(.tbl_cdf_address, myCaseId)
Me.locationLookupTA.FillByCase(.tbl_ref_location, myCaseId)
Me.Tbl_ref_inspectionTableAdapter.Fill(.tbl_ref_inspection)
Me.Tbl_ref_inspectorsTableAdapter.Fill(.tbl_ref_inspectors)
End With
With Me.DepoDataSet
.tbl_ref_category.Clear()
.tbl_ref_defect.Clear()
.tbl_cdf_address.Clear()
.tbl_ref_inspectors.Clear()
.tbl_ref_location.Clear()
.dtRecordInfo.Clear()
.tbl_cdf_document.Clear()
.tbl_cdf_relationship.Clear()
End With
clearSrch()
Me.gbPhoto.Enabled = isOnline
Me.tsmMenu.Visible = isOnline
Me.tsmReporting.Visible = isOnline
Me.tsmView.Visible = isOnline
Me.pbMain.Image = Image.FromFile(Windows.Forms.Application.StartupPath & "\" & getSysPref(8))
Me.pbMain.SizeMode = PictureBoxSizeMode.CenterImage
End Sub
This is the binding navigator current changed event:
Private Sub myBindingSource_CurrentChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DtRecordInfoBindingSource.CurrentChanged
Try
Dim myDataRow As DataRowView = Me.DtRecordInfoBindingSource.Current
myRecordId = myDataRow.Item("intRecordId")
Me.recordDefectTA.FillBy(Me.DepoDataSet.tbl_ref_defect, cbCategory.SelectedValue)
If IsDBNull(myDataRow.Item("intDefectId")) = False Then
Me.cbDefectDetails.SelectedValue = myDataRow.Item("intDefectId")
End If
loadimage()
Catch nr As NullReferenceException
End Try
If IsDBNull(myRecordId) = False Then
Me.Tbl_cdf_relationshipTableAdapter.Fill(Me.DepoDataSet.tbl_cdf_relationship, myRecordId)
Me.DepoDataSet.Tables("tbl_cdf_relationship").Columns("intRecordId").DefaultValue = myRecordId
End If
Try
Me.Tbl_cdf_documentTableAdapter.Fill(Me.DepoDataSet.tbl_cdf_document, Me.cbAddress.SelectedValue, myCaseId, myRecordId, Me.cbCBIId.SelectedValue)
Catch en As Exception
End Try
Me.pbPreview.Image = Nothing
Me.chbRepairReport.Checked = db_exist_code(myRecordId, myCaseId, "tbl_rep_repair")
Me.chbPresentation.Checked = db_exist_code(myRecordId, myCaseId, "tbl_rep_presentation")
End Sub
I realize, of course, that this particular piece is VB.Net, so my apologies for posting to C#, there is another application I am working on that interacts with this application in C#, and I had forgotten that this piece is VB.
Honestly, I don't even remember why I put a clear on the dataset tables, but I am sure I had a good reason for it when I did it. If I can figure out what is causing this issue I will narrow it down enough to send you a working Windows Vista breaking copy.
|
|
|
|