LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-12-2009, 03:26 AM   #1
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
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.

Any ideas? Thanks,

Coto
 
Old 09-12-2009, 01:04 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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.

Last edited by Woodsman; 09-12-2009 at 06:46 PM.
 
Old 09-12-2009, 06:14 PM   #3
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Woodsman View Post
Ate you in run level 4?
I start in run level 3. However does startx change it to 4?
 
Old 09-12-2009, 06:51 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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.
 
Old 09-12-2009, 06:58 PM   #5
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 155

Rep: Reputation: 22
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.
 
Old 09-12-2009, 07:11 PM   #6
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by SavoTU View Post
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.
 
Old 09-12-2009, 08:35 PM   #7
vinegaroon
Member
 
Registered: Sep 2008
Posts: 99

Rep: Reputation: 21
So no action is defined for the power button in /etc/acpi/acpi_handler.sh ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cannot mount internal hard drive: .hal-mtab and .hal-mtab-lock messed up extremewaffles Linux - Newbie 3 07-01-2009 06:15 PM
KDE Hal seems to be broken nogagplz Linux - Software 2 08-12-2008 06:46 AM
uvcvideo now has power mgmnt. udev or hal to setup? logularjason Linux - Hardware 0 01-22-2008 01:15 AM
hal and fstab and kde syvy Slackware 6 07-04-2007 07:06 PM
Problems with HAL 0.5.8.1 and KDE superandrzej Linux - Software 0 12-18-2006 06:07 AM


All times are GMT -5. The time now is 06:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration