LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-19-2005, 02:48 AM   #1
m.parthiban
Member
 
Registered: Sep 2005
Posts: 42

Rep: Reputation: 15
Question How to shutdown directly from KDE


Hi ,
I am using KDE as a default desktop in Red-hat 9.0. When i want to shutdown, every time i have to logout and then i have to shutdown .

Is there any shortcut for shutdown directly from KDE apart from using command ?
 
Old 09-19-2005, 03:40 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
First, do you have acpid running (ps aux | grep acpid)? If not - launch it (add it to the list of launched services in /etc/rc.d/rc5.d by linking it from /etc/rc.d/init.d to /etc/rc.d/rc5.d/S44acpid ; if there isn't /etc/rc.d/init.d/acpid - try installing acpid). Second, do you have button kernel module loaded (lsmod | grep button). If not - add it to /etc/sysconfig/modules . Now you should try pressing shortly the power button. Your system should go down through init 0.
 
Old 09-19-2005, 07:27 AM   #3
m.parthiban
Member
 
Registered: Sep 2005
Posts: 42

Original Poster
Rep: Reputation: 15
First of all i like to thank u for given the solution for clipboard problem.
For shutdown prob i do'nt have power button in my keyboard. so i can't implement ur solution . any other alternate solution ?
 
Old 09-19-2005, 11:45 PM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
I meant ACPI power button on your computer, not keyboard power button (which must be exterminated).

Also try '/sbin/init 0' as root (after su from console, for example). If you dislike entering the password, you can just run visudo from root console, and try to apply man sudoers... something like
'<your login> ALL=(ALL) NOPASSWD:/sbin/init 0'
after that create a file somewhere on your Desktop, consisting of two lines: '#! /bin/sh' and 'sudo /sbin/init 0' . Then launc the file to shut down.
 
Old 09-20-2005, 12:34 AM   #5
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Rep: Reputation: 48
great tip raskin... even i faced this some time ago. but then switched from gdm to kdm, wherin it gave more options - 'logout, shutdown, reboot, cancel' as opposed to gdm which gave only 'logout, cancel'. [ parthiban.. you can try this by enterring preferred=kdm in /etc/X11/prefdm file... obviously if you have kdm installed ]
havn't tried the option you gave raskin... but doesn't that do a 'hardware shutdown' (as we are using the button on the cpu box).... as opposed to the 'software' shutdown that we do by pressing the shutdown button on screen ?
 
Old 09-20-2005, 12:52 AM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
If you have ACPI MB, then ~5s push shuts down while <2s push just sends an event to os. Module button catches the event and feeds to /proc/acpi/event . acpid catches it from there and shuts down.
Well, first time you'd better try after 'su -c "/sbin/init 1; sync"' if you aren't sure.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown not available with KDE larienz Slackware 5 04-07-2005 07:48 AM
I want to grant 'shutdown' previlege to a non-root user to do directly from console jagadee76 Linux - General 6 12-29-2004 03:16 AM
KDE 3.2 Print Problem "File Format is not directly supported" forgox Debian 0 09-22-2004 09:07 PM
Can KDE use ALSA directly? pubb Linux - Software 1 05-31-2004 01:06 AM
shutdown pc in kde? dARkHunTEr Slackware 3 07-21-2003 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration