Computer Does Not Turn Off With Arduino Connected

Sorry if this is in the wrong forum.

Not sure if there is a solution for this but I notice that with the Arduino connected to the USB my computer does not shut down.
Has anyone else had or have this issue and if so is there a way to deal with that?
Arduino is connected via the USB port, no other power connected.

Give us a clue.
What computer do you have?
What OS is it running?
What else is connected to your Arduino?
Is the Arduino being powered any other way at the same time?

Thanks @Grumpy_Mike,

Well the computer is an Alienware Steam Machine running Windows 10

Connected to the Arduino is an LDR Sensor, a DS1820 Temperature sensor module,
Some button inputs.... the rest is information that gets sent to the Arduino when our app is running.
Arduino is connected via the USB port, no other power connected.

Thanks for the detail.
I suspect it is something to do with the Windows 10. I don't have that problem with a Mac and I have never used Windows 10 so maybe some one else could help.

Thanks @Grumpy_Mike,

Well, that's a start....

my thought was I wonder if there is a way that when my app shuts down I send a final command to the Arduino to switch off or somehow end the program loop.??

my thought was I wonder if there is a way that when my app shuts down I send a final command to the Arduino to switch off or somehow end the program loop.??

The problem is that unless you have external hardware to do this, you can not turn off an Arduino with a software command.

There was a thread about this last year (I think).

I don't know if it was ever resolved but you can try a search to find it.

I am using Windows 10 version 1709 and have no problem to turn off the computer with ShutDown while the Arduino is running a program. The usb port to the Arduino turns off.

Knightriderguy:
Thanks @Grumpy_Mike,

Well the computer is an Alienware Steam Machine running Windows 10

Connected to the Arduino is an LDR Sensor, a DS1820 Temperature sensor module,
Some button inputs.... the rest is information that gets sent to the Arduino when our app is running.
Arduino is connected via the USB port, no other power connected.

Not familiar with that machine. If it has more than one USB port, have you tried the others for the same condition?

Paul

How did you get Windows 10 on to the steam machine? Is it on a hard drive partition with dual boot? A "Windows To Go" usb drive?

You are certainly not seeing an issue with a standard windows 10 pc installation.

I'm not 100% sure what to say on some of those responses guys,
I just did a clean install of Windows 10 on the Alienware Steam Machine.

I have tried the Arduino in other USB ports and it does the same thing on trying to shut the computer down.
I can just hold the power button and it forces the computer off, most likely NOT the best thing to do :confused:

I just did a clean install of Windows 10 on the Alienware Steam Machine.

Is sounds like the Steam OS is gone, and you are running only Windows 10 on the original hardware.

Is it only the arduino attached to usb which prevents the computer from turning off?

What about a usb hard drive or other usb component?

I finally gave up and had to use Google. The machine is made by Dell and runs Lenix. Windows is running under LENIX, so you problem is with Lenix, not Windows 10.

Paul

cattledog:
Is sounds like the Steam OS is gone, and you are running only Windows 10 on the original hardware.

Is it only the arduino attached to usb which prevents the computer from turning off?

What about a usb hard drive or other usb component?

Yes that's right just the Windows installed on the Alienware.
And yes it's just the Arduino, any other USB hubs, mouse camera etcetera are all fine with shutting down.
Only with the Arduino connected it seems to have an issue.

Paul_KD7HB:
I finally gave up and had to use Google. The machine is made by Dell and runs Lenix. Windows is running under LENIX, so you problem is with Lenix, not Windows 10.

Paul

Thanks @Paul_KD7HB,
Is there a way to fix it?

Knightriderguy:
Thanks @Paul_KD7HB,
Is there a way to fix it?

What do the "steam" people say about your problem?

Paul

Paul_KD7HB:
What do the "steam" people say about your problem?

Paul

Well I have not contacted them about it yet, I kind of assumed it might have been an issue I could solve with the Arduino somehow as if it's unplugged the Machine shuts down OK.

I was reading somewhere that if the Reset button on the Arduino is held down then that stops all data from either being sent or received??

Maybe somehow I could rig up a button that could do this.... assuming this is true??

When the computer fails to shut down, what is the screen appearance?

If you run the Task Manager, does it show anything non responding?

Do you have a USB power only cable(perhaps from a charger?) is the shutdown behaviour different than with a data cable?

Does the computer go into sleep mode with the Arduino attached?

Knightriderguy:
my thought was I wonder if there is a way that when my app shuts down I send a final command to the Arduino to switch off or somehow end the program loop.??

What kind of app? Do you close the app first? If not, try that. If yes, does it properly close or does it leave some process runnning that prevents windows from shutting down?

cattledog:
When the computer fails to shut down, what is the screen appearance?

If you run the Task Manager, does it show anything non responding?

Do you have a USB power only cable(perhaps from a charger?) is the shutdown behaviour different than with a data cable?

Does the computer go into sleep mode with the Arduino attached?

The screen is just a blank screen, the monitors have no signal going to them but yet the power light on the on off buttons remains on, on the computer. Si I can't run the task manager.

The USB both powers the Arduino and sends & receives data to and from the Arduino.