Two of my old hardware media directors (ibm t30 notebook, hp xw4100 workstation) are not halting when I tell them to shut down (power off from UI). They reboot instead. I haven't tested with my 3rd MD (newer) but I was wondering where to start troubleshooting.

Obvious question: What are they set to do in BIOS? Reboot after power loss?

Also, I recall something about the halt script not being right for certain systems power management configurations. There was something about changing the halt script to -p (power down) instead of -h (halt) or something.

Logged

See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

Had a quick peak when I was at home a moment ago and I thought I'd solved it - the script appears to call /sbin/poweroff on the media directory. When I had a look at that it was a symlink to /sbin/reboot! Simple, so I changed the simlink to /sbin/shutdown and tried to power off the md from it's onscreen orbiter but it still rebooted! Didn't have time to tinker further... perhaps I missed something. Will carry on digging. Thanks for the pointers JaseP.

When I get that sorted, I'll tinker with suspend....sounds like a good option as well.

PS: I'm pretty sure the contents of sbin are scripts,... For you to fix it, you might have to edit the appropriate script after checking which command works properly from a terminal window or [Alt] + [F1] terminal (which command works is hardware dependent and a crap shoot).

« Last Edit: June 05, 2012, 05:27:05 pm by JaseP »

Logged

See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

Tried the lot and all of them reboot. The only way to power off at the moment seems to be to run one of those and then hit the power button before the darned thing boots up again. Will try with my other media directors and see if the same problem exists...

Do a man page on the shutdown command to make sure there's no weirdness in Kubuntu's implementation of the shutdown command,... like a lowercase p instead of an uppercase P...

Else, it's either a weirdness of the particular system, or there's potentially some missing or changed library responsible. Also, try a Kubuntu 10.04 live CD to see if it shuts down normally with that.

Logged

See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

Do a man page on the shutdown command to make sure there's no weirdness in Kubuntu's implementation of the shutdown command,... like a lowercase p instead of an uppercase P...

Else, it's either a weirdness of the particular system, or there's potentially some missing or changed library responsible. Also, try a Kubuntu 10.04 live CD to see if it shuts down normally with that.

Have been doing some reading.... had a look at the ACPI bios settings... nothing spectactular to report. Noted that my newer HP6710b notebook MD shuts down sweetly. I'm still not 100% sure what the "power off md" button on the onscreen orbiter actually runs but I guess until I can, from terminal, find a command that does what I want, I can't expect LMCE to do it either ;-)

Yeah,... A live CD will give you an indication of whether it's completely a hardware incompatibility problem, or whether it's some fluke associated with the shutdown script that can be fixed by tracking down and editing the right script...

Logged

See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

OK, I tried booting 10.04 live disk on one of the MDs and then went to command prompt and issued the "poweroff" command as root. Worked like a charm. So there does seem to be something odd about my MD image/setup. Another notable possible symptom is that when I press the "power off md" button, they pretty much stop dead (before rebooting) whereas I notice my one working MD goes through a small splash screen shutdown (the pic of tux in the chair and the yellow progress bar). So definitely something wrong...

I'm trying an apt-get update; upgrade on the one now... see if that helps. Otherwise rebuild image? delete MD and recreate?

Maybe deleting and rebuilding is in order... I don't know where LinuxMCE stores its shutdown scripts, or what they do (in other words I don't know if it, excecutes a graceful exit that saves jobs in progress, or sends an abrupt signal 11, 15, 9 or whatever and cross fingers it doesn't break something). You might want the feedback from a dev on that issue.

Logged

See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

No dice on the apt-get update/upgrade. Although I had to use rule#1 there and go to bed it took so long. Still power off does same thing. Next step - rebuild image. Last step delete, recreate MD.... reluctant, though, because weekend approaches and inevitably people visit and you want to show off your snazzy system.... wife suggests you put on some tunes and you have to say...ahem.... just rebuilding that media director again darling....

Yes, will ultimately leave most of my MDs running and/or suspend as suggested by Karel. However at the moment things are experimental and my MDs are also rather power hungry beasts (old workstations and the like) so I do regularly power them off. Electricity is getting expensive in this part of the world ;-)