Bug 182672 - laptop some fn function keys not supported
Summary: laptop some fn function keys not supported
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
: 185453 194166 (view as bug list)
Depends on:
Reported: 2009-02-01 10:21 UTC by Unknown
Modified: 2022-05-11 02:41 UTC (History)
36 users (show)

See Also:
Latest Commit:
Version Fixed In:

Laptop keys patch for Samsung NC10 (3.07 KB, patch)
2009-06-01 16:13 UTC, Thilo-Alexander Ginkel
Adds TouchpadToggle, TouchpadOn and TouchpadOff keys to qt (2.72 KB, patch)
2011-04-09 02:56 UTC, Lamarque V. Souza

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2009-02-01 10:21:54 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

Hi, Two of the function keys of my laptop which I use most are not working !!!

Fn + F3 - Standby
Fn + F4 - Switch display

HP/Compaq nc6400 laptop

When I try to press Fn + F3 for standby in the System Settings-> Global Keyboard Shortcuts -> Guidance Power Manager -> Standby -> Custom, I get the following error

"The key you just pressed isn't supported by Qt"

Both these keys are working fine in Ubuntu 8.10 Gnome that I have. 
I have started using kde4 after 4.2 was released and I find it very compelling in terms of usability.

Thanks a lot...
Comment 1 Unknown 2009-02-01 10:24:19 UTC
sorry, i thought of mentioning the laptop model in the subject, to be more specific, but forgot. I couldn't find a way to change the bug title though !!
Comment 2 Goffredo Marocchi 2009-02-14 16:33:25 UTC
Just upgraded to KDE 4.2.0 (Fedora 10, using yum and the stable repositories) and I can confirm the user's problem.

I cannot use my FN keys to control the screen's brightness level any-longer (I have to use KDE power manager from the System tray to regulate it) and if I try to change the hotkeys for that as the previous user tried to I get his same error.
Comment 3 Vítor E. Silva Souza 2009-02-20 17:29:36 UTC
Same thing happens to me under KDE 4.2.00 in Kubuntu Jaunty Alpha 4 on an HP 6730b. I had Ubuntu Intrepid (8.10) installed previously and the function keys worked with Gnome in the same laptop.
Comment 4 Pálffy András Gergely 2009-02-27 17:35:25 UTC
Same here, on a Thinkpad R61, running Arch and KDEmod. If I try to set Fn+anything in System Settings > Input actions, the Qt error above pops up when I press the Fn key. Fn key is recognized by xev.
Comment 5 .nedberg 2009-03-06 17:21:11 UTC
Same problem for me. Kubuntu 8.10 with Logitech Cordless Wave keyboard.

Some of the extra keys work fine, some give the "The key you just pressed isn't supported by Qt"-error, and some do nothing (but that is another problem).
Comment 6 lasith 2009-03-08 15:23:22 UTC
Im also have same issue. "The key you just pressed isn't supported by Qt." getting this dialoge box when select fn keys
Comment 7 Lamarque V. Souza 2009-03-12 16:58:55 UTC
I also have this problem and search for a solution. I think this is Qt's bug, not KDE's. The key must be added to qt4/QtCore/qnamespace.h so that is can be recognized by a Qt program.
Comment 8 unggnu 2009-03-12 20:08:54 UTC
*** This bug has been confirmed by popular vote. ***
Comment 9 unggnu 2009-03-12 20:09:24 UTC
I can confirm this problem. Brightness keys doesn't work while they have
keycodes with Xev.

KeyRelease event, serial 35, synthetic NO, window 0x3000001,
    root 0xab, subw 0x0, time 999639, (-629,210), root:(458,235),
    state 0x0, keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown),
same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 35, synthetic NO, window 0x3000001,
    root 0xab, subw 0x0, time 1000020, (-629,210), root:(458,235),
    state 0x0, keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp),
same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
Comment 10 Lamarque V. Souza 2009-03-12 20:23:05 UTC
It seems there is a bug entry in Qt's bug tracking about this problem: http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=230168
Comment 11 Jonathan Marten 2009-03-14 16:54:37 UTC
*** Bug 185453 has been marked as a duplicate of this bug. ***
Comment 12 Blackpaw 2009-03-22 00:10:59 UTC
"2008-10-07 12:59 - Entry created: Task status changed to 'Open', Resolution set to 'Pending', Version found set to '4.4.3', Version for fix set to 'Not scheduled', Priority changed to 'No Priority'"

And it would seem TrollTech don't care ...
Comment 13 unggnu 2009-03-22 09:36:27 UTC
I guess one of the KDE devs which works for TrollTech or know some guys there should describe them the problem and the importance of it.
Comment 14 Andrey Rakhmatullin 2009-04-03 20:16:44 UTC
Note that Qt #230168 is only about Cut, Copy and Paste keys, while this bug is wider.
Comment 15 Michael Reiher 2009-04-03 21:59:02 UTC
Same for XF86Eject. Kubuntu Jaunty, KDE 4.2.2.
Comment 16 Tobias Stegmann 2009-04-11 23:41:59 UTC
Same over here (standby and screen lock Fn keys are not supported). 

It seems, mostly acpi event keys are affected by this issue.
Comment 17 Łukasz Dąbek 2009-04-13 19:00:00 UTC
Same for XF86AudioPause. Acer Aspire 5315, KDE 4.2.2, Arch Linux.
Comment 18 paul 2009-05-19 14:48:50 UTC
Same problem here with Fn-F10 (eject) and Fn-F3 (battery).

It also happens on my multimedia keyboard.  Many of the multimedia keys work, but these do not:

sleep, stop, reload, Tools, Explorer

Pressing any of these keys results in the same "QT not supported" message.

I'm running ubuntu 9.04 with kde 4.3beta and qt 4.5.1
Comment 19 Pali Rohár 2009-05-19 14:51:43 UTC
Same problem with Sleep button on Kubuntu 9.04 kde 4.3beta qt 4.5.1
Comment 20 Romain Henriet 2009-05-24 13:06:22 UTC
"Alt + Print Screen" is not supported either, while "Shift + Print Screen" and "Ctrl + Print Screen" are supported. (Kubuntu 9.04, KDE 4.2.3)
Comment 21 Thilo-Alexander Ginkel 2009-06-01 16:13:05 UTC
A couple of keys on my netbook also being affected I started to dig around to figure out where Qt needs to be changed to support them. The result is a patch, which adds support for the non-functional keys of my Samsung NC10. This probably does not solve all your key mapping issues, but should point out where their definition needs to be added. I also filed a bug upstream with Qt and attached my patch, but do not yet have a bug# for it that I could publish for your reference.
Comment 22 Thilo-Alexander Ginkel 2009-06-01 16:13:47 UTC
Created attachment 34170 [details]
Laptop keys patch for Samsung NC10
Comment 23 Lamarque V. Souza 2009-06-01 16:38:35 UTC
There is already an entry in Qt's bug tracking for this bug as I mentioned here, please do not open duplicates of Qt's bug entry 230168, it makes it difficult to track the bug. The bug is the same for all keys mentioned here, it is just a matter of adding the new non-working keys in the Qt's bug entry 230168, that will make it easier for the Qt developers to track the non-working keys. They already know about the problem, they are just being too slow to solve it.
Comment 24 Thilo-Alexander Ginkel 2009-06-01 16:47:49 UTC
Well, not being a Qt customer it is impossible for me to add extra information to an existing bug report. So, the only chance I have is to file a new one.
Comment 25 paul 2009-07-25 20:13:36 UTC
I tried applying this patch to qt 4.5.1 with kde 4.3rc3 and it fails to fix my particular key short cut problem.  For me, the battery Fn-F3, eject Fn-F10, and usb keyboard sleep key still fail to function.  I don't think you have properly identified the problem.  Is there some other code to check?
Comment 26 Michael Reiher 2009-07-25 21:50:25 UTC
(In reply to comment #25)

I didn't try the patch, but this might also be a more general KDE keyboard shortcut problem. I tried working around the problem by assigning the problematic keys (Expose, Dashboard and Eject on my Apple keyboard) to Launch0, Launch1 and Launch2 via xmodmap, but somehow only Launch0 works, the other two are ignored (even though I can assign them).
Comment 27 Lukasz Drozdz 2009-08-10 18:24:15 UTC
I can add two XF86BrightnessAdjust keys to the list:

keycode 101 (keysym 0x1008ff3b, XF86BrightnessAdjust)
keycode 212 (keysym 0x1008ff3b, XF86BrightnessAdjust)

Both, as you can see, are recognised by xev (X.org 1.5.2), and both work in GNOME (2.26.3).

Using KDE 4.3 / openSUSE 11.1 / MacBook 4,1.
Comment 28 Rex Dieter 2009-08-15 19:30:43 UTC
*** Bug 194166 has been marked as a duplicate of this bug. ***
Comment 29 Rex Dieter 2009-08-15 22:11:26 UTC
Looks like upstream kde-qt landed support for extra keys recently, woo,
Comment 30 GJ 2009-09-15 15:43:23 UTC
I have the same problem with a Thinkpad X60s using KDE4.3.1 on openSUSE11.1.
The problem existed in 4.2 too.

In fact the Fn key is not recognised at all for a lot of the combinations. E.G
Fn+F2, Fn+F3, Fn+F4, Fn+F7, Fn+F9, Fn+F12. In Systemsettings when trying to enter a key combination to set a shortcut the Fn key is not recognised at all. 

However it does work for some of the Fn combinations which I believe are controlled by the bios. E.G Fn+F5 (toggle radios), Fn+F7 (toggle external screen), Fn+ScrLk (toggle Numlock), Fn+PgUp (toggle thinklight), Fn+Home (increase screen brightness), Fn+End (decrease screen brightness).

These did work in Gnome so it seems to be a KDE thing. An explanation of the
Thinkpad Fn keys can be seen at

If you require me to test or provide further info let me know.
Comment 31 Jonathan Thomas 2009-10-15 02:55:39 UTC
Here's a patch from Kubuntu that adds key support in KDE (requires the Qt keycodes patch)
Comment 32 Michael Jansen 2009-12-07 22:32:53 UTC
SVN commit 1060011 by mjansen:

Add new X11 Qt keys to KKeyServer

From http://reviewboard.kde.org/r/1950

Patch by Felix Geyer

If some of the bugs are not fixed by this patch please reopen. I couldn't
test most of them because i naturally have all of the keyboards / keys

BUG: 166423
BUG: 180602
BUG: 182349
BUG: 182672
BUG: 183163
BUG: 183583
BUG: 183726
BUG: 192704
BUG: 196570
BUG: 205869
BUG: 212220

CCBUG: 181444
    The sleep button is now supported. Please close if fixed.


XF86XK_AddFavorite 0x1008FF39
XF86XK_ApplicationLeft 0x1008FF50
XF86XK_ApplicationRight 0x1008FF51
XF86XK_AudioCycleTrack 0x1008FF9B
XF86XK_AudioForward 0x1008FF97
XF86XK_AudioRandomPlay 0x1008FF99
XF86XK_AudioRepeat 0x1008FF98
XF86XK_AudioRewind 0x1008FF3E
XF86XK_Away 0x1008FF8D
XF86XK_BackForward 0x1008FF3F
XF86XK_Battery 0x1008FF93
XF86XK_Bluetooth 0x1008FF94
XF86XK_Book 0x1008FF52
XF86XK_BrightnessAdjust 0x1008FF3B
XF86XK_Calculater 0x1008FF54
XF86XK_Calendar 0x1008FF20
XF86XK_CD 0x1008FF53
XF86XK_Clear 0x1008FF55
XF86XK_ClearGrab 0x1008FE21
XF86XK_Close 0x1008FF56
XF86XK_Community 0x1008FF3D
XF86XK_ContrastAdjust 0x1008FF22
XF86XK_Copy 0x1008FF57
XF86XK_Cut 0x1008FF58
XF86XK_Display 0x1008FF59
XF86XK_Documents 0x1008FF5B
XF86XK_DOS 0x1008FF5A
XF86XK_Eject 0x1008FF2C
XF86XK_Excel 0x1008FF5C
XF86XK_Explorer 0x1008FF5D
XF86XK_Finance 0x1008FF3C
XF86XK_Game 0x1008FF5E
XF86XK_Go 0x1008FF5F
XF86XK_Hibernate 0x1008FFA8
XF86XK_History 0x1008FF37
XF86XK_HotLinks 0x1008FF3A
XF86XK_iTouch 0x1008FF60
XF86XK_KbdBrightnessDown 0x1008FF06
XF86XK_KbdBrightnessUp 0x1008FF05
XF86XK_KbdLightOnOff 0x1008FF04
XF86XK_LightBulb 0x1008FF35
XF86XK_LogOff 0x1008FF61
XF86XK_MailForward 0x1008FF90
XF86XK_Market 0x1008FF62
XF86XK_Meeting 0x1008FF63
XF86XK_Memo 0x1008FF1E
XF86XK_MenuKB 0x1008FF65
XF86XK_MenuPB 0x1008FF66
XF86XK_Messenger 0x1008FF8E
XF86XK_MonBrightnessDown 0x1008FF03
XF86XK_MonBrightnessUp 0x1008FF02
XF86XK_Music 0x1008FF92
XF86XK_MySites 0x1008FF67
XF86XK_News 0x1008FF69
XF86XK_OfficeHome 0x1008FF6A
XF86XK_Option 0x1008FF6C
XF86XK_Paste 0x1008FF6D
XF86XK_Phone 0x1008FF6E
XF86XK_Pictures 0x1008FF91
XF86XK_PowerDown 0x1008FF21
XF86XK_PowerOff 0x1008FF2A
XF86XK_Reload 0x1008FF73
XF86XK_Reply 0x1008FF72
XF86XK_RotateWindows 0x1008FF74
XF86XK_RotationKB 0x1008FF76
XF86XK_RotationPB 0x1008FF75
XF86XK_Save 0x1008FF77
XF86XK_ScreenSaver 0x1008FF2D
XF86XK_Select 0x1008FFA0
XF86XK_Send 0x1008FF7B
XF86XK_Shop 0x1008FF36
XF86XK_Sleep 0x1008FF2F
XF86XK_Spell 0x1008FF7C
XF86XK_SplitScreen 0x1008FF7D
XF86XK_Subtitle 0x1008FF9A
XF86XK_Support 0x1008FF7E
XF86XK_Suspend 0x1008FFA7
XF86XK_TaskPane 0x1008FF7F
XF86XK_Terminal 0x1008FF80
XF86XK_Time 0x1008FF9F
XF86XK_ToDoList 0x1008FF1F
XF86XK_Tools 0x1008FF81
XF86XK_TopMenu 0x1008FFA2
XF86XK_Travel 0x1008FF82
XF86XK_UWB 0x1008FF96
XF86XK_Video 0x1008FF87
XF86XK_View 0x1008FFA1
XF86XK_WakeUp 0x1008FF2B
XF86XK_WebCam 0x1008FF8F
XF86XK_WLAN 0x1008FF95
XF86XK_Word 0x1008FF89
XF86XK_WWW 0x1008FF2E
XF86XK_Xfer 0x1008FF8A
XF86XK_ZoomIn 0x1008FF8B
XF86XK_ZoomOut 0x1008FF8C

 M  +243 -52   kkeyserver_x11.cpp  

WebSVN link: http://websvn.kde.org/?view=rev&revision=1060011
Comment 33 pierinz 2011-03-07 19:11:38 UTC
I don't know if i should open a new bug, anyway "XF86TouchpadOn" isn't supported.
Comment 34 Vojta Drbohlav 2011-04-05 10:12:44 UTC
XF86TouchpadOff is not supported, either.
Comment 35 Lamarque V. Souza 2011-04-05 18:50:57 UTC
As stated in comment #32 you should reopen this bug instead of creating a new one about missing keysyms. Unfortunately Qt 4.7.1 does not provide the keys Qt::Key_Touchpad{Toggle,On,Off} so it is not possible to add them to kdelibs. I will reopen this bug until that is fixed.
Comment 36 Lamarque V. Souza 2011-04-09 02:56:08 UTC
Created attachment 58731 [details]
Adds TouchpadToggle, TouchpadOn and TouchpadOff keys to qt

Here is a patch to add those keys to Qt. Now we need someone who can apply this patch to Qt.
Comment 37 Lamarque V. Souza 2011-04-09 03:11:38 UTC
Upstream bug entry:


Since that bug is there for almost a year without resolution I think there is little chances for my patch in #36 be applied.
Comment 38 Andreas E 2012-02-29 00:23:59 UTC
Just thought I'd update something on this old one.

Related (former) Qt Task Tracker bug 230168 mentioned in comment 14 has now been moved to Qt's new bug tracker system and gotten a new ID.

You will now find it at https://bugreports.qt-project.org/browse/QTBUG-2925
Comment 39 Lamarque V. Souza 2013-04-20 09:12:32 UTC
Qt5 supports TouchpadToggle, TouchpadOn and TouchpadOff. For those of you using Qt 4.8 you can use http://tsdgeos.blogspot.com/2012/10/ktouchpadenabler-011-released.html as a workaround.
Comment 40 daramas444 2013-05-18 13:01:01 UTC
Hi, I would like to add that since a recent update (a few days ago), the fn + volume {up-down-off} have stopped working, as long as the play/stop/previous/next media keys.

I am using KDE 4.10.2 (Qt 4.8.4) on Fedora 18, kernel 3.9.2-200.fc18.x86_64 . my laptop is a Asus X73SV
Comment 41 Rami Lehti 2013-10-10 11:13:27 UTC
Additional keys to be added:

Why not just add all keys that X supports ?
Comment 42 valdikss 2014-01-20 07:28:42 UTC
Can we add XF86AudioMicMute please? Gnome 3 can handle this key.

KeyRelease event, serial 42, synthetic NO, window 0x5600001,
    root 0x95, subw 0x0, time 51921175, (-1110,454), root:(588,477),
    state 0x0, keycode 198 (keysym 0x1008ffb2, XF86AudioMicMute), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Comment 43 . 2015-10-30 12:30:00 UTC
For anyone who stumbles upon this bug in quest of finding a solution to get the keys finally working, there is this utility - xbindkeys, which you can use until this bug gets resolved.