arrow keys in raw mode stopped working in Intrepid

Bug #304044 reported by Michael Lazarev
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
rdesktop (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: rdesktop

In rdesktop 1.6.0-2ubuntu1, arrow keys, insert, delete, home, end, page up, page down
and some other non-alphanumeric keys stopped working in Ubuntu 8.10, when
rdesktop is started in raw mode (-y key). At the same time, in Ubuntu 8.04, everything
works brilliant.

To test this, I built rdesktop after ./configure --with-debug-kbd
Then, I ran "rdesktop -y SERVER" and pressed ARROW DOWN key.

The output was the following:

=== Ubuntu 8.04 ===

vk_handle_key( scancode=0x68) vk = 0xd0
Before updating modifier_state:0x0, pressed=0x1
After updating modifier_state:0x2
Sending extended scancode=0x2a, flags=0x0
Sending extended scancode=0x50, flags=0x0
vk_handle_key( scancode=0x68) vk = 0xd0
Before updating modifier_state:0x2, pressed=0x0
After updating modifier_state:0x0
Sending extended scancode=0x2a, flags=0xc000
Sending extended scancode=0x50, flags=0xc000

=== Ubuntu 8.10 ===

vk_handle_key( scancode=0x74) vk = 0xdc
Before updating modifier_state:0x0, pressed=0x1
After updating modifier_state:0x40
Sending extended scancode=0x5c, flags=0x0
vk_handle_key( scancode=0x74) vk = 0xdc
Before updating modifier_state:0x40, pressed=0x0
After updating modifier_state:0x0
Sending extended scancode=0x5c, flags=0xc000

Revision history for this message
zohar (zoharsnir) wrote :

Hi,

  Had the exact same issue, was resolved by recompiling with ./configure --prefix=/usr.
  Note that by default prefix is /usr/local, which cause resktop to search for its keymaps in
  /usr/local/share/rdesktop/keymaps instead of /usr/share/rdesktop/keymaps.

Hope this helps.
Zohar.

Revision history for this message
Michael A. Phillips (maphilli14) wrote :

I did have this bug and actually this was MUCH easier:

sudo ln -s /usr/share/rdesktop/ /usr/local/share/rdesktop

and did solve the issue, where's compiling from source (while easy), did not solve the issue.

HTH,

Mike

Revision history for this message
zohar (zoharsnir) wrote :

@Mike,
Did you compile with the above mentioned "./configure --prefix=/usr" or just "./configure"?

Revision history for this message
Michael A. Phillips (maphilli14) wrote :

yes I did

./configure --prefix=/usr

but I also had the package from distribution, so I think I ended up with 2x copies of rdesktop???
anyway, compiling with

./configure --prefix=/usr

*AND*
the symbolic link

sudo ln -s /usr/share/rdesktop/ /usr/local/share/rdesktop

seems to work well!

Revision history for this message
Rebecca Menessec (aloishammer-deactivatedaccount) wrote :

This may or may not be related: same problem, apparently, using Jaunty amd64 (I first noticed it before Jaunty final, but was too lazy to file a bug). The fix with ln -s does not work for me, at least so far. Arrow keys are affected, as well as Home, End, and some others. Lenovo T500 laptop, if that matters much re: scancodes.

Revision history for this message
Michael A. Phillips (maphilli14) wrote :

I think the symbolic link only works for RDP as it seems to break all keyboard control locally for vnc connections! vnc works on the vinagre viewer though, just not on krdc

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.