maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Idea, using keyboard of remote computer (https://talk.maemo.org/showthread.php?t=66116)

dov 2010-11-24 12:01

Idea, using keyboard of remote computer
 
Sometimes I find myself with the wish of being able to use my desktop keyboard for input into the N900. Of course I can use x11vnc, but there are some problems with that:

1. Speed, e.g. scrolling and dragging are very slow
2. The keyboard mapping is not correct.

And besides why should I need to redirect the screen if all that I want is redirect the keyboard input?

I imagine a solution that works over ssh and opens up a small window on the desktop computer. When that window is focused on the desktop, then all the keyboard events are sent to n900 and provided to the application.

The question is how to get a program generate virtual keyboard events to X11? If someone can help me with that I could easily build the rest of the application.

damion 2010-11-24 12:04

Re: Idea, using keyboard of remote computer
 
x2x and synergy do this, they can either be ported or just executed in the x86 qemu runtime. You'll almost certainly always have a pain with keyboard mappings being accurate though.

antezz 2010-11-24 12:21

Re: Idea, using keyboard of remote computer
 
@damion why port or emulate the x86 of synergy2 when its already ported to Maemo and have been working since the other Maemo devices? The one who search will find!

lunat 2010-11-24 12:52

Re: Idea, using keyboard of remote computer
 
ssh.
have fun.
Quote:

Originally Posted by dov (Post 881980)
Sometimes I find myself with the wish of being able to use my desktop keyboard for input into the N900. Of course I can use x11vnc, but there are some problems with that:

1. Speed, e.g. scrolling and dragging are very slow
2. The keyboard mapping is not correct.

And besides why should I need to redirect the screen if all that I want is redirect the keyboard input?

I imagine a solution that works over ssh and opens up a small window on the desktop computer. When that window is focused on the desktop, then all the keyboard events are sent to n900 and provided to the application.

The question is how to get a program generate virtual keyboard events to X11? If someone can help me with that I could easily build the rest of the application.


dov 2010-11-24 13:54

Re: Idea, using keyboard of remote computer
 
Thanks. x2x was exactly what I was looking for!

dov 2010-11-24 14:49

Re: Idea, using keyboard of remote computer
 
It actually works less than perfect, as there is still a keyboard mapping problem (just like in vnc). Is there anyway to have different keyboard mappings depending on the origin of the keyboard event? I.e. if the event is from the internal keyboard, behave as it does right now, but if the event is through x2x or through vnc, then use a "standard X11" mapping.

damion 2011-01-11 03:42

Re: Idea, using keyboard of remote computer
 
Quote:

Originally Posted by antezz (Post 881988)
@damion why port or emulate the x86 of synergy2 when its already ported to Maemo and have been working since the other Maemo devices? The one who search will find!

Didn't know it had been done. In general if something hasn't been crosscompiled yet* simply typing ./qemu ./existing-x86-binary is quicker and lazier ;)

*note that I do have a compile environment anyway, but some stuff doesn't just work without tweaks to get it o work.


All times are GMT. The time now is 14:19.

vBulletin® Version 3.8.8