Bug 669912 - setxkbmap problem with keyboard mapping
Summary: setxkbmap problem with keyboard mapping
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: system-setup-keyboard
Version: 14
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Peter Hutterer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-15 18:34 UTC by Kapetanakis Giannis
Modified: 2018-04-11 17:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-26 06:09:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
669912.tar (20.00 KB, application/x-tar)
2011-01-17 15:32 UTC, Kapetanakis Giannis
no flags Details
keyboard from the archive (103 bytes, text/plain)
2011-01-17 15:48 UTC, Matěj Cepl
no flags Details
xorg.conf from the archive (892 bytes, text/plain)
2011-01-17 15:48 UTC, Matěj Cepl
no flags Details
Xorg.0.log from the archive (14.89 KB, text/plain)
2011-01-17 15:48 UTC, Matěj Cepl
no flags Details
00-system-setup-keyboard.conf (332 bytes, text/plain)
2011-01-17 18:27 UTC, Kapetanakis Giannis
no flags Details

Description Kapetanakis Giannis 2011-01-15 18:34:53 UTC
Hi,

In F13 I was using 

setxkbmap -rules xorg -model evdev -layout "us,el" -variant "" -option "grp:alt_shift_toggle" -geometry 'pc(pc104)'

to set my keyboard layout. Doing this now messes my keyboard mapping. Greek
work but arrows, page up/down etc don't work. Doing xmodmap on them is fixing most of the problem but not all.

I'm using GDM -> User Script (.xsession/.xinitrc) -> e16 (enlightenment)
(which means /etc/sysconfig/keyboard and /etc/X11/xorg.conf) are not being used to setup my keyboard layout (why by the way?)

I'm NOT using gnome (nor KDE).

regards

Giannis

Comment 1 Kapetanakis Giannis 2011-01-16 12:05:22 UTC
I've tried older versions of xorg-x11-xkb-utils without any luck (also F13 version).

The problem was fixed by removing -rules xorg

The working command is now:
>setxkbmap -model evdev -layout "us,gr" -option "grp:alt_shift_toggle" -geometry 'pc(pc101)'

Btw why do I have to do that? Layout and toggling is defined in 
/etc/sysconfig/keyboard
/etc/hal/fdi/policy/10-keymap.fdi 
/etc/X11/xorg.conf
/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf

However before running the setxkbmap nothing happens.

regards,

Giannis

Comment 2 Matěj Cepl 2011-01-17 12:49:01 UTC
(In reply to comment #0)
> I'm using GDM -> User Script (.xsession/.xinitrc) -> e16 (enlightenment)
> (which means /etc/sysconfig/keyboard and /etc/X11/xorg.conf) are not being used
> to setup my keyboard layout (why by the way?)

https://fedoraproject.org/wiki/Input_device_configuration

Does setting configuration according to this page help?

Comment 3 Kapetanakis Giannis 2011-01-17 13:09:06 UTC
Actually it does not. Hal (if you mean this) is of no use, at least the way I log in.
lshal reports correct configuration but the language changing is not working
unless I do the setxkbmap command.

Giannis
btw. problem solved by removing -rules xorg

Comment 4 Matěj Cepl 2011-01-17 14:19:38 UTC
Actually looking at this again, could I get /etc/X11/xorg.conf and /var/log/Xorg.0.log attached to this bug as well, please?

Thank you

Comment 5 Kapetanakis Giannis 2011-01-17 15:32:00 UTC
Created attachment 473866 [details]
669912.tar

/etc/X11/xorg.conf
/var/log/Xorg.0.log
/etc/sysconfig/keyboard

Comment 6 Matěj Cepl 2011-01-17 15:48:02 UTC
Created attachment 473867 [details]
keyboard from the archive

Comment 7 Matěj Cepl 2011-01-17 15:48:09 UTC
Created attachment 473868 [details]
xorg.conf from the archive

Comment 8 Matěj Cepl 2011-01-17 15:48:15 UTC
Created attachment 473869 [details]
Xorg.0.log from the archive

Comment 9 Kapetanakis Giannis 2011-01-17 15:52:26 UTC
Adding "AutoAddDevices" "false" in ServerFlags has no change (appart from different logs).

Removing Section "InputDevice"
         Identifier  "Keyboard0"
has no change either, except that the layout and model are not reported
correctly in Xorg.0.log, although they are defined in /etc/sysconfig/keyboard
and 00-system-setup-keyboard.conf
regards,

Giannis

Comment 10 Matěj Cepl 2011-01-17 15:58:28 UTC
(In reply to comment #8)
> Created attachment 473869 [details]
> Xorg.0.log from the archive

This is odd. Xorg.0.log complains about

[  2810.528] (WW) Option "xkb_variant" requires an string value
[  2810.528] (WW) Option "XkbVariant" requires an string value
[  2810.611] (WW) Option "xkb_variant" requires an string value
[  2810.611] (WW) Option "XkbVariant" requires an string value
[  2810.644] (WW) Option "xkb_variant" requires an string value
[  2810.644] (WW) Option "XkbVariant" requires an string value

while we don't have any XKbVariant:

Section "InputDevice"
         Identifier  "Keyboard0"
         Driver      "kbd"
         Option      "XkbLayout" "us,gr"
         Option      "XkbModel" "pc101"
         Option      "XkbOptions" "grp:alt_shift_toggle"
EndSection

Passing to developers

Comment 11 Matěj Cepl 2011-01-17 16:00:10 UTC
(In reply to comment #9)
> correctly in Xorg.0.log, although they are defined in /etc/sysconfig/keyboard
> and 00-system-setup-keyboard.conf

Which I would like to see as well, please (please attached as a separate uncompressed attachments, please)?

Thanks

Comment 12 Kapetanakis Giannis 2011-01-17 18:27:29 UTC
Created attachment 473909 [details]
00-system-setup-keyboard.conf

Comment 13 Matěj Cepl 2011-01-18 15:11:47 UTC
Yes, empty value

	Option		"XkbVariant"	""

is probably a problem.

Comment 14 Kapetanakis Giannis 2011-01-18 16:29:48 UTC
This is certainly not a problem at my work pc where I login on console and start X with xinit

I will omit XkbVariant when I get home and see if that changes something.

Comment 15 Kapetanakis Giannis 2011-01-18 23:28:01 UTC
Removing  VARIANT from /etc/sysconfig/keyboard and XkbVariant from
00-system-setup-keyboard.conf did no change apart from the loss of complain in Xorg.0.log

I tried also "basic" with no luck as well.

Comment 16 Peter Hutterer 2012-06-26 06:09:49 UTC
This bug was filed against Fedora 14 which is now EOL. Please re-open this bug if you still experience this issue with one of the currently suppported versions of Fedora. Don't forget to update the version field if you do so.


Note You need to log in before you can comment on or make changes to this bug.