Bug Tracker item #3428860, was opened at 2011-10-26 19:27
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126848&aid=3428860&group_id=254363

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: UN*X version
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Adam Tkac (atkac)
Summary: Key events not recognized

Initial Comment:
I installed tigervnc on ubuntu 11.10 with unity 2d and I cannot get any key 
events recognized. Mouse and pointers event are good.  Here is the behavior I 
observed:

1. Type 'c', the cursor will blink on screen but no character displayed
2. Type 'shift'-'c', character 'C' was displayed
3. Cap lock on, type 'shift'-'c', cursor blink but no character displayed
4. Cap lock on, type 'c', character 'C' is displayed.

I've tried the following combinations
Unity 2D: Xvnc4 Free Edition server 4.1.1 + tigervnc viewer 1.1.0 release 
binaries or RealVNC on Windows - GOOD
Unity 2D: Xvnc4 Free Edition server 4.1.1 + tigervnc viewer 1.1.0 release 
binaries on Linux - GOOD
Unity 2D: tigervnc server 1.1.0 release binaries + tigervnc viewer 1.1.0/1.1.80 
release binaries - BAD
Unity 2D: tigervnc server 1.1.0 build from source + tigervnc viewer 
1.1.0/1.1.80 release binaries or tigervnc viewer 1.1.0 build from source - BAD
Unity 2D: tigervnc server 1.1.80 release binaries + tigervnc viewer 
1.1.0/1.1.80 release binaries - BAD
Gnome recovery (not gnome3 or gnome3-fallback or gnome-class): tigervnc server 
1.1.0/1.1.80 + any vncviewer - GOOD

*Gnome recovery means when I log in, I do not see the panel but only a toolbar 
that said "File Edit View Bookmarks Help".

I've launched xev within the display launched by tigervnc with Gnome recovery 
or Unity-2d. A key press of any alpha key is behaving differently on both:
In Gnome Recovery where they key events is properly recognized: It is showing 
keypress and keyrelease events
In unity 2d: It is showing focus in, focus out events

When I looked at the .xsession_errors, in unity 2d, I saw an error of the 
following which maybe related:

unity-2d-launcher: [DEBUG] bool KeyMonitor::registerEvents(): Could not open 
device:  Virtual core pointer 
unity-2d-launcher: [DEBUG] bool KeyMonitor::registerEvents(): Could not open 
device:  Virtual core keyboard 
unity-2d-launcher: [WARNING] HotkeyMonitor::HotkeyMonitor(QObject*): Failed to 
initialize Xkb extension. CapsLock and NumLockactive will prevent shortcuts 
from working. 
unity-2d-launcher: [WARNING] Hotkey::Hotkey(Qt::Key, Qt::KeyboardModifiers, 
QObject*): Could not get keycode for keysym 65470 ( "F1" ) 
unity-2d-launcher: [DEBUG] virtual void Hotkey::connectNotify(const char*): 
Grabbing hotkey "Alt+F1" 
unity-2d-launcher: [WARNING] Hotkey::Hotkey(Qt::Key, Qt::KeyboardModifiers, 
QObject*): Could not get keycode for keysym 65471 ( "F2" ) 
... and a lot more of the same warnings for different key.

My ~/.vnc/xstartup is as follow:

#!/bin/sh

# The following line was commented out by default
unset SESSION_MANAGER
export XKL_XMODMAP_DISABLE=1

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey
xhost + localhost

vncconfig -nowin &

x-terminal-emulator -geometry 100x40+100+700 -ls -title "$VNCDESKTOP Desktop" &
# x-window-manager &
# gnome-session &

exec /etc/X11/xinit/xinitrc

- Unsetting XKL_XMODMAP_DISABLE or not does not change the behavior
- Unsetting SESSION_MANAGER or not does not change the behavior either.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126848&aid=3428860&group_id=254363

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to