Bug 368590

Summary: caps-lock light when switched ctrl <-> caps
Product: [openSUSE] openSUSE 11.0 Reporter: Michael Meeks <mmeeks>
Component: GNOMEAssignee: E-mail List <gnome-bugs>
Status: RESOLVED NORESPONSE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: dliang, forgotten_eDPGYP6_cn
Version: Alpha 2plus   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Meeks 2008-03-10 09:49:45 UTC
In 10.3 when I swapped caps-lock and control (cf. bug #365539# ) my caps-lock light would not toggle when I pressed control [ after all it's caps-lock ]. Conversely, when I pressed control it would (and the light would be a meaningful & helpful indication of my caps state).

Unfortunately in SLED10 while the caps function can be swapped with ctrl, the light stays with the caps-lock key which is rather odd.
Comment 1 Stefan Dirsch 2008-03-10 12:02:21 UTC
Using xmodmap swapping caps-lock/control works for me. 

cat > /tmp/Xmodmap << EOF
!swap control/caps-lock
clear    control
keycode 66 = Control_L
keycode 37 = Caps_Lock
add     lock = Caps_Lock
add     control = Control_L Control_R
EOF

setxkbmap us
xmodmap /tmp/Xmodmap

I never tried it with xkb though.

Comment 2 Stefan Dirsch 2008-03-10 12:08:05 UTC
Please try

  setxkbmap us -option "" -option ctrl:swapcaps -v

It works for me.
Comment 3 Michael Meeks 2008-03-10 12:16:18 UTC
Works for me too, though (amusingly the polarity of the CAPS-lock LED is reversed - so it is now on only when caps-is off ;-).

So - perhaps this is a gnome bug, or in libxklavier
Comment 4 Stefan Dirsch 2008-03-10 13:42:11 UTC
(In reply to comment #3 from Michael Meeks)
> Works for me too, though (amusingly the polarity of the CAPS-lock LED is
> reversed - so it is now on only when caps-is off ;-).

Strange. The polarity is correct for me.

> So - perhaps this is a gnome bug, or in libxklavier

Ok. Reassigning.

Comment 5 Mike Fabian 2008-03-10 14:04:05 UTC
Stefan’s command in comment #2 works perfectly for me as well, I can’t
reproduce the polarity problem of the CAPS-lock LED mentioned in
comment #3 either.

Comment 6 JP Rosevear 2008-05-15 23:52:00 UTC
*** Bug 390631 has been marked as a duplicate of this bug. ***
Comment 8 Larry Finger 2011-04-02 16:51:48 UTC
The version with which you had the bug is now obsolete. I'll close this as NORESPONSE. If you can still reproduce it in current 11.4, please reopen the bug and move it to the appropriate version. Thanks!