 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

21st February 2007, 12:32 AM
|
 |
Registered User
|
|
Join Date: Feb 2006
Location: Vermont, USA
Age: 24
Posts: 184

|
|
|
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
|

21st February 2007, 04:34 AM
|
|
Registered User
|
|
Join Date: May 2006
Location: Kansas city,Missouri
Posts: 67

|
|
|
Try looking in the man file for acpid and/or check the settings in gnome-power-manager.
__________________
Sometimes I can't tell if it's broken, I used Windows for a long time.
|

21st February 2007, 04:40 AM
|
 |
Registered User
|
|
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168

|
|
|
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.
|

21st February 2007, 05:08 AM
|
|
Registered User
|
|
Join Date: May 2006
Location: Kansas city,Missouri
Posts: 67

|
|
|
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.
__________________
Sometimes I can't tell if it's broken, I used Windows for a long time.
|

21st February 2007, 02:49 PM
|
 |
Registered User
|
|
Join Date: Feb 2006
Location: Vermont, USA
Age: 24
Posts: 184

|
|
|
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
|

21st February 2007, 03:08 PM
|
 |
Retired Community Manager
|
|
Join Date: Jun 2004
Location: lair of a unix daemon
Posts: 1,155

|
|
|
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
|

21st February 2007, 08:39 PM
|
 |
Registered User
|
|
Join Date: Feb 2006
Location: Vermont, USA
Age: 24
Posts: 184

|
|
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
|

21st February 2007, 08:52 PM
|
 |
Registered User
|
|
Join Date: Feb 2006
Location: Vermont, USA
Age: 24
Posts: 184

|
|
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
|

22nd February 2007, 08:06 PM
|
 |
Registered User
|
|
Join Date: Feb 2006
Location: Vermont, USA
Age: 24
Posts: 184

|
|
|
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
|

23rd February 2007, 09:10 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 94

|
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 06:17 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|