← Back to team overview

aims team mailing list archive

[Bug 1218322] Re: Can't set keyboard layout change to alt+shift, ctrl+shift, etc.

 

Sebastien, here what I've got:

Type commands for breakpoint(s) 1, one per line.
End with a line saying just "end".
>bt
>c
>end
(gdb) r --replace
Starting program: /usr/bin/gnome-settings-daemon --replace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Breakpoint 1, gdk_x_error (xdisplay=0x648620, error=0x7fffffffd870) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkmain-x11.c:268
268	/build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkmain-x11.c: No such file or directory.
#0  gdk_x_error (xdisplay=0x648620, error=0x7fffffffd870) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkmain-x11.c:268
#1  0x00007ffff590d5ab in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2  0x00007ffff590a627 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#3  0x00007ffff590a6d5 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4  0x00007ffff590b5d0 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007ffff58f2cc4 in _XGetWindowAttributes () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007ffff58f2e31 in XGetWindowAttributes () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007ffff53934d1 in gdk_x11_window_foreign_new_for_display (display=display@entry=0x658030, window=0) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkwindow-x11.c:1200
#8  0x00007ffff5396569 in check_manager_window (x11_screen=0x65e030, notify_changes=notify_changes@entry=0) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/xsettings-client.c:479
#9  0x00007ffff53966c6 in _gdk_x11_xsettings_init (x11_screen=<optimized out>) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/xsettings-client.c:553
#10 0x00007ffff537cacf in _gdk_x11_display_open (display_name=<optimized out>) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkdisplay-x11.c:1407
#11 0x00007ffff537b051 in gdk_x11_display_manager_open_display (manager=0x619a60, name=<optimized out>) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkdisplaymanager-x11.c:53
#12 0x00007ffff704d414 in gtk_init_check (argc=<optimized out>, argv=<optimized out>) at /build/buildd/gtk+3.0-3.8.6/./gtk/gtkmain.c:990
#13 0x00000000004036a4 in main ()
[New Thread 0x7fffee76e700 (LWP 2487)]
[New Thread 0x7fffedf6d700 (LWP 2493)]
[New Thread 0x7fffed76c700 (LWP 2494)]
[New Thread 0x7fffdffff700 (LWP 2495)]

Breakpoint 1, gdk_x_error (xdisplay=0x648620, error=0x7fffffffd500) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkmain-x11.c:268
268	in /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkmain-x11.c
#0  gdk_x_error (xdisplay=0x648620, error=0x7fffffffd500) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkmain-x11.c:268
#1  0x00007ffff590d5ab in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2  0x00007ffff590a627 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#3  0x00007ffff590b6e2 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4  0x00007ffff4e27d29 in XRRQueryOutputProperty () from /usr/lib/x86_64-linux-gnu/libXrandr.so.2
#5  0x00007ffff75b227b in ?? () from /usr/lib/libgnome-desktop-3.so.7
#6  0x00007ffff75b26aa in ?? () from /usr/lib/libgnome-desktop-3.so.7
#7  0x00007ffff6bb773a in g_initable_new_valist () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#8  0x00007ffff6bb781c in g_initable_new () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#9  0x00007ffff75afc01 in gnome_rr_screen_new () from /usr/lib/libgnome-desktop-3.so.7
#10 0x00007fffec4d84c2 in gsd_power_manager_start () from /usr/lib/gnome-settings-daemon-3.0/libpower.so
#11 0x00007fffec4d9363 in ?? () from /usr/lib/gnome-settings-daemon-3.0/libpower.so
#12 0x00000000004052a0 in gnome_settings_plugin_info_activate ()
#13 0x0000000000404135 in _start ()
[New Thread 0x7fffddd25700 (LWP 2497)]
[New Thread 0x7fffdd524700 (LWP 2499)]

Breakpoint 1, gdk_x_error (xdisplay=0x648620, error=0x7fffffffd680) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkmain-x11.c:268
268	in /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkmain-x11.c
#0  gdk_x_error (xdisplay=0x648620, error=0x7fffffffd680) at /build/buildd/gtk+3.0-3.8.6/./gdk/x11/gdkmain-x11.c:268
#1  0x00007ffff590d5ab in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2  0x00007ffff590a627 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#3  0x00007ffff590a6d5 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4  0x00007ffff590b5d0 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007ffff590710d in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007ffff590719b in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007ffff4e279f1 in XRRSetOutputPrimary () from /usr/lib/x86_64-linux-gnu/libXrandr.so.2
#8  0x00007ffff75b6441 in gnome_rr_config_apply_with_time () from /usr/lib/libgnome-desktop-3.so.7
#9  0x00007fffdc910e30 in ?? () from /usr/lib/gnome-settings-daemon-3.0/libxrandr.so
#10 0x00007fffdc912faa in gsd_xrandr_manager_start () from /usr/lib/gnome-settings-daemon-3.0/libxrandr.so
#11 0x00007fffdc90fd43 in ?? () from /usr/lib/gnome-settings-daemon-3.0/libxrandr.so
#12 0x00000000004052a0 in gnome_settings_plugin_info_activate ()
#13 0x0000000000404135 in _start ()

(gnome-settings-daemon:2481): Gdk-ERROR **: The program 'gnome-settings-daemon' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 258 error_code 8 request_code 140 minor_code 30)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff665c3d9 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) vladest@vladest-Aspire-V3-771:~/development/qt5$

-- 
You received this bug notification because you are a member of AIMS,
which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1218322

Title:
  Can't set keyboard layout change to alt+shift, ctrl+shift, etc.

Status in Gnome Settings Daemon:
  Invalid
Status in Ubuntu GNOME:
  Confirmed
Status in “gnome-control-center” package in Ubuntu:
  Fix Released
Status in “gnome-settings-daemon” package in Ubuntu:
  Triaged
Status in “gnome-settings-daemon” source package in Saucy:
  Triaged

Bug description:
  ***
  The old PPA, ppa:attente/1218322 is superceded by the following one. You can remove the old repository using ppa-purge.
  ***

  A PPA which should provide some relief for this issue is available at
  https://launchpad.net/~attente/+archive/modifier-only-input-switch. To
  install:

  sudo add-apt-repository ppa:attente/modifier-only-input-switch
  sudo apt-get update
  sudo apt-get upgrade
  (log out, log in)

  If the packages improve the situation for you, you can pin them using:

  sudo apt-mark hold compiz
  sudo apt-mark hold gnome-settings-daemon
  sudo apt-mark hold unity

  If the packages don't work for you, you can purge them using:

  sudo ppa-purge ppa:attente/modifier-only-input-switch

  === compiz ===

  Impact: modifier-only key bindings need to be independent of key-press
  order, there's no support for double tapping two modifier keys of the
  same type

  Test case:
  - add at least two input sources through gnome-control-center's text entry settings
  - use gsettings to set the input switching shortcut to ctrl+left shift: gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Primary>Shift_L']"
  - holding left shift, press and release ctrl
  -> the current input source should change

  Regression potential: possible, but highly unlikely, that some key
  bindings may be triggered due to the removal of some code that would
  normally prevent a possible tap from occurring.

  === unity ===

  Impact: gnome-settings-daemon eats modifier-only shortcuts preventing
  them from propagating down to applications

  Test case:
  - open gnome-control-center's text input settings
  - set the next input source key binding to ctrl+left shift
  - open gnome-terminal
  - press ctrl+shift+t
  -> gnome-terminal should open a new tab

  Regression potential: the additional input switch key bindings could
  collide with other functionality such as opening the dash or hud

  === gnome-control-center ===

  Impact: the UI to change the layout switching keys doesn't work

  Test case:
  - open gnome-control-center's text input settings
  - click on the "next layout key" entry
  - try entering a key combinaison (e.g ctrl-space)
  -> the UI should reflect the new keys

  Regression potential: that UI was not working before, it should only
  be an improvement (some key combos are not working as expected, that's
  another issue and shouldn't be mixed with this one)

  === gnome-settings-daemon ===

  Impact: attempting to change keyboard layouts using only modifier keys
  doesn't work

  Test case:
  - add at least two input sources through gnome-control-center's text entry settings
  - use gsettings to set the input switching shortcut to ctrl+left shift: gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Primary>Shift_L']"
  - press and release ctrl+left shift
  -> the current input source should change

  Regression potential: The input switching shortcut might capture other
  non-modifier shortcuts, but users will need to consider this when
  choosing their switching shortcut anyways. For users this bug affects,
  this represents a working solution for a critical bug.

  ----------------------

  Test results for different keyboard layout change hotkeys may be
  viewed and added in the Google Docs table, created by Norbert
  (https://docs.google.com/spreadsheet/ccc?key=0Ao5e713Ig9g_dEJrX2NRYlpLWWVzSWxsVXU4ck9HYVE&usp=sharing).

  ----------------------

  Separate bug reports for individual layout switching hotkey
  combinations:

  Super+Space and Shift+Super+Space:
     * Unity greeter (bug 1245137);
     * Unity session (bug 1245136);
     * lock screen - gnome-screensaver (bug 1245138, bug 1245256);
     * ubiquity installer (bug 1242572).

  Alt+Shift:
     * Unity greeter (bug 1245258)
     * Can't set keyboard layout change to Alt+Shift (bug 1245926)

  Ctrl+Shift:
     * lock screen - gnome-screensaver (bug 1245270)
     * Unity greeter (bug 1245268)
     * Can't set keyboard layout change to Ctrl+Shift (bug 1245991)
     * If keyboard layout switching hotkey is set to Ctrl+Shift, Ctrl+Shift+C/V are not working in gnome-terminal (bug 1246656)

  Shift+Shift:
     * Can't set keyboard layout change to Shift+Shift (bug 1245272)
     * lock screen - gnome-screensaver (bug 1245278)
     * Unity greeter (bug 1245280)

  Bugs which belong to keyboard layout switching:
     * Hotkeys not functional in non-latin keyboard layout in 13.10 (bug 1226962)
     * Keyboard Layout Options window is missed in gnome-control-center keyboard (bug 1245064)
     * Unable to set keyboard LED to show alternative layout in gnome-control-center keyboard in Saucy (bug 1245188)
     * Unable to set Miscellaneous compatibility options in gnome-control-center keyboard in Saucy (bug 1245199)
     * Keyboard shortcut for changing keyboard layout does not work on lock screen (bug 1244548)
     * [FFe] indicator-keyboard not working under greeter (bug 1228207)
     * Lost ability to remap Caps Lock to Ctrl (bug 1215826)
     * gnome-control-center keyboard no longer has way to modify caps lock key behavior (bug 1224575)
     * Pressing Caps Lock toggles LED even when mapped to another key (bug 1221403)
     * Switching layout turns off NumLock (bug 1247668)

  ----------------------

  Can't set keyboard layout change to ctrl+shift, Caps Lock, alt+shift
  etc. "Shift", "CapsLock" keys are just ignored in settings. Also the
  default shortcut was set to "Super+Space" that is inconveniently,
  because Dash is opening when you swich your keyboard layout.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: indicator-keyboard 0.0.0+13.10.20130829.1-0ubuntu1
  ProcVersionSignature: Ubuntu 3.11.0-2.5-generic 3.11.0-rc5
  Uname: Linux 3.11.0-2-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.12.1-0ubuntu2
  Architecture: amd64
  Date: Thu Aug 29 14:21:54 2013
  InstallationDate: Installed on 2013-07-31 (28 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130730)
  MarkForUpload: True
  ProcEnviron:
   LANGUAGE=ru_UA:ru
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=ru_UA.UTF-8
   SHELL=/bin/bash
  SourcePackage: indicator-keyboard
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/1218322/+subscriptions