View Full Version : control key not being passed to apps
fifejolly
December 17th, 2007, 07:48 PM
Been using beryl for some time with no real issues.
I've been using compiz-fusion for a few weeks now - and the only real issue I have is that I cannot get the control key to work inside apps.
compiz seems to be binding it and holding onto it.
it works inside the compiz bindings just fine, but ctrl-c ctrl-v etc no longer work inside apps.
I'm using compiz-fusion 0.6.0, compiz 0.6.2. This is on a gentoo x86 install with ati native drivers and xgl.
This is running with kde and with kde backend for ccsm.
I had a good search through the forum and google and haven't really got to the bottom of the problem, so any help is appreciated.
I've attached the exported profile from ccsm.
Any other info that I can give?
fifejolly
December 17th, 2007, 08:29 PM
hmm. looks like inside the kde keyboard shortcut manager, control is being received ok.
I even see e.g. the ctrl-v binding for copy, and can change it.
but in any apps, it doesn't work.
Deciare
December 17th, 2007, 10:01 PM
This is just a guess, but since you mentioned KDE, I wonder if KDE's hotkeys daemon is interfering with your applications? Try a simple experiment. Go to kcontrol->Regional & Accessibility->Input Actions->General Settings and check Disable KHotKeys daemon Does that help?
Also, can you run xev in a console window, then try pressing Ctrl alone, then Ctrl+V, and paste the console output here?
fifejolly
December 17th, 2007, 10:13 PM
disable khotkeys daemon does nothing.
xev output - from ctrl and ctrl-v is the same
FocusOut event, serial 26, synthetic NO, window 0x2c00001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 26, synthetic NO, window 0x2c00001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 26, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Deciare
December 17th, 2007, 10:55 PM
Hmm. Are you using xmodmap to load any special keymaps at startup? There's been at least one instance of modifier keys being eaten with Compiz enabled when loading a special xmodmap file.
This other thread describes almost your exact symptoms: http://forum.compiz-fusion.org/showthread.php?t=5898
fifejolly
December 18th, 2007, 12:11 AM
I was actually not using xmodmap until today, to try to work around this - I've only got this in it: (which got super working)
keycode 115 = Super_L
keycode 116 = Super_R
add mod4 = Super_L Super_R
Deciare
December 18th, 2007, 04:24 AM
Your problem isn't related to keycodes. As per xev:
FocusOut event, serial 26, synthetic NO, window 0x2c00001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 26, synthetic NO, window 0x2c00001,
mode NotifyUngrab, detail NotifyAncestor
Pressing the Super key is causing some process to grab the whole screen.
Since we know it's not xmodmap's fault, let's check Compiz's configuration to see if you have any shortcuts set to just "<Control>". Please post the contents of your ~/.config/compiz/compizconfig/config file.
If you happen to be using GNOME, selecting a different keyboard layout in System->Preferences->Keyboard->Layouts may help.
fifejolly
December 18th, 2007, 05:06 AM
here you go...
(but I also posted a profile export in my first message)
[general]
profile =
integration = true
[kde_session]
profile =
plugin_list_autosort = true
backend = kconfig
ig =
integration = true
Deciare
December 18th, 2007, 05:12 AM
Oh! Thank you, that was very thoughtful. Sorry I missed it. ^^;
Do remove the "ig = " line from your ~/.compiz/config/compizconfig/config file, though. It looks like corruption.
Do any of Compiz's own shortcuts that involve the Ctrl key work?
Does enabling or disabling Num Lock/Caps Lock/Scroll Lock make any difference?
Does holding Shift while doing your Ctrl-key shortcut in other applications help it pass through?
fifejolly
December 18th, 2007, 11:36 AM
compiz's own shortcuts work - e.g. ctrl-alt-d, ctrl-f11 etc.
none of the lock modes make a difference.
interestingly, pressing shift with ctrl makes it work :)
what does that tell us?
(BTW - thanks for your time so far)
Deciare
December 19th, 2007, 01:13 AM
*puts on a monocle for the express purpose of having one to adjust*
It tells us... That we still know very little about this problem. ^^;
Combinations of some of these symptoms are common on Google, but I haven't come across any known, solid solutions. What does xmodmap output if you run it on a console without any parameters?
What does the following command output?
setxkbmap -print
fifejolly
December 19th, 2007, 01:33 AM
xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_R (0x71)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x73), Super_R (0x74)
mod5 Scroll_Lock (0x4e)
Couldn't interpret _XKB_RULES_NAMES property
Use defaults: rules - 'xorg' model - 'pc101' layout - 'us'
xkb_keymap {
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc(pc101)+us" };
xkb_geometry { include "pc(pc101)" };
};
Deciare
December 19th, 2007, 02:02 AM
All of that looks almost the same as what I have, except for two lines near the bottom of setxkbmap's output:
xkb_symbols { include "pc+us" };
xkb_geometry { include "pc(pc104)" };
I also don't have the line about not being able to interpret the _XKB_RULES_NAMES. What does the following command output?
xprop -root | grep -i xkb
Could you also upload a complete dump of your xmodmap configuration? Use this command to dump it to a file:
xmodmap -pke >Xmodmap.txt
I'll try applying it on my computer to see if that works.
fifejolly
December 19th, 2007, 03:17 AM
xprop -root | grep -i xkb returns nothing.
xmodmap output attached
Deciare
December 19th, 2007, 06:19 AM
And your keycode dump works perfectly on my computer... I'm really not sure what's going on here.
Try going to System Settings->Regional and Accessibility->Keyboard Layout and choosing a different Keyboard model? "pc104" should work with most keyboards. (And what did you have selected to begin with?)
actionbuddha
February 6th, 2008, 02:13 PM
I've been reading this thread with interest. I have exactly the same problem on my desktop, but not my laptop. Both running Gentoo, configured (as far as I am aware) identically. Perhaps you could recommend some techniques I could use to debug them both and find out what is wrong with the desktop?
Cheers,
Paul
maniac
February 6th, 2008, 03:21 PM
I think the problem is <Control> being bound to an action. A candidate for that e.g. can be Water.
mathfeel
February 22nd, 2008, 10:48 PM
I've been reading this thread with interest. I have exactly the same problem on my desktop, but not my laptop. Both running Gentoo, configured (as far as I am aware) identically. Perhaps you could recommend some techniques I could use to debug them both and find out what is wrong with the desktop?
Cheers,
Paul
I have this problem in my laptop but not my desktop. It is compiz-fusion related. Looks like it just hike-jack the control key.
coz
February 22nd, 2008, 11:00 PM
Hey fifejolly,
i would assume you have been playting with keybindings and settings in compiz fusion.
One other thing to try it to reset compiz fusion to default values and restart it.
To do this go into ccsm preferences and hit the reset to defaults button. THen reload compiz fusion or restart x to see if the ctrl key has been released by compiz fusion.
If not, then there is another issue going on!
let us know!
coz
mathfeel
February 26th, 2008, 11:55 PM
I exported the current setting then reset to default then re-imported them...problem persists.
Then I just reset to default and re-enter my setting by looking at the exported file and enter by hand....problem fixed.
It is still a mystery to me what caused the problem!
Deciare
February 27th, 2008, 04:26 AM
I exported the current setting then reset to default then re-imported them...problem persists.
Then I just reset to default and re-enter my setting by looking at the exported file and enter by hand....problem fixed.
It is still a mystery to me what caused the problem!
May I see a copy of the profile you exported earlier, as well as another exported profile based on your current (working) settings?
Also, which configuration backend are you using?
mathfeel
February 28th, 2008, 08:51 AM
May I see a copy of the profile you exported earlier, as well as another exported profile based on your current (working) settings?
Also, which configuration backend are you using?
The backend is gconf.
I might have overwritten the bad one with the currently good one. Here is a copy of the current (good) one:
[core]
as_active_plugins = core;dbus;decoration;fs;inotify;glib;move;place;pn g;regex;resize;svg;video;wobbly;zoom;resizeinfo;im gjpeg;text;thumbnail;workarounds;shift;mousepoll;c rashhandler;shelf;splash;widget;loginout;animation ;ring;fade;group;trailfocus;cube;rotate;scale;swit cher;scaleaddon;atlantis;cubecaps;cubereflex;gears ;scalefilter;showmouse;expo
as_texture_filter = 2
as_run_command_terminal_key = <Control><Alt>t
s0_refresh_rate = 60
s0_vsize = 2
s0_outputs = 1400x1250+0+0
s0_opacity_matches = Tooltip | Menu | PopupMenu | DropdownMenu;class=Pidgin & !title=Buddy List
s0_opacity_values = 90;95
[cube]
s0_skydome = true
s0_skydome_image = /usr/share/beryl/Milky4_cyan.png
s0_skydome_animated = true
s0_active_opacity = 60.000000
[decoration]
as_command = gtk-window-decorator --replace
[rotate]
as_edge_flip_pointer = true
s0_invert_y = true
s0_sensitivity = 3.000000
s0_snap_top = true
s0_speed = 0.700000
s0_zoom = 0.800000
[scale]
as_initiate_key = F9
as_initiate_all_key = F10
as_initiate_output_key = F11
[switcher]
s0_auto_rotate = true
[animation]
s0_close_effects = 21;4;9
s0_open_effects = 3;4;9
s0_fire_particles = 400
s0_fire_size = 6.000000
s0_fire_slowdown = 1.500000
s0_fire_life = 0.900000
s0_fire_direction = 5
s0_fire_constant_speed = true
s0_fire_mystical = true
s0_beam_color = #abddacff
[wobbly]
s0_friction = 2.500000
s0_spring_k = 5.000000
s0_grid_resolution = 11
s0_map_effect = 1
s0_focus_effect = 1
[ring]
as_next_key = <Alt>XF86Forward
as_prev_key = <Alt>XF86Back
as_next_all_key = XF86Forward
as_prev_all_key = XF86Back
[shift]
as_initiate_key = F12
as_initiate_all_key = <Control>F12
as_next_key = <Control><Alt>XF86Forward
as_prev_key = <Control><Alt>XF86Back
as_next_all_key = <Control>XF86Forward
as_prev_all_key = <Control>XF86Back
s0_background_intensity = 0.600000
[widget]
as_toggle_key = <Shift>F12
[loginout]
s0_out_time = 2.000000
s0_out_saturation = 20.000000
s0_out_brightness = 80.000000
s0_out_opacity = 80.000000
mathfeel
February 28th, 2008, 09:40 AM
Found a copy of a bad one...Might be quite different:
[core]
as_active_plugins = core;dbus;decoration;inotify;glib;move;place;png;r egex;resize;svg;video;wobbly;zoom;colorfilter;resi zeinfo;imgjpeg;snap;text;thumbnail;workarounds;vps witch;shift;mousepoll;extrawm;showdesktop;splash;w idget;animation;ring;fade;group;trailfocus;cube;ro tate;scale;scaleaddon;atlantis;cubecaps;cubereflex ;gears;scalefilter;showmouse;expo;ezoom;switcher
as_texture_filter = 2
s0_refresh_rate = 60
s0_vsize = 2
s0_outputs = 1400x1050+0+0
s0_opacity_matches = Tooltip | Menu | PopupMenu | DropdownMenu;class=Pidgin & !title=Buddy List
s0_opacity_values = 90;95
[cube]
s0_scale_image = true
s0_skydome = true
s0_skydome_image = /usr/share/compiz/Milky4_cyan.png
s0_skydome_animated = true
s0_active_opacity = 50.000000
[decoration]
as_shadow_color = #3a3a3acb
as_command = gtk-window-decorator --replace
[rotate]
as_edge_flip_pointer = true
as_raise_on_rotate = true
s0_invert_y = true
s0_sensitivity = 3.000000
s0_snap_top = true
s0_speed = 0.600000
s0_zoom = 0.800000
[scale]
as_initiate_all_key = F9
as_initiate_group_key = F10
as_initiate_output_key = F11
[switcher]
s0_auto_rotate = true
[animation]
s0_close_effects = 21;4;9
s0_open_effects = 3;4;9
s0_minimize_options =
s0_shade_options =
s0_focus_options =
s0_fire_particles = 250
s0_fire_size = 9.000000
s0_fire_life = 1.000000
s0_fire_color = #ff3305ff
s0_fire_direction = 5
s0_fire_constant_speed = true
s0_fire_mystical = true
s0_beam_color = #abddacff
[water]
as_initiate_key = <Shift><Control><Alt><Super>k
[wobbly]
s0_friction = 2.500000
s0_spring_k = 5.000000
s0_grid_resolution = 11
s0_map_effect = 1
s0_focus_effect = 1
[expo]
as_zoom_time = 1.000000
as_rotate = true
as_expo_animation = 1
as_ground_color1 = #787878c8
as_ground_color2 = #75da8f78
[resizeinfo]
as_gradient_1 = #cccce6cc
as_gradient_2 = #f3f3f3cc
as_gradient_3 = #d9d9d9cc
[opacify]
as_toggle_key = F13
[ring]
as_next_key = <Control>F20
as_prev_key = <Control>F19
as_next_all_key = <Shift><Control>F20
as_prev_all_key = <Shift><Control>F19
s0_overlay_icon = 2
[wall]
as_outline_color = #333333d9
as_background_gradient_base_color = #cccce6d9
as_background_gradient_highlight_color = #f3f3ffd9
as_background_gradient_shadow_color = #f3f3ffd9
as_thumb_gradient_base_color = #33333359
as_thumb_gradient_highlight_color = #3f3f3f3f
as_thumb_highlight_gradient_base_color = #fffffff3
as_thumb_highlight_gradient_shadow_color = #dfdfdfa6
as_arrow_base_color = #e6e6e6d9
as_arrow_shadow_color = #dcdcdcd9
[thumbnail]
s0_thumb_color = #0000007f
[scaleaddon]
s0_title_bold = true
s0_title_size = 20
s0_window_highlight = true
s0_highlight_color = #0e760e44
[shift]
as_initiate_key = XF86Forward
as_initiate_all_key = XF86Back
as_initiate_all_edge = BottomLeft
as_next_key = <Alt>XF86Forward
as_prev_key = <Alt>XF86Back
as_next_all_key = <Shift><Alt>XF86Forward
as_prev_all_key = <Shift><Alt>XF86Back
s0_mode = 1
s0_ground_color1 = #b3b3b3cc
s0_ground_color2 = #b3b3b300
s0_intensity = 0.600000
s0_title_font_color = #ffce4aff
[atlantis]
s0_water_color = #0808300f
s0_fish_size = 2000
s0_shark_size = 6000
s0_dolphin_size = 6000
s0_whale_size = 9000
[3d]
s0_min_cube_size = 40
s0_max_window_space = 8
s0_speed = 0.070000
s0_width = 0.040000
s0_bevel = 3
[cubecaps]
s0_scale_top_image = true
s0_scale_bottom_image = true
[cubereflex]
s0_ground_color1 = #b3b3b3cc
s0_ground_color2 = #b3b3b300
s0_mode = 1
[firepaint]
s0_fire_color = #ff3305ff
[reflex]
s0_decoration = false
[scalefilter]
s0_timeout = 1
[trailfocus]
s0_min_saturation = 90
[widget]
as_toggle_key = F12
[showmouse]
s0_color = #ffdf3fff
Culex
April 11th, 2008, 09:53 AM
I had the same problem earlier today. Resetting compiz fusion to defaults did not help at all. But somehow when I imported the exported(assumed faulty) profile it then worked just as desired(I used Control+F in Firefox for testing and opening a terminal with Control+R).
gmturner
April 17th, 2008, 02:10 AM
Hello, also a Gentoo user with this problem. BTW on rare occasions the problem has mysteriously resolved itself.
Get this.... I tried export/import without success. Then I tried reset to defaults and... voila! Upon re-import, everything still worked (I have not tried rebooting).
Not to put too fine a point on it, since this may be non-repeatable or random, but so far in this thread we have:
export, import: no fix
export, reset: no fix
export, reset, import: fix
export, import, reset: fix
No idea if this is pertinent but I re-exported and here is the diff:
--- compiz_profile_backup_0.profile 2008-04-16 16:45:57.000000000 -0700
+++ compiz_profile_backup_1.profile 2008-04-16 16:47:53.000000000 -0700
@@ -37,7 +37,7 @@
as_stretch_match =
[wobbly]
-as_snap = <Shift>,Button0,,0,false
+as_snap = ,Button0,,0,false
as_snap_inverted = false
as_shiver = ,Button0,,0,false
s0_grid_resolution = 8
@@ -643,7 +643,7 @@
s0_glow_type = 0
[water]
-as_initiate = <Control><Super>,Button0,,0,false
+as_initiate = ,Button0,,0,false
as_toggle_rain = <Shift>F9,Button0,,0,false
as_toggle_wiper = <Shift>F8,Button0,,0,false
as_rain_delay = 250
If someone has ideas to poke at this, I do have debug symbols and a second system on which I could ssh in to run gdb, although my willingness to repeatedly crash x11 on this box is limited (hence I prolly shouldn't be running cf at all but I am living dangerously).
-gmt
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.