Bug 25873 - misc:typo rules doesn't apply on X startup
Summary: misc:typo rules doesn't apply on X startup
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/XKB (show other bugs)
Version: 7.4 (2008.09)
Hardware: Other All
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-03 09:07 UTC by Alexey Ten
Modified: 2012-11-06 01:48 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xkbcomp :1 - > bug.xkb.txt (47.33 KB, text/plain)
2010-01-03 09:07 UTC, Alexey Ten
no flags Details
xkbcomp after running setxkbmap (59.96 KB, text/plain)
2010-01-03 09:08 UTC, Alexey Ten
no flags Details
git formatted patch (1.11 KB, patch)
2012-10-23 08:49 UTC, Alexey Ten
no flags Details | Splinter Review
signed off patch (1.16 KB, patch)
2012-11-01 07:14 UTC, Alexey Ten
no flags Details | Splinter Review

Description Alexey Ten 2010-01-03 09:07:07 UTC
Created attachment 32414 [details]
xkbcomp :1 - > bug.xkb.txt

I have following settings in /etc/default/console-setup
XKBMODEL="pc104"
XKBLAYOUT="us,ru"
XKBVARIANT=","
XKBOPTIONS="grp:caps_toggle,lv3:ralt_switch,misc:typo,terminate:ctrl_alt_bksp"

Logging into text console and starting xinit -- :1 doesn't apply rules for misc:typo option, so I have to run setxkbmap.

xprop -root gives right settings:
$ xprop -root
_XKB_RULES_NAMES(STRING) = "evdev", "pc104", "us,ru", ",", "grp:caps_toggle,lv3:ralt_switch,misc:typo,terminate:ctrl_alt_bksp"
XFree86_VT(INTEGER) = 9

Output of xkbcomp after start is attached. Also xkbcomp outputs following to stderr
Warning:          Could not load keyboard geometry for :1
                  BadAlloc (insufficient resources for operation)
                  Resulting keymap file will not describe geometry
Comment 1 Alexey Ten 2010-01-03 09:08:28 UTC
Created attachment 32415 [details]
xkbcomp after running setxkbmap

after running setxkbmap xkbcomp gives no error messages
Comment 2 Alexey Ten 2010-01-03 09:11:59 UTC
My system is ubuntu 9.10
ii  xorg                                  1:7.4+3ubuntu10
ii  xserver-xorg                          1:7.4+3ubuntu10
Comment 3 Alexey Ten 2012-10-23 08:49:06 UTC
Created attachment 68943 [details] [review]
git formatted patch

We have to apply patch similar to one in bug #19563 because we have own maprules.c
Comment 4 Peter Hutterer 2012-11-01 06:25:28 UTC
Alexey, please sign-off your patch. ACK otherwise, I'll merge it as soon as I have your Signed-off-by.
Comment 5 Alexey Ten 2012-11-01 07:14:45 UTC
Created attachment 69381 [details] [review]
signed off patch
Comment 6 Peter Hutterer 2012-11-06 01:48:20 UTC
commit 5b7384a3154a95a805b040e1910e276b52aada96
Author: Alexey Ten (Lynn) <alexeyten@gmail.com>
Date:   Tue Oct 23 12:32:31 2012 +0400

    Apply partial matches for option (#25873)


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.