Shutdown FreeBSD completely, without hitting power button

ccc

Aspiring Daemon

Reaction score: 13
Messages: 621

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?
 

sverreh

Active Member

Reaction score: 26
Messages: 124

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.
 

thuglife

Active Member

Reaction score: 42
Messages: 160

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]
 
OP
C

ccc

Aspiring Daemon

Reaction score: 13
Messages: 621

thuglife said:
Under KDE hit alt+f2 and type
[CMD=""]kdesu systemsettings[/CMD]
Thx, but this doesn't work on my freeBSD 7.3
 

nekoexmachina

Well-Known Member

Reaction score: 31
Messages: 341

and also you could try it as sudo not kdesu from the terminal. May be, you have no kdesu installed.
 

teckk

Active Member

Reaction score: 29
Messages: 148

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
 

sysman

Member


Messages: 53

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.
 

thuglife

Active Member

Reaction score: 42
Messages: 160

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.
 

sw2wolf

Well-Known Member

Reaction score: 1
Messages: 251

dmesg | grep "ACPI APIC"

The following is my output:
Code:
ACPI APIC Table: <HP-CPC SLIC-CPC>
 
Last edited by a moderator:
OP
C

ccc

Aspiring Daemon

Reaction score: 13
Messages: 621

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.
 
Top