Find the answer to your Linux question:
Results 1 to 7 of 7
Hi there, Was just wondering if it was possible to execute a clean shutdown by pressing the power button on the front of the machine on a suse linux OS? ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    6

    Clean Shutdown

    Hi there,

    Was just wondering if it was possible to execute a clean shutdown by pressing the power button on the front of the machine on a suse linux OS? I have heard of someone achieving this but I dont know how to go about doing it.

    Thanks.

    Jag

  2. #2
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    845
    It is possible as my work machine shuts down when the power button is pressed. My home PC running Ubuntu also displays the shutdown confirmation box when it is pressed

    I'm not sure how you would go about making the press activate the shutdown sequence but I would start by checking out ACPI and seeing if there is a event procedure for the power button
    Linux User #453176

  3. #3
    Linux Newbie
    Join Date
    Apr 2009
    Posts
    160
    is there a problem w/ just typing halt @ a command prompt or logging out and selecting shut down on X?

    Afterall if a confirmation box appears when hitting the power button, you still gotta use the mouse to select okay.

  4. #4
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    Or just hit Enter.

  5. #5
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    I'm not sure how Suse does it, but on my Ubuntu install, here's what I do.

    For the Gnome desktop, I open System-->Preferences-->Power Management

    On the General tab, there is the Actions section. You can select what you want it to do when the button is pressed.

    This may not have anything in common with your Suse installation, but you may find something similar in YaST. I will look at my Suse box later, when I boot it, and get back to you on this.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  6. #6
    Linux User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    353
    As far as I remember, suse set it in the same place.

  7. #7
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    My Suse box has Suse 11.0 with the KDE desktop, so I couldn't find anything that would help. I am able to shut it down by just pressing the power button, but I didn't do anything to achieve this. it is that way by default.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...