You are not logged in.

1

Wednesday, June 18th 2003, 6:13pm

power down from KDE

I want to be able to power down from KDE
I'm using RedHat 9. I click on the Red Hat in the lower left hand corner
and can select "Logout", which takes me out, and then i can power down from there, but that's one step too many. In Gnome, i can power down directly, how can I do this in KDE?

2

Thursday, June 19th 2003, 1:31pm

I do not have an answer for your problem, but I will say that kde will power down your system. I use SuSE and it worked right out of the box.

I do not have a Linux box in front of me, but I recommend that you go to the kde control center and check the session manager, power management, etc.

I will also say that Red Hat has tinkered with kde and that may also be the problem.

Good Luck

3

Thursday, June 19th 2003, 2:38pm

An even simpler answer is to just add a new application link to the kde menu, get a script written called shutdown, chmod +x the file and add it to the menu with a pretty icons.
Script:

#!/usr/bin/sh
#
'/usr/bin/init 0'
#
# End of Script
The Best Games are for Download @ GCCLINUX

4

Thursday, June 19th 2003, 9:39pm

In the control center, i went to KDE Components -> Session Manager -> Default Action After Logout and changed it to Turn Off Computer, but that didn't seem to have any effect.

So i created a script that calls init 0.
init is in /sbin, not /usr/bin, maybe thats a RedHat idiosyncrasy, i don't know.
but any, I added an icon to the panel. mucho conveniento.
Thanks.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

5

Thursday, June 19th 2003, 10:18pm

prefer
shutdown -h now
or
halt -n
over
init 0

shutdown and halt do more than just switching to runlevel 0

Anyway, perhaps you have to put the shutdown commands into kdmrc

Mine has this section:
[Shutdown]
HaltCmd=/sbin/halt
LiloCmd=/sbin/lilo
LiloMap=/boot/map
RebootCmd=/sbin/reboot


Cheers,
_
Qt/KDE Developer
Debian User

seb

Professional

Posts: 622

Location: Sydney

Occupation: Student

  • Send private message

6

Friday, June 20th 2003, 7:05am

here is a much easier method.

there just happens to be a command called `poweroff'...

:P

make an icon, whatever u like, or run it from the command line or pressing Alt-F2.

makes my life really easy

7

Sunday, June 29th 2003, 9:49am

edti the file
/etc/sysconfig/desktop

And add this line:

DISPLAYMANAGER="KDE"

Now you can power off in kde without having to log out first.

Rinse
Help mee om KDE 3.5.5 in het Nederlands te vertalen