Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
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.
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 ?
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
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.
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 ?
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.