This forum has been archived. All content is frozen. Please use KDE Discuss instead.

how to shutdown via function key?

Tags: None
(comma "," separated)
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

how to shutdown via function key?

Sat Feb 07, 2009 8:51 pm
Hello

I like to start the shoutdown process via a keyshort cut like FN-key + F9 = start shutdown.
How can I do this?
1. I do not want to run "shutdown -h now"
I like to start the same as if I do right click, choose shutdown ( this might be the false
translation, could also be exit) which command do i need to run?
2. I had a look at systemsettings -> keyboard shortcuts: but there is no option to assign a command to FN + eg. F9

The function key is placed between the right ALT and CTRL Key but this key does not seem to be a choosable otpion. I recall that in KDE 3 was a kind of mapping table for these key - is this also in KDE4 available, would the mapping of the FN key make it available to assign ?

PS which command would I use to lock my session?


THanks a lot
-bushveld

Last edited by bushveld on Sat Feb 07, 2009 9:00 pm, edited 1 time in total.


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
SmilingSun2
Registered Member
Posts
37
Karma
0
OS
Ctrl+Alt+Del shows it for me
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS
Upps,

I forgot to test this...
Any idea if I can set which function is default.
Cool and fast would be ALT+CTRL+DEL then enter (as long as the default is what you want ) the current default is shutdown, i'd like to use lock..

by
-bushveld


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Your computer ( keyboard in particular ) must send a keypress event for the desired button combination ( Fn + F9 in this case ). Fn is a special key, that does not send keypresses, it merely modifies existing keys; is is likely that unless your keyboard has an icon on the F9 key, it will not work.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

RE: how to shutdown via function key?

Sun Feb 08, 2009 12:07 pm
Hm,

understood. I just checked with xev can I make any use of the different keycodes?


ONLY F9
KeyPress event, serial 34, synthetic NO, window 0x5600001,
root 0x13b, subw 0x0, time 15552852, (-268,642), root:(829,667),
state 0x10, keycode 75 (keysym 0xffc6, F9), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x5600001,
root 0x13b, subw 0x0, time 15552940, (-268,642), root:(829,667),
state 0x10, keycode 75 (keysym 0xffc6, F9), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

----------------------------------------------------------------------------------------------
F9 plus FN:
KeyPress event, serial 34, synthetic NO, window 0x5600001,
root 0x13b, subw 0x0, time 15554709, (-268,642), root:(829,667),
state 0x10, keycode 223 (keysym 0x1008ff10, XF86Standby), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x5600001,
root 0x13b, subw 0x0, time 15554741, (-268,642), root:(829,667),
state 0x10, keycode 223 (keysym 0x1008ff10, XF86Standby), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False


By and have a nice weekend
-bushveld


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: how to shutdown via function key?

Sun Feb 08, 2009 12:26 pm
The keycode appears to be different so their should be no problem ( to the OS, it looks like one key was pressed )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]