← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 524774] Re: xmodmap failure BadValue error, 118 (X_SetModifierMapping)

 

Being not literate enought to parse Xorg source code, I tested the
following dirty and unreliable hack. The stupid idea is to use xmodmap
only when the Xorg window is displayed, based on my last comment. This
working (for me) should give some support to that comment:

#!/bin/sh


BLAHBLAH
.
.
.
startx
waitforX
export DISPLAY=:0.0
(
export CURTTY=A
until [ $CURTTY -eq 7 ]
do
chvt 7
CURTTY=`fgconsole`
done
xmodmap -display "${DISPLAY}" -v ~/.Xmodmap
) &

...the rest of your script...

This is a horrible workaround, and moreover I occasionally observed Xorg
being just crashed by xmodmap (I can't reproduce that aptly, though).
Allowed me to do what I wanted (reassign the mod key for wmii window
manager, by the way), anyway.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg-server in ubuntu.
https://bugs.launchpad.net/bugs/524774

Title:
  xmodmap failure BadValue error, 118 (X_SetModifierMapping)



References