Bug 20455 - missing multimedia keys / Ubuntu global workaround
Summary: missing multimedia keys / Ubuntu global workaround
Status: RESOLVED FIXED
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-03-04 04:03 UTC by alain Baeckeroot
Modified: 2009-03-05 08:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xmodmap used for system wide settings (786 bytes, application/octet-stream)
2009-03-04 04:03 UTC, alain Baeckeroot
Details

Description alain Baeckeroot 2009-03-04 04:03:38 UTC
Created attachment 23511 [details]
xmodmap used for system wide settings

On my laptop with debian lenny ia32, multimedia keys (sound wheel etc) did not work until i did an ugly copy of kubuntu workaround.

Debian X tools are:
xorg 7.3
libxkbfile1 1.0.5
xkb-data  1.3
x11-xkb-utils 7.4

symptome:
when i turn the sound wheel, xev said
debian lenny :  state 0x0, keycode 174 (keysym 0x0, NoSymbol),
ubuntu 8.04  :  state 0x0, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume)

further investigations showed how kubuntu 8.04 efficiently solved my problem with 2 files, one global configuration for X (shown below), and the xmodmap data (attached) 
$ cat /etc/X11/Xsession.d/80ubuntu-xmodmap 
# Set the Ubuntu laptop keycode -> xkeysyms mapping (used by KDE)
#
# This file is sourced by Xsession(5), not executed.
# The "|| true" is to ensure that the Xsession script does not terminate on error
/usr/bin/xmodmap /usr/share/apps/kxkb/ubuntu.xmodmap || true

USRMODMAP="$HOME/.Xmodmap"

if [ -x /usr/bin/xmodmap ]; then
        if [ -f "$USRMODMAP" ]; then
                /usr/bin/xmodmap "$USRMODMAP" || true
        fi
fi

With this everything works (even if the popup window is huge in the middle of the screen)
I was told this is an ugly workaround, and i should fill a bug here.
Comment 1 Sergey V. Udaltsov 2009-03-04 14:31:33 UTC
Could you please try the latest xk-c (version 1.5). Also, just to confirm - are you using kbd driver?
Comment 2 alain Baeckeroot 2009-03-04 15:26:31 UTC
it seems i use the kdb driver:

i have the 1.3 package installed:
ii  xserver-xorg-input-kbd   1:1.3.1-1  X.Org X server -- keyboard input driver

and this in /etc/X11/xorg.conf
Section "InputDevice"
        Identifier  "Generic Keyboard"
        Driver      "kbd"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "fr"
        Option      "XkbVariant" "latin9"
EndSection

and /var/log/Xorg.log
(II) LoadModule: "kbd"
(II) Loading /usr/lib/xorg/modules/input//kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
        compiled for 1.4.0.90, module version = 1.3.1
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 2.0

i try the 1.5 asap
Comment 3 alain Baeckeroot 2009-03-05 07:55:12 UTC
i tested with 1.5 version , nothing changed until i 
change the 

Option "XkbdModel" "pc105"
to

Option      "XkbModel" "toshiba_s3000"

but, its far from obvious to find it/
Comment 4 alain Baeckeroot 2009-03-05 08:31:14 UTC
more hardware info used by hotkeys (who failed too to configure it ;-)

# dmidecode --string system-manufacturer
TOSHIBA
# /usr/sbin/dmidecode --string system-product-name
Satellite P300
# dmidecode --string system-version
PSPC4E-024015FR

Comment 5 Sergey V. Udaltsov 2009-03-05 08:48:10 UTC
Well, I guess it is still searchable. What I can do is rename toshiba_s3000 to toshiba_satellite (to make it generic for all these machines). 


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.