Results 1 to 4 of 4
I have Slackware 10.0 and I was wondering If I could make X Sleep. I use GNOME. I have 2 extra buttons on my keyboard and would like to use ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-30-2005 #1Linux Newbie
- Join Date
- Apr 2005
- Location
- NJ, USA
- Posts
- 104
SLEEP
I have Slackware 10.0 and I was wondering If I could make X Sleep. I use GNOME. I have 2 extra buttons on my keyboard and would like to use them for SLEEP and WAKE. I tried using keyboard shortcuts off of the menu "Application>Desktop Preferences>Keyboard shortcuts." How else would I do this????
My New years Resolution is 1280x1024
- 04-30-2005 #2Linux Newbie
- Join Date
- Apr 2005
- Location
- South America
- Posts
- 152
First, run
To check out the keycode of the "extra buttons"Code:xev
Now, go to your home and create the file called .xmodmap, if its not already created
add the following linesCode:nano ~/.xmodmap
where you replace x,y with the keycodes you found with xevCode:keycode x = XF86Standby keycode y = XF86WakeUp
Now create/append to a file called .xinitrc in your home, the following line
I also use my .bashrc to add that line instead of the .xinitrc, although dunno for sure, if it would work with the sleep/wakeup functions you needCode:xmodmap ~/.xmodmap
And thats it, that should do it
cheers mate
- 04-30-2005 #3Linux Newbie
- Join Date
- Apr 2005
- Location
- NJ, USA
- Posts
- 104
Wake
I ran xev and typed the "wake" and "sleep" keys. Only the wake key had a keycode (227). The sleep button didn't have one. Is it possible that this key is not connected???? Also I tried to type
. And the bash then saysCode:nano ~/.xmodmap
Code:[soyo:thomas]~> nano ~/.xmodmap bash: nano: command not found [soyo:thomas]~>
My New years Resolution is 1280x1024
- 04-30-2005 #4Linux Newbie
- Join Date
- Apr 2005
- Location
- South America
- Posts
- 152
Well, you can also try kate or whatever console/graphical mode editor you have, the point is to open or create that file...


Reply With Quote
