<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 22/12/2014 09:25, Peter Astrand a
écrit :<br>
</div>
<blockquote
cite="mid:alpine.LRH.2.11.1412220925250.12503@scilla.lkpg.cendio.se"
type="cite">
<br>
Hi, see comments inline:
<br>
</blockquote>
Hello Peter,<br>
Thanks for your answers<br>
<blockquote
cite="mid:alpine.LRH.2.11.1412220925250.12503@scilla.lkpg.cendio.se"
type="cite">
<br>
On Sat, 20 Dec 2014, Vincent Sourin wrote:
<br>
<br>
<blockquote type="cite"> Hello,
<br>
<br>
Can someone explain to me how work keyboard layouts in thinlinc
<br>
environnement ?
<br>
My goal is to be able to use FreeRDP inside a thinlinc session
with a
<br>
Belgian Keyboard layout.
<br>
<br>
1/ I connect to a xfce profile with Windows ThinLinc client
(Windows client
<br>
is configured with 'Belgian' Layout).
<br>
<br>
Inside that Linux session, keyboard works well but I don't
understand that :
<br>
~ $ setxkbmap -query
<br>
rules: evdev
<br>
model: pc105
<br>
layout: us
<br>
</blockquote>
<br>
There's one layout on our your client (Belgian), and another in
the ThinLinc session (us). ThinLinc is based on VNC, which is
"layoutless". The protocol is based on "keysyms" so in most cases
(with well behaved applications) it is not necessary to configure
a certain layout inside the ThinLinc session.
<br>
<br>
</blockquote>
So maybe the solution is using keysyms in FreeRDP instead of
keycodes. I will investigate that way.<br>
<blockquote
cite="mid:alpine.LRH.2.11.1412220925250.12503@scilla.lkpg.cendio.se"
type="cite">
<br>
<blockquote type="cite"> Q : How can I have a functional 'Belgian'
Layout with an 'US' Layout
<br>
declared ?
<br>
<br>
If at this step, I launch a RDP connection with FreeRDP the
remote Windows
<br>
recognized an US Layout (coherent with what setxkbmap -query
returns)
<br>
and I nearly get a functional Belgian layout except that I
don't have any
<br>
accented characters working (FreeRDP throws "Unknown key with X
keycode
<br>
...")
<br>
</blockquote>
<br>
Instead of using "setxkbmap", you can do:
<br>
<br>
# tl-config /sessionstart/keyboard_layout=be
<br>
<br>
<br>
</blockquote>
Running tl-config /sessionstart/keyboard_layout=be throws an error :
Failed to set parameter /sessionstart/keyboard_layout<br>
<blockquote
cite="mid:alpine.LRH.2.11.1412220925250.12503@scilla.lkpg.cendio.se"
type="cite">
<br>
<blockquote type="cite"> 2/ Then I try to force BE layout inside
Linux session :
<br>
~ $ setxkbmap be
<br>
<br>
Inside the Linux session, keyboard still works perfectly (and I
still don't
<br>
understand why because I changed the layout ?)
<br>
<br>
If I launch a RDP connection with FreeRDP : now the remote
Windows
<br>
recognized an BE Layout, I got all accented characters BUT
<br>
I loose the ability to use AltGR key (and with that, access to
level 3 keys)
<br>
</blockquote>
<br>
Don't know why. What does "setxkbmap -query" return after you have
executed "setxkbmap be" (or changed
/sessionstart/keyboard_layout)?
<br>
<br>
</blockquote>
After running "setxbmap be", setxkbmap -query returns :<br>
rules: evdev<br>
model: pc105<br>
layout: be<br>
<br>
Running 'xev' command with US layout give me that when pressing
AltGr key :<br>
<br>
KeyPress event, serial 37, synthetic NO, window 0x2800001,<br>
root 0xec, subw 0x0, time 167858760, (80,84), root:(943,556),<br>
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen
YES,<br>
XLookupString gives 0 bytes: <br>
XmbLookupString gives 0 bytes: <br>
XFilterEvent returns: False<br>
<br>
KeyPress event, serial 37, synthetic NO, window 0x2800001,<br>
root 0xec, subw 0x0, time 167858763, (80,84), root:(943,556),<br>
<b> state 0x4, keycode 108 (keysym 0xffea, Alt_R), same_screen
YES,</b><br>
XLookupString gives 0 bytes: <br>
XmbLookupString gives 0 bytes: <br>
XFilterEvent returns: False<br>
<br>
<br>
Running 'xev' command with BE layout give me that when pressing
AltGr key :<br>
<br>
KeyPress event, serial 37, synthetic NO, window 0x2800001,<br>
root 0xec, subw 0x0, time 168009101, (77,120), root:(940,592),<br>
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen
YES,<br>
XLookupString gives 0 bytes: <br>
XmbLookupString gives 0 bytes: <br>
XFilterEvent returns: False<br>
<br>
KeyPress event, serial 37, synthetic NO, window 0x2800001,<br>
root 0xec, subw 0x0, time 168009101, (77,120), root:(940,592),<br>
<b> state 0x4, keycode 64 (keysym 0xffe9, Alt_L), same_screen
YES,</b><br>
XLookupString gives 0 bytes: <br>
XmbLookupString gives 0 bytes: <br>
XFilterEvent returns: False<br>
<br>
<blockquote
cite="mid:alpine.LRH.2.11.1412220925250.12503@scilla.lkpg.cendio.se"
type="cite">
<br>
Br, ---
<br>
Peter Astrand ThinLinc Chief Developer
<br>
Cendio AB <a class="moz-txt-link-freetext" href="https://cendio.com">https://cendio.com</a>
<br>
Teknikringen 8 <a class="moz-txt-link-freetext" href="https://twitter.com/ThinLinc">https://twitter.com/ThinLinc</a>
<br>
583 30 Linkoping <a class="moz-txt-link-freetext" href="https://facebook.com/ThinLinc">https://facebook.com/ThinLinc</a>
<br>
Phone: +46-13-214600 <a class="moz-txt-link-freetext" href="https://google.com/+CendioThinLinc">https://google.com/+CendioThinLinc</a>
<br>
_______________________________________________
<br>
Thinlinc-technical mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Thinlinc-technical@lists.cendio.se">Thinlinc-technical@lists.cendio.se</a>
<br>
Manage your subscription:
<br>
<a class="moz-txt-link-freetext" href="http://lists.cendio.se/mailman/listinfo/thinlinc-technical">http://lists.cendio.se/mailman/listinfo/thinlinc-technical</a>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Sourin Vincent - Systems Engineer
Bridgestone Aircraft Tire (Europe)
Route de Bavay - B7080 Frameries (Belgium)
Tel: +32 65 61 11 53 - Fax: +32 65 61 11 09
GSM : +32 492 97 44 99</pre>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="http://www.avast.com/">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
<br><a href="http://www.avast.com/">www.avast.com</a>
</p>
</td>
</tr>
</table>
<br />
</body>
</html>