Bug 13311 - XF86Keysym.h: backlight controls keys not recognized by xmodmap (xmodmap: bad keysym name 'XF86MonBrightnessUp' in keysym list)
Summary: XF86Keysym.h: backlight controls keys not recognized by xmodmap (xmodmap: bad...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (data) (show other bugs)
Version: 7.3 (2007.09)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2007-11-20 00:11 UTC by jbibollet
Modified: 2008-01-29 11:33 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description jbibollet 2007-11-20 00:11:39 UTC
In the /usr/include/X11/XF86keysym.h file there are definitions for keys to 'handle' monitor backlight:
/* Backlight controls. */
#define XF86XK_MonBrightnessUp   0x1008FF02
#define XF86XK_MonBrightnessDown 0x1008FF03
#define XF86XK_KbdLightOnOff     0x1008FF04
#define XF86XK_KbdBrightnessUp   0x1008FF05
#define XF86XK_KbdBrightnessDown 0x1008FF06

But xmodmap doesn't seem to be able to use them:
xmodmap -e "keycode 169=XF86MonBrightnessUp"
xmodmap:  commandline:1:  bad keysym name 'XF86MonBrightnessUp' in keysym list
xmodmap:  1 error encountered, aborting.

Every other keys definition in this file are recognized by xmodmap, except those  ones.

Some information about my system:
gentoo, amd64, libX11-1.1.3, xorg-server-1.4-r2, xmodmap-1.0.3
Comment 1 Alan Coopersmith 2008-01-29 08:58:44 UTC
Works for me.
These definitions should come from the entries in <prefix>/share/X11/XKeysymDB -
is that file correctly installed on your system and contain those entries?
Comment 2 jbibollet 2008-01-29 10:43:13 UTC
(In reply to comment #1)
> Works for me.
> These definitions should come from the entries in <prefix>/share/X11/XKeysymDB
> -
> is that file correctly installed on your system and contain those entries?
> 
According to equery, the XKeysymDB file is correctly installed (from the libX11 package):
equery belongs /usr/share/X11/XKeysymDBKeysy
[ Searching for file(s) /usr/share/X11/XKeysymDB in *... ]
x11-libs/libX11-1.1.3 (/usr/share/X11/XKeysymDB)

However, it doesn't contain any of the symbols I mentioned in my first post:

cat /usr/share/X11/XKeysymDB | grep -i bri
SunVideoLowerBrightness :1005FF7B
SunVideoRaiseBrightness :1005FF7C
XF86BrightnessAdjust    :1008FF3B
Comment 3 Alan Coopersmith 2008-01-29 11:33:19 UTC
Ah, that's what I get for testing on a system running builds from the git
sources - these were added to XKeysymDB in git since the last libX11 release:

commit 7c996f78914c77fe17e9f4feede980d895d9df51
Author: Eric Anholt <eric@anholt.net>
Date:   Tue Aug 28 15:15:11 2007 -0700

    Add XF86 keyboard/monitor brightness keysyms to the keysymbdb.

diff --git a/src/XKeysymDB b/src/XKeysymDB
index f146950..5390444 100644
--- a/src/XKeysymDB
+++ b/src/XKeysymDB
@@ -199,6 +199,11 @@ XeroxPointerButton5        :10070005
 
 ! The definitions here should match <X11/XF86keysym.h>
 XF86ModeLock           :1008FF01
+XF86MonBrightnessUp    :1008FF02
+XF86MonBrightnessDown  :1008FF03
+XF86KbdLightOnOff      :1008FF04
+XF86KbdBrightnessUp    :1008FF05
+XF86KbdBrightnessDown  :1008FF06
 XF86Standby            :1008FF10
 XF86AudioLowerVolume   :1008FF11
 XF86AudioMute          :1008FF12

Marking as FIXED since it's fixed in the git master repository.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.