[GH-ISSUE #100] Cannot type characters that need Alt Gr key #74

Open
opened 2026-05-05 04:57:22 -06:00 by gitea-mirror · 66 comments
Owner

Originally created by @blizarazu on GitHub (Jul 22, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/100

Operating Systems

Server: Ubuntu 18.04 (kernel 4.15.0-29-generic)

Client: Windows 10 Home version 1830 (OS compilation 17134.167)

Barrier Version

2.1.0

Steps to reproduce bug

Alt Gr key does not work and characters such as @ { } [ ] # can't be used in the client. For example:

1- Try to write an @ with a Spanish keyboard in the client. You have to press Alt Gr+2.
2- Windows keyboard layout changes to english when you press Alt Gr+2 and a 2 is written instead of @. If Windows is configured only with Spanish keyboard, the language does not change but nothing appears when you press Alt GR + another key.

I also notices that the language switches back to Spanish if you press Shift+3 (this also types a ·).

Other info

  • When did the problem start to occur? Always
  • Is there a way to work around it? Did not find any
  • Does this bug prevent you from using Barrier entirely? No
Originally created by @blizarazu on GitHub (Jul 22, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/100 ### Operating Systems ### Server: Ubuntu 18.04 (kernel 4.15.0-29-generic) Client: Windows 10 Home version 1830 (OS compilation 17134.167) ### Barrier Version ### 2.1.0 ### Steps to reproduce bug ### Alt Gr key does not work and characters such as @ { } [ ] # can't be used in the client. For example: 1- Try to write an @ with a Spanish keyboard in the client. You have to press Alt Gr+2. 2- Windows keyboard layout changes to english when you press Alt Gr+2 and a 2 is written instead of @. If Windows is configured only with Spanish keyboard, the language does not change but nothing appears when you press Alt GR + another key. I also notices that the language switches back to Spanish if you press Shift+3 (this also types a ·). ### Other info ### * When did the problem start to occur? Always * Is there a way to work around it? Did not find any * Does this bug prevent you from using Barrier entirely? No
gitea-mirror added the
bug
windows
linux
labels 2026-05-05 04:57:22 -06:00
Author
Owner

@maxbla commented on GitHub (Jul 28, 2018):

Synnergy's old github wiki makes me think your issue was never planned for, as there is no alt gr key listed in their text config guide

shift = {shift|ctrl|alt|meta|super|none}
ctrl = {shift|ctrl|alt|meta|super|none}
alt = {shift|ctrl|alt|meta|super|none}
meta = {shift|ctrl|alt|meta|super|none}
super = {shift|ctrl|alt|meta|super|none}
Map a modifier key pressed on the server's keyboard to a different modifier on this client. This option only has an effect on a client screen; it's accepted and ignored on the server screen.
For instance, you can map the Shift key to Shift (the default), Ctrl, Alt, Meta, Super, or nothing. Normally, you wouldn't remap Shift or Ctrl. You might, however, have an X11 server with Meta bound to the Alt keys. To use this server effectively with a Windows client, which doesn't use Meta but uses Alt extensively, you'll want the Windows client to map Meta to Alt (using meta = alt).

<!-- gh-comment-id:408597703 --> @maxbla commented on GitHub (Jul 28, 2018): Synnergy's old github wiki makes me think your issue was never planned for, as there is no alt gr key listed in their [text config guide](https://github.com/symless/synergy-core/wiki/Text-Config#screens) > shift = {shift|ctrl|alt|meta|super|none} ctrl = {shift|ctrl|alt|meta|super|none} alt = {shift|ctrl|alt|meta|super|none} meta = {shift|ctrl|alt|meta|super|none} super = {shift|ctrl|alt|meta|super|none} Map a modifier key pressed on the server's keyboard to a different modifier on this client. This option only has an effect on a client screen; it's accepted and ignored on the server screen. For instance, you can map the Shift key to Shift (the default), Ctrl, Alt, Meta, Super, or nothing. Normally, you wouldn't remap Shift or Ctrl. You might, however, have an X11 server with Meta bound to the Alt keys. To use this server effectively with a Windows client, which doesn't use Meta but uses Alt extensively, you'll want the Windows client to map Meta to Alt (using meta = alt).
Author
Owner

@DuschdrBabbe commented on GitHub (Aug 16, 2018):

Have the same problem here! Windows7 (Server) Raspi Rasbian (Client)

please fix it :-)

for backslash i use now ALT 92

<!-- gh-comment-id:413437378 --> @DuschdrBabbe commented on GitHub (Aug 16, 2018): Have the same problem here! Windows7 (Server) Raspi Rasbian (Client) please fix it :-) for backslash i use now ALT 92
Author
Owner

@BelgarathS commented on GitHub (Sep 3, 2018):

Hi,
I have the same problem

how would we implement that, it is critical issue for anybody using non-us keyboard.

Best regards
Paul

<!-- gh-comment-id:418036307 --> @BelgarathS commented on GitHub (Sep 3, 2018): Hi, I have the same problem how would we implement that, it is critical issue for anybody using non-us keyboard. Best regards Paul
Author
Owner

@BelgarathS commented on GitHub (Sep 4, 2018):

Hi,
I have identified that altgr is passed as ctrl+alt (this is altgr equivalent for windows but not linux) and that is where the problem begins.
Moreover adding either
shit=altgr
or
alt=altgr
in screen sections (in client config) allow to use those modifier keys to work as proper altgr so it seems more a problem on windows serve side and capturing the original altgr signal rather than alt+control as altgr=anymeta does not work in either client nor server section
moreover alt+ctrl is quite widely used on linux nowadays (f.e workspace manipulation) so even intercepting ctrl+alt and changing it back to altgr seems not to be a proper solution.

<!-- gh-comment-id:418317625 --> @BelgarathS commented on GitHub (Sep 4, 2018): Hi, I have identified that altgr is passed as ctrl+alt (this is altgr equivalent for windows but not linux) and that is where the problem begins. Moreover adding either shit=altgr or alt=altgr in screen sections (in client config) allow to use those modifier keys to work as proper altgr so it seems more a problem on windows serve side and capturing the original altgr signal rather than alt+control as altgr=anymeta does not work in either client nor server section moreover alt+ctrl is quite widely used on linux nowadays (f.e workspace manipulation) so even intercepting ctrl+alt and changing it back to altgr seems not to be a proper solution.
Author
Owner

@BelgarathS commented on GitHub (Sep 4, 2018):

as a temporary workaround in ubuntu using gnome-tweaks using
keyboard&mouse/additional layout option/key to choose 3rd level/menu key
allows me to use menu key from windows keyboard as altgr on linux client

<!-- gh-comment-id:418325031 --> @BelgarathS commented on GitHub (Sep 4, 2018): as a temporary workaround in ubuntu using gnome-tweaks using keyboard&mouse/additional layout option/key to choose 3rd level/menu key allows me to use menu key from windows keyboard as altgr on linux client
Author
Owner

@lucas-gaitzsch commented on GitHub (Sep 6, 2018):

I have the same Problem with Linux Server, Windows Client and german keyboard.

<!-- gh-comment-id:419076911 --> @lucas-gaitzsch commented on GitHub (Sep 6, 2018): I have the same Problem with Linux Server, Windows Client and german keyboard.
Author
Owner

@BelgarathS commented on GitHub (Sep 6, 2018):

With windows client you can just add alt=altgr or altgr=alt in your server config in your windowspc: section and that should work

<!-- gh-comment-id:419080007 --> @BelgarathS commented on GitHub (Sep 6, 2018): With windows client you can just add alt=altgr or altgr=alt in your server config in your windowspc: section and that should work
Author
Owner

@BelgarathS commented on GitHub (Sep 11, 2018):

On further investigation, choice of window keymap has tremendous impact on how the keys are being transmitted. I believe we are not capturing the data early enough in the process and the keymap translations are done before we get scan-codes on windows.

<!-- gh-comment-id:420298674 --> @BelgarathS commented on GitHub (Sep 11, 2018): On further investigation, choice of window keymap has tremendous impact on how the keys are being transmitted. I believe we are not capturing the data early enough in the process and the keymap translations are done before we get scan-codes on windows.
Author
Owner

@digitizer0 commented on GitHub (Sep 30, 2018):

Have the same issue Linux server, Windows Client

<!-- gh-comment-id:425701382 --> @digitizer0 commented on GitHub (Sep 30, 2018): Have the same issue Linux server, Windows Client
Author
Owner

@maxbla commented on GitHub (Oct 9, 2018):

To whoever tries to squash this bug, this looks suspicious:

bool KeySequence::appendKey(int key, int modifiers)
{
    if (m_Sequence.size() == 4)
        return true;

    switch(key)
    {
        case Qt::Key_AltGr:
            return false;
...

From lines 115-123 of KeySequence.cpp

and I found some documentation (find on page Key_AltGr)

<!-- gh-comment-id:428347293 --> @maxbla commented on GitHub (Oct 9, 2018): To whoever tries to squash this bug, this looks suspicious: ``` bool KeySequence::appendKey(int key, int modifiers) { if (m_Sequence.size() == 4) return true; switch(key) { case Qt::Key_AltGr: return false; ... ``` From lines 115-123 of KeySequence.cpp and I found some [documentation](https://doc.qt.io/archives/qt-4.8/qt.html) (find on page Key_AltGr)
Author
Owner

@niikoo commented on GitHub (Dec 1, 2018):

With synergy server (1.8.7-stable) on UbuntuGnome17.04 and client (1.8.8-stable) on Win10, these lines in synergy.conf seems to have helped me out using the Norwegian keyboard layout incl. the AltGr {[]}@ etc keys on the Win PC:

section: screens
    mywinpc:
        meta = altgr
        altgr = shift
end

This by trial and error. HTH.

This fixes the problem on version 2.2.0-Release-00000000 (October 10, 2018)
Working with Linux (Ubuntu 18.10 with kernel 4.19.5) and Windows 10.

Source

<!-- gh-comment-id:443429151 --> @niikoo commented on GitHub (Dec 1, 2018): > With synergy server (1.8.7-stable) on UbuntuGnome17.04 and client (1.8.8-stable) on Win10, these lines in synergy.conf seems to have helped me out using the Norwegian keyboard layout incl. the AltGr {[]}@ etc keys on the Win PC: > > ``` > section: screens > mywinpc: > meta = altgr > altgr = shift > end > ``` > This by trial and error. HTH. This fixes the problem on version 2.2.0-Release-00000000 (October 10, 2018) Working with Linux (Ubuntu 18.10 with kernel 4.19.5) and Windows 10. [Source](https://github.com/symless/synergy-core/issues/4411)
Author
Owner

@gerardparareda commented on GitHub (Dec 30, 2018):

I am having a similar problem but not only with the altgr key, all the symbols are wrong. I've got the same keyboard (client and server) but for example a Shift + 0 is '=' in the server and '_' in the client. These are a qwerty spanish with the middle dot keyboard. Client is running Ubuntu 18.04 LTS and the server Windows 10. Any idea?

<!-- gh-comment-id:450590824 --> @gerardparareda commented on GitHub (Dec 30, 2018): I am having a similar problem but not only with the altgr key, all the symbols are wrong. I've got the same keyboard (client and server) but for example a Shift + 0 is '=' in the server and '_' in the client. These are a qwerty spanish with the middle dot keyboard. Client is running Ubuntu 18.04 LTS and the server Windows 10. Any idea?
Author
Owner

@AdrianKoshka commented on GitHub (Dec 30, 2018):

Perhaps open a new issue @Raxe88?

<!-- gh-comment-id:450594206 --> @AdrianKoshka commented on GitHub (Dec 30, 2018): Perhaps open a new issue @Raxe88?
Author
Owner

@gerardparareda commented on GitHub (Jan 1, 2019):

Sorry about that. For anyone interested I found the solution to my problem on this issue.

<!-- gh-comment-id:450738048 --> @gerardparareda commented on GitHub (Jan 1, 2019): Sorry about that. For anyone interested I found the solution to my problem on this [issue](https://github.com/debauchee/barrier/issues/134).
Author
Owner

@kakra commented on GitHub (May 3, 2019):

This is still a problem with 2.2.0, using a Linux server with a Windows 10 client, and using German keyboard layout. Characters like @, \, or ~ are on the third key level and need AltGr (right Alt-key) to be entered.

My work-around is currently using left Alt+Ctrl (which emulates AltGr in most OSes) to enter these characters but this is very uncomfortable as a German keyboard user.

<!-- gh-comment-id:489001753 --> @kakra commented on GitHub (May 3, 2019): This is still a problem with 2.2.0, using a Linux server with a Windows 10 client, and using German keyboard layout. Characters like `@`, `\`, or `~` are on the third key level and need AltGr (right Alt-key) to be entered. My work-around is currently using left Alt+Ctrl (which emulates AltGr in most OSes) to enter these characters but this is very uncomfortable as a German keyboard user.
Author
Owner

@digitizer0 commented on GitHub (May 8, 2019):

I solved this in config file by setting the following:

section: screens
windowsmachine1:
meta = altgr
altgr = shift
windowsmachine2:
meta = altgr
altgr = shift
end

<!-- gh-comment-id:490511024 --> @digitizer0 commented on GitHub (May 8, 2019): I solved this in config file by setting the following: section: screens windowsmachine1: meta = altgr altgr = shift windowsmachine2: meta = altgr altgr = shift end
Author
Owner

@marsie321 commented on GitHub (May 28, 2019):

This a very old bug. To conclude:

AltGr e.g. for @ at german keyboard is working with Linux-Server and Windows Client partial working:
a) altgr=shift # OK, standalone at win10, but not at WSL bash@win10
b) but not with putty, wsl (Windows Subsystem for Linux) e.g. bash, see attached xev output
c) WORKAROUND: synergy-v1.8.2-stable-36cd521-Windows-x64.msi + # altgr=alt # OK, (win10 + wsl/putty) ... but only synergy <= 1.8.2.

WRONG (from linux server)

KeyRelease event, serial 33, synthetic NO, window 0x380001,
root 0x5a5, subw 0x0, time 3031843, (80,95), root:(398,436),
state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

OK (windows clients keyboard)

KeyRelease event, serial 33, synthetic NO, window 0x380001,
root 0x5a5, subw 0x0, time 3110031, (1237,773), root:(1581,1140),
state 0x80, keycode 20 (keysym 0x5c, backslash), same_screen YES,
XLookupString gives 1 bytes: (5c) ""
XFilterEvent returns: False

<!-- gh-comment-id:496532337 --> @marsie321 commented on GitHub (May 28, 2019): This a very old bug. To conclude: AltGr e.g. for \@ at german keyboard is working with Linux-Server and Windows Client partial working: a) altgr=shift # OK, standalone at win10, but not at WSL bash@win10 b) but not with putty, wsl (Windows Subsystem for Linux) e.g. bash, see attached xev output c) WORKAROUND: synergy-v1.8.2-stable-36cd521-Windows-x64.msi + # altgr=alt # OK, (win10 + wsl/putty) ... but only synergy <= 1.8.2. # WRONG (from linux server) KeyRelease event, serial 33, synthetic NO, window 0x380001, root 0x5a5, subw 0x0, time 3031843, (80,95), root:(398,436), state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False # OK (windows clients keyboard) KeyRelease event, serial 33, synthetic NO, window 0x380001, root 0x5a5, subw 0x0, time 3110031, (1237,773), root:(1581,1140), state 0x80, keycode 20 (keysym 0x5c, backslash), same_screen YES, XLookupString gives 1 bytes: (5c) "\" XFilterEvent returns: False
Author
Owner

@felix-ht commented on GitHub (Aug 12, 2019):

With synergy server (1.8.7-stable) on UbuntuGnome17.04 and client (1.8.8-stable) on Win10, these lines in synergy.conf seems to have helped me out using the Norwegian keyboard layout incl. the AltGr {[]}@ etc keys on the Win PC:

section: screens
    mywinpc:
        meta = altgr
        altgr = shift
end

This by trial and error. HTH.

This fixes the problem on version 2.2.0-Release-00000000 (October 10, 2018)
Working with Linux (Ubuntu 18.10 with kernel 4.19.5) and Windows 10.

Source

This fixed it for me as well on 2.3.1 Linux server and 2.3.1 Windows Client. Any plans to actually fix this properly?

<!-- gh-comment-id:520427362 --> @felix-ht commented on GitHub (Aug 12, 2019): > > With synergy server (1.8.7-stable) on UbuntuGnome17.04 and client (1.8.8-stable) on Win10, these lines in synergy.conf seems to have helped me out using the Norwegian keyboard layout incl. the AltGr {[]}@ etc keys on the Win PC: > > ``` > > section: screens > > mywinpc: > > meta = altgr > > altgr = shift > > end > > ``` > > > > > > This by trial and error. HTH. > > This fixes the problem on version 2.2.0-Release-00000000 (October 10, 2018) > Working with Linux (Ubuntu 18.10 with kernel 4.19.5) and Windows 10. > > [Source](https://github.com/symless/synergy-core/issues/4411) This fixed it for me as well on 2.3.1 Linux server and 2.3.1 Windows Client. Any plans to actually fix this properly?
Author
Owner

@spaeps commented on GitHub (Sep 5, 2019):

I just want let you know that the Alt-Gr key and everyone else works perfectly after client suspension and resume.

I'm just dealing with Linux, since I do not use barrier with anything else.

My setup:
Both Server and Client: Arch Linux with barrier 2.3.1 and Italian layout

For reference, the Italian keyboard layout.

Steps:

  • Start Server
  • Start Client
  • Typing Alt-Gr+ò outputs 2 (it should print @)
  • Suspend and resume Client (systemctl suspend)
  • Typing Alt-Gr+ò outputs @ as expected

Probably something in the resume process triggers the fix but i need to investigate.

I'll let you know.

<!-- gh-comment-id:528364520 --> @spaeps commented on GitHub (Sep 5, 2019): I just want let you know that the _Alt-Gr_ key and everyone else works perfectly **after** client **suspension** and **resume**. I'm just dealing with **Linux**, since I do not use barrier with anything else. My setup: **Both Server and Client**: **Arch Linux** with barrier **2.3.1** and **Italian** layout For reference, [the Italian keyboard layout](https://upload.wikimedia.org/wikipedia/commons/e/e5/Italian_Keyboard_layout.svg). Steps: - Start Server - Start Client - Typing _Alt-Gr+ò_ outputs _2_ (it should print _@_) - Suspend and resume Client (systemctl suspend) - Typing _Alt-Gr+ò_ outputs _@_ as expected Probably something in the **resume** process _triggers_ the **fix** but i need to investigate. I'll let you know.
Author
Owner

@BelgarathS commented on GitHub (Sep 5, 2019):

This is specific windows issue when windows keymap seems to be applied before the keys are intercepted by barrier.Specifically changing keyboard language affects keys that barrier sends across.

<!-- gh-comment-id:528373291 --> @BelgarathS commented on GitHub (Sep 5, 2019): This is specific windows issue when windows keymap seems to be applied before the keys are intercepted by barrier.Specifically changing keyboard language affects keys that barrier sends across.
Author
Owner

@JohanMollevik commented on GitHub (Sep 10, 2019):

I am also affected, I have a linux server and windows client. When I type AltGr+7 to type a '{' symbol a '[' symbol shows up and the windows client changes keyboard layout from SV to EN. Similar things happens for other symbols.

<!-- gh-comment-id:529786607 --> @JohanMollevik commented on GitHub (Sep 10, 2019): I am also affected, I have a linux server and windows client. When I type AltGr+7 to type a '{' symbol a '[' symbol shows up and the windows client changes keyboard layout from SV to EN. Similar things happens for other symbols.
Author
Owner

@nlubisch commented on GitHub (Sep 10, 2019):

Same problem.

Server: Ubuntu 18.04
Client Windows 10

<!-- gh-comment-id:529904507 --> @nlubisch commented on GitHub (Sep 10, 2019): Same problem. Server: Ubuntu 18.04 Client Windows 10
Author
Owner

@DrillSergeant commented on GitHub (Nov 15, 2019):

Also same problem.

Server: Ubuntu 18.04
Client Windows 10 Pro

<!-- gh-comment-id:554250382 --> @DrillSergeant commented on GitHub (Nov 15, 2019): Also same problem. Server: Ubuntu 18.04 Client Windows 10 Pro
Author
Owner

@barnaba commented on GitHub (Jan 9, 2020):

Same problem. ubuntu server 2.3.2 snapshot 9080ce45, client win 10 2.3.2 snapshot 210c2b70)

I've incorporated @niikoo's solution and it seemed to work for most cases. Used it for some time, but finally ran into issues.

While alt+o produces the proper "ó" character in most settings (e.g. notepad) it fails in other. For example in ms word.
What happens when I use alt gr + o on client's physical keyboard: "ó" character
What happens when I use right alt + o on server and it goes through barrier: ms word opens the outlining ribbon

This is quite breaking from my perspective, litearlly can't type in polish with any reasonable speed.

Here's my config:

section: screens
	fasada:
		halfDuplexCapsLock = false
		halfDuplexNumLock = false
		halfDuplexScrollLock = false
		xtestIsXineramaUnaware = false
		switchCorners = none 
		switchCornerSize = 0
	DESKTOP-QA8BAEH:
    meta = altgr
    altgr = shift
		halfDuplexCapsLock = false
		halfDuplexNumLock = false
		halfDuplexScrollLock = false
		xtestIsXineramaUnaware = false
		switchCorners = none +top-left +bottom-left 
		switchCornerSize = 0
end

section: aliases
end

section: links
	fasada:
		right = DESKTOP-QA8BAEH
	DESKTOP-QA8BAEH:
		left = fasada
end

section: options
	relativeMouseMoves = false
	screenSaverSync = true
	win32KeepForeground = false
	clipboardSharing = true
	switchCorners = none 
	switchCornerSize = 0
end
<!-- gh-comment-id:572598898 --> @barnaba commented on GitHub (Jan 9, 2020): Same problem. ubuntu server 2.3.2 snapshot 9080ce45, client win 10 2.3.2 snapshot 210c2b70) I've incorporated @niikoo's solution and it seemed to work for most cases. Used it for some time, but finally ran into issues. While alt+o produces the proper "ó" character in most settings (e.g. notepad) it fails in other. For example in ms word. What happens when I use alt gr + o on client's physical keyboard: "ó" character What happens when I use right alt + o on server and it goes through barrier: ms word opens the outlining ribbon This is quite breaking from my perspective, litearlly can't type in polish with any reasonable speed. Here's my config: ``` section: screens fasada: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false switchCorners = none switchCornerSize = 0 DESKTOP-QA8BAEH: meta = altgr altgr = shift halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false switchCorners = none +top-left +bottom-left switchCornerSize = 0 end section: aliases end section: links fasada: right = DESKTOP-QA8BAEH DESKTOP-QA8BAEH: left = fasada end section: options relativeMouseMoves = false screenSaverSync = true win32KeepForeground = false clipboardSharing = true switchCorners = none switchCornerSize = 0 end ```
Author
Owner

@MPalix86 commented on GitHub (Jan 17, 2020):

Also same problem.

Server: macOS Catalina 10.15.2 (mackbook keyboard)
Client: Kali linux 2019.4 (classic windows pc keyboard)

In addition on mac the alt gr key is not present.

<!-- gh-comment-id:575434631 --> @MPalix86 commented on GitHub (Jan 17, 2020): Also same problem. Server: macOS Catalina 10.15.2 (mackbook keyboard) Client: Kali linux 2019.4 (classic windows pc keyboard) In addition on mac the alt gr key is not present.
Author
Owner

@jemielniak commented on GitHub (Feb 6, 2020):

Same issue - makes the system not sustainable for users of languages with non-standard characters (mine is Polish).

<!-- gh-comment-id:582962407 --> @jemielniak commented on GitHub (Feb 6, 2020): Same issue - makes the system not sustainable for users of languages with non-standard characters (mine is Polish).
Author
Owner

@wscheicher commented on GitHub (Feb 7, 2020):

I just observed something strange:
While last week i realized that AltGr wouldn't work (Windows 10 as Server, Debian Buster as Client) and i stumbled over this bug and actually didn't see how this could be solved - strangely the problem vanished without me changing anything.

What i did however: i installed WSL and XcXsrv ... i wonder if that did change something on the Server side ...

<!-- gh-comment-id:583316592 --> @wscheicher commented on GitHub (Feb 7, 2020): I just observed something strange: While last week i realized that AltGr wouldn't work (Windows 10 as Server, Debian Buster as Client) and i stumbled over this bug and actually didn't see how this could be solved - strangely the problem vanished without me changing anything. What i did however: i installed WSL and XcXsrv ... i wonder if that did change something on the Server side ...
Author
Owner

@jemielniak commented on GitHub (Feb 7, 2020):

Thanks! I tried that (I installed WSL and then XcXsrv) and unfortunately it didn't work for me.

<!-- gh-comment-id:583445182 --> @jemielniak commented on GitHub (Feb 7, 2020): Thanks! I tried that (I installed WSL and then XcXsrv) and unfortunately it didn't work for me.
Author
Owner

@wscheicher commented on GitHub (Feb 12, 2020):

Update: Looks like it had nothing to do with what i installed on Windows, but rather with my keyboard settings on the linux client. It seems that after having barrierc running, the keyboard layout was not matching the local keyboard, but had a "us" layout - or so. And after several attempts to fix that, and a reboot - some key combinations did work. Not "real" AltGr, but at least @€{}...

I did:
xinput list
setxkbmap -device 5 at # 5 being the ID of my "Virtual core XTEST keyboard"
and then rebooted both PCs

Also messed with dpkg-reconfigure keyboard-configuration and kde keyboard settings, so not 100% sure what actually triggered the change in the behaviour.

<!-- gh-comment-id:585141133 --> @wscheicher commented on GitHub (Feb 12, 2020): Update: Looks like it had nothing to do with what i installed on Windows, but rather with my keyboard settings on the linux client. It seems that after having barrierc running, the keyboard layout was not matching the local keyboard, but had a "us" layout - or so. And after several attempts to fix that, and a reboot - some key combinations did work. Not "real" AltGr, but at least @€{}... I did: xinput list setxkbmap -device 5 at # 5 being the ID of my "Virtual core XTEST keyboard" and then rebooted both PCs Also messed with dpkg-reconfigure keyboard-configuration and kde keyboard settings, so not 100% sure what actually triggered the change in the behaviour.
Author
Owner

@allbombson commented on GitHub (Feb 25, 2020):

I have a similar issue when using a Japanese keyboard, and multiply keys are passed at times and most the time none are correct.

<!-- gh-comment-id:590954311 --> @allbombson commented on GitHub (Feb 25, 2020): I have a similar issue when using a Japanese keyboard, and multiply keys are passed at times and most the time none are correct.
Author
Owner

@allbombson commented on GitHub (Feb 25, 2020):

I have a similar issue when using a Japanese keyboard, and multiply keys are passed at times and most the time none are correct.

<!-- gh-comment-id:590954548 --> @allbombson commented on GitHub (Feb 25, 2020): I have a similar issue when using a Japanese keyboard, and multiply keys are passed at times and most the time none are correct.
Author
Owner

@allbombson commented on GitHub (Feb 25, 2020):

I have a similar issue when using a Japanese keyboard, and multiply keys are passed at times and most the time none are correct.

<!-- gh-comment-id:590956235 --> @allbombson commented on GitHub (Feb 25, 2020): I have a similar issue when using a Japanese keyboard, and multiply keys are passed at times and most the time none are correct.
Author
Owner

@thothothotho commented on GitHub (May 5, 2020):

I have a similar problem with the french bépo layout (https://bepo.fr/wiki/Accueil)
It relies heavily on AltGr, even for pure ascii characters (like {}<>)
setup:
Ubuntu18 (server)
Windows10 (client)

Here is the keys I hit :
AltGr-X

(Here by X, I mean the physical key that is placed at the posiition of the letter X on a us keyboard)
According to the bépo layout, this should generate a {

But I observe a [ being generated instead (and the keyboard indicator on windows 10 switch to EN)

Here are some more examples:

hit Expected Result remark
AltGr-X { [
AltGr-C } ]
AltGr-2 < ,
AltGr-3 > .
AltGr-4 [ [ correct!
AltGr-5 ] ] correct!
AltGr-P & 7
AltGr-Q | \

Here is a theory that (partially) explains those results.

The server (ubuntu) sends the KeyCode to the client (windows 10). The client looks up where is that keycode on a US keyboard, then it removes the shift modifier and consider this is the result.

At least there is a strong correlation between Expected and Results. They are always on the same physical key on a us keyboard.

<!-- gh-comment-id:624160741 --> @thothothotho commented on GitHub (May 5, 2020): I have a similar problem with the french bépo layout (https://bepo.fr/wiki/Accueil) It relies heavily on AltGr, even for pure ascii characters (like {}<>) setup: Ubuntu18 (server) Windows10 (client) Here is the keys I hit : ```AltGr-X``` (Here by `X`, I mean the physical key that is placed at the posiition of the letter `X` on a us keyboard) According to the bépo layout, this should generate a `{` But I observe a `[` being generated instead (and the keyboard indicator on windows 10 switch to EN) Here are some more examples: | hit | Expected | Result | remark | |---|---|---|--| |AltGr-X | `{` | `[` || |AltGr-C | `}` | `]` || |AltGr-2 | `<` | `,`|| |AltGr-3 | `>` | `.`|| |AltGr-4 | `[` | `[`| correct! | |AltGr-5 | `]` | `]`| correct! | |AltGr-P | `&` | `7` || |AltGr-Q| `\|` | `\` || Here is a theory that (partially) explains those results. The server (ubuntu) sends the KeyCode to the client (windows 10). The client looks up where is that keycode on a US keyboard, then it removes the shift modifier and consider this is the result. At least there is a strong correlation between Expected and Results. They are always on the same physical key on a us keyboard.
Author
Owner

@sgrienen commented on GitHub (May 8, 2020):

I have the same kind of problems, I'm using an Apple keyboard on my MacOS and to control a Win10 PC and Alt-Gr is not working (right Alt key + G should output a @ symbol but I can't get it on Win10 unless I use the left Ctrl+Alt as described by someone in that thread... it's a pain, I wish I could configure it, but I've tried to add
meta = altgr
altgr = shift
in the config file, it doesn't change anything for me.

<!-- gh-comment-id:625827351 --> @sgrienen commented on GitHub (May 8, 2020): I have the same kind of problems, I'm using an Apple keyboard on my MacOS and to control a Win10 PC and Alt-Gr is not working (right Alt key + G should output a @ symbol but I can't get it on Win10 unless I use the left Ctrl+Alt as described by someone in that thread... it's a pain, I wish I could configure it, but I've tried to add meta = altgr altgr = shift in the config file, it doesn't change anything for me.
Author
Owner

@aapopajunen commented on GitHub (Jun 4, 2020):

Having same issues with finnish keyboard layout.
Client: Windows 10
Server: Pop!_OS 20.04 LTS x86_64

<!-- gh-comment-id:638759273 --> @aapopajunen commented on GitHub (Jun 4, 2020): Having same issues with [finnish keyboard layout](http://kbdlayout.info/KBDFI/). Client: Windows 10 Server: Pop!_OS 20.04 LTS x86_64
Author
Owner

@hevi9 commented on GitHub (Jun 8, 2020):

Same issue, finnish keyboard

server: Kubuntu 19.10
client: Windows 10 Pro

<!-- gh-comment-id:640425098 --> @hevi9 commented on GitHub (Jun 8, 2020): Same issue, finnish keyboard server: Kubuntu 19.10 client: Windows 10 Pro
Author
Owner

@lgallard commented on GitHub (Jun 18, 2020):

As @digitizer0 pointed out, to workaround this add the following to your screens config:

meta = altgr
altgr = shift

Here you are Screens configuration in Barrier's config file:

section: screens
	curiosity:
		halfDuplexCapsLock = false
		halfDuplexNumLock = false
		halfDuplexScrollLock = false
		xtestIsXineramaUnaware = false
		preserveFocus = false
		switchCorners = none 
		switchCornerSize = 0
		meta = altgr
		altgr = shift
	DESKTOP-HJ8KL6M:
		halfDuplexCapsLock = false
		halfDuplexNumLock = false
		halfDuplexScrollLock = false
		xtestIsXineramaUnaware = false
		preserveFocus = false
		switchCorners = none 
		switchCornerSize = 0
		meta = altgr
		altgr = shift
<!-- gh-comment-id:646304111 --> @lgallard commented on GitHub (Jun 18, 2020): As @digitizer0 pointed out, to workaround this add the following to your screens config: ``` meta = altgr altgr = shift ``` Here you are Screens configuration in Barrier's config file: ``` section: screens curiosity: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false preserveFocus = false switchCorners = none switchCornerSize = 0 meta = altgr altgr = shift DESKTOP-HJ8KL6M: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false preserveFocus = false switchCorners = none switchCornerSize = 0 meta = altgr altgr = shift ```
Author
Owner

@1ras commented on GitHub (Jul 20, 2020):

meta = altgr does nothing at all and altgr = shift is only a partly workaround as some AltGr combinations are still not working, like ~ (AltGr +) and € (AltGr e) on a Germany keyboard.

Also when looking on the actual keys received on the Windows client with this workaround, the key sequence is still wrong. E.g. AltGr + is received as:

VK  SC	Type	Up/Dn	Elapsed	Key
-----------------------------------------
A1  136	a	d	0.44	RShift         	
A4  038	a	d	0.20	LAlt           	
A2  01D	a	d	0.00	LControl       	
A1  136	a	u	0.00	RShift         	
BB  01B	a	d	0.00	+              	
A2  01D	a	u	0.00	LControl       	
A4  038	a	u	0.00	LAlt           	
A1  136	a	d	0.00	RShift         	
BB  01B	a	u	0.08	+              	
A1  136	a	u	0.03	RShift

Where a locally pressed Altgr + just correctly shows as:

A2  01D	 	d	0.59	LControl       	
A5  138	 	d	0.02	RAlt           	
BB  01B	 	d	0.17	+              	
BB  01B	 	u	0.11	+              	
A2  01D	 	u	0.01	LControl       	
A5  138	 	u	0.00	RAlt

Traces are done with the Autohotkey KeyHistory command, with the following meaning:
VK=Virtual Key, SC=Scan Code, Elapsed=Seconds since the previous event. Types: h=Hook Hotkey, s=Suppressed (blocked), i=Ignored because it was generated by an AHK script, a=Artificial, #=Disabled via #IfWinActive/Exist, U=Unicode character (SendInput).

Server: Debian 10 with Barrier 2.3.2
Client: Windows 10 with Barrier 2.3.2

<!-- gh-comment-id:661311781 --> @1ras commented on GitHub (Jul 20, 2020): `meta = altgr` does nothing at all and `altgr = shift` is only a partly workaround as some AltGr combinations are still not working, like ~ (AltGr +) and € (AltGr e) on a Germany keyboard. Also when looking on the actual keys received on the Windows client with this workaround, the key sequence is still wrong. E.g. AltGr + is received as: ``` VK SC Type Up/Dn Elapsed Key ----------------------------------------- A1 136 a d 0.44 RShift A4 038 a d 0.20 LAlt A2 01D a d 0.00 LControl A1 136 a u 0.00 RShift BB 01B a d 0.00 + A2 01D a u 0.00 LControl A4 038 a u 0.00 LAlt A1 136 a d 0.00 RShift BB 01B a u 0.08 + A1 136 a u 0.03 RShift ``` Where a locally pressed Altgr + just correctly shows as: ``` A2 01D d 0.59 LControl A5 138 d 0.02 RAlt BB 01B d 0.17 + BB 01B u 0.11 + A2 01D u 0.01 LControl A5 138 u 0.00 RAlt ``` Traces are done with the Autohotkey KeyHistory command, with the following meaning: VK=Virtual Key, SC=Scan Code, Elapsed=Seconds since the previous event. Types: h=Hook Hotkey, s=Suppressed (blocked), i=Ignored because it was generated by an AHK script, a=Artificial, #=Disabled via #IfWinActive/Exist, U=Unicode character (SendInput). Server: Debian 10 with Barrier 2.3.2 Client: Windows 10 with Barrier 2.3.2
Author
Owner

@ghost commented on GitHub (Oct 15, 2020):

Server: Windows 10 with Barrier 2.3.3
Client: macOS 10.15 with Barrier 2.3.3

Can't use AltGr because it sends Ctrl+Alt, and in my case (Polish keyboard layout) it does not allow for diacritic characters to be typed. Breaking bug for me, because Right Alt + L is one of the important letters that are often used. Swapping to the nearest key (Meta/Windows) causes Windows 10 to log off (Win + L).

<!-- gh-comment-id:709417420 --> @ghost commented on GitHub (Oct 15, 2020): Server: Windows 10 with Barrier 2.3.3 Client: macOS 10.15 with Barrier 2.3.3 Can't use AltGr because it sends Ctrl+Alt, and in my case (Polish keyboard layout) it does not allow for diacritic characters to be typed. Breaking bug for me, because Right Alt + L is one of the important letters that are often used. Swapping to the nearest key (Meta/Windows) causes Windows 10 to log off (Win + L).
Author
Owner

@domalex commented on GitHub (Jan 1, 2021):

I have been experiencing the same problem with a Swiss German keyboard. The Barrier server works flawlessly from an Arch Linux installation. However, on when using the Barrier client on a Windows 10 machine it would not recognize most keystrokes executed in combination with the AltGr key, such as @ | ¼ ½ ¢ ¬ etc.

A fix would be very much appreciated as this is a critical issue for users who depend on a working AltGr key.

<!-- gh-comment-id:753315067 --> @domalex commented on GitHub (Jan 1, 2021): I have been experiencing the same problem with a Swiss German keyboard. The Barrier server works flawlessly from an Arch Linux installation. However, on when using the Barrier client on a Windows 10 machine it would not recognize most keystrokes executed in combination with the AltGr key, such as @ | ¼ ½ ¢ ¬ etc. A fix would be very much appreciated as this is a critical issue for users who depend on a working AltGr key.
Author
Owner

@Cramsarg commented on GitHub (Jan 5, 2021):

In PuTTY configuration, "Terminal/Keyboard" topics, by default option "Control-Alt is different from AltGr" is checked.
Unchecking this option give me back @ | { [ ] } € characters in PuTTY.

There's also a second option "AltGr act as Compose key" I let unchecked.

barrier server : 2.3.2 (Ubuntu 20.10)
barrier client : 2.3.3 (Windows 7)
KiTTY 0.73.0.1 (PuTTY fork, same options for AltGr as PuTTY )
French keyboard layout.

Hope this may help some of you.

<!-- gh-comment-id:754954988 --> @Cramsarg commented on GitHub (Jan 5, 2021): In PuTTY configuration, "Terminal/Keyboard" topics, by default option "Control-Alt is different from AltGr" is checked. Unchecking this option give me back @ | { [ ] } € characters in PuTTY. There's also a second option "AltGr act as Compose key" I let unchecked. barrier server : 2.3.2 (Ubuntu 20.10) barrier client : 2.3.3 (Windows 7) KiTTY 0.73.0.1 (PuTTY fork, same options for AltGr as PuTTY ) French keyboard layout. Hope this may help some of you.
Author
Owner

@AdrienGuimbal commented on GitHub (Jan 16, 2021):

I see a lot of comment about adding

meta = altgr
altgr = shift

in my config file, but how can I do it on Windows 10?
In Linux we can use synergy-core --config <filename> but the command isn't available on windows?

<!-- gh-comment-id:761619017 --> @AdrienGuimbal commented on GitHub (Jan 16, 2021): I see a lot of comment about adding ``` meta = altgr altgr = shift ``` in my config file, but how can I do it on Windows 10? In Linux we can use `synergy-core --config <filename>` but the command isn't available on windows?
Author
Owner

@GilDev commented on GitHub (Feb 3, 2021):

Same issue on macOS 11.1 server and Windows 10 2004 client on Barrier 2.3.3 using the Bépo keyboard layout. No “altgr” setting anywhere in the GUI configurator.
Breaking bug that makes me unable to use this software in my case.

<!-- gh-comment-id:772403649 --> @GilDev commented on GitHub (Feb 3, 2021): Same issue on macOS 11.1 server and Windows 10 2004 client on Barrier 2.3.3 using the [Bépo](http://bepo.fr) keyboard layout. No “altgr” setting anywhere in the GUI configurator. Breaking bug that makes me unable to use this software in my case.
Author
Owner

@lululock71 commented on GitHub (Feb 7, 2021):

I've got the same issue too... But I kinda solved it by using LCtrl + LAlt instead of AltGr. I know that AltGr is interpreted as LCtrl + LAlt by Windows, but what's weird is that Linux does not react at all when doing this key combo... I guess I'll have to get used to that, it's better than not being able to access those characters.

I don't know what causes this oddity, but note that I've explicitly set the AZERTY keyboard variant for Xorg, which allows me to type characters normally unaccessible with other OSes, such as "É" (CapsLock + 2 (é)) or even "Ù" (CapsLock + ù).

French (AZERTY) layout
Server : Arch Linux (xanmod-rt) with Barrier 2.3.3
Client : Windows 10 20H2 with Barrier 2.3.3

<!-- gh-comment-id:774662438 --> @lululock71 commented on GitHub (Feb 7, 2021): I've got the same issue too... But I kinda solved it by using LCtrl + LAlt instead of AltGr. I know that AltGr is interpreted as LCtrl + LAlt by Windows, but what's weird is that Linux does not react at all when doing this key combo... I guess I'll have to get used to that, it's better than not being able to access those characters. I don't know what causes this oddity, but note that I've explicitly set the AZERTY keyboard variant for Xorg, which allows me to type characters normally unaccessible with other OSes, such as "É" (CapsLock + 2 (é)) or even "Ù" (CapsLock + ù). French (AZERTY) layout Server : Arch Linux (xanmod-rt) with Barrier 2.3.3 Client : Windows 10 20H2 with Barrier 2.3.3
Author
Owner

@xiduis15 commented on GitHub (Mar 4, 2021):

Same issue on macOS 11.1 server and Windows 10 2004 client on Barrier 2.3.3 using the Bépo keyboard layout. No “altgr” setting anywhere in the GUI configurator.
Breaking bug that makes me unable to use this software in my case.

Same issue
macOS 11.1 server
windows and ubuntu clients.

no altgr available; impossible to do the characters @ and # on a keyboard fr

<!-- gh-comment-id:790957215 --> @xiduis15 commented on GitHub (Mar 4, 2021): > Same issue on macOS 11.1 server and Windows 10 2004 client on Barrier 2.3.3 using the [Bépo](http://bepo.fr) keyboard layout. No “altgr” setting anywhere in the GUI configurator. > Breaking bug that makes me unable to use this software in my case. Same issue macOS 11.1 server windows and ubuntu clients. no altgr available; impossible to do the characters @ and # on a keyboard fr
Author
Owner

@matrixes commented on GitHub (Mar 29, 2021):

I have issues with AltGr as everyone else in this issue.

I'm running

  • Lubuntu 18.04 as server
  • Windows 10 as client
  • Swedish keyboard layout

Using the workaround

meta = altgr
altgr = shift

make most things in Windows accept AltGr+? = \ and AltGr+2 = @.

However,

  • it refuses to work well in WSL; forcing me to press AltGr+8 ([) followed by AltGr+2 to get the @ character.
  • In vim in WSL I cannot make the @ char appear at all, no matter what combination I use
  • `` (backticks/grave accent) and ´ (acute accent) characters do not work at all, which incidentally makes it difficult to type code blocks here without cutting and pasting. :)
<!-- gh-comment-id:809629460 --> @matrixes commented on GitHub (Mar 29, 2021): I have issues with AltGr as everyone else in this issue. I'm running * Lubuntu 18.04 as server * Windows 10 as client * Swedish keyboard layout Using the workaround ``` meta = altgr altgr = shift ``` make _most_ things in Windows accept `AltGr+?` = `\` and `AltGr+2` = `@`. However, * it refuses to work well in WSL; forcing me to press `AltGr+8` (`[`) followed by `AltGr+2` to get the `@` character. * In vim in WSL I cannot make the `@` char appear at all, no matter what combination I use * ` `` ` (backticks/grave accent) and `´` (acute accent) characters do not work at all, which incidentally makes it difficult to type code blocks here without cutting and pasting. :)
Author
Owner

@SoftwareSchlosser commented on GitHub (Apr 27, 2021):

Same for me, can't type characters like {} via AltGr on a german keyboard on a Windows 10 guest connected to a Linux (Ubuntu) host. The workarounds mentioned here didn't work for me.

<!-- gh-comment-id:827551553 --> @SoftwareSchlosser commented on GitHub (Apr 27, 2021): Same for me, can't type characters like {} via AltGr on a german keyboard on a Windows 10 guest connected to a Linux (Ubuntu) host. The workarounds mentioned here didn't work for me.
Author
Owner

@kakra commented on GitHub (Apr 27, 2021):

I have given up on this problem, I'm not even sure if it can be worked around in Windows because many Windows remote control products have similar issues with the AltGr key (even with Windows-to-Windows remoting) or certain keys/characters are not passed down to some types of windows (MSTSC, WSL) - seems to be a problem intrinsic to the Windows input system.

<!-- gh-comment-id:827562009 --> @kakra commented on GitHub (Apr 27, 2021): I have given up on this problem, I'm not even sure if it can be worked around in Windows because many Windows remote control products have similar issues with the AltGr key (even with Windows-to-Windows remoting) or certain keys/characters are not passed down to some types of windows (MSTSC, WSL) - seems to be a problem intrinsic to the Windows input system.
Author
Owner

@SoftwareSchlosser commented on GitHub (Apr 27, 2021):

Maybe one way would be to emulate the AltGr key by sending Ctrl+Alt instead - at least I can type a { by pressing Ctrl+Alr+8. At least it would be nice to have this as an option in Barrier.
I already tried to simply do this by using a HotKey but obviously AltGr can't be used as a HotKey either.

<!-- gh-comment-id:827574574 --> @SoftwareSchlosser commented on GitHub (Apr 27, 2021): Maybe one way would be to emulate the AltGr key by sending Ctrl+Alt instead - at least I can type a `{` by pressing `Ctrl+Alr+8`. At least it would be nice to have this as an option in Barrier. I already tried to simply do this by using a HotKey but obviously AltGr can't be used as a HotKey either.
Author
Owner

@arnholm commented on GitHub (May 24, 2021):

Kubuntu 20.04 as Barrier server
Windows 10 as Barrier client
Norwegian keyboard

I was hit by this problem as well. This problem made Barrier unusable, since none of @£${[]} could be sent from Server to Client.

The work-around described above that seems to work for me is
1 On the server, save the barrier.conf file
2 On the server, edit barrier.conf and add for the Windows 10 client screen
meta = altgr
altgr = shift
3. On the server, reload barrier.conf
4. Verify that @£${[]} works on the client

Thanks for maintaining Barrier! Maye this issue can be fixed more permanently, so Barrier is easier to use with non-english keyboards.

<!-- gh-comment-id:847253642 --> @arnholm commented on GitHub (May 24, 2021): Kubuntu 20.04 as Barrier server Windows 10 as Barrier client Norwegian keyboard I was hit by this problem as well. This problem made Barrier unusable, since none of @£${[]} could be sent from Server to Client. The work-around described above that seems to work for me is 1 On the server, save the barrier.conf file 2 On the server, edit barrier.conf and add for the Windows 10 client screen meta = altgr altgr = shift 3. On the server, reload barrier.conf 4. Verify that @£${[]} works on the client Thanks for maintaining Barrier! Maye this issue can be fixed more permanently, so Barrier is easier to use with non-english keyboards.
Author
Owner

@GilDev commented on GitHub (May 25, 2021):

Those fixes didn’t work for me on macOS with Windows, and it makes Barrier completely unusable for my usage (can’t do _'€& and so on as I type with the Bépo layout).
I can’t really complain because Barrier is free and community-based, but right now I have no software that can help me.

<!-- gh-comment-id:847718376 --> @GilDev commented on GitHub (May 25, 2021): Those fixes didn’t work for me on macOS with Windows, and it makes Barrier completely unusable for my usage (can’t do _'€& and so on as I type with the Bépo layout). I can’t really complain because Barrier is free and community-based, but right now I have no software that can help me.
Author
Owner

@xuijuthub commented on GitHub (Jul 9, 2021):

I have no software that can help me.

Try NoMachine for the time being, although it is remote desktop software => will show video.
Although this bug fixed, now that would be awesome.

<!-- gh-comment-id:876817938 --> @xuijuthub commented on GitHub (Jul 9, 2021): >I have no software that can help me. Try NoMachine for the time being, although it is remote desktop software => will show video. Although this bug fixed, now that would be awesome.
Author
Owner

@amigainc commented on GitHub (Aug 6, 2021):

Hello, I have this problem too on a Windows client, Alt-GR working on Linux server:

  • Server : Ubuntu 21.04, v.2.3.3, french keyboard
  • Client: Windows 7, v.2.3.3, french keyboard
    I haven't this issue when the server is a Windows computer.
<!-- gh-comment-id:894110990 --> @amigainc commented on GitHub (Aug 6, 2021): Hello, I have this problem too on a Windows client, Alt-GR working on Linux server: - Server : Ubuntu 21.04, v.2.3.3, french keyboard - Client: Windows 7, v.2.3.3, french keyboard I haven't this issue when the server is a Windows computer.
Author
Owner

@steelman commented on GitHub (Sep 7, 2021):

I've described a similar case in #1280. I am not sure if directly related to AltGr.

<!-- gh-comment-id:914131762 --> @steelman commented on GitHub (Sep 7, 2021): I've described a similar case in #1280. I am not sure if directly related to AltGr.
Author
Owner

@jmymay commented on GitHub (Nov 23, 2021):

altgr = shift doesn't work for me with macOS server and Linux client. It seems Linux handles the Barrier's Alt_L in some way which precludes it from interpreting it as a modifier key. I've made a hack for my use case (Polish characters) at https://github.com/jkozera/barrier/tree/fix-pl-chars which injects modified keycodes, using a hardcoded map of letters to corresponding diacritics, and removes Alt from modifiers. I still couldn't type anything with Alt pressed, so I've also implemented triggering of fake Alt "key up" event and only now it works. The magic constant button=59 also seems important, because without it I couldn't type uppercase characters.

<!-- gh-comment-id:977275010 --> @jmymay commented on GitHub (Nov 23, 2021): `altgr = shift` doesn't work for me with macOS server and Linux client. It seems Linux handles the Barrier's Alt_L in some way which precludes it from interpreting it as a modifier key. I've made a hack for my use case (Polish characters) at https://github.com/jkozera/barrier/tree/fix-pl-chars which injects modified keycodes, using a hardcoded map of letters to corresponding diacritics, and removes Alt from modifiers. I still couldn't type anything with Alt pressed, so I've also implemented triggering of fake Alt "key up" event and only now it works. The magic constant button=59 also seems important, because without it I couldn't type uppercase characters.
Author
Owner

@Infor-Master commented on GitHub (Nov 27, 2021):

altgr = shift doesn't work for me with macOS server and Linux client. It seems Linux handles the Barrier's Alt_L in some way which precludes it from interpreting it as a modifier key. I've made a hack for my use case (Polish characters) at https://github.com/jkozera/barrier/tree/fix-pl-chars which injects modified keycodes, using a hardcoded map of letters to corresponding diacritics, and removes Alt from modifiers. I still couldn't type anything with Alt pressed, so I've also implemented triggering of fake Alt "key up" event and only now it works. The magic constant button=59 also seems important, because without it I couldn't type uppercase characters.

same problem, currently using mac server with linux client using an "apple magic keyboard" with a portuguese layout. The linux perceives both alt keys as Alt_L instead of assuming the right one as Alt Gr (or iso_level3_shift) wich prevents me from typing some symbols like @ on the keyboard.

<!-- gh-comment-id:980688014 --> @Infor-Master commented on GitHub (Nov 27, 2021): > `altgr = shift` doesn't work for me with macOS server and Linux client. It seems Linux handles the Barrier's Alt_L in some way which precludes it from interpreting it as a modifier key. I've made a hack for my use case (Polish characters) at https://github.com/jkozera/barrier/tree/fix-pl-chars which injects modified keycodes, using a hardcoded map of letters to corresponding diacritics, and removes Alt from modifiers. I still couldn't type anything with Alt pressed, so I've also implemented triggering of fake Alt "key up" event and only now it works. The magic constant button=59 also seems important, because without it I couldn't type uppercase characters. same problem, currently using mac server with linux client using an "apple magic keyboard" with a portuguese layout. The linux perceives both alt keys as Alt_L instead of assuming the right one as Alt Gr (or iso_level3_shift) wich prevents me from typing some symbols like @ on the keyboard.
Author
Owner

@JDuchniewicz commented on GitHub (Dec 8, 2021):

This fix:

client:
    # shift = altgr # this actually messed up my "?{} keys so I disabled it
    altgr = shift

Worked for me with Arch Linux as server and W10 as client. One caveat: you cannot name your config file .barrier.conf and place it in your home directory otherwise barrier complains about wrong structure of the file. Therefore, I had to place it in ~/.config/barrrier.conf #1473.

<!-- gh-comment-id:988763471 --> @JDuchniewicz commented on GitHub (Dec 8, 2021): This fix: ``` client: # shift = altgr # this actually messed up my "?{} keys so I disabled it altgr = shift ``` Worked for me with Arch Linux as server and W10 as client. One caveat: you cannot name your config file `.barrier.conf` and place it in your home directory otherwise barrier complains about wrong structure of the file. Therefore, I had to place it in `~/.config/barrrier.conf` #1473.
Author
Owner

@JMLX42 commented on GitHub (Dec 18, 2021):

Windows 10 server + Ubuntu 21.10 client, the following is working for me:

	client:
		halfDuplexCapsLock = false
		halfDuplexNumLock = false
		halfDuplexScrollLock = false
		xtestIsXineramaUnaware = false
		preserveFocus = false
		switchCorners = none 
		switchCornerSize = 0
		meta = altgr
        	altgr = shift
<!-- gh-comment-id:997222326 --> @JMLX42 commented on GitHub (Dec 18, 2021): Windows 10 server + Ubuntu 21.10 client, the following is working for me: ``` client: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false preserveFocus = false switchCorners = none switchCornerSize = 0 meta = altgr altgr = shift ```
Author
Owner

@mko-callpage commented on GitHub (Aug 23, 2022):

why hasn't this been fixed for so many years?! T_T

<!-- gh-comment-id:1223737136 --> @mko-callpage commented on GitHub (Aug 23, 2022): why hasn't this been fixed for so many years?! T_T
Author
Owner

@p145085 commented on GitHub (Oct 24, 2022):

To whoever tries to squash this bug, this looks suspicious:

bool KeySequence::appendKey(int key, int modifiers)
{
    if (m_Sequence.size() == 4)
        return true;

    switch(key)
    {
        case Qt::Key_AltGr:
            return false;
...

From lines 115-123 of KeySequence.cpp

and I found some documentation (find on page Key_AltGr)

This fixes my issue.
Windows 10 as Synergy server. Raspberry Pi running Raspbian as Synergy client.

Added altgr = meta under section: screens.

<!-- gh-comment-id:1289697336 --> @p145085 commented on GitHub (Oct 24, 2022): > To whoever tries to squash this bug, this looks suspicious: > > ``` > bool KeySequence::appendKey(int key, int modifiers) > { > if (m_Sequence.size() == 4) > return true; > > switch(key) > { > case Qt::Key_AltGr: > return false; > ... > ``` > > From lines 115-123 of KeySequence.cpp > > and I found some [documentation](https://doc.qt.io/archives/qt-4.8/qt.html) (find on page Key_AltGr) This fixes my issue. Windows 10 as Synergy server. Raspberry Pi running Raspbian as Synergy client. Added `altgr = meta` under `section: screens`.
Author
Owner

@erikderzweite commented on GitHub (Jan 26, 2023):

meta = altgr and altgr = shift fixes the issue for most Windows programs, but not for the WLS where I need it the most.

I have an ubuntu as a server and Windows 11 as a client. Anyone had the same issue?

<!-- gh-comment-id:1405263341 --> @erikderzweite commented on GitHub (Jan 26, 2023): meta = altgr and altgr = shift fixes the issue for most Windows programs, but not for the WLS where I need it the most. I have an ubuntu as a server and Windows 11 as a client. Anyone had the same issue?
Author
Owner

@pacc commented on GitHub (Mar 14, 2023):

Using Debian server and Windows 11 + WSL, swedish keyboard layout
meta = altgr and altgr = shift in the client section works for me now

  • be sure to export the conf file and do NOT edit ~/.config/Debauchee/Barrier.conf

In WSL terminals there were a bunch of ctrl + alt +'num' shortcuts that has to be deleted or changed
or they will override {[]} key presses.

<!-- gh-comment-id:1467791324 --> @pacc commented on GitHub (Mar 14, 2023): Using Debian server and Windows 11 + WSL, swedish keyboard layout meta = altgr and altgr = shift in the client section works for me now - be sure to export the conf file and do NOT edit ~/.config/Debauchee/Barrier.conf In WSL terminals there were a bunch of ctrl + alt +'num' shortcuts that has to be deleted or changed or they will override {[]} key presses.
Author
Owner

@federstedt commented on GitHub (Apr 30, 2023):

Using Debian server and Windows 11 + WSL, swedish keyboard layout meta = altgr and altgr = shift in the client section works for me now

* be sure to export the conf file and do NOT edit ~/.config/Debauchee/Barrier.conf

In WSL terminals there were a bunch of ctrl + alt +'num' shortcuts that has to be deleted or changed or they will override {[]} key presses.

Thanks, this solved my issues aswell!

<!-- gh-comment-id:1528978885 --> @federstedt commented on GitHub (Apr 30, 2023): > Using Debian server and Windows 11 + WSL, swedish keyboard layout meta = altgr and altgr = shift in the client section works for me now > > * be sure to export the conf file and do NOT edit ~/.config/Debauchee/Barrier.conf > > > In WSL terminals there were a bunch of ctrl + alt +'num' shortcuts that has to be deleted or changed or they will override {[]} key presses. Thanks, this solved my issues aswell!
Author
Owner

@ohbibi-glacava commented on GitHub (Sep 25, 2023):

This fix:

client:
    # shift = altgr # this actually messed up my "?{} keys so I disabled it
    altgr = shift

Worked for me with Arch Linux as server and W10 as client. One caveat: you cannot name your config file .barrier.conf and place it in your home directory otherwise barrier complains about wrong structure of the file. Therefore, I had to place it in ~/.config/barrrier.conf #1473.

Same for me, on Arch server to Windows client setup, just have to add altgr = shift on client section, to the server configuration file and it works perfectly.
Nothing to do on client configuration file, just one line on server configuration file.
Thank's

<!-- gh-comment-id:1733718811 --> @ohbibi-glacava commented on GitHub (Sep 25, 2023): > This fix: > > ``` > client: > # shift = altgr # this actually messed up my "?{} keys so I disabled it > altgr = shift > ``` > > Worked for me with Arch Linux as server and W10 as client. One caveat: you cannot name your config file `.barrier.conf` and place it in your home directory otherwise barrier complains about wrong structure of the file. Therefore, I had to place it in `~/.config/barrrier.conf` #1473. Same for me, on Arch server to Windows client setup, just have to add `altgr = shift` on client section, to the server configuration file and it works perfectly. Nothing to do on client configuration file, just one line on server configuration file. Thank's
Author
Owner

@mattia-donato commented on GitHub (Jun 13, 2024):

I would add just an info. I use barrier (server-Linux and client-Linux) I do not have problem. But I see the bug only in the Virtual Machine running Windows on it even if the system running it is fine. In other words: in a client system when I use altGr+ò (ITA keyboard) in Gnome gives properly @, instead just moving inside the window running Windows in a VM altGr+ò gives q.

<!-- gh-comment-id:2165608867 --> @mattia-donato commented on GitHub (Jun 13, 2024): I would add just an info. I use barrier (server-Linux and client-Linux) I do not have problem. But I see the bug only in the Virtual Machine running Windows on it even if the system running it is fine. In other words: in a client system when I use `altGr+ò` (ITA keyboard) in Gnome gives properly `@`, instead just moving inside the window running Windows in a VM `altGr+ò` gives `q`.
Author
Owner

@CasperBonde commented on GitHub (Oct 1, 2024):

the altgr = shift addition worked for me, but took a while to figure out how barrier uses the config files - hence it did not work initially. Also it only works in some applications like notepad++ and Eclipse. It does not work in Micrsoft programs like OneNote, but does work in other Microsoft programs like Outlook?

To use it you need to export you config by selecting "Save Configuration" - then open the file saved and add
altgr = shift
for each of the clients where you want this mapping - for example if you have multiple windows PC's.

Then in Barrier change the main UI to "Use Existing Configuration" and point to the file you modified.
image

<!-- gh-comment-id:2385373176 --> @CasperBonde commented on GitHub (Oct 1, 2024): the altgr = shift addition worked for me, but took a while to figure out how barrier uses the config files - hence it did not work initially. Also it only works in some applications like notepad++ and Eclipse. It does not work in Micrsoft programs like OneNote, but does work in other Microsoft programs like Outlook? To use it you need to export you config by selecting "Save Configuration" - then open the file saved and add `altgr = shift` for each of the clients where you want this mapping - for example if you have multiple windows PC's. Then in Barrier change the main UI to "Use Existing Configuration" and point to the file you modified. ![image](https://github.com/user-attachments/assets/648c1454-6a8b-4463-8421-a8a8d2aed0ff)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#74
No description provided.