Xfce Fn key in Xfce4

serjsk8

Active Member

Reaction score: 5
Messages: 107

Hello,
I have installed Xfce4 from port in my system.

# uname -a
FreeBSD FBSD 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC amd64


I have laptop Lenovo T530 and now I am trying to configure multimedia key.
But when I press (Fn) key the window "Logout" opens.

I can't find where is keyboard shortcut to open window "Logout".
Attached configuration file of shortcuts.
Thank you for any help!

Best regards,
 

Attachments

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,680
Messages: 30,598

The Fn key is typically not an 'active' key. It's often caught by the keyboard controller in order to access additional functions and never passed on to the OS by itself. Look in the BIOS, perhaps there's a remapping function there.
 
OP
OP
serjsk8

serjsk8

Active Member

Reaction score: 5
Messages: 107

The Fn key is typically not an 'active' key. It's often caught by the keyboard controller in order to access additional functions and never passed on to the OS by itself.
Hello SirDice,
Yes, I know it...
So I can not understand why when I press on the (Fn) window "Logout" opens.
I well check BIOS configuration.
 

linux->bsd

Active Member

Reaction score: 63
Messages: 162

I don't have key swap Enabled in my BIOS.
Fn and Ctrl Key swap swaps those two keys: Fn become Ctrl, Ctrl become Fn. I have it enabled on my Lenovo laptop because the key layout is so lame for those two keys.

Fn forces a logout on my laptop, similar to what you're seeing.
 

rsronin

Member

Reaction score: 76
Messages: 98

I have a Thinkpad T430 and had/have issue too with the (Fn) key. Using KDE is goes to sleep (while I am not pressing it together with (F4)), it's docked for now.
 

aragats

Daemon

Reaction score: 515
Messages: 1,246

How do you use multimedia keys?
Run xev, press Fn+<MultimediaKey> and watch what it produces. Then add the corresponding mapping to ~/.Xmodmap, for instance, in my ThinkPad T430 I have:
Code:
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
 
OP
OP
serjsk8

serjsk8

Active Member

Reaction score: 5
Messages: 107

Hello,
Run xev, press Fn+<MultimediaKey> and watch what it produces.
Thank you,
Yes, I know how its work, but...
The problem when I press (Fn) key the window "Logout" opens and i can't use multimedia keys.
 

aragats

Daemon

Reaction score: 515
Messages: 1,246

I guess, T530 and T430 are pretty similar, I don't use XFCE, and don't have such issue. However, when the laptop is suspended, Fn wakes it up, which is fine.
Not sure how fresh is this thinkwiki page, but they claim that "Fn ... is supported ... on release without completed key combination" (of course, they imply Linux, but I think it doesn't really matter in this case). They also mention tpb program, which is available from ports: deskutils/tpb.
 
OP
OP
serjsk8

serjsk8

Active Member

Reaction score: 5
Messages: 107

I traing deskutils/tpb but it's strange...
Now my system detect Fn key
For example if I press Fn + F11 I have keycode 162

KeyPress event, serial 39, synthetic NO, window 0x4600001,
root 0x28a, subw 0x0, time 1209501, (75,81), root:(78,136),
state 0x0, keycode 162 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False


But if I press only Fn kay I have again logout window.

If I press Fn + F8 or Fn + F9 (screen brightness) my system freezes!
I think this is problem of acpi_ibm()
 
Top