Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no keyboard input via NX
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 245

PostPosted: Fri Jan 17, 2014 8:52 am    Post subject: no keyboard input via NX Reply with quote

I'm trying to connect to another machine via NX. Mouse and graphics work fine but I am unable to type anything. Both machines run KDE with locale en_US and keyboard locale de_DE. If I run xev, my local machine displays keys correctly as:

Code:
KeyPress event, serial 39, synthetic NO, window 0x6a00001,
    root 0x263, subw 0x0, time 3240467, (986,-34), root:(990,984),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (61) "a"
    XmbLookupString gives 1 bytes: (61) "a"
    XFilterEvent returns: False

KeyRelease event, serial 39, synthetic NO, window 0x6a00001,
    root 0x263, subw 0x0, time 3240562, (986,-34), root:(990,984),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (61) "a"
    XFilterEvent returns: False


The remote machine, however, doesn't get any KeyPress events but instead only sees FocusOut, FocusIn and KeymapNotify (with the same code for each key I press):

Code:
FocusOut event, serial 36, synthetic NO, window 0x5200001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 36, synthetic NO, window 0x5200001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 36, 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


The remote machine has INPUT_DEVICES set to "evdev keyboard mouse synaptics".

Any idea what's wrong? When searching, I could only find problems with broken keymaps but there aren't many mentions of keyboard input missing completely and those posts always remained unsolved. Keyboard works fine when connecting to another machine that runs XFCE. That machine also receives correct events KeyPress and KeyRelease when running xev.
_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 548
Location: uk

PostPosted: Fri Jan 17, 2014 11:53 am    Post subject: Reply with quote

I have similar problems with en_GB keyboard on kde, running
Code:
setxkbmap gb
in a terminal on the remote machine largely solves it(although the delete key still fails to function). I should really research further as the command returns an error
Code:
$ setxkbmap gb
Couldn't interpret _XKB_RULES_NAMES property
Use defaults: rules - 'base' model - 'pc105' layout - 'us'

but it works well enough and time has been short recently.

I found the solution in the x2go FAQ and I believe they are maintaining the nx code now?
Back to top
View user's profile Send private message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 245

PostPosted: Fri Jan 17, 2014 12:02 pm    Post subject: Reply with quote

setxkbmap works fine for me but I still don't get any KeyPress events (or at least anything more meaningful than KeymapNotify with value "2" for every key I press).
_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum