Function keys F7 to F12 not working since 2 weeks

The Result, hid F7 then:

# xev -event keyboard
Outer window is 0x8200001, inner window is 0x8200002

KeymapNotify event, serial 20, synthetic NO, window 0x0,
    keys:  73  0   0   0   16  0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 25, synthetic NO, window 0x8200001,
    root 0x7b0, subw 0x0, time 89232529, (821,847), root:(2652,1831),
    state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeymapNotify event, serial 26, synthetic NO, window 0x0,
    keys:  176 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

After hid F6:

KeyPress event, serial 28, synthetic NO, window 0x8200001,
    root 0x7b0, subw 0x0, time 89282033, (821,847), root:(2652,1831),
    state 0x0, keycode 72 (keysym 0xffc3, F6), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x8200001,
    root 0x7b0, subw 0x0, time 89282161, (821,847), root:(2652,1831),
    state 0x0, keycode 72 (keysym 0xffc3, F6), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

I use us-keyboard for developing my software, but I have a german locale setting.

Did you click in the box before pressing F7?

Yes, I done

Today I use the keyboard settings from XFCE and switch to use the system settings. After reboot I cannot switch to german but the F7…F12 keys does work.
If I set individual again with same keyboard model as in the system but two available keyboard layouts (us and de macintosh) the F7…F12 does not work again.

I’ve managed to replicate it in an XFCE VM, applealu_ansi (and applealu_iso) turns it into a keymapnotify event, but I don’t know how/where/why this happens. :man_shrugging:

setxkbmap -print -verbose 10

$ setxkbmap -print -verbose 10
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      applealu_ansi
layout:     us,de
variant:    ,qwerty
options:    grp:win_space_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete+numpad(mac)
compat:     complete
symbols:    macintosh_vndr/apple(alukbd)+macintosh_vndr/us+de(qwerty):2+inet(evdev)+group(win_space_toggle):1+group(win_space_toggle):2
geometry:   macintosh(applealu_ansi)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete+numpad(mac)"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "macintosh_vndr/apple(alukbd)+macintosh_vndr/us+de(qwerty):2+inet(evdev)+group(win_space_toggle):1+group(win_space_toggle):2"	};
	xkb_geometry  { include "macintosh(applealu_ansi)"	};
};

Thank you for your time!

You’re welcome. :slight_smile:

If I hit F7 then F8 very quickly, F8 registers a KeyRelease event, this seems to work for any combination.

Whilst testing this, I realised that the keys are actually registered correctly in the Application Shortcuts tab (I forgot to check earlier :man_facepalming:), so I’m back to thinking this is a program or DE configuration issue.

Do they register correctly for you?

EIDT:

I keep forgetting to ask: What do you expect these keys to do?

I think too, it is something with the locale configuration. But I do not know, what to do. Until middle of June it works fine. Then was an update…

For example, with F10 I want to close the midnight commander from command line. Or I want to navigate in the browsers development tools to step debugging javascript.

If you mean update to "systemd 251 - there where / are new problems.
For example my Cherry-Keyboard was suspected of having 24 instead of 12 F-keys. No, innocent.
Solution was blacklisting something weired, but that helped in this case (posting above (#17))

I found: on a second account on same machine was the keyboard layout “Generic PC … 105 keys” active. The F-keys has worked.
Then I switch to the apple aluminium (ISO or ANSI, both same effect) keyboard and the F7…F10 keys doesnt work. They do not work after switching back to the generic keyboard!
So, how to fix the apple keyboard driver?

After reboot with setting of the generic layout the F-Keys do their work again.

Thank you for your support!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.