[VINUX-DEVELOPMENT] Orca caps-lock fix

Bill Cox waywardgeek at gmail.com
Wed Nov 9 20:11:56 UTC 2011

I've attached an alternate patch to Orca to fix the caps lock problem
that does not require any change to any other package.  It's a bit of
a hack.  It calls xkbcomp to get the entire keyboard state, makes the
change we need, and calls xkbcomp again to write the modified keyboard

On the positive side, it should in theory just work for everyone, and
there's no need to delay the fix while we wait on an upstream patch.
My recommendation is to go ahead and apply (and Orca-fy) the patch to
orca.py while we wait for upstream to add the new caps mode, and for
the various distros that work with orca to ship with the new mode.
Then we can ship the simpler patch that just enables the new caps lock

I'll get the upstream patch started ASAP, after a meeting I'm about to
attend.  However, it will probably be a while before Orca can count on
having the new caps mode.  In the meantime, this hack should work


On Wed, Nov 9, 2011 at 9:54 AM, Don Marang <donald.marang at gmail.com> wrote:
> Great work!  It appears that the right people are prepared to implement this
> change for orca and Ubuntu.
> Do I read this right that a change is also required from another package,
> setxkbmap?  Has the developers of this package been notified?  I have no
> visibility into their development.  Are they receptive or will we need to
> nag to get this change implemented?
> Don Marang
> On 11/8/2011 5:33 PM, Bill Cox wrote:
> The old xmodmap program seems to be beginning to break down.  It's
> considered obsolete and has been replaced with setxkbmap.  Orca uses
> xmodmap to disable the caps lock key, but in newer versions of
> xmodmap, that also causes it to no longer work as a modifier key.  I
> believe this is why we're seeing the caps lock key Unbuntu Oneiric
> toggling whenever pressed.
> On my system, I got it working with a patch to Orca to use setxkbmap,
> and by editing some configuration files in the xkeyboard-config
> package to add a new caps lock configuration, which I called "orca".
> Done this way, this option shows up in the Keyboard settings dialog
> along with the other settings for the caps lock key, which is kind of
> cool.  I have Orca enable the orca mode with:
> setxkbmap -option caps:orca
> and disable it with:
> setxkbmap -option
> I've attached diff files created with diff -Naur.  The orca.py patch
> is fairly simple.  The down side is that it requires the new orca mode
> in the xkb configuration, so these patches have to be in sync.
> Bill
> --
> You received this message because you are subscribed to the Google
> Groups Vinux Development Forum.
> To post to this group, send email to vinux-development at googlegroups.com
> To unsubscribe from this group, send email to
> vinux-development+unsubscribe at googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/vinux-development?hl=en?hl=en
> Vinux Home Page: http://vinuxproject.org/
> Vinux Wiki Documentation: http://wiki.vinuxproject.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: orca.py.patch
Type: text/x-patch
Size: 4348 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-accessibility/attachments/20111109/bdc59548/attachment.bin>

More information about the Ubuntu-accessibility mailing list