Bug 327017 - sax2: nodeadkeys should not be set by default for us keyboard layout
Summary: sax2: nodeadkeys should not be set by default for us keyboard layout
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: SaX2 (show other bugs)
Version: RC 1
Hardware: x86-64 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Marcus Schaefer
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-21 03:47 UTC by darren winter
Modified: 2007-09-24 17:28 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
xorg.conf (5.84 KB, text/plain)
2007-09-21 13:35 UTC, darren winter
Details
Xorg.0.log (30.74 KB, text/x-log)
2007-09-21 13:35 UTC, darren winter
Details
xorg.conf.backup (5.84 KB, text/plain)
2007-09-21 14:19 UTC, darren winter
Details
xorg.conf.saxsave (5.20 KB, application/octet-stream)
2007-09-22 01:08 UTC, darren winter
Details
saved as plain text (5.20 KB, text/plain)
2007-09-22 01:20 UTC, darren winter
Details
xorg.conf, before and after sax2 (2.31 KB, application/x-gzip)
2007-09-23 22:26 UTC, darren winter
Details
sax2 -a test... (3.78 KB, text/plain)
2007-09-24 13:32 UTC, darren winter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darren winter 2007-09-21 03:47:09 UTC
i installed the x86_64 version of rc1 and i am unable to change vt's by pressing ctrl+alt+ fkey (1-12) and print screen isn't working either.

i don't know what the cause it, but i suspect it might be related to the recent "evdev" "mowrkaround" (instead of fix).  again, i'm not sure.

is anyone else having this problem?

(_possibly my final bug report_)
Comment 1 Stefan Dirsch 2007-09-21 06:58:42 UTC
At least attach /etc/X11/xorg.conf and /var/log/Xorg.0.log.
Comment 2 darren winter 2007-09-21 13:35:04 UTC
Created attachment 173885 [details]
xorg.conf
Comment 3 darren winter 2007-09-21 13:35:39 UTC
Created attachment 173887 [details]
Xorg.0.log
Comment 4 darren winter 2007-09-21 13:36:59 UTC
someone mentioned they had a problem with their "fn" key.  i have an "f lock" key and i've tried it in both the on and off positions.  i'm not sure what's going on.
Comment 5 Dominique Leuenberger 2007-09-21 13:53:08 UTC
clearing needinfo; the requested logfiles were provided in comment #2 and comment #3
Comment 6 Stefan Dirsch 2007-09-21 14:02:46 UTC
Obviously you created xorg.conf with nvidia-xconfig. This is not supported.
Comment 7 darren winter 2007-09-21 14:19:10 UTC
Created attachment 173904 [details]
xorg.conf.backup

it didn't work before the nvidia installation either.
Comment 8 Stefan Dirsch 2007-09-21 14:22:33 UTC
So you attached the same config file two times. What use is this?
Comment 9 darren winter 2007-09-22 01:08:50 UTC
Created attachment 174001 [details]
xorg.conf.saxsave

sorry, pointed to the wrong conf file.
Comment 10 darren winter 2007-09-22 01:15:30 UTC
i used "showkey -k" in runlevel 3, as suggested by someone in another report.  when i press and release the keys ctrl alt and f1, showkey does report correctly...  i think it was 29, 56 and 59 respectively, pressed, then it shows them released.  so they keys are working, but i can't switch tty/vt at all.

print screen isn't working either.
Comment 11 darren winter 2007-09-22 01:18:52 UTC
hmm, this also might be related...  the mouse works fine most of the time, but if the computer starts crunching, like when the software cache is being read by yast, i can hardly move the mouse at all.  i mean, i slide it 6" and it moves on screen about 1/2".  the mouse (logitech g5) never performed this badly in alphas 1 thru 7 or betas 1 thru 3.  is this or the keyboard related to the evdev problem?  
Comment 12 darren winter 2007-09-22 01:20:09 UTC
Created attachment 174002 [details]
saved as plain text
Comment 13 Stefan Dirsch 2007-09-22 01:29:55 UTC
This is the X11 configuration used during installation, which is used as fallback, if sax2 fails at the end of the installation. So you are still using "fbdev" video (slow!) and "mouse" (no "evdev"!) driver.

I think you should create a real configuration with SaX2 first.
Comment 14 darren winter 2007-09-22 19:50:25 UTC
i compared my new xorg.conf to one from a previous install and noticed one line
that looked suspicious in InputDevice section:

Option "XkbVariant" "nodeadkeys"

so i commented this line out and restarted x.

vt switching (ctrl+alt+fkey) and print screen all work now.

the mouse is still dreadfully slow whenever the system really gets to
crunching, like when using the software manager.  i can barely move the mouse
at all.

i'm going to look for other bugs with mice now.
Comment 15 darren winter 2007-09-23 22:25:34 UTC
i need to reopen this bug.

the vt switching problem is definitely caused by sax2 when it saves the xorg.conf during installation.

i did a clean install of rc1 onto a different drive (sata).

default xorg.conf (xorg.conf.install / xorg.conf.saxsave):

Section "InputDevice"
  Driver		"kbd"
  Identifier	"Keyboard[0]"
  Option		"Protocol"		"Standard"
  Option		"XkbRules"		"xfree86"
  Option		"XkbKeycodes"	"xfree86"
  Option		"XkbModel"		"pc104"
  Option		"XkbLayout"		"us"
EndSection

after sax2 saves the xorg.conf

Section "InputDevice"
  Driver       "kbd"
  Identifier   "Keyboard[0]"
  Option       "Protocol" "Standard"
  Option       "XkbLayout" "us"
  Option       "XkbModel" "microsoft"
  Option       "XkbRules" "xfree86"
  Option       "XkbVariant" "nodeadkeys"
EndSection

the "Option "XkbVariant" "nodeadkeys"" line is the direct cause of my problem.

with that line, i cannot switch vt's using ctrl+alt+fkey, and print screen also fails.  if i comment that line and restart x, all keys work normally.

this problem may have existed prior to rc1, but my sax2 in all previous versions failed due to a known problem with the logitech g5 mouse, so sax2 never saved an xorg.conf.
Comment 16 darren winter 2007-09-23 22:26:43 UTC
Created attachment 174099 [details]
xorg.conf, before and after sax2
Comment 17 Stefan Dirsch 2007-09-23 22:59:29 UTC
Indeed there's no nodeadkeys variant for us keyboard layout. Therefore keyboard layout loading fails - although this cannot be seen in the logfile.
Looks like a bug in SaX2 to me.
Comment 18 darren winter 2007-09-24 04:10:36 UTC
@stefan bug 327517 seems related
Comment 19 Marcus Schaefer 2007-09-24 08:41:53 UTC
nodeadkeys variant was never set and is not needed for us keyboards
and worked in the past
Comment 20 Stefan Dirsch 2007-09-24 09:54:47 UTC
Marcus, if I understand Darren correctly, SaX2 now sets nodeadkeys for us keyboard layouts by default. This is wrong needs to be adressed.
Comment 21 Marcus Schaefer 2007-09-24 10:00:06 UTC
I didn't change anything in us keyboard mapping:

# /.../
# Mapping table for console -> X11 mapping
#==================================================================================
# CONSOLE       | MODEL | LAYOUT       | VARIANT    | KEYCODE | LA| RA| SL| RC| OPT
#---------------|-------|--------------|------------|---------|---|---|---|---|----
us              : microsoftpro : us           : x            : xfree86 : x : x : x : x : x


x -> no variant

I checked that and it works for me with us.map.gz set in /etc/sysconfig/keyboard
(KEYTABLE variable)
Comment 22 Stefan Dirsch 2007-09-24 10:21:56 UTC
This would mean that Darren enabled it manually.
Comment 23 darren winter 2007-09-24 12:53:57 UTC
not the case, this is a vanilla install, i didn't do anything silly and at no point did i ever manually select a keyboard layout or a mouse for that matter.

i installed rc1 two times with identical results.  i installed the previous 10 versions, some of them twice, and never saw this before, not one time.

i use print screen heavily, and i switch vt's constantly so i can play with multiple wm's at the same time which is the only reason i noticed the problem immediately.
Comment 24 darren winter 2007-09-24 12:57:24 UTC
reopening for now.
Comment 25 Marcus Schaefer 2007-09-24 13:19:22 UTC
installation process is not sax, the installer uses libsax and can setup
the keyboard in its own way. if you can't reproduce the issue with the
following commands it's definitely not a sax2 bug

   init 3
   sax2 -a

   ==> check the /etc/X11/xorg.conf
       If you are using the us.map.gz console map in /etc/sysconfig/keyboard
       (KEYTABLE) variable _no_ variant must be set

Thanks
Comment 26 darren winter 2007-09-24 13:32:13 UTC
Created attachment 174320 [details]
sax2 -a test...

marcus...

i moved my xorg.conf out of the way, switched to init 3 and ran sax2 -a as you requested.

i am still getting:  Option "XkbVariant" "nodeadkeys"

> If you are using the us.map.gz console map in /etc/sysconfig/keyboard

i have no idea if i am or not, i don't even know where to change that, but i didn't change it myself.
Comment 27 Stefan Dirsch 2007-09-24 13:39:43 UTC
> > If you are using the us.map.gz console map in /etc/sysconfig/keyboard
>
> i have no idea if i am or not, i don't even know where to change that, but i
> didn't change it myself.
Check for KEYTABLE in /etc/sysconfig/keyboard. Shouldn't be that hard.
Comment 28 Marcus Schaefer 2007-09-24 13:41:39 UTC
If you don't mind call:

cat /etc/sysconfig/keyboard | grep KEYTABLE 

Thanks
Comment 29 darren winter 2007-09-24 14:34:04 UTC
sgt-d@meh-u8i9:~> cat /etc/sysconfig/keyboard | grep KEYTABLE
# e.g. KEYTABLE="de-latin1-nodeadkeys", "us" or empty for US settings
KEYTABLE="us.map.gz"
#  or KEYTABLE will be used then -- most keyboard maps don't have a
sgt-d@meh-u8i9:~>
Comment 30 darren winter 2007-09-24 14:51:37 UTC
yast sysconfig editor shows hardware -> keyboard -> keymap = us.map.gz
Comment 31 darren winter 2007-09-24 15:03:28 UTC
er..  keytable*
Comment 32 Marcus Schaefer 2007-09-24 16:09:23 UTC
?? can you tell me the information from

   sysp -q keyboard

thanks
Comment 33 darren winter 2007-09-24 16:49:16 UTC
meh-u8i9:/home/sgt-d # sysp -q keyboard
Keyboard0 =>  XkbModel   : microsoftpro
Keyboard0 =>  XkbLayout  : us
Keyboard0 =>  Name       : Microsoft Natural® Ergonomic Keyboard 4000
Keyboard0 =>  VendorID   : 0x045e
Keyboard0 =>  DeviceID   : 0x00db
Keyboard0 =>  Profile    : microsoft-natural
Keyboard0 =>  RealDevice : /dev/input/event4
Comment 34 Marcus Schaefer 2007-09-24 17:11:06 UTC
*Aha* the microsoft-natural profile is hitting us... there is the variant
set for only this keyboard *grr* :)

fixed
Comment 35 darren winter 2007-09-24 17:22:36 UTC
KICK ASS!

*whew* i was almost convinced i was doing something wrong ;)
Comment 36 Marcus Schaefer 2007-09-24 17:28:20 UTC
;-) you were fine... I was wrong