Git Product home page Git Product logo

xorgxrdp's Introduction

Build Status

Current Version: 0.2.18

xorgxrdp

Overview

xorgxrdp is a collection of modules to be used with a pre-existing X.Org install to make the X server act like X11rdp. Unlike X11rdp, you don't have to recompile the whole X Window System. Instead, additional modules are installed to a location where the existing Xorg installation would pick them.

xorgxrdp is to be used together with xrdp and X.Org Server. It is pretty useless using xorgxrdp alone.

xorgxrdp overview

Features

xorgxrdp supports screen resizing. When an RDP client connects, the screen is resized to the size supplied by the client.

xorgxrdp uses 24 bits per pixel internally. xrdp translates the color depth for the RDP client as requested. RDP clients can disconnect and reconnect to the same session even if they use different color depths.

Compiling

Pre-requisites

To compile xorgxrdp from the packaged sources, you need basic build tools - a compiler (gcc or clang) and the make program. Additionally, you would need nasm (Netwide Assembler) and the development package for X Window System (look for xserver-xorg-dev, xorg-x11-server-sdk or xorg-x11-server-devel in your distro).

To compile xorgxrdp from a checked out git repository, you would additionally need autoconf, automake, libtool and pkgconfig.

Get the source and build it

xorgxrdp requires a header file from xrdp. So it's preferred that xrdp is compiled and installed first.

If compiling from the packaged source, unpack the tarball and change to the resulting directory.

If compiling from a checked out repository, run ./bootstrap first to create configure and other required files.

Then run following commands to compile and install xorgxrdp:

./configure
make
sudo make install

If you don't want to install xrdp first, you can compile xorgxrdp against xrdp sources by specifying XRDP_CFLAGS on the configure command line.

./configure XRDP_CFLAGS=-I/path/to/xrdp/common

Usage

When logging in to xrdp using an RDP client, make sure to select Xorg on the login screen. xrdp will tell xrdp-sesman to start Xorg with the configuration file that activates the xorgxrdp modules.

Make sure your system has the X.Org server (typically xserver-xorg-core or xorg-x11-server-Xorg package). Check that Xorg is in the standard path (normally in /usr/bin).

Contributing

First off, thanks for taking your time for improve xorgxrdp.

If you contribute to xorgxrdp, checkout devel branch and make changes to the branch. Please make pull requests also versus devel branch.

To debug xorgxrdp, you can run Xorg with xorgxrdp manually:

Xorg :10 -config xrdp/xorg.conf

See also the tests directory for the tests that exercise xorgxrdp modules.

xorgxrdp's People

Contributors

a1346054 avatar akarl10 avatar akirapenguin avatar drwilly avatar flintriversystems avatar itamarjp avatar jat001 avatar jsorg71 avatar jterry75 avatar matt335672 avatar metalefty avatar mirabilos avatar mrichar1 avatar nexarian avatar okhowang avatar pieska avatar proski avatar seflerz avatar speidy avatar transmogrifix avatar trishume avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xorgxrdp's Issues

multihead bug ?

From 6fcf7a2b46dcfb0f20c40335314a9da2de34159b Mon Sep 17 00:00:00 2001
From: smooker [email protected]
Date: Fri, 16 Sep 2016 22:53:00 +0300
Subject: [PATCH] ugly patch for multihead systems


xrdpdev/xrdpdev.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/xrdpdev/xrdpdev.c b/xrdpdev/xrdpdev.c
index 259f785..3ee452f 100644
--- a/xrdpdev/xrdpdev.c
+++ b/xrdpdev/xrdpdev.c
@@ -149,13 +149,16 @@ rdpPreInit(ScrnInfoPtr pScrn, int flags)
LLOGLN(0, ("rdpPreInit:"));
if (flags & PROBE_DETECT)
{

  •   LLOGLN(0, ("rdpPreInit1:"));
     return FALSE;
    
    }
  • if (pScrn->numEntities != 1)
  • {
  •    return FALSE;
    

- }

+// if (pScrn->numEntities != 1)
+// {
+// LLOGLN(0, ("rdpPreInit3:"));
+// return FALSE;
+// }

  • LLOGLN(0, ("rdpPreInit4:"));
    rdpAllocRec(pScrn);
    dev = XRDPPTR(pScrn);

2.9.3

Non-starter on SmartOS

Greetings,

I realize that there is no explicit support for SmartOS or the other Illumos-based disributions, but I was trying to get xrdp + xorgxrdp running in a SmartOS zone. On SmartOS there is no vncserver available and my attempts at compiling tigervnc are a steaming pile of fail.

I was successful in compiling both repositories with minimal change to the sources. I can start xrdp and connect to it with Microsoft Remote Desktop on macOS. I get the familiar login window, and I select 'Xorg' from the menu. If I enter an incorrect password I get the dialog telling me there is a problem. If I enter the correct password the window disappears, and in the xorg logfile I see this at the end:

[849936.329] rdpClientConRecv: g_sck_recv failed(returned 0)
[849936.329] rdpClientConDisconnect:
[849936.329] rdpClientConDisconnect: clientCon removed from dev list
[849936.329] rdpClientConRecvMsg: error
[849936.329] rdpClientConCheck: rdpClientConGotData failed

The full log is here: xorgxrdp.10.log.txt

I traced this in the source and added some debug statements--it seems that errno corresponds to EAGAIN 'resource unavailable' and occasionally EINTR, though my C debugging skills are terribly rusty.

I'm hoping there is a simple fix. Any ideas?

Desktop not showing up

I'm updating my servers with latest xorg, and testing several client
I got the following issue:

  • client is xfreerdp
  • server is current git with current xorgxrdp with defaults options (+ --enable-fuse)

Starting the client with "xfreerdp /v:server" makes the desktop showing.
Starting the client with "xfreerdp /rfx /v:server" makes the desktop not appear.
xrdp-sesman is flooded with

rdpDeferredUpdateCallback: reschedual rect_id 1 rect_id_ack 0

(All processes are running, if I reconnect with xfreerdp /v:server the sessions is reconnected correctly)

Unable to reconnect with large screens (RFX related)

Hello
with a patch allowing to reconnect to same session with xrandr while using the xorgrdp module, I've found that (using rdesktp and xfreerdp)
Using xrdp and xorgxrdp git version from today branch devel
Reconnecting to a session from different size ie. from 800x600 to 1920x1200 is ok with the command line (with mixing client!):
rdesktop -g 800x800
rdesktop -g 1920x1200
xfreerdp /size:800x600
xfreerdp /size:1920x1200

for If I add the /rfx switch for xfreerdp, I'm unable to reconnect to a session if the geometry is over 1800x1200 , xrdp-sesman loops with
rdpDeferredUpdateCallback: reschedual rect_id 1 rect_id_ack 0

Full log for
xfreerdp /rfx /size:1600x1000
kill xfreerdp
xfreerdp /rfx /size:1800x1200
:

[20150819-07:31:35] [INFO ] ++ reconnected session: username blindaue, display :20.0, session_pid 28792, ip xxxxxx:58909 - socket: 8
[20150819-07:31:35] [INFO ] An established connection closed to endpoint: 127.0.0.1:33355 - socket: 8
rdpClientConGotConnection:
rdpClientConGotConnection: g_sck_accept ok new_sck 25
rdpClientConGotConnection: adding only clientCon
rdpClientConProcessMsgVersion: version 0 0 0 1
rdpClientConProcessScreenSizeMsg: set width 1800 height 1200 bpp 32
rdpClientConProcessScreenSizeMsg: shmemid 76120112 shmemptr 0x7f356c189000
rdpRRScreenSetSize: width 1800 height 1200 mmWidth 457 mmHeight 305
rdpRRGetInfo:
  screen resized to 1800x1200
rdpClientConProcessScreenSizeMsg: RRScreenSizeSet ok=[1]
rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1800 cy 1200
rdpClientConProcessMsgClientInfo:
  got client info bytes 5392
  jpeg support 0
  offscreen support 1
  offscreen size 7864320
  offscreen entries 2000
rdpClientConProcessMsgClientInfo: got RFX capture
  cap_width 1856 cap_height 1216
rdpClientConProcessMsgClientInfo: shmemid 76152880 shmemptr 0x7f356b0af000 bytes 9027584
  client supports glyph cache but server disabled
  client can do offscreen to offscreen blits
  client can do new(color) cursor
  client can not do multimon
rdpRRSetRdpOutputs: numCrtcs 1
rdpRRSetRdpOutputs: numOutputs 1
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetInfo:
rdpRRGetInfo:
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetInfo:
rdpRRGetInfo:
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpClientConSendMsg: DEBUG len 4460 count 3
rdpClientConSendMsg: DEBUG len 3226 count 3
rdpRRGetPanning: 0x7f357bc06470
rdpRRGetPanning: 0x7f357bc06470
rdpDeferredUpdateCallback: reschedual rect_id 1 rect_id_ack 0
rdpDeferredUpdateCallback: reschedual rect_id 1 rect_id_ack 0
rdpDeferredUpdateCallback: reschedual rect_id 1 rect_id_ack 0
rdpDeferredUpdateCallback: reschedual rect_id 1 rect_id_ack 0
...

X programs crash when reconnecting to xrdp with screen resize

I've been running xrdp-0.8 with X11rdp on Ubuntu 14.04 for more than a year and now I'm testing xrdp 0.9.2 with xorgxrdp 0.2.2 built from sources. It's mostly fine, except I noticed that when reconnecting to a persistent session but with a different screen geometry, some GUI processes inside the session crash at the moment of reconnecting and it often includes window manager, so the whole session goes down.

I tested switching from 800x600 to 1024x768 and back and it takes 2-5 reconnects to kill the session. I tried xrdp-0.9.2 with X11rdp that I built back then in xrdp-0.8 times, and it works fine. Both Mac and Win clients are affected. I tried various colour depths and it makes no difference. Reconnecting without resizing also works fine.

After the crash .xsession-errors typically contain "BadRROutput" error:

Fri Jul  7 14:09:07 UTC 2017
Fri Jul  7 14:09:08 UTC 2017
Fri Jul  7 14:09:09 UTC 2017
The program 'x-terminal-emulator' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRROutput (invalid Output parameter)'.
  (Details: serial 5861 error_code 147 request_code 140 minor_code 9)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
The program 'x-session-manager' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRROutput (invalid Output parameter)'.
  (Details: serial 236 error_code 147 request_code 140 minor_code 9)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
The program 'wrapper-1.0' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRROutput (invalid Output parameter)'.
  (Details: serial 259 error_code 147 request_code 140 minor_code 9)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

(xfdesktop:5682): libxfce4ui-WARNING **: ICE I/O Error

(xfdesktop:5682): libxfce4ui-WARNING **: Disconnected from session manager.
The program 'wrapper-1.0' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRROutput (invalid Output parameter)'.
  (Details: serial 292 error_code 147 request_code 140 minor_code 9)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

(xfce4-panel:4752): libxfce4ui-WARNING **: ICE I/O Error

(xfce4-panel:4752): libxfce4ui-WARNING **: Disconnected from session manager.
xfwm4: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
xfsettingsd: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
xfce4-panel: Fatal IO error 4 (Interrupted system call) on X server :10.0.
xfdesktop: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
Fri Jul  7 14:09:10 UTC 2017
Fri Jul  7 14:09:11 UTC 2017
Fri Jul  7 14:09:12 UTC 2017

Xorg log attached: xorgxrdp.10.log.txt
Sesman and xrdp logs does not have anything special.

Any suggestions welcome.

Thanks!

xorgxrdp fails to build - missing fontutil.h

I am on Ubuntu 16.04..

All of my recent builds of xorgxrdp from source fail due to a missing fontutil.h
I am not sure if that is missing from xorgxrdp or freerdp ?? not smart enough to know

But myy work-around is:

$ sudo touch /usr/include/X11/fonts/fontutil.h

then manually add content to fontutil.h

I used:

https://www.apt-browse.org/browse/ubuntu/trusty/main/i386/libxfont-dev/1:1.4.7-1/file/usr/include/X11/fonts/fontutil.h

this corrects the problem and allows xorgxrdp to correctly build/make/make install

Merge devel, update submodule

How would you like to merge devel into master and update xorgxrdp submodule in xrdp repository?

The main differences between devel and master are f745376 and a7de845. I believe these are convenient for most users.

Compile error on Ubuntu 16.04 amd64

Making all in module
make[2]: Entering directory '/home/veart/Downloads/xrdp/xorgxrdp/module'
/bin/bash ../libtool --mode=compile --tag NASM ./nasm_lt.sh nasm -felf64 -DELF -D__x86_64__ -I. -I. amd64/yv12_to_rgb32_amd64_sse2.asm -o amd64/yv12_to_rgb32_amd64_sse2.lo
libtool: error: ignoring unknown tag NASM
libtool: compile: ./nasm_lt.sh nasm -felf64 -DELF -D__x86_64__ -I. -I. amd64/yv12_to_rgb32_amd64_sse2.asm -fPIC -DPIC -o amd64/.libs/yv12_to_rgb32_amd64_sse2.o
nasm -felf64 -DELF -D__x86_64__ -I./ -I./ amd64/yv12_to_rgb32_amd64_sse2.asm -DPIC -o amd64/.libs/yv12_to_rgb32_amd64_sse2.o
amd64/yv12_to_rgb32_amd64_sse2.asm:256: fatal: expected `%endif' before end of file
Makefile:863: recipe for target 'amd64/yv12_to_rgb32_amd64_sse2.lo' failed
make[2]: *** [amd64/yv12_to_rgb32_amd64_sse2.lo] Error 1
make[2]: Leaving directory '/home/veart/Downloads/xrdp/xorgxrdp/module'
Makefile:410: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/veart/Downloads/xrdp/xorgxrdp'
Makefile:342: recipe for target 'all' failed
make: *** [all] Error 2

gpg key used to sign the releases not found on key servers

Hi dear @metalefty . While trying to package xorgxrdp for openSUSE, I found myself unable to verify with the gpg key you used to sign the tarball because the key is not found on the default key server (keys.gnupg.net). Would you please share your key on the key server, or direct me if it's already uploaded elsewhere? Thank you.

xrdp error on centos7.4

Testing xrdp on centos7.4 I got the following error
(xrdp from git master, xrorgxrdp from git master)

starting Xorg, I get the following in .xorgxrdp.XX.log:

[20171122-21:22:13] [ERROR] X error [BadWindow (invalid Window parameter)](3) opcodes 18/0 resource 0x1400166
[20171122-21:22:13] [ERROR] X error [BadWindow (invalid Window parameter)](3) opcodes 25/0 resource 0x1400166
[20171122-21:22:14] [ERROR] X error [BadWindow (invalid Window parameter)](3) opcodes 18/0 resource 0x14001ab
[20171122-21:22:14] [ERROR] X error [BadWindow (invalid Window parameter)](3) opcodes 25/0 resource 0x14001ab
[20171122-21:22:14] [ERROR] X error [BadWindow (invalid Window parameter)](3) opcodes 18/0 resource 0x14001ab
[20171122-21:22:14] [ERROR] X error [BadWindow (invalid Window parameter)](3) opcodes 25/0 resource 0x14001ab

And gnome-session-daemon makes an error at same time
traps: gnome-settings-[12123] trap divide error ip:7f56b1f74979 sp:7ffeb71be370 error:0 in libcolor.so[7f56b1f6d000+d000]

Some non-common entries in .xorgxrdp.XX.log:

[  2236.189] rdpRRCrtcGetGamma: 0x55a877f4b080 (nil) (nil) (nil)
[  2238.371] rdpkeybChangeKeyboardControl:
[  2238.371] rdpkeybChangeKeyboardControl: autoRepeat off
[  2238.371] rdpkeybChangeKeyboardControl:
[  2238.371] rdpkeybChangeKeyboardControl: autoRepeat off
[  2238.626] rdpRRCrtcGetGamma: 0x55a877f4b080 0x55a87825acd0 0x55a878261f70 0x55a878261fa0

On the Russian keyboard layout, when you press delete key, the screenshot is taken

Hello!
Sorry for my english!
When I press the delete key in an xrdp session (rus layout km-00000419.ini), a screen shot is taken as if the key prtscr was pressed.
Please help solve the problem. I'm not very versed in Linux. Looked at the output of the xmodmap -pk command locally and through the xrdp session and got even more confused, the key codes do not match the codes for example from here https://www.w3.org/2002/09/tests/keys.html.

default

I tried to swap keys 107 and 111 to Key107 = 65377: 0 and Key111 = 65535: 127 in /etc/xrdp/km-00000419.ini file. But this did not work.

UPDATE: I'm using gnome 3. I removed the hotkeys from the screenshot and the delete key is working.
When i clear hotkeys i cant add it from xrdp session, nothing happenes when i press prtscr key (layout not matter).

./configure on gentoo...

Hi,
I downloaded made and installed xrdp from https://github.com/neutrinolabs/xrdp/releases/download/v0.9.6/xrdp-0.9.6.tar.gz

I have trouble starting Xorg,
so i found neutrinolabs/xorgxrdp.

When trying to ./configure xorgxrdp i get this error:
configure: error: Package requirements (xrdp >= 0.9.0) were not met:

No package 'xrdp' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

I have xrdp in /usr/local/sbin (that isn't in the $PATH),
so i symlinked it at /usr/sbin
but i got the same error.

Someone can please help me?

Thank you :)

segfault around (dis)connection

Using devel head f745376.
X.Org X Server 1.17.4.
10.2-RELEASE-p9 FreeBSD.

[  7644.110] rdpDeferredUpdateCallback: reschedual rect_id 69522 rect_id_ack 69521
[  7695.951] rdpClientConSendMsg: overrun error len 316256 count 2
[  7695.955] rdpClientConSend: g_tcp_send failed(returned -1)
[  7695.955] rdpClientConDisconnect:
[  7695.955] rdpClientConDisconnect: clientCon removed from dev list
[  7695.955] rdpClientConSendMsg: error in rdpup_send_msg
[  7695.955] rdpClientConSendPending: rdpClientConSendMsg failed
[  7695.955] (EE) Segmentation fault at address 0x81e677540
[  7695.956] (EE)
Fatal server error:
[  7695.956] (EE) Caught signal 11 (Segmentation fault). Server aborting
[  7695.956] (EE)
[  7695.956] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[  7695.956] (EE) Please also check the log file at "/var/log/Xorg.20.log" for additional information.
[  7695.956] (EE)
[  7695.956] rdpmouseControl: what 4
[  7695.956] rdpkeybControl: what 4
[  7695.956] rdpLeaveVT:
[  7695.956] (EE) Server terminated with error (1). Closing log file.

Buildfailure on Xorg 20 using meson

Xorg 20 made the XvExtension optional also for meson. But even when enabling xv=true when building, ./include/xorg-server.h.meson.in does only #mesondefine XvExtension, while the old autoconf based buildsystem did #define XvExtension 1, which results in an error when building:

Making all in xrdpdev
make[2]: Entering directory '/home/leonard/.cache/aurman/xorgxrdp/src/xorgxrdp-0.2.6/xrdpdev'
  CC       xrdpdev.lo
xrdpdev.c: In function ‘rdpScreenInit’:
xrdpdev.c:471:40: error: operator '&&' has no right operand
 #if defined(XvExtension) && XvExtension
                                        ^
make[2]: *** [Makefile:457: xrdpdev.lo] Error 1
make[2]: Leaving directory '/home/leonard/.cache/aurman/xorgxrdp/src/xorgxrdp-0.2.6/xrdpdev'
make[1]: *** [Makefile:425: all-recursive] Error 1
make[1]: Leaving directory '/home/leonard/.cache/aurman/xorgxrdp/src/xorgxrdp-0.2.6'
make: *** [Makefile:357: all] Error 2

Either we should only check for XvExtension being defined and not it's value or file a bug against upstream Xorg to restore old/compatible behavior.

AddEnabledDevice and RemoveEnabledDevice symbols missing on Fedora 25

I can compile xorgxrdp on Fedora 25 with some warnings, but I cannot use it without changing the code. Two symbols are unresolved: AddEnabledDevice and RemoveEnabledDevice.

Those symbols are not in the headers. I looked up those symbols, and I see that other Xorg drivers migrated to x86AddEnabledDevice and x86RemoveEnabledDevice. But those drivers were already using the InputInfoPtr type (a pointer to struct _InputInfoRec) consumed by the xf86* functions.

That is not the case for xorgxrdp. The file using AddEnabledDevice and RemoveEnabledDevice, rdpClientCon.c, doesn't even seem to deal much with input drivers.

It's interesting that AddEnabledDevice is called twice, but RemoveEnabledDevice only once. I replaced those calls with log messages. xorgxrdp started working for me. I see that both calls to AddEnabledDevice are made. As for RemoveEnabledDevice, it is not called as all if logging out from the session. It is called once if disconnecting without logging out.

Those function calls are present in X11rdp as well. They were present in the first commit that introduced X11rdp.

I suspect that using those functions on sockets is not needed, even for older X11 API.

xorg header version: xorg-x11-server-devel-1.19.0-0.3.20161026.fc25.x86_64

Invalid memory reads and writes

Hi,

I have run a static analysis tool on xorgxrdp which has shown up a few issues that I hope you don’t mind me reporting. Most of them relate to multiple invalid memory reads and writes, with most of them related to the same code pattern.

They relate to the use of rdpClientConPreCheck() and the fact that calling this function can free ‘clientCon’ and ‘clientCon->out_s’, and then these are used after the call to rdpClientConPreCheck().

For example:

Within rdpClientConSetOpcode() (rdpClientCon.c) the following occurs:

rdpClientConPreCheck ( dev, clientCon, 6 ); <--- clientCon->out_s and clientCon can both be free’d
out_uint16_le ( clientCon->out_s, 14 ); <--- clientCon and clientCon->out_s both accessed

It looks like most, if not all, of these occur under an error condition which causes rdpClientConDisconnect() to be called. This is the function that actually free’s the memory, and all subsequent accesses to this memory are flagged by the tool.

An example of an invalid memory write is within rdpClientConPreCheck() itself after the error condition has occurred and the following line is executed:

clientCon->count = 0;

Additionally, the tool is also reporting an array overrun in rdpmouseControl() when the function InitPointerDeviceStruct() is called. It is complaining that passing 9 for the numButtons argument with a map array of size 9 overruns the array. I suspect this is because InitButtonClassDeviceStruct(), which is called by InitPointerDeviceStruct(), performs a loop from 1 to numButtons and dereferences the array at map[9].

Xorg crashes when closing xfreerdp session in xrdp

I encountered a strange issue with xrdp.

Setup is as follows:

opening a session a with mstc (win7) to xrdp (xorgrdp) on rhel7.
opening a session b with xfreerdp 1.0 or 2.0 in session a to a windows host.
closing session b closes session b AND session A will be killed by segfault in Xorg.

xorgxrdp.log

support xrdp-dis

I think neutrinolabs/xrdp#440 should be done in xorgxrdp.

xrdp-dis does not disconnect the session because "not in an xrdp session" due to file /tmp/.xrdp/xrdp_disconnect_display_ not present.

Installing xrdp and xorgxrdp on MacOS Sierra

Hi,

I looked into compiling and installing xrdp on MacOS 10.12 since our current terminal server setup on Mac OSX El Capitan is not supported anymore. I had to differ from the wiki how-to.
I installed xcode and the command line tools, then installed homebrew and xquartz (not sure why I need this here). Also I needed some gnu tools like autoconf, automake, gettext, libtool, tree, wget, pkg-config. But homebrew does not link openssl anymore. Instead I installed libressl and configured xrdp like this:
./configure -prefix=/opt/xrdp -sysconfdir=/etc -localstatedir=/var PKG_CONFIG_PATH=/usr/local/opt/libressl/lib/pkgconfig

After make and make install I had to change the xrdp.ini:

    ...
    [vnc-any]
    name=vnc-any
    lib=libvnc.dylib #.dylib instead .so
    ip=ask127.0.0.1
    port=ask5900
    username=na
    password=ask 
    ...

With these changes I could run xrdp.sh successful and login via rdp-client. That's quite good and it works with multiple sessions of different users, but VNC still sucks. So I was really interested in xorgxrdp on MacOS as written in the wiki. After installing the package nasm from homebrew, I could compile and install xorgxrdp. I changed the ini entry for xorg as well to .dylib but I always get a login failed for display 0 message at login with rdp.

I used X11 forwarding on MacOS before and I am aware of its limitation. Is it even possible to get xorgxrdp working on MacOS with Aqua desktop?

what is correct syntax for xrdp.ini to use xorgxrdp?

How do I ignite Xorg start instead of X11rdp?
this section in xrdp.ini doesn't work - still xrdp-sesman try to start X11rdp!

[xrdp8]
name=sesman-Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
xserverbpp=24
code=10

incorrect size or position of the screen(?)

problems using autohide in the fluxbox toolbar:
when it is positioned at the top or on the left it works well.
when it is positioned at the bottom or at the right it does not reappear.

Connect to existing X11 session?

Does xrdp/xorgxrdp allow me to connect to an existing console/login X11 session?
Similar to what Gnome's VNC server Vino does

xorgxrdp graph

xorgxrdp only use the llvmpipe ,but my graph is AMD Raven,so the remote is very slow,is any way to change it?
thanks developer

Verify PGP key

Well this is not an actual issue about the program...
I've noticed that this project also provide PGP signatures (the .asc file) for releases, however I cannot easily verify the public key (which I obtained from keyserver) belongs to the maintainer (I got Koichiro IWAO <[email protected]> and I can only guess it is @metalefty).
So I'm asking if you can make/declare your public key more visible, either a news post on the main website or just include it in the repository.

Thank you very much.

Configure error on RHEL 6

I've been using xrdp with a separate x11rpd build and wanted to try the xorgxrdp driver to see if I could get better performance.

However, I am unable to get back the ./configure step

Here is a small list of my packages from yum

$ sudo yum list | grep xorg-x11-server-Xorg
xorg-x11-server-Xorg.x86_64     1.15.0-25.1.el6_6  @rhel-x86_64-server-6        
mwuser@UTLXDEVX038:/apps/xrdp-devel/xorgxrdp$ sudo yum list | grep xorg-x11-server     
xorg-x11-server-Xorg.x86_64     1.15.0-25.1.el6_6  @rhel-x86_64-server-6        
xorg-x11-server-common.x86_64   1.15.0-25.1.el6_6  @rhel-x86_64-server-6        
xorg-x11-server-devel.x86_64    1.15.0-25.1.el6_6  @rhel-x86_64-server-optional-6
xorg-x11-server-utils.x86_64    7.7-2.el6          @rhel-x86_64-server-6        
xorg-x11-server-Xdmx.x86_64     1.15.0-25.1.el6_6  rhel-x86_64-server-optional-6
xorg-x11-server-Xephyr.x86_64   1.15.0-25.1.el6_6  rhel-x86_64-server-6         
xorg-x11-server-Xnest.x86_64    1.15.0-25.1.el6_6  rhel-x86_64-server-optional-6
xorg-x11-server-Xvfb.x86_64     1.15.0-25.1.el6_6  rhel-x86_64-server-optional-6
xorg-x11-server-devel.i686      1.15.0-25.1.el6_6  rhel-x86_64-server-optional-6
xorg-x11-server-source.noarch   1.15.0-25.1.el6_6  rhel-x86_64-server-optional-6
$ 

And here is the output from ./bootstrap and ./configure

$ ./bootstrap 
/usr/local/bin/autoconf
/usr/local/bin/automake
/usr/local/bin/libtool
/usr/local/bin/pkg-config
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/local/bin/autoconf --force
./cautoreconf: running: /usr/local/bin/autoheader --force
onfautoreconf: running: automake --add-missing --copy --force-missing
giautoreconf: Leaving directory `.'
mwuser@UTLXDEVX038:/apps/xrdp-devel/xorgxrdp$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for an ANSI C-conforming const... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking xorg/xorg-server.h usability... yes
checking xorg/xorg-server.h presence... yes
checking for xorg/xorg-server.h... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG_SERVER... configure: error: Package requirements (xorg-server >= 0) were not met:

No package 'xorg-server' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_SERVER_CFLAGS
and XORG_SERVER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Any help is appreciated.

Crash with large updates

I have a reproductible crash with xorgxrdp:
with rdesktop or xfreerdp:
geometry 1900x1100
xcfe4 desktop from wheezy
launch screensaver "galaxy"
(/usr/lib/xscreensaver/galaxy) from xscreensaver-data package
Here is the backtrace:

[351875.954] rdpDeferredUpdateCallback: reschedual rect_id 38 rect_id_ack 37
[351876.049] rdpClientConSendMsg: overrun error len 38472 count 2
[351876.153] rdpClientConSendMsg: overrun error len 44016 count 2
[351876.218] rdpClientConSendMsg: overrun error len 43712 count 2
[351876.282] rdpClientConSendMsg: overrun error len 44232 count 2
[351876.347] rdpClientConSendMsg: overrun error len 44152 count 2
[351876.404] rdpClientConSendMsg: overrun error len 43936 count 2
[351876.462] rdpClientConSendMsg: overrun error len 43672 count 2
[351876.515] rdpClientConSendMsg: overrun error len 44104 count 2
[351876.566] rdpClientConSendMsg: overrun error len 43960 count 2
[351876.618] rdpClientConSendMsg: overrun error len 43736 count 2
[351876.669] rdpClientConSendMsg: overrun error len 43792 count 2
[351876.722] rdpClientConSendMsg: overrun error len 42856 count 2
[351876.774] rdpClientConSendMsg: overrun error len 43048 count 2
[351876.826] rdpClientConSendMsg: overrun error len 43288 count 2
[351876.880] rdpClientConSendMsg: overrun error len 43400 count 2
351876.918
351876.919 Backtrace:
351876.919 0: Xorg (xorg_backtrace+0x56) [0x7f9efa859d46]
351876.919 1: Xorg (0x7f9efa6a3000+0x1baf29) [0x7f9efa85df29]
351876.919 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7f9ef8397000+0x35180) [0x7f9ef83cc180]
351876.919 3: Xorg (dixLookupResourceByClass+0x88) [0x7f9efa71e898]
351876.919 4: Xorg (dixLookupDrawable+0x3c) [0x7f9efa6fea9c]
351876.919 5: Xorg (0x7f9efa6a3000+0x52c39) [0x7f9efa6f5c39]
351876.919 6: Xorg (0x7f9efa6a3000+0x573f7) [0x7f9efa6fa3f7]
351876.919 7: Xorg (0x7f9efa6a3000+0x5b596) [0x7f9efa6fe596]
351876.919 8: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf5) [0x7f9ef83b8b45]
351876.919 9: Xorg (0x7f9efa6a3000+0x4590e) [0x7f9efa6e890e]
351876.919
351876.919 Segmentation fault at address 0x0

I've tried the master and the devel branch

compile fails on openSUSE

Hi, I have followed the instructions for compiling xorgxrdp, but I have this issue:

cristiano@VD1SL001 [~/Downloads/xorgxrdp-0.2.0]$ LANG=C make
make  all-recursive
make[1]: Entering directory '/home/cristiano/Downloads/xorgxrdp-0.2.0'
Making all in module
make[2]: Entering directory '/home/cristiano/Downloads/xorgxrdp-0.2.0/module'
  CC       rdpDraw.lo
In file included from rdpDraw.c:40:0:
/usr/include/xorg/dixfontstr.h:30:33: fatal error: X11/fonts/libxfont2.h: No such file or directory
 #include <X11/fonts/libxfont2.h>
                                 ^
compilation terminated.
make[2]: *** [Makefile:646: rdpDraw.lo] Error 1
make[2]: Leaving directory '/home/cristiano/Downloads/xorgxrdp-0.2.0/module'
make[1]: *** [Makefile:422: all-recursive] Error 1
make[1]: Leaving directory '/home/cristiano/Downloads/xorgxrdp-0.2.0'
make: *** [Makefile:354: all] Error 2

I have tried installing various additional devel packages but I always have the same error, despite the fact that the configure command reports that everything is OK.
Here are my installed packages:

cristiano@VD1SL001 [~/Downloads/xorgxrdp-0.2.0]$ LANG=C zypper se -i xorg 
Loading repository data...
Reading installed packages...

S | Name                   | Summary                                                                        | Type   
--+------------------------+--------------------------------------------------------------------------------+--------
i | xorg-cf-files          | Data files for the imake utility                                               | package
i | xorg-scripts           | Miscellaneous scripts for X                                                    | package
i | xorg-sgml-doctools     | Set of SGML entities and XML/CSS style sheets for building X.org documentation | package
i | xorg-x11               | Compatibility metapackage for X.Org sample applications                        | package
i | xorg-x11-Xvnc          | TigerVNC implementation of Xvnc                                                | package
i | xorg-x11-driver-input  | Compatibility metapackage for X.Org input drivers                              | package
i | xorg-x11-driver-video  | Compatibility metapackage for X.Org video drivers                              | package
i | xorg-x11-essentials    | Compatibility metapackage for X.Org core applications                          | package
i | xorg-x11-fonts         | X.Org fonts                                                                    | package
i | xorg-x11-fonts-core    | Core Fonts for X.Org                                                           | package
i | xorg-x11-libX11-ccache | X                                                                              | package
i | xorg-x11-server        | X                                                                              | package
i | xorg-x11-server-sdk    | X                                                                              | package
i | xorg-x11-server-source | Source code of X.Org server                                                    | package
i | xorg-x11-util-devel    | Compatibility metapackage for X11 development                                  | package

This is on my openSUSE Tumbleweed.

Any help?
Thank you in advance
Cris

root rights when using the xorg driver

Hello Team,
i can successfull start a xrdp session over xorgxrdp. But i musst in this session type in so many authorisations for root. It beginns after the login, i have to authentication 3 times some things that needs the root authentication. If i would start a KVM i have to do this 16 times. If i login with the same user directly at the PC i have to do this not.
The OS is:
NAME="Red Hat Enterprise Linux Workstation"
VERSION="7.5 (Maipo)"

Installed xrdp versions:
$ rpm -qa |grep xrdp
xorgxrdp-0.2.7-1.el7.x86_64
xrdp-0.9.7-1.el7.x86_64

Xrdp conf:

xrdp.ini
[Xorg]
name=Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
code=20

sesman.ini
param=Xorg
; Leave the rest paramaters as-is unless you understand what will happen.
param=-config
param=xrdp/xorg.conf
param=-noreset
param=-nolisten
param=tcp
param=-logfile
param=.xorgxrdp.%s.log

Can you give me a tip what i have to setup that i have to do this not? If you need some more logs let me know which one.

autorepeat

autorepeat is supposed to be turned off because it's handled by the client. It some cases, it's not turned off.

Session crashed on reconnect

When reconnecting to a xorgxrdp session running on Ubuntu 16.04 with X.Org X Server version 1.18.4 the session tries to load (cursor and blue background) but crashes after a few seconds. This might be related to multi-monitor usage.

This is the xrdp-sesman log file:

[20180606-09:28:22] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20180606-09:28:47] [CORE ] window manager (pid 17699) did exit, cleaning up session
[20180606-09:28:47] [INFO ] calling auth_stop_session and auth_end from pid 17696

xorgxrdp log file:

(This first message below appears many more times above)
[1576949.121] rdpRRCrtcSetGamma:
[1576949.121] rdpRRCrtcSetGamma:
[1576949.137] rdpRRCrtcSetGamma:
[1576949.137] rdpRRCrtcSetGamma:
[1576949.137] rdpRRCrtcSetGamma:
[1576949.153] rdpRRCrtcSetGamma:
[1576949.153] rdpRRCrtcSetGamma:
[1576949.153] rdpRRCrtcSetGamma:
[1576949.169] rdpRRCrtcSetGamma:
[1576949.169] rdpRRCrtcSetGamma:
[1576949.169] rdpRRCrtcSetGamma:
[1576949.185] rdpRRCrtcSetGamma:
[1576949.185] rdpRRCrtcSetGamma:
[1576949.186] rdpRRCrtcSetGamma:
[1576949.201] rdpRRCrtcSetGamma:
[1576949.202] rdpRRCrtcSetGamma:
[1576949.202] rdpRRCrtcSetGamma:
[1576949.218] rdpRRCrtcSetGamma:
[1576949.218] rdpRRCrtcSetGamma:
[1576949.218] rdpRRCrtcSetGamma:
[1576951.461] rdpRRCrtcSetGamma:
[1576951.462] rdpRRCrtcSetGamma:
[1576951.462] rdpRRCrtcSetGamma:
[1579730.004] rdpClientConRecv: g_sck_recv failed(returned -1)
[1579730.004] rdpClientConDisconnect:
[1579730.005] rdpClientConDisconnect: clientCon removed from dev list
[1579730.005] rdpClientConRecvMsg: error
[1579730.005] rdpClientConCheck: rdpClientConGotData failed
[1631654.122] rdpClientConGotConnection:
[1631654.148] rdpClientConGotConnection: g_sck_accept ok new_sck 49
[1631654.148] rdpClientConGotConnection: adding only clientCon
[1631654.175] rdpClientConProcessMsgVersion: version 0 0 0 1
[1631654.175] rdpClientConProcessScreenSizeMsg: set width 5440 height 1080 bpp 24
[1631654.175] rdpClientConProcessScreenSizeMsg: shmemid 1800732876 shmemptr 0x7fe42dcf7000
[1631654.175] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 5440 cy 1080
[1631654.230] rdpClientConProcessMsgClientInfo:
[1631654.230]   got client info bytes 5744
[1631654.230]   jpeg support 0
[1631654.230]   offscreen support 1
[1631654.230]   offscreen size 10485760
[1631654.230]   offscreen entries 100
[1631654.230]   client can not do offscreen to offscreen blits
[1631654.230]   client can do new(color) cursor
[1631654.230]   client can do multimon
[1631654.230]   client monitor data, monitorCount=3
[1631654.230]     left 3840 top 180 right 5439 bottom 1079
[1631654.230]     left 1920 top 0 right 3839 bottom 1079
[1631654.230]     left 0 top 0 right 1919 bottom 1079
[1631654.230] rdpRRSetRdpOutputs: numCrtcs 3 monitorCount 3
[1631654.230] rdpRRSetRdpOutputs: update output 0 left 3840 top 180 width 1600 height 900
[1631654.231] rdpRRSetRdpOutputs: update output 1 left 1920 top 0 width 1920 height 1080
[1631654.967] (EE) 
[1631654.967] (EE) Backtrace:
[1631655.181] (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4e) [0x55a76414f6ce]
[1631655.181] (EE) 1: /usr/lib/xorg/Xorg (0x55a763f9d000+0x1b6a69) [0x55a764153a69]
[1631655.181] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7fe43d1f5000+0x354b0) [0x7fe43d22a4b0]
[1631655.182] (EE) 3: /usr/lib/xorg/Xorg (RRCrtcNotify+0x74) [0x55a7640b1934]
[1631655.182] (EE) 4: /usr/lib/xorg/modules/libxorgxrdp.so (0x7fe438468000+0x851e) [0x7fe43847051e]
[1631655.182] (EE) 5: /usr/lib/xorg/modules/libxorgxrdp.so (rdpRRSetRdpOutputs+0xe3) [0x7fe438470f73]
[1631655.182] (EE) 6: /usr/lib/xorg/modules/libxorgxrdp.so (rdpClientConCheck+0xc6b) [0x7fe4384750db]
[1631655.182] (EE) 7: /usr/lib/xorg/Xorg (WakeupHandler+0x6d) [0x55a763ff599d]
[1631655.182] (EE) 8: /usr/lib/xorg/Xorg (WaitForSomething+0x1ef) [0x55a76414c40f]
[1631655.182] (EE) 9: /usr/lib/xorg/Xorg (0x55a763f9d000+0x53bce) [0x55a763ff0bce]
[1631655.182] (EE) 10: /usr/lib/xorg/Xorg (0x55a763f9d000+0x57e13) [0x55a763ff4e13]
[1631655.183] (EE) 11: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf0) [0x7fe43d215830]
[1631655.183] (EE) 12: /usr/lib/xorg/Xorg (_start+0x29) [0x55a763fdf069]
[1631655.183] (EE) 
[1631655.183] (EE) Segmentation fault at address 0x55a77d91e000
[1631655.183] (EE) 
Fatal server error:
[1631655.183] (EE) Caught signal 11 (Segmentation fault). Server aborting
[1631655.184] (EE) 
[1631655.184] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[1631655.184] (EE) Please also check the log file at ".xorgxrdp.24.log" for additional information.
[1631655.184] (EE) 
[1631655.184] rdpmouseControl: what 4
[1631655.184] rdpkeybControl: what 4
[1631655.191] rdpLeaveVT:
[1631655.194] (EE) Server terminated with error (1). Closing log file.

**And the following info can be found in the syslog file:**
Jun  6 09:28:22 xrdp-sesman: pam_ecryptfs: pam_sm_authenticate: /home/<user> is already mounted
Jun  6 09:28:41 org.gnome.gedit[17732]: (gedit:12498): Gdk-WARNING **: gedit: Fatal IO error 11 (Resource temporarily unavailable) on X server :24.0.
Jun  6 09:28:41 org.mate.panel.applet.WnckletFactory[17732]: wnck-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :24.0.
Jun  6 09:28:41 org.mate.panel.applet.TrashAppletFactory[17732]: trashapplet: Fatal IO error 11 (Resource temporarily unavailable) on X server :24.0.
Jun  6 09:28:41 org.mate.panel.applet.NotificationAreaAppletFactory[17732]: notification-area-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :24.0.
Jun  6 09:28:41 org.a11y.atspi.Registry[17797]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":24.0"
Jun  6 09:28:41 org.a11y.atspi.Registry[17797]:       after 91521 requests (91521 known processed) with 0 events remaining.
Jun  6 09:28:41 org.mate.panel.applet.ClockAppletFactory[17732]: clock-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :24.0.
Jun  6 09:28:43 org.gtk.vfs.Daemon[17732]: A connection to the bus can't be made
Jun  6 09:28:43 org.gtk.vfs.Daemon[17732]: A connection to the bus can't be made
Jun  6 09:28:44 org.gtk.vfs.Daemon[17732]: A connection to the bus can't be made
Jun  6 09:28:45 ntpd[2122]: error resolving pool 1.ubuntu.pool.ntp.org: Name or service not known (-2)
Jun  6 09:28:45 org.gnome.zeitgeist.Engine[17732]: #033[31m[07:28:45.817015 WARNING]#033[0m zeitgeist-daemon.vala:449: The connection is closed
Jun  6 09:28:46 org.gnome.zeitgeist.Engine[17732]: #033[34m[07:38:58.773936 MESSAGE]#033[0m extension-collection.vala:123: Skipping SearchEngine (disabled)
Jun  6 09:28:47 gnome-session[17699]: Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Jun  6 09:28:47 gnome-session[17699]: Unable to init server: Could not connect: Connection refused
Jun  6 09:28:47 gnome-session[17699]: (gnome-session-check-accelerated:27376): Gtk-WARNING **: cannot open display: :24.0
Jun  6 09:28:47 gnome-session[17699]: Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Jun  6 09:28:47 gnome-session[17699]: Unable to init server: Could not connect: Connection refused
Jun  6 09:28:47 gnome-session[17699]: (gnome-session-check-accelerated:27377): Gtk-WARNING **: cannot open display: :24.0
Jun  6 09:28:47 gnome-session[17699]: gnome-session-binary[17699]: WARNING: software acceleration check failed: Child process exited with code 1
Jun  6 09:28:47 gnome-session[17699]: gnome-session-binary[17699]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Jun  6 09:28:47 gnome-session-binary[17699]: WARNING: software acceleration check failed: Child process exited with code 1
Jun  6 09:28:47 gnome-session-binary[17699]: CRITICAL: We failed, but the fail whale is dead. Sorry....

Version module is always 1.0.0

In the Xorg lors, the modules have always the same value 1.0.0.
The version release should be used to get accurate version in the logs

module/rdp.h contains the version info

'struct _GC' has no member named 'clientClipType'

the module directory fails to compile with the flowing error.

any help about that ?

Making all in module
make[2]: Entering directory '/home/itamar/fedora/xrdp-itamarjp/xrdp/xorgxrdp/module'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -I../../common -DSIMD_USE_ACCEL=1 -g -O2 -MT rdpDraw.lo -MD -MP -MF .deps/rdpDraw.Tpo -c -o rdpDraw.lo rdpDraw.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -I../../common -DSIMD_USE_ACCEL=1 -g -O2 -MT rdpDraw.lo -MD -MP -MF .deps/rdpDraw.Tpo -c rdpDraw.c -fPIC -DPIC -o .libs/rdpDraw.o
rdpDraw.c: In function 'rdpDrawGetClip':
rdpDraw.c:69:20: error: 'struct _GC' has no member named 'clientClipType'
switch (pGC->clientClipType)
^
rdpDraw.c:80:27: error: 'struct _GC' has no member named 'clientClipType'
pGC->clientClipType));
^
rdpDraw.c:51:43: note: in definition of macro 'LLOGLN'
do { if (_level < LOG_LEVEL) { ErrorF _args ; ErrorF("\n"); } } while (0)
^
rdpDraw.c:114:28: error: 'struct _GC' has no member named 'clientClipType'
switch (pGC->clientClipType)
^
rdpDraw.c:130:35: error: 'struct _GC' has no member named 'clientClipType'
pGC->clientClipType));
^
rdpDraw.c:51:43: note: in definition of macro 'LLOGLN'
do { if (_level < LOG_LEVEL) { ErrorF _args ; ErrorF("\n"); } } while (0)
^
Makefile:577: recipe for target 'rdpDraw.lo' failed
make[2]: *** [rdpDraw.lo] Error 1
make[2]: Leaving directory '/home/itamar/fedora/xrdp-itamarjp/xrdp/xorgxrdp/module'
Makefile:406: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/itamar/fedora/xrdp-itamarjp/xrdp/xorgxrdp'
Makefile:338: recipe for target 'all' failed
make: *** [all] Error 2

xrdp multimon to LTSP server with LDAP

Hello all,

First of all i need to say that the code you guys give here is awesome!

I also want to say in advance that my english is terrible, so sorry for that.

For a project i've build multiple Linux Terminal Server Projects with users who authenticate trough LDAP because some users work on different locations. I want to build it in a way that users can login through RDP. So for an example, if you have 2 locations and a persons account is on location 1 and he or she wants to work from location 2, he or she needs a RDP connection.

When i build XRDP and Xorg from neutrinolabs i get the local users to work with dual screen. But when i want to login with a LDAP User, i only get a black screen.

When i use the X11rdp-o-Matic script, i only get it working with one monitor because that script build's it like a xvnc server.

I hope someone knows the answer for this problem.

Thanks in advance for the use of your time

Greetings Michel

DPI setting is ignored, always using ~100 dpi

No matter what DPI I set on the Xorg command line with the -dpi argument, the xorgxrdp window shows the same font size. It is slightly bigger than what other backends (X11rdp and Xvnc) show with 96 dpi. At 100 dpi, the font sizes are the same. At 144 dpi, other backends show much larger fonts, as can be seen in the screenshot.
screen shot 2016-11-11 at 6 39 31 pm

Tasks should be done before next release

The next xorgxrdp release will be December 2016, at the same time as xorgxrdp.
Everything is done means it's time to release. xorgxrdp can be released before next xrdp release if all done.

To be in time for next Debian (9/stretch), soft deadline is middle of December, hard deadline is end of December.

  • Close all issues which have next release milestone
  • Decide next version number
  • Add copyright holder and copyright year to COPYING

xrdpMouse does not respect Primary/Seconday Button config

Discovered in Microsoft/Linux-vm-tools/#41.
Repro Steps:

  1. Stock Ubuntu 18.04 VM cleanly installed.
  2. Install xrdp and connect via mstsc.
  3. Click on Power icon in tray
  4. Click on settings icon in dropdown menu
  5. Go to "Mouse & Touchpad" settings view
  6. Toggle Primary Button to "right"
  7. xrdpMouse does not honor the configuration.

Alternatively, you can use xinput to get the ID of the xrdpMouse device and then set the button config map that way, which it does honor.

Crash on devel when using xorg driver

I am using xorgxrdp from: 4a2b11f and xrdp from: 99d322e64f27e8c72359e01b40f1b967d225a25e

When I try to connect with any RDP client I see the following backtrace:

Core was generated by `/usr/lib/xorg-server/Xorg :12 -config xrdp/xorg.conf -logverbose 10 -noreset -a'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f5dab78a5f8 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007f5dab78a5f8 in raise () from /usr/lib/libc.so.6
#1  0x00007f5dab78ba7a in abort () from /usr/lib/libc.so.6
#2  0x00007f5dab7c905a in __libc_message () from /usr/lib/libc.so.6
#3  0x00007f5dab8505c7 in __fortify_fail () from /usr/lib/libc.so.6
#4  0x00007f5dab84e790 in __chk_fail () from /usr/lib/libc.so.6
#5  0x00007f5dab850537 in __fdelt_warn () from /usr/lib/libc.so.6
#6  0x00007f5da6059e95 in rdpClientConCheck (pScreen=<optimized out>) at rdpClientCon.c:1084
#7  0x000000000043da1d in WakeupHandler ()
#8  0x000000000058f54f in WaitForSomething ()
#9  0x0000000000438be1 in ?? ()
#10 0x000000000043cf0b in ?? ()
#11 0x00007f5dab777610 in __libc_start_main () from /usr/lib/libc.so.6
#12 0x0000000000427319 in _start ()

I am on arch linux and using Xorg 1.17.2.

compilation error

In module/rdpClientCon.h included external headers

include "xrdp_client_info.h"

include "xrdp_constants.h"

placed in xrdp/common

Compilation output:

make all-recursive
make[1]: Entering directory '/home/filatov/xorgxrdp'
Making all in module
make[2]: Entering directory '/home/filatov/xorgxrdp/module'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I../../common -g -O2 -MT rdpDraw.lo -MD -MP -MF .deps/rdpDraw.Tpo -c -o rdpDraw.lo rdpDraw.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -I../../common -g -O2 -MT rdpDraw.lo -MD -MP -MF .deps/rdpDraw.Tpo -c rdpDraw.c -fPIC -DPIC -o .libs/rdpDraw.o
In file included from rdpDraw.c:44:0:
rdpClientCon.h:29:30: fatal error: xrdp_client_info.h: No such file or directory
#include "xrdp_client_info.h"
^
compilation terminated.
Makefile:473: recipe for target 'rdpDraw.lo' failed
make[2]: *** [rdpDraw.lo] Error 1
make[2]: Leaving directory '/home/filatov/xorgxrdp/module'
Makefile:391: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/filatov/xorgxrdp'
Makefile:322: recipe for target 'all' failed
make: *** [all] Error 2

i cant type anythings when i open chrome

ubuntu 18.04.1
Typing is fine when i use xorg to remote to my ubuntu 18.04.1

but, when i open chrome, i can't type anythings

when i close chrome, its working.

Include config_ac.h ① in all files, and ② first, before anything else

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852617#42 for a lecture from GNU autoconf upstream:

If the real-world package is not including config.h first, then that is
a bug in the real-world package that should be fixed there. Autoconf
clearly documents that if you create config.h, it MUST be included
first, before any system headers.

The workaround I had to add to the xrdp Debian package to enable and fix Large File Support was… not nice. So, apparently, the correct fix involves having every single source file (*.c, but also C++ et al.) #include "config_ac.h" first, before any other #include or nōn-preprocessor statement (the inclusion from various header files, such as arch.h, can then be removed).

Latency / performance issues, rdpDeferredUpdateCallback

Latency with both mouse input and keyboard input (moving curser around). Takes approx. twice as long to double-click and highlight a word in text editor, versus when using Xvnc.

Please see:
neutrinolabs/xrdp#386

Xorg logs are full of:

[2756639.134] rdpDeferredUpdateCallback: reschedule rect_id 823656 rect_id_ack 823655
[2756639.175] rdpDeferredUpdateCallback: reschedule rect_id 823656 rect_id_ack 823655
[2756639.215] rdpDeferredUpdateCallback: reschedule rect_id 823656 rect_id_ack 823655
[2756639.255] rdpDeferredUpdateCallback: reschedule rect_id 823656 rect_id_ack 823655
[2756639.295] rdpDeferredUpdateCallback: reschedule rect_id 823656 rect_id_ack 823655
[2756639.335] rdpDeferredUpdateCallback: reschedule rect_id 823656 rect_id_ack 823655
[2756639.375] rdpDeferredUpdateCallback: reschedule rect_id 823656 rect_id_ack 823655

Black screen with LAN connection

On Arch Linux, I get a black screen with the Windows client configured with the LAN connection type, both for 24 and 32 bpp. WAN and "automatically detect" work.

ps shows that the session is running. Log:

[549673.535]
X.Org X Server 1.19.3
Release Date: 2017-03-15
[549673.535] X Protocol Version 11, Revision 0
[549673.535] Build Operating System: Linux 4.9.11-1-ARCH x86_64
[549673.535] Current Operating System: Linux [snip]
[549673.535] Kernel command line: [snip]
[549673.535] Build Date: 07 April 2017  05:42:48PM
[549673.535]
[549673.535] Current version of pixman: 0.34.0
[549673.535]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[549673.535] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[549673.536] (++) Log file: ".xorgxrdp.10.log", Time: Wed Jun  7 08:51:44 2017
[549673.536] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[549673.536] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[549673.536] (==) ServerLayout "X11 Server"
[549673.536] (**) |-->Screen "Screen (xrdpdev)" (0)
[549673.536] (**) |   |-->Monitor "Monitor"
[549673.537] (**) |   |-->Device "Video Card (xrdpdev)"
[549673.537] (**) |-->Input Device "xrdpMouse"
[549673.537] (**) |-->Input Device "xrdpKeyboard"
[549673.537] (**) Option "DontVTSwitch" "on"
[549673.537] (**) Option "AutoAddDevices" "off"
[549673.537] (**) Not automatically adding devices
[549673.537] (==) Automatically enabling devices
[549673.537] (==) Automatically adding GPU devices
[549673.537] (==) Automatically binding GPU devices
[549673.537] (==) Max clients allowed: 256, resource mask: 0x1fffff
[549673.537] (==) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/TTF/,
        /usr/share/fonts/OTF/,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/100dpi/,
        /usr/share/fonts/75dpi/
[549673.537] (==) ModulePath set to "/usr/lib/xorg/modules"
[549673.537] (II) Loader magic: 0x822d60
[549673.537] (II) Module ABI versions:
[549673.537]    X.Org ANSI C Emulation: 0.4
[549673.538]    X.Org Video Driver: 23.0
[549673.538]    X.Org XInput driver : 24.1
[549673.538]    X.Org Server Extension : 10.0
[549673.544] (EE) systemd-logind: failed to get session: PID 10673 does not belong to any known session
[549673.545] (II) xfree86: Adding drm device (/dev/dri/card0)
[549673.551] (--) PCI:*(0:0:2:0) 8086:0f31:1849:0f31 rev 14, Mem @ 0xd0000000/4194304, 0xc0000000/268435456, I/O @ 0x0000f080/8, BIOS @ 0x????????/131072
[549673.551] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[549673.552] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[549673.552] (II) LoadModule: "dbe"
[549673.552] (II) Module "dbe" already built-in
[549673.552] (II) LoadModule: "ddc"
[549673.552] (II) Module "ddc" already built-in
[549673.552] (II) LoadModule: "extmod"
[549673.552] (II) Module "extmod" already built-in
[549673.552] (II) LoadModule: "glx"
[549673.553] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[549673.555] (II) Module glx: vendor="X.Org Foundation"
[549673.556]    compiled for 1.19.3, module version = 1.0.0
[549673.556]    ABI class: X.Org Server Extension, version 10.0
[549673.556] (II) LoadModule: "int10"
[549673.556] (II) Loading /usr/lib/xorg/modules/libint10.so
[549673.556] (II) Module int10: vendor="X.Org Foundation"
[549673.556]    compiled for 1.19.3, module version = 1.0.0
[549673.556]    ABI class: X.Org Video Driver, version 23.0
[549673.556] (II) LoadModule: "record"
[549673.557] (II) Module "record" already built-in
[549673.557] (II) LoadModule: "vbe"
[549673.557] (II) Loading /usr/lib/xorg/modules/libvbe.so
[549673.557] (II) Module vbe: vendor="X.Org Foundation"
[549673.557]    compiled for 1.19.3, module version = 1.1.0
[549673.557]    ABI class: X.Org Video Driver, version 23.0
[549673.557] (II) LoadModule: "xorgxrdp"
[549673.558] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[549673.558] (II) Module XORGXRDP: vendor="X.Org Foundation"
[549673.558]    compiled for 1.19.3, module version = 1.0.0
[549673.558]    ABI class: X.Org Video Driver, version 23.0
[549673.558] xorgxrdpSetup:
[549673.558] (II) LoadModule: "fb"
[549673.558] (II) Loading /usr/lib/xorg/modules/libfb.so
[549673.559] (II) Module fb: vendor="X.Org Foundation"
[549673.559]    compiled for 1.19.3, module version = 1.0.0
[549673.559]    ABI class: X.Org ANSI C Emulation, version 0.4
[549673.559] (II) LoadModule: "xrdpdev"
[549673.559] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[549673.559] (II) Module XRDPDEV: vendor="X.Org Foundation"
[549673.559]    compiled for 1.19.3, module version = 1.0.0
[549673.559]    ABI class: X.Org Video Driver, version 23.0
[549673.560] xrdpdevSetup:
[549673.560] (II) LoadModule: "xrdpmouse"
[549673.560] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[549673.560] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[549673.560]    compiled for 1.19.3, module version = 1.0.0
[549673.560]    Module class: X.Org XInput Driver
[549673.560]    ABI class: X.Org XInput driver, version 24.1
[549673.560] rdpmousePlug:
[549673.560] (II) LoadModule: "xrdpkeyb"
[549673.561] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[549673.561] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[549673.561]    compiled for 1.19.3, module version = 1.0.0
[549673.561]    Module class: X.Org XInput Driver
[549673.561]    ABI class: X.Org XInput driver, version 24.1
[549673.561] rdpkeybPlug:
[549673.561] rdpIdentify:
[549673.561] (II) XRDPDEV: driver for xrdp: XRDPDEV
[549673.561] rdpDriverFunc: op 10
[549673.561] (WW) Falling back to old probe method for XRDPDEV
[549673.561] rdpProbe:
[549673.561] (II) Loading sub module "fb"
[549673.561] (II) LoadModule: "fb"
[549673.562] (II) Loading /usr/lib/xorg/modules/libfb.so
[549673.562] (II) Module fb: vendor="X.Org Foundation"
[549673.562]    compiled for 1.19.3, module version = 1.0.0
[549673.562]    ABI class: X.Org ANSI C Emulation, version 0.4
[549673.562] (II) XRDPDEV(0): using default device
[549673.562] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[549673.562] rdpPreInit:
[549673.562] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32
[549673.562] (==) XRDPDEV(0): RGB weight 888
[549673.562] (==) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[549673.562] (==) XRDPDEV(0): Default visual is TrueColor
[549673.562] (==) XRDPDEV(0): DPI set to (96, 96)
[549673.562] (II) XRDPDEV(0):   mode "640x480" ok
[549673.563] (II) XRDPDEV(0):   mode "800x600" ok
[549673.563] (--) XRDPDEV(0): Virtual size is 800x600 (pitch 800)
[549673.563] (**) XRDPDEV(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[549673.563] (II) XRDPDEV(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[549673.563] (==) Depth 24 pixmap format is 32 bpp
[549673.563] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
[549673.563] rdpScreenInit: pfbMemory bytes 1920000
[549673.563] rdpScreenInit: pfbMemory 0x7f6ee5f6b010
[549673.563] rdpSimdInit: assigning yuv functions
[549673.563] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x00030678 bx 0x00100800 cx 0x41d8e3bf dx 0xbfebfbff
[549673.563] rdpSimdInit: sse2 amd64 yuv functions assigned
[549673.563] rdpXvInit: depth 24
[549673.563] (==) XRDPDEV(0): Backing store enabled
[549673.564] rdpClientConInit: kill disconnected [0] timeout [0] sec
[549673.564]
[549673.564] rdpScreenInit: out
[549673.564] (==) RandR enabled
[549673.572] (II) AIGLX: Screen 0 is not DRI2 capable
[549673.572] (EE) AIGLX: reverting to software rendering
[549673.627] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[549673.628] (II) IGLX: Loaded and initialized swrast
[549673.628] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[549673.710] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
[549673.710] (**) Option "CorePointer"
[549673.710] (**) xrdpMouse: always reports core events
[549673.711] rdpmousePreInit: drv 0x23dad80 info 0x2614670, flags 0x0
[549673.711] (II) XINPUT: Adding extended input device "xrdpMouse" (type: Mouse, id 6)
[549673.711] rdpmouseControl: what 0
[549673.711] rdpmouseDeviceInit:
[549673.711] rdpmouseCtrl:
[549673.711] rdpRegisterInputCallback: type 1 proc 0x7f6ee6344c20
[549673.711] (**) xrdpMouse: (accel) keeping acceleration scheme 1
[549673.711] (**) xrdpMouse: (accel) acceleration profile 0
[549673.712] (**) xrdpMouse: (accel) acceleration factor: 2.000
[549673.712] (**) xrdpMouse: (accel) acceleration threshold: 4
[549673.712] rdpmouseControl: what 1
[549673.712] rdpmouseDeviceOn:
[549673.712] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard'
[549673.712] (**) Option "CoreKeyboard"
[549673.712] (**) xrdpKeyboard: always reports core events
[549673.712] rdpkeybPreInit: drv 0x23db4a0 info 0x279e260, flags 0x0
[549673.712] (II) XINPUT: Adding extended input device "xrdpKeyboard" (type: Keyboard, id 7)
[549673.712] rdpkeybControl: what 0
[549673.712] rdpkeybDeviceInit:
[549673.764] rdpkeybChangeKeyboardControl:
[549673.764] rdpkeybChangeKeyboardControl: autoRepeat on
[549673.764] rdpRegisterInputCallback: type 0 proc 0x7f6ee6141520
[549673.764] rdpkeybControl: what 1
[549673.764] rdpkeybDeviceOn:
[549673.783] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[549673.784] (II) AutoAddDevices is off - not adding device.
[549673.784] (II) config/udev: Adding input device Video Bus (/dev/input/event6)
[549673.784] (II) AutoAddDevices is off - not adding device.
[549673.785] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[549673.785] (II) AutoAddDevices is off - not adding device.
[549673.786] (II) config/udev: Adding input device Sleep Button (/dev/input/event3)
[549673.786] (II) AutoAddDevices is off - not adding device.
[549673.786] (II) config/udev: Adding drm device (/dev/dri/card0)
[549673.786] (II) xfree86: Adding drm device (/dev/dri/card0)
[549673.788] (II) config/udev: Adding input device SIGMACHIP USB Keyboard (/dev/input/event0)
[549673.788] (II) AutoAddDevices is off - not adding device.
[549673.789] (II) config/udev: Adding input device SIGMACHIP USB Keyboard (/dev/input/event1)
[549673.789] (II) AutoAddDevices is off - not adding device.
[549673.790] (II) config/udev: Adding input device PC Speaker (/dev/input/event5)
[549673.790] (II) AutoAddDevices is off - not adding device.
[549673.798] rdpSaveScreen:
[549673.798] rdpDeferredRandR:
[549673.798] rdpResizeSession: width 1024 height 768
[549673.798]   calling RRScreenSizeSet
[549673.798] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
[549673.799] rdpRRGetInfo:
[549673.799]   screen resized to 1024x768
[549673.801]   RRScreenSizeSet ok 1
[549673.801] rdpResizeSession: width 1920 height 1080
[549673.801]   calling RRScreenSizeSet
[549673.801] rdpRRScreenSetSize: width 1920 height 1080 mmWidth 508 mmHeight 286
[549673.801] rdpRRGetInfo:
[549673.802]   screen resized to 1920x1080
[549673.807]   RRScreenSizeSet ok 1
[549673.859] rdpRRGetInfo:
[549673.864] rdpInDeferredUpdateCallback:
[549673.864] rdpkeybChangeKeyboardControl:
[549673.864] rdpkeybChangeKeyboardControl: autoRepeat off
[549673.960] rdpkeybChangeKeyboardControl:
[549673.961] rdpkeybChangeKeyboardControl: autoRepeat off
[549673.961] rdpkeybChangeKeyboardControl:
[549673.961] rdpkeybChangeKeyboardControl: autoRepeat off
[549674.035] rdpRRGetInfo:
[549674.102] rdpClientConGotConnection:
[549674.102] rdpClientConGotConnection: g_sck_accept ok new_sck 17
[549674.102] rdpClientConGotConnection: adding only clientCon
[549674.104] rdpClientConProcessMsgVersion: version 0 0 0 1
[549674.105] rdpClientConProcessScreenSizeMsg: set width 1920 height 1080 bpp 24
[549674.105] rdpClientConProcessScreenSizeMsg: shmemid 2260993 shmemptr 0x7f6edcb82000
[549674.105] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1920 cy 1080
[549674.110] rdpClientConProcessMsgClientInfo:
[549674.110]   got client info bytes 5744
[549674.110]   jpeg support 0
[549674.110]   offscreen support 1
[549674.110]   offscreen size 7864320
[549674.110]   offscreen entries 100
[549674.110] rdpClientConProcessMsgClientInfo: got RFX capture
[549674.111]   cap_width 1920 cap_height 1088
[549674.111] rdpClientConProcessMsgClientInfo: shmemid 2293761 shmemptr 0x7f6edcb73000 bytes 8355840
[549674.111]   client can not do offscreen to offscreen blits
[549674.111]   client can do new(color) cursor
[549674.111]   client can not do multimon
[549674.111] rdpRRSetRdpOutputs: numCrtcs 0
[549674.111] rdpRRSetRdpOutputs: numOutputs 0
[549674.111] rdpLoadLayout: keylayout 0x00000409 variant  display 10
[549674.112] rdpkeybChangeKeyboardControl:
[549674.112] rdpkeybChangeKeyboardControl: autoRepeat on
[549674.113] rdpkeybChangeKeyboardControl:
[549674.113] rdpkeybChangeKeyboardControl: autoRepeat on
[549674.216] rdpInDeferredUpdateCallback:
[549674.216] rdpkeybChangeKeyboardControl:
[549674.216] rdpkeybChangeKeyboardControl: autoRepeat off
[549674.216] rdpkeybChangeKeyboardControl:
[549674.216] rdpkeybChangeKeyboardControl: autoRepeat off
[549674.358] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1919 cy 1079

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.