Dual functionality of power button, HAL vs. KDE? ACPID vs HAL?
SlackwareThis Forum is for the discussion of Slackware 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.
Dual functionality of power button, HAL vs. KDE? ACPID vs HAL?
Hey everyone,
I'm having troubles with my power button (Slack 13, KDE, fresh installation.)
Currently 2 things happen:
1) KDE presents an "End Session" dialog.
2) Shortly after the dialog is presented, the computer jumps to runlevel 6 and shuts down.
I checked to see if it was perhaps acpid which was causing this, however there are no scripts that would cause this behavior (just the default 'no-action' script.)
Perhaps HAL is recognizing the event and initiating a shutdown? Preferably I would be given a menu of choices.. which does happen, but the shutdown sequence is inevitable.
Are you in run level 4? I don't know whether the two actions are related, but I reported in another thread that when in run level 4, and I select the logoff option from the KDE kickoff menu, my box shuts down just as you described, rather than logging off and returning to the login manager.
The startx script does not change the system to run level 4. The startx script only starts X from within run level 3.
One way to start the system in run level 4 is to edit /etc/inittab. My preferred method is to add both init options as menu options in my boot loader with one of the two the default.
Regarding the End Session dialog box, you can eliminate that if you want. Start System Settings, select the Advanced tab, then select the Session Manager option. Disable/uncheck the 'Confirm logout' check box.
The same thing happens here but i don't see it as a problem as i only press it to turn the pc off and that is not very often.
I think he wants to stop the shutdown and not the Confirm logout.
That's ideally what I'd like. Personally I prefer starting from the console, so even if run level 4 is a work around, it's something I'd like to avoid. I'll give it a try to see what happens.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.