<---- template headericclude ----->
Power button causing shutdown.
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2006
    Location
    Vermont, USA
    Age
    34
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Power button causing shutdown.

    Okay, I realize the title makes me look like a SERIOUS newb, but I'll explain it. Here I was, happily doing homework while listening to Amarok belt out some Guns and Roses, when my little brother came by to get some crayons. While he was leaning over to get into a drawer, his foot pushed the power button on the computer tower, and, naturally, my computer turned off. Now my question is if there is any way to remove that function of the power button. If a window came up and asked if I actually did want to shut down, I could live with that, but I really don't think I want the power button to just turn the computer off. So any suggestions would be greatly appreciated. Thanks ahead of time guys, you haven't let me down yet!
    Gigabyte GA-MA785GPM-US2H
    Athlon II X2 240 @2.8 GHz
    2 GB G.Skill ddr2 pc2-6400
    500 GB Western Digital Caviar Blue HDD
    40 GB Western Digital HDD

  2. #2
    compwizzer Guest
    Try looking in the man file for acpid and/or check the settings in gnome-power-manager.

  3. #3
    Join Date
    Jun 2006
    Location
    Texas
    Age
    53
    Posts
    4,164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Years ago, at work, we had this Data General server with this weird pop out power button, you could bump into it with your knees. There are so many servers in that room, IT guys walk arounnd alot to do backups.

    Any way, one guy got P.O. cause he shuts it down too many times. Goes home and cut out one inch of one inch PVC pipe. Cut that that in half. Tape one of the half over the power button. Problem solved.

  4. #4
    compwizzer Guest
    I have in the past just opened the case and unpluged the switch to keep little fingers at bay. Of course that also requires a screwdriver or a key to start the machine. Adults, on the other hand posed a little more trouble since they knew it was pluged in somewhere. The solution... moved the file cabinet in front of the wall socket and power strip.

  5. #5
    Join Date
    Feb 2006
    Location
    Vermont, USA
    Age
    34
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright, i'll look into that man page for acpid when i get home. Thanks!
    Gigabyte GA-MA785GPM-US2H
    Athlon II X2 240 @2.8 GHz
    2 GB G.Skill ddr2 pc2-6400
    500 GB Western Digital Caviar Blue HDD
    40 GB Western Digital HDD

  6. #6
    Join Date
    Jun 2004
    Location
    lair of a unix daemon
    Posts
    1,155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    edit /etc/acpi/events/power.conf and comment out the event= and action= lines
    restart acpid service (though that might not be necessary)

    works

    Mat
    Man will always find a difficult means to perform a simple task
    (Rube Goldberg)

    Having fun with Tcl at
    Mat's Playground

  7. #7
    Join Date
    Feb 2006
    Location
    Vermont, USA
    Age
    34
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, I read the acpid man page, and it said that rules were defined by files in /etc/acpi/events, like Mat said. The only problem is that I don't have a power.conf file in that directory.
    Code:
    [root@localhost ~]# ls -a /etc/acpi/events
    .  ..  sample.conf  video.conf
    Should I make one that has a event= line but no action= line?
    Gigabyte GA-MA785GPM-US2H
    Athlon II X2 240 @2.8 GHz
    2 GB G.Skill ddr2 pc2-6400
    500 GB Western Digital Caviar Blue HDD
    40 GB Western Digital HDD

  8. #8
    Join Date
    Feb 2006
    Location
    Vermont, USA
    Age
    34
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, sorry for my lack of proper search beforehand. Funny how when I searched for this yesterday it seemed like there were no posts about this issue, and now I find them all. I commented out the lines in sample.conf, sent acpid a SIGHUP, pressed the power button, and nothing happened! Thanks for your patience everyone!
    Gigabyte GA-MA785GPM-US2H
    Athlon II X2 240 @2.8 GHz
    2 GB G.Skill ddr2 pc2-6400
    500 GB Western Digital Caviar Blue HDD
    40 GB Western Digital HDD

  9. #9
    Join Date
    Mar 2004
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I understood the problem correctly, you may see the same problem I have:
    http://bugzilla.gnome.org/show_bug.cgi?id=409293

  10. #10
    Join Date
    Feb 2006
    Location
    Vermont, USA
    Age
    34
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, I use KDE, so it wouldn't be an issue anyway over here. My problem was just that I didn't want the computer to shut down automatically when the power button was pressed.
    Gigabyte GA-MA785GPM-US2H
    Athlon II X2 240 @2.8 GHz
    2 GB G.Skill ddr2 pc2-6400
    500 GB Western Digital Caviar Blue HDD
    40 GB Western Digital HDD

  11. #11
    Join Date
    Mar 2004
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is exactly what I wanted too.
    The problem is when gnome-power-managed dies, acpi script runs shutdown.
    It has a check for running gnome-power-manager :-)

    action=/bin/ps awwux | /bin/grep gnome-power-manager | /bin/grep -qv grep || /sbin/shutdown -h now

Similar Threads

  1. Replies: 4
    Last Post: 24th May 2008, 10:58 PM
  2. Power button ignoring gnome-power-manager on FC8
    By iamasmith in forum Using Fedora
    Replies: 6
    Last Post: 26th February 2008, 01:29 PM
  3. Replies: 3
    Last Post: 27th January 2007, 07:51 PM
  4. Replies: 0
    Last Post: 13th September 2006, 09:55 PM
  5. Prevent shutdown when power button pressed
    By tsorvoja in forum Using Fedora
    Replies: 7
    Last Post: 9th March 2006, 07:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]