View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 09-22-2007, 05:49 PM   #1
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Change behaviour of "Sleep" button on laptop under Fedora 7

I've recently bought a Dell Inspiron 1420n, which came with Ubuntu but I now have running Fedora. The default behaviour of the "Sleep" button above the keyboard is to bring up the "Log out" dialogue box. Is there any way I can change this so it either (a) brings up the "Shut down" dialogue box, or if that's not possible, puts the laptop into hibernate?

I've googled around and I couldn't find an obvious solution...

Old 09-24-2007, 03:02 PM   #2
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
I've only used Ubuntu a little bit so I don't know the details about this, if you know where to set keyboard shortcuts you may be able to disable or change the current action.

If you can't change it that way try this: open a terminal window and type xev to start an event monitor. Now when you press the button you'll find out the keycode for it. Next, with the keycode you can edit the file called ~/.Xresources like so

keycode xxx: programname

Where 'programname' is what you want it to do. You would have logout and back in for it to take effect. I might be wrong about the syntax since I don't have Linux in front of me at the moment.


fedora, hardware, hibernate, laptop, sleep

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
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 03:29 AM
CSS question "change color of button" ALInux Programming 2 04-14-2006 10:40 AM
Suggestion: Change "my posts" button to "my posts by thread" PTrenholme LQ Suggestions & Feedback 5 03-10-2006 06:49 AM
"Change configuration button SaX2" ? 024742 Yoper 6 01-28-2005 07:32 AM
How do I set my laptop to "standby/sleep"? rcbarnes Linux - Laptop and Netbook 0 11-15-2004 02:37 PM

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration