Xshell 登录 Ubuntu1604 , Spyder无法使用键盘问题

ssh登录ubuntu1604时,发现个奇葩问题:
用teamviewer远程登入ubuntu桌面,打开spyder,一切正常;
用putty+Xming ,ssh登录后,打开spyder,一切正常,就是速度慢点;


但是用xshell登录,如果设置X11转发连接到 Xmanager,则启动图形界面程序(例如spyder)时会自动启动Xmanger的passive,但是无法使用键盘。出现下面错误信息:
QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
Qt: Could not determine keyboard configuration data from X server, will use hard-coded keymap configuration.
Qt: Failed to compile a keymap!



设置X11转发连接到X display 为 localhost:0.0, 
实验一: 不启动任何X server,输入spyder,则出现错误信息,无法出现spyder界面。
QXcbConnection: Could not connect to display localhost:11.0
Aborted (core dumped)

实验二:打开Xming,启动spyder,则出现下面错误信息,但能功能正常,键盘反应较慢。
failed to get the current screen resources
QXcbConnection: XCB error: 170 (Unknown), sequence: 170, resource id: 90, major code: 146 (Unknown), minor code: 20

实验三:关闭Xming,打开 Xmanger Passive,启动spyder,则能出现界面,但键盘无法使用。出现设置X11转发连接到 Xmanager时一样的错误信息。

你可能感兴趣的:(Linux,python)