xrdp icon indicating copy to clipboard operation
xrdp copied to clipboard

Copy/paste is not working on XRDP

Open Abinayasandhiya opened this issue 7 years ago • 63 comments

Hi,

We are using XRDP to connect our RedHat6 and RedHat7 machine. Sometimes we could face sudden issue in XRDP that copy/paste is not working form window to XRDP server. Please find below server and XRDP details:


[root@GUI ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo)

[root@GUI ~]$ rpm -qa | grep xrdp xorgxrdp-0.2.5-3.el7.x86_64 xrdp-debuginfo-0.9.5-1.el7.x86_64 xrdp-devel-0.9.5-1.el7.x86_64 xrdp-0.9.5-2.el7.x86_64


Anyone please help me to fix this issue.

Regards, Abinaya

Abinayasandhiya avatar Aug 07 '18 06:08 Abinayasandhiya

Can anyone help me on this.

Abinayasandhiya avatar Aug 13 '18 06:08 Abinayasandhiya

I think I also have experienced this lately on Ubuntu 18.04 (Xrdp version 0.9.5)

I't seems it usually occurs when a session goes in to the "locked" screen or a screensaver. When I reconnect with the desktop session not yet timed out, clipboard works normally. Is this something that could be fixed in xrdp ? Maybe Windows rdp client limitation?

Edit: The problem also occurs when connected to a xrdp session and the desktop timeouts to a screensaver... I'm beginning to think there is something that can be changed easily to fix this.

rkantos avatar Aug 23 '18 14:08 rkantos

Hi,

Can we get any help here.

Abinayasandhiya avatar Aug 29 '18 06:08 Abinayasandhiya

Having the same issue.... I have xrdp on Raspberry Raspbian and connect to it from Windows (default mstsc client).

Pasting works from Windows to Pi, but not backwards...

GGGunrunner avatar Aug 31 '18 16:08 GGGunrunner

Having the same issue.... I have xrdp on Raspberry Raspbian and connect to it from Windows (default mstsc client).

Pasting works from Windows to Pi, but not backwards...

Please attach at least your version information. I have had copy-paste working both ways with XRDP for at least since the last major issues was fixed. Now there just seems to be something happening with either the Windows client or XRDP that disables copy-paste one way or both ways when the connection has gone in to (sleep?) mode..

rkantos avatar Aug 31 '18 18:08 rkantos

@rkantos I have the same issue as you described, but in Centos 7.

As soon as the lock screen comes up, it is not possible to copy/paste between Windows 7 and my Centos desktop without first reconnecting via RDP.

Have you already found something?

Thanks,

godmuzguit7 avatar Sep 04 '18 17:09 godmuzguit7

Hello,

We could see latest version of XRDP in https://github.com/neutrinolabs/xrdp/releases page. On Bug fixes i could see the latest version fix COPY SLOW issue.

we are having COPY/PASTE issue (XRDP version is 0.9.6) from windows to RDP server and still issue is persist.

Can you confirm if we use this latest version of XRDP did it resolve COPY/PASTE issue.

Please provide some details here also this ticket seems opened like last 15 days.

Abinayasandhiya avatar Sep 11 '18 06:09 Abinayasandhiya

Hello, the issue is not resolved for the moment, even with the new version.

The issue is still there when the session is locked, the clipboard doesn't work. We have to reconnect in order to be able to paste data in the password field.

Thanks for your help,

godmuzguit7 avatar Sep 27 '18 19:09 godmuzguit7

Could we get a new title for this? Someone can probably come up with a more accurate one, but it seems the issue occurs after xrdp has gone idle. Thus I suggest “Copy paste not working after session has been idle or resumed”. Anyobody got an idea for debugging?

Hello, the issue is not resolved for the moment, even with the new version.

The issue is still there when the session is locked, the clipboard doesn’t work. We have to reconnect in order to be able to paste data in the password field.

Thanks for your help,

Why would you expect anything different? The isue still open, and thus unresolved...

rkantos avatar Sep 27 '18 20:09 rkantos

Can you confirm if we use this latest version of XRDP did it resolve COPY/PASTE issue.

I expected the new version to possibly resolve the issue, but it's not the case.

I would expect something different because nobody answered to @Abinayasandhiya about the new version.

Thanks,

godmuzguit7 avatar Sep 27 '18 20:09 godmuzguit7

Is there any possible way to fix this copy/paste issue between Linux RDP server and windows.

This is absolutely important issue which is need to be fix earlier, otherwise xrdp almost not usable.

Abinayasandhiya avatar Oct 08 '18 09:10 Abinayasandhiya

Hello All,

Finally copy/paste issue has been fixed when try to access our XRDP server using updated RDP client.

Update RDP client will have option like "Detect connection quality automatically" which will detect automatic quality for our connection.

Now my RDP client is updated to version 6.3.9600.16415. with new client version the copy/paste issue did not more occur.

Abinayasandhiya avatar Nov 15 '18 10:11 Abinayasandhiya

For more details:

image

This resolved our users issues.

Abinayasandhiya avatar Nov 15 '18 10:11 Abinayasandhiya

Sad:) Issue is solved in Win7 but the same issue on Win10.

Abinayasandhiya avatar Jan 24 '19 07:01 Abinayasandhiya

In my case, Windows10 to CentOS7.6, the clipboard is working only when connected in Xorg mode.

[root@localhost ~]# rpm -qa | grep xrdp
xrdp-0.9.9-1.el7.x86_64
xorgxrdp-0.2.9-1.el7.x86_64
xrdp-selinux-0.9.9-1.el7.x86_64

yxs avatar Feb 25 '19 05:02 yxs

Same issue here with windows 10 and xrdp 0.9.9

cmosguy avatar Apr 07 '19 03:04 cmosguy

I still consistently have this issue when connecting from the Microsoft Remote Desktop app (10.3.8 (1747)) on MacOS 10.15.4 to xorg on Ubuntu 19.04 LTS (xrdp 0.9.9-1, xorgxrdp 1:0.2.9-1): Clipboards on client and server simply do not get synced at all. All my software versions are pretty up-to-date. If I could get some hints on how to debug this I would be happy to provide more specific info.

nobias avatar Apr 01 '20 16:04 nobias

same issue here. server: ubuntu 18.04 fully updated, xrdp: 0.9.5-2 client: win 10 session: kde via xorgxrdp

k1moradi avatar Apr 02 '20 19:04 k1moradi

I have the same issue on Linux:

My server: Raspbian

$ apt show xrdp
Package: xrdp
Version: 0.9.9-1

My client: Debian

$ apt show krdc
Package: krdc
Version: 4:18.04.1-1+b1
Priority: optional
Section: net
Source: krdc (4:18.04.1-1)

alejandromunozes avatar Apr 30 '20 20:04 alejandromunozes

Same issue here

Z0pyrus avatar Apr 14 '21 21:04 Z0pyrus

Same issue Снимок экрана 2021-04-23 в 17 39 21

JohnnySaibot avatar Apr 23 '21 14:04 JohnnySaibot

so this issue is not fixed from two years lol

HACKE-RC avatar May 05 '21 08:05 HACKE-RC

Still hit this env = [Win 10 => XRDP 0.9.14]

seltsa avatar Jun 28 '21 13:06 seltsa

Hi,

After two year again same issue

Any help would be appreciate!!!

AbinayaSandhiyaM avatar Jun 29 '21 12:06 AbinayaSandhiyaM

@AbinayaSandhiyaM

I've just tried to reproduce this based on the information in the thread above, and I've failed to do so. I've used CentOS 8 with GNOME, xrdp 0.9.16 from RPM and the Windows 10 mstsc.exe client. Cut-and-paste for text works both ways. I can lock the screen and then unlock it and cut-and-paste still works. If I wait for the screen lock to start automatically, everything still seems OK.

Are you able to reproduce this? If so, please post:-

  • RDP client + OS
  • output of xrdp -v
  • server OS and desktop
  • method to reproduce the problem.

matt335672 avatar Jun 30 '21 14:06 matt335672

@matt335672

  1. Client: Windows 10 (mstsc.exe)
xrdp 0.9.14
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2018 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --build=x86_64-redhat-linux-gnu
      --host=x86_64-redhat-linux-gnu
      --program-prefix=
      --disable-dependency-tracking
      --prefix=/usr
      --exec-prefix=/usr
      --bindir=/usr/bin
      --sbindir=/usr/sbin
      --sysconfdir=/etc
      --datadir=/usr/share
      --includedir=/usr/include
      --libdir=/usr/lib64
      --libexecdir=/usr/libexec
      --localstatedir=/var
      --sharedstatedir=/var/lib
      --mandir=/usr/share/man
      --infodir=/usr/share/info
      --enable-fuse
      --enable-pixman
      --enable-painter
      --enable-vsock
      --with-socketdir=/run/xrdp
      build_alias=x86_64-redhat-linux-gnu
      host_alias=x86_64-redhat-linux-gnu
      CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
      LDFLAGS=-Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
      PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig

  Compiled with OpenSSL 1.1.1c FIPS  28 May 2019
  1. OS: CentOS Linux release 8.1.1911 Desktop: xfce4
  • it is reported also on Gnome / KDE - so the desktop is not a player here
  • it is reported also on machines with old Centos7 machines...
  1. Steps to reproduce the issue with blocked Copy/Paste
  • Open laptop => run mstsc.exe => connect to remote Linux machine
  • Work for few minutes... copy/paste works OK Now the tricky part 🥇
  • Go drink some coffee while leaving the RDP session connected - i.e. do not close anything.
  • In few minutes laptop falls asleep
  • Come back from a coffee break, touche keypad => laptop awakes
  • You see that the RDP session is disconnected => you simply run reconnect ==> session reopen just fine
  • You may continue from the same point you have left before the coffee break BUT in about 25% of cases you lose the ability to run Copy/PASTE

Just speculation - this sudden session disconnect of RDP session maybe leave XRDP in a state that it virtually still in the previous connection regarding Copy/Paste

seltsa avatar Jul 01 '21 09:07 seltsa

Exactly

Refreshing same session block the copy/paste

AbinayaSandhiyaM avatar Jul 01 '21 12:07 AbinayaSandhiyaM

Thanks both.

I'll build a CentOS 8 machine with xfce and give it a go.

The desktop may not be involved, but the login manager may be.

A couple more questions so I can get a target environment matching yours.

  • What login manager are you running on C8? Is it gdm3 or something else?
  • Can you give me the Windows 10 Power and Sleep settings you're using? I've got a rather old Acer laptop permanently plugged in which I can use for this.
  • Are there any unusual settings in xrdp.ini or sesman.ini?

I may need to come back to you if I can't get this reproduced easily.

matt335672 avatar Jul 01 '21 15:07 matt335672

One other thing - in addition to the info above (which I do need) are you running a screen saver too?

I'll have to use a later version of CentOS than the one you specify, as I suspect a lot of the EPEL stuff simply won't work with one that old and I'll need EPEL for xfce. I'll go for 8.4.2015

matt335672 avatar Jul 02 '21 13:07 matt335672

@matt335672

  1. Login Manager: standard CentoOS is gdm ( gdm-3.28.3-22.el8.x86_64 to be exact)

  2. W10 power&sleep settings: Screen turn off after 10 minutes, Sleep = PC goes sleep after 10 minutes 3 xrdp_text.txt sesman_text.txt

  3. Some of Centos8 machines runs with Screen saver off + Lock screen off (like the machine I connect most often) . Some with both enabled. The "Copy/Paste" issue happens in both cases...

seltsa avatar Jul 05 '21 17:07 seltsa