Shutdown FreeBSD completely, without hitting power button

hi

I have freeBSD 7.0 installed on a PC and 7.3 installed on my notebook, both are RELEASE with KDE.
If I try to shutdown from KDE directly, then I'm getting this message:
Code:
[B]The operating system has halted
Please press any key to reboot[/B]

Howto shutdown freeBSD from KDE completely, I mean without hitting power button?
 
I don't know if that is possible from KDE, but if your hardware supports it, this should work from the command line:

# shutdown -p now

Possibly you can also do it from KDE by pressing <alt>F2 to get a command line and enter this:

$ sudo shutdown -p now

This requires that you have installed sudo from the ports.
 
Under KDE hit alt+f2 and type

[CMD=""]kdesu systemsettings[/CMD]

then go to advanced | login manager | shutdown and replace Halt and Reboot with

[CMD=""]/sbin/shutdown -p now[/CMD]

and

[CMD=""]/sbin/shutdown -r now[/CMD]
 
I have never once seen kdesu work in any version of KDE in FreeBSD.

Another suggestion if you have xterm or aterm installed

Make links on your desktop or in a menu to

Code:
xterm -T Sleep -e sudo acpiconf -s3
Code:
xterm -T Shutdown -e sudo shutdown -p now
 
ccc said:
hi

I have freeBSD 7.0 installed on a PC and 7.3 installed on my notebook, both are RELEASE with KDE.
If I try to shutdown from KDE, then I'm getting this message:
Code:
[B]The operating system has halted
Please press any key to reboot[/B]

Howto shutdown freeBSD from KDE completely, I mean without hitting power button?

Just for curiosity, shutdown, via console, works at all? It seems a powermanagement issue, such as apm or acpi not correctly configured.
 
kdesu is under /usr/local/kde4/lib/kde4/libexec/kdesu and is installed with kde4.

alt+F2 brings the run command dialog, i don't understand what doesn't work. FreeBSD version has nothing to do with it.
 
dmesg | grep "ACPI APIC"

The following is my output:
Code:
ACPI APIC Table: <HP-CPC SLIC-CPC>
 
Last edited by a moderator:
I've changed in /usr/local/share/config/kdm/kdmrc

Code:
....................................................................
[Shutdown]
# The command (subject to word splitting) to run to halt the system.
# Default is "/sbin/shutdown -p now"
HaltCmd=[B]/sbin/shutdown -p now[/B]
....................................................................

and this problem is solved now.
 
Back
Top