Giter Site home page Giter Site logo

pelya / xserver-xsdl Goto Github PK

View Code? Open in Web Editor NEW
299.0 27.0 55.0 83.11 MB

XSDL - X.Org server ported to Android using SDL.

Home Page: https://play.google.com/store/apps/details?id=x.org.server

License: Other

C 94.79% C++ 1.01% Objective-C 1.19% Shell 0.47% Python 0.11% DTrace 0.01% Groff 1.13% HTML 0.01% Awk 0.02% Assembly 0.07% Yacc 0.11% Lex 0.04% Makefile 0.52% M4 0.53%

xserver-xsdl's Introduction

xserver-xsdl's People

Contributors

aaronp24 avatar airlied avatar alanc avatar anholt avatar dbnicholson avatar dottedmag avatar e4t avatar fooishbar avatar gisburn avatar gregkh avatar ianromanick avatar jameysharp avatar jbarnes993 avatar jcristau avatar jeremyhu avatar jon-turney avatar keith-packard avatar madman2003 avatar mattst88 avatar memsize avatar mherrb avatar nwnk avatar pelya avatar simonthum avatar sorensp avatar tiagovignatti avatar tilman2 avatar werehamster avatar whot avatar yselkowitz 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

xserver-xsdl's Issues

Allow remapping of key combos

I have a phone with physical QWERTY keyboard. I would like to be able to remap key combinations, for example "Alt-S" to "/", "VolumeUp-E" to "ESCAPE", etc. If possible, the mappings should be stored in a plain-text file for easy editing (in addition to the GUI).

No hardware OpenGL rendering?

I'm running Archlinux ARM in a chroot (Linux Deploy) on my NVIDIA SHIELD tablet, which supports OpenGL 4.5. I've chosen the X Server option when starting Archlinux up. Everything runs fine, but when I run glxinfo in a terminal (via XServer XSDL), I get:

name of display: 127.0.0.1:0.0
Error: couldn't find RGB GLX visual or fbconfig

I'm not sure if this is XServer XSDL's fault, tell me if it isn't. What should I do to fix this?

xsever issue with samsung galaxy

when I attempt to run this app on my phone, no matter what it always fails saying that xsever failed to start. due to SElinux. idk how to fix or how to do anything with it.

X server failed to launch

Hi Pelya,
thank you for the effort on this app. I've some problem starting the xserver.
I own a xt925 phone with CM10.1.3.
After the count down screen, the Xserver won't start; it print:

"Error: X server failed to launch
This may happen because of SELinux or because installation was corrupted"

SElinux isn't compiled. I've try to clean cache data and reinstall the app, but I think something is wrong in my setup.
Looking at the logcat I can see some error about swap interval and keyboard init:

I/ActivityManager( 719): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=x.org.server/.MainActivity} from pid 1058
D/dalvikvm( 719): GC_FOR_ALLOC freed 1653K, 26% free 15396K/20704K, paused 138ms, total 145ms
I/dalvikvm-heap( 719): Grow heap (frag case) to 18.379MB for 1048592-byte allocation
I/ActivityManager( 719): Start proc x.org.server for activity x.org.server/.MainActivity: pid=7344 uid=10071 gids={50071, 3003, 1015, 1028}
I/SDL ( 7344): libSDL: Creating startup screen
W/ActivityManager( 719): Unable to start service Intent { cmp=x.org.server/.DummyService } U=0: not found
I/SDL ( 7344): libSDL: onWindowFocusChanged: true - sending onPause/onResume
I/ActivityManager( 719): Displayed x.org.server/.MainActivity: +352ms
I/SDL ( 7344): libSDL: Loading libraries
I/SDL ( 7344): libSDL: loaded GLESv2 lib
I/SDL ( 7344): libSDL: loading lib /data/data/x.org.server/files/../lib/libsdl_native_helpers.so
D/dalvikvm( 7344): Trying to load lib /data/data/x.org.server/files/../lib/libsdl_native_helpers.so 0x40ea2358
D/dalvikvm( 7344): Added shared lib /data/data/x.org.server/files/../lib/libsdl_native_helpers.so 0x40ea2358
D/dalvikvm( 7344): No JNI_OnLoad found in /data/data/x.org.server/files/../lib/libsdl_native_helpers.so 0x40ea2358, skipping init
I/SDL ( 7344): libSDL: loading lib /data/data/x.org.server/files/../lib/libsdl-1.2.so
D/dalvikvm( 7344): Trying to load lib /data/data/x.org.server/files/../lib/libsdl-1.2.so 0x40ea2358
D/dalvikvm( 7344): Added shared lib /data/data/x.org.server/files/../lib/libsdl-1.2.so 0x40ea2358
I/SDL ( 7344): libSDL: loading lib /data/data/x.org.server/files/../lib/libsdl_ttf.so
D/dalvikvm( 7344): Trying to load lib /data/data/x.org.server/files/../lib/libsdl_ttf.so 0x40ea2358
D/dalvikvm( 7344): Added shared lib /data/data/x.org.server/files/../lib/libsdl_ttf.so 0x40ea2358
D/dalvikvm( 7344): No JNI_OnLoad found in /data/data/x.org.server/files/../lib/libsdl_ttf.so 0x40ea2358, skipping init
I/SDL ( 7344): libSDL: Trying to extract binaries from assets binaries-armeabi-v7a.zip
I/SDL ( 7344): File '/data/data/x.org.server/files/usr/bin/xli' exists and passed CRC check - not overwriting it
I/SDL ( 7344): File '/data/data/x.org.server/files/usr/bin/xhost' exists and passed CRC check - not overwriting it
I/SDL ( 7344): File '/data/data/x.org.server/files/usr/bin/xsel' exists and passed CRC check - not overwriting it
I/SDL ( 7344): File '/data/data/x.org.server/files/usr/bin/xkbcomp' exists and passed CRC check - not overwriting it
I/SDL ( 7344): File '/data/data/x.org.server/files/busybox' exists and passed CRC check - not overwriting it
I/SDL ( 7344): Extracting binaries finished
I/SDL ( 7344): libSDL: Loading settings
I/SDL ( 7344): libSDL: Settings.Load(): enter
I/SDL ( 7344): android.os.Build.MODEL: XT925
I/SDL ( 7344): libSDL: Settings.Load(): loaded settings successfully
I/SDL ( 7344): libSDL: old cfg version 11121, our version 11121
I/InputReader( 719): Reconfiguring input devices. changes=0x00000004
I/InputReader( 719): Device reconfigured: id=1, name='melfas-ts', size 720x1280, orientation 1, mode 1, display id 0
I/InputReader( 719): Reconfiguring input devices. changes=0x00000004
I/InputReader( 719): Device reconfigured: id=1, name='melfas-ts', size 720x1280, orientation 1, mode 1, display id 0
I/ActivityManager( 719): Config changes=480 {1.0 222mcc1mnc it_IT ldltr sw360dp w640dp h335dp 320dpi nrml long land finger -keyb/v/h -nav/h s.14 themeResource=null}
I/SDL ( 7344): libSDL: loading lib /data/data/x.org.server/files/../lib/libapplication.so
D/dalvikvm( 7344): Trying to load lib /data/data/x.org.server/files/../lib/libapplication.so 0x40ea2358
D/dalvikvm( 7344): Added shared lib /data/data/x.org.server/files/../lib/libapplication.so 0x40ea2358
D/dalvikvm( 7344): No JNI_OnLoad found in /data/data/x.org.server/files/../lib/libapplication.so 0x40ea2358, skipping init
I/SDL ( 7344): libSDL: loading lib /data/data/x.org.server/files/../lib/libsdl_main.so
D/dalvikvm( 7344): Trying to load lib /data/data/x.org.server/files/../lib/libsdl_main.so 0x40ea2358
D/dalvikvm( 7344): Added shared lib /data/data/x.org.server/files/../lib/libsdl_main.so 0x40ea2358
I/SDL ( 7344): libSDL: 3000-msec timeout in startup screen
D/dalvikvm( 934): GC_FOR_ALLOC freed 654K, 61% free 9862K/24940K, paused 21ms, total 21ms
I/dalvikvm-heap( 934): Grow heap (frag case) to 18.088MB for 6410576-byte allocation
D/dalvikvm( 934): GC_CONCURRENT freed 5K, 36% free 16117K/24940K, paused 1ms+10ms, total 37ms
D/dalvikvm( 934): GC_FOR_ALLOC freed 1K, 36% free 16117K/24940K, paused 18ms, total 18ms
I/dalvikvm-heap( 934): Grow heap (frag case) to 24.626MB for 6860816-byte allocation
D/dalvikvm( 934): GC_CONCURRENT freed 0K, 28% free 22817K/31644K, paused 2ms+4ms, total 38ms
D/dalvikvm( 719): GC_EXPLICIT freed 924K, 26% free 16158K/21732K, paused 3ms+13ms, total 133ms
I/SDL ( 7344): libSDL: Timeout reached in startup screen, process with downloader
I/SDL ( 7344): libSDL: Starting data downloader
I/SDL ( 7344): libSDL: Starting downloader
I/SDL ( 7344): libSDL: Initializing video and SDL application
D/SDL ( 7344): libSDL: DemoRenderer.onWindowResize(): 1280x720
D/libEGL ( 7344): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL ( 7344): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL ( 7344): loaded /system/lib/egl/libGLESv2_adreno200.so
I/Adreno200-EGL( 7344): <qeglDrvAPI_eglInitialize:269>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051_msm8960_JB_VANILLA_CL2997615_release_AU (CL2997615)
I/Adreno200-EGL( 7344): Build Date: 04/11/13 Thu
I/Adreno200-EGL( 7344): Local Branch:
I/Adreno200-EGL( 7344): Remote Branch: quic/mako_jb_mr1
I/Adreno200-EGL( 7344): Local Patches: NONE
I/Adreno200-EGL( 7344): Reconstruct Branch: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051 + NOTHING
I/SDL ( 7344): libSDL: DemoRenderer.onSurfaceCreated(): paused false mFirstTimeStart true
I/SDL ( 7344): libSDL: DemoRenderer.onSurfaceChanged(): paused false mFirstTimeStart false w 1280 h 720
I/libSDL ( 7344): Physical screen resolution is 1280x720
I/SDL ( 7344): libSDL: setting envvar LANGUAGE to 'it_IT'
D/SDL ( 7344): libSDL: Is running on OUYA: false
I/SDL ( 7344): libSDL: starting gyroscope
I/libSDL ( 7344): Changing curdir to "/storage/emulated/0/Android/data/x.org.server/files"
I/libSDL ( 7344): Calling SDL_main("XSDL")
I/libSDL ( 7344): param 0 = "XSDL"
I/XSDL ( 7344): Actual video resolution 1280/103x720/57
I/XSDL ( 7344): User u0_a71 ID 10071
I/XSDL ( 7344): Current video mode: 1280 720
I/libSDL ( 7344): SDL_SetVideoMode(): application requested mode 480x320 OpenGL 0 HW 0 BPP 16
E/libSDL ( 7344): ERROR: Setting the swap interval is not supported
E/libSDL ( 7344): ERROR: Getting the swap interval is not supported
E/libSDL ( 7344): ERROR: GL_GetAttribute not supported
I/libSDL ( 7344): ANDROID_GL_GetProcAddress("glGetString"): 0x40035cc0
D/BHD ( 311): Got a battery uevent,log details
I/XSDL ( 7344): TCP port 6000 already used, trying next one: Address already in use
I/XSDL ( 7344): TCP port 6001 already used, trying next one: Address already in use
I/XSDL ( 7344): TCP port 6002 already used, trying next one: Address already in use
I/XSDL ( 7344): TCP port 6003 already used, trying next one: Address already in use
I/XSDL ( 7344): 2 network interfaces found
I/XSDL ( 7344): interface: lo address: 127.0.0.1
I/XSDL ( 7344): interface: wlan0 address: 192.168.1.129
I/XSDL ( 7344): XSDL video resolution 1280/147x720/81x16, args:
I/XSDL ( 7344): > XSDL
I/XSDL ( 7344): > :4
I/XSDL ( 7344): > -nolock
I/XSDL ( 7344): > -noreset
I/XSDL ( 7344): > -fp
I/XSDL ( 7344): > /data/data/x.org.server/files/img/usr/share/fonts/X11/misc,/data/data/x.org.server/files/img/usr/share/fonts/X11/Type1,/data/data/x.org.server/files/img/usr/share/fonts/X11/100dpi,/data/data/x.org.server/files/img/usr/share/fonts/X11/75dpi,/data/data/x.org.server/files/img/usr/share/fonts/X11/cyrillic
I/XSDL ( 7344): > -screen
I/XSDL ( 7344): > 1280/147x720/81x16
I/XSDL ( 7344): > -exec
I/XSDL ( 7344): > /data/data/x.org.server/files/usr/bin/xhost + ; /data/data/x.org.server/files/usr/bin/xli -onroot -center /storage/emulated/0/Android/data/x.org.server/files/background.bmp
I/XSDL ( 7344): XSDL chdir to: /data/data/x.org.server/files
I/XSDL ( 7344): InitConnectionLimits: MaxClients = 255
I/XSDL ( 7344): InitCard: (null)
I/XSDL ( 7344): Calling SDL_Init()
I/XSDL ( 7344): _XSERVTrans
I/XSDL ( 7344): mkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
I/XSDL ( 7344): _XSERVTrans
I/XSDL ( 7344): mkdir: ERROR: Cannot create /tmp/.X11-unix
I/XSDL ( 7344): _XSERVTrans
I/XSDL ( 7344): SocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 2
I/XSDL ( 7344): _XSERVTrans
I/XSDL ( 7344): MakeAllCOTSServerListeners: failed to create listener for unix
I/XSDL ( 7344): sdlScreenInit
I/XSDL ( 7344): Attempting for 1280x720/16bpp mode
I/libSDL ( 7344): SDL_SetVideoMode(): application requested mode 1280x720 OpenGL 0 HW 0 BPP 16
E/libSDL ( 7344): ERROR: Setting the swap interval is not supported
E/libSDL ( 7344): ERROR: Getting the swap interval is not supported
E/libSDL ( 7344): ERROR: GL_GetAttribute not supported
I/libSDL ( 7344): ANDROID_GL_GetProcAddress("glGetString"): 0x40035cc0
I/XSDL ( 7344): Set 1280x720/16bpp mode
I/XSDL ( 7344): sdlMapFramebuffer: shadow 0
I/XSDL ( 7344): sdlRandRInit
I/XSDL ( 7344): InitOutput()
I/XSDL ( 7344): sdlCreateRes
I/XSDL ( 7344): [dix] Could not init font path element /data/data/x.org.server/files/img/usr/share/fonts/X11/misc, removing from list!
I/XSDL ( 7344): [dix] Could not init font path element /data/data/x.org.server/files/img/usr/share/fonts/X11/Type1, removing from list!
I/XSDL ( 7344): [dix] Could not init font path element /data/data/x.org.server/files/img/usr/share/fonts/X11/100dpi, removing from list!
I/XSDL ( 7344): [dix] Could not init font path element /data/data/x.org.server/files/img/usr/share/fonts/X11/75dpi, removing from list!
I/XSDL ( 7344): [dix] Could not init font path element /data/data/x.org.server/files/img/usr/share/fonts/X11/cyrillic, removing from list!
I/XSDL ( 7344): [xkb] XkbDDXCompileKeymapByNames executes: /data/data/x.org.server/files/usr/bin/xkbcomp -I/data/data/x.org.server/files/usr/share/X11/xkb -w 1 "-R/data/data/x.org.server/files/usr/share/X11/xkb" -xkm - -em1 xkbcomp: -emp --- -eml ======= /data/data/x.org.server/files/server-4.xkm
I/XSDL ( 7344): [xkb] XkbDDXCompileKeymapByNames compiling keymap:
I/XSDL ( 7344): (EE) Error compiling keymap (server-4)
I/XSDL ( 7344): (EE) XKB: Couldn't compile keymap
I/XSDL ( 7344): (EE) XKB: Failed to load keymap. Loading default keymap instead.
I/XSDL ( 7344): [xkb] XkbDDXCompileKeymapByNames executes: /data/data/x.org.server/files/usr/bin/xkbcomp -I/data/data/x.org.server/files/usr/share/X11/xkb -w 1 "-R/data/data/x.org.server/files/usr/share/X11/xkb" -xkm - -em1 xkbcomp: -emp --- -eml ======= /data/data/x.org.server/files/server-4.xkm
I/XSDL ( 7344): [xkb] XkbDDXCompileKeymapByNames compiling keymap:
I/XSDL ( 7344): (EE) Error compiling keymap (server-4)
I/XSDL ( 7344): (EE) XKB: Couldn't compile keymap
I/XSDL ( 7344): XKB: Failed to compile keymap
I/XSDL ( 7344): Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
I/XSDL ( 7344):
I/XSDL ( 7344): Fatal server error:
I/XSDL ( 7344): Failed to activate core devices.
I/XSDL ( 7344):
I/XSDL ( 7344): (dix) removing device 2
I/XSDL ( 7344): (dix) removing device 3
I/XSDL ( 7344): Current video mode: 1280 720
I/libSDL ( 7344): SDL_SetVideoMode(): application requested mode 480x320 OpenGL 0 HW 0 BPP 16
E/libSDL ( 7344): ERROR: Setting the swap interval is not supported
E/libSDL ( 7344): ERROR: Getting the swap interval is not supported
E/libSDL ( 7344): ERROR: GL_GetAttribute not supported
I/libSDL ( 7344): ANDROID_GL_GetProcAddress("glGetString"): 0x40035cc0

I hope you can help me. Thank you very much!

Segmentation fault on start in clipboard emulation

Crash on start on Wexler Tab 7t
'''
I/DEBUG ( 122): #00 pc 0004d732 /system/lib/libdvm.so (dvmGetCurrentJNIMethod()+5)I/DEBUG ( 122): #1 pc 0004d759 /system/lib/libdvm.so
I/DEBUG ( 122): #2 pc 0003073d /data/app-lib/x.org.server-1/libsdl-1.2.so (SDL_GetClipboardText+16)
I/DEBUG ( 122): #3 pc 0002da50 /data/app-lib/x.org.server-1/libapplication.so
I/DEBUG ( 122): #4 pc 00070040 /data/app-lib/x.org.server-1/libapplication.so (KdInitScreen+28)
I/DEBUG ( 122): #5 pc 00070108 /data/app-lib/x.org.server-1/libapplication.so (KdInitOutput+152)
I/DEBUG ( 122): #6 pc 0002dddc /data/app-lib/x.org.server-1/libapplication.so (InitOutput+8)
I/DEBUG ( 122): #7 pc 0002e130 /data/app-lib/x.org.server-1/libapplication.so (android_main+624)
I/DEBUG ( 122): #8 pc 0002a5c9 /data/app-lib/x.org.server-1/libapplication.so (SDL_main+1156)
I/DEBUG ( 122): #9 pc 00001167 /data/app-lib/x.org.server-1/libsdl_main.so
I/DEBUG ( 122): #10 pc 0001144b /data/app-lib/x.org.server-1/libsdl-1.2.so (SDL_RunThread+30)
'''

Trying to use Kstars and Skychart but windows are out of bounds

Hello,

First of all, brave for this product. It might help a lot if it works, replacing a vnc usage for my purpose.
But, unfortunately when I try to use one of the 2 apps Kstars and Skychart which are extended planetarium I have some troubles. The windows borders appears out of the screen limits. And unfortunately some function are located in the hidden part of the window.
Is there any way to handle the windows placement in the screen space ?

Thanks

Patrick

consistent crash with dvorak keyboard layout

I'm running the latest xserver-xsdl from the Play store on the Asus Zenfone 2 device, which is running Android 5.0. I'm using it to display Ubuntu 15.04 with the MATE desktop environment (also running on the device alongside Android).

This is working pretty well with my on-screen keyboard from Android. It was also working pretty well with my bluetooth keyboard (using the default US keyboard layout). However, immediately when I switched to the dvorak keyboard layout within MATE, the mouse pointer seemed to disappear, and I had no way to provide any keyboard or mouse input to the X session. I ended up terminating xserver-xsdl to get out of the situation.

After I restarted xserver-xsdl, I reconnected my MATE session to it. Before the desktop environment was fully operational, xserver-xsdl crashed. I loaded it again and restarted the session, and the same thing happened. This repeated several times in a row. I tried to switch the keyboard layout in MATE from dvorak back to US via gsettings on the command line, but it didn't seem to work and I wasn't confident I had changed all the needed settings. I deleted my entire ~/.config directory in the Ubuntu environment (thus reverting to the US layout), and the problem went away.

Edit preferences after the server starts

Is there some way to Change Preferences without having to restart. For example, sometimes I want to change left click or right click behaviour or reassign volume keys without having to restart.

I'm thinking of having a vertical "..." icon in the black band containing the home button (non-immersive mode) like in android VNC viewer. Personally, I would like one button that pops up the preference dialog and the others to be customizable buttons.

On thing that would be really useful is to simulate holding alt with left click drag because when I can't reach the ok/cancel/close button of a new window like in your video from a year ago, I'd like to move the window around, which can be done with an alt+left click drag on any point in the window (not just the top!). Of course, I don't want all left clicks from the start of xserver-xsdl to be alt+left click.

So if there was customizable buttons from the "..." menu, I'd probably put "alt on/alt off" toggle as one of my custom buttons. Customizable buttons could be read from some config files (in /data or /sdcard, for example) to determine what they do so it'd be possible to get some more complicated stuff in the future.

Thanks for the great program, by the way.

Mouse hiding.

Is it possible to hide one of cursors (there are two) while using hardware mouse?
I have one mouse from chrooted linux (ubuntu, linux deploy), and one from android (hardware mouse).
Thank's for advance.

What about opengl support?

Lunixbochs pushed almost working implementaton of glshim proxy to unstable branch. So it is possible and easy to add opengl support now.

Unpacking files fails on x86 based Android tablet

Hello pelya,

I own an ASUS MeMO Pad FHD with x86 CPU. The Play Store version of Xserver xsdl fails unpacking the needed files. I downloaded the XServer-XSDL-1.11.09-24bpp.apk from sf and this version works (maybe only with the ARM emulation, that my tablet owns)

glxinfo/glxgears don't seem to work

# glxinfo
name of display: 127.0.0.1:0
Error: couldn't find RGB GLX visual or fbconfig

# glxgears
Error: couldn't get an RGB, Double-buffered visual

# fbset -fb /dev/graphics/fb0
mode "480x800-0"
    # D: 0.003 MHz, H: 0.006 kHz, V:  0.006 Hz
    geometry 480 800 480 2400 32
    timings 343500000 16 16 7 105 4 2
    rgba 8/24,8/16/8,8/0
endmode

Any ideas on this? I have a few mesa libraries installed, and I thought they should allow software rendering of OpenGL. Debian Wheezy.

When switching between the android applications xserver-xsdl hangs

Hi there!

At first, I would like to thank you for the good work.

There is an issue on my android 4.2 tablet: when switching between the android applications or when returning from the lock screen xserver-xsdl hangs. My tablet has 2Gb RAM. Maybe it has to do with lack of memory and I need to increase it at the expense of the swap partition, don't I?

Best regards,

It is possible to run multitouch support on XSDL? If yes, how?

I saw that there is option "Multiple touch events per video frame".
So, I enabled it and installed "xserver-xorg-input-multitouch".
But after that firefox, and other apps don't support multitouch.
This option is really supported? If yes, what I did wrong in configuring it?
Thank's in advance.

Screen display and touch detection incorrect when in immersive mode

Hi there. I've been using XServer-SDL for awhile together with Linux Deploy, to run a Debian Chroot'ed on my Android, with a GUI (currently XFCE). FYI, I'm running this on a LG G Pad 8.3 with CyanogenMod 11. This has worked fine for a long time, but since version 1.11.23 (released about a month ago) it hasn't been working correctly: when in immersive mode (the LG G Pad doesn't have dedicated home/back/menu buttons btw, it uses android's soft keys instead), the display of the GUI is offset vertically by about the same vertical size of the navigation bar and so is touch detection on the GUI environment - meaning, a touch at some point of the screen registers a bit below where the touch occured on the GUI. For example, if I want to activate the XFCE menu, instead of touching directly on the button, I should touch a little over at the top of it, where it is supposed to be if the display wasn't offset. When I bring up the navigation bar the display is no longer offset and reacts correctly, but that's less than ideal since then I lose a little chunk of vertical space. A picture speaks more than a thousand words, so here it goes.

screenshot_2015-02-16-18-52-46

I'm now using version 1.11.22 (which works correctly) until this can be resolved.

Thanks!

issue in graphics

hi people and dev of xsdl
first thnks for the app, is very usefull
but need help with graphics, un terminal say out memory .. un 16 bit and 24bit
if can see un pics icewm. the buttons un task bar show in blank
how fix this? is configuration or somenthing
GPU sgx 544mp2
thnks for all
screenshot_2015-04-13-08-36-06
screenshot_2015-04-13-08-31-20
screenshot_2015-04-13-08-30-29

Device with soft buttons causes screen/input misalignment with onscreen keyboard

I tested xserver-sdl on a nexus 5 which has no hardware home button. It uses a small mabye 64 pixel bar at the button of the screen for home, back, etc. I also enabled these softbuttons on my Note 8. Observations:

  1. xserver-sdl starts in full screen (both top and bottom bars move out of way). Input works correctly.
  2. If I bring up onscreen keyboard (back button twice), then it appears but the soft home button bar comes back too. this shifts the screen upwards by about 64 pixels. But input is not shifted so one has to touch about 64 pixels below the target.

My preference: show soft home all the time and have slighly smaller framebuffer for x.

xournal: pen input

I've tested 1.11.15, new options look great, thanks!

Strangely, I still cannot get nice pen input into xournal (dmgerman's -next branch) like I can on your gimp/inkscape app. I've finally added your android-shmem binary, thinking that might be the problem but no improvement. There is still something different between gimp/inkscape app and xsdl-xserver...

The drawing lags behind the pen movement by something like 500ms, as observed in the packaged older version of xournal within your gimp/inkscape app.

mouse mode change: bug or feature?

The mouse movement mode changes from non-relative mode (touchscreen mode) to relative mode (laptop mode) when rotating the screen to potrait and back to landscape.
Sending the app to background and oppening it back up again makes the mouse behave like normal again (in this case touchscreen mode).

Now I am not sure of this is really a bug or just a very usefull feature.

If this is a bug, instead of removing it, could you turn it into some kind of feature where instead of rotating the screen to change the mouse mode, the user could simply press a button to do the changing?

Custom Fonts don't work, part 2!

Hi,

This is related to the closed issue "Custom Fonts don't work"
I followed your instruction to set the font path but when I performed an "xlsfonts -display [NEXUS 7 IP Address]:0" on the Linux PC, it did not see the new fonts. It listed these six fonts:

[root@DRSNexusTabletServer02 ~]# xlsfonts -display 192.168.42.129:0
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed

I copied two fonts (10x20.pcf, 8x13.pcf) to the /sdcard/fonts folder. Any ideas why the X Server is not loading the fonts? Thanks in advance!

Better wacom pen events

I have a Samsung Note 8. I'd like to run Xournal (awesome for annotating pdf files and handwritten notes) from my GNU/Linux chroot.

I find the pen events that get through xserver-xsdl are a bit poor, certainly not good enough for handwriting. It is possible to improve this somehow?

I don't know enough about android's input system but the best case would be letting my chroot get the raw xinput events.

Currently, the "sample rate" is too low (a curve becomes very jagged, unless drawn very slowly).

Just for info, "Quill", a native Android app does a bit better with handwriting so I guess the raw input is somehow available (although I'm still not sure its as good as the Samsung apps which came with my device---now long gone).

Sorry if this is not specific enough, and I should probably test your gimp packages before complaining but I wanted to at least have the bug reported for now.

mouse wheel scroll not recognized

Hello,

In my chroot'ed Linux connected to XServer XSDL 1.11.09, running xev shows that mouse wheel scroll is
recognized as mouse button 1. Instead, mouse wheel scroll should be recognized as mouse buttons 4 and 5.

Please add support for mouse wheel scrolling inside XServer XSDL. ๐Ÿญ

Thanks for your consideration.

Portrait version has wrong aspect ratio [please re-open]

I tried 1.11.09-portrait (from sf.net). My device (gt5110) has 1280x800 display.

The xserver was in portrait orientation but with the resolutions switched and not matching the physical pixels (it used 1280 for the horizontal res and 800 for the vertical---exactly backwards).

It was also written reversed on the mode selection screen compared to the hardcoded options. The hardcosed options had the correct aspect but none of them matched my physical display size.

I see quite a few changes to the mode selection bit but don't have build environment setup to test. is it possible to switch to portrait in prefences menus or in some config file? otherwise happy to test if you roll a new portrait apk.

[Suggestion] Wrap mouse

Hello!

I see - some games grab mouse (and you move a cursor into this program, and your android cursor not moving) - QIII4A or QI4A. It use Root for that option, and you can use your Mouse to play with this game

Maybe Xserver XSDL should use it? And for example ALT + CTRL release your mouse (like VirtualBox)

Fervi

Please make XServer XSDL available from F-Droid

I think it would be nice to be able to download XSDL from F-Droid. There are people with custom Android firmware who don't like installing Google Play but would happily use XSDL without compiling it.

-screen option on XSDL cmd line

preferences menu system allows me to change the XSDL cpmmand line. But if I add -screen 1280x800x24 (or 640x480x24 or whatever) than I get a black screen rather than the blue & white help screen about setting up $DISPLAY.

Fwiw, ":1" works to change X server port.

If I connext to the black screen Xserver, I think I get crashes from client apps but can double-check...

add link to this issue tracker on google play store page

Hello,

Please add a link to this issue tracker on the Google Play store page for the XServer XSDL app. I think that would encourage users to file proper bug reports rather than leaving low ratings or negative reviews in Google Play store.

In other words, this is a fantastic app and I think you deserve the best possible ratings! ๐Ÿ˜บ

Thanks for your consideration.

xrandr fails to change XServer DPI

Hello,

The resolution of XServer XSDL is too large on my Android device:

$ xdpyinfo | grep resolution:
  resolution:    208x209 dots per inch

I get an error when lowering the resolution to 100 DPI using xrandr:

$ xrandr --dpi 100
xrandr: Failed to get size of gamma for output default

How can I fix this? ๐Ÿ˜Ÿ

Thanks for your consideration.

android keyboard backspace

Using xserver-xsdl with Linux deploy. Great respect, and in many aspects this mixture works great. One strange issue: backspace in Android keyboard does not work (neither in xterm, nor in libreoffice writer). As workaround, I can open one on-screen key, and remap it to BACKSPACE.

Connect to localhost

Hi,

is it possible to set the default address to localhost/127.0.0.1?

I don't want to reset the ip env setting on chroot everytime i'm moving...

BT Mouse right click problem's.

Hello again.
I have problem's with right click at my bt mouse when using xsdl.
It's open's a keyboard, because it's mapped as back key under android by default.
I wanna use it as right click under apps in xserver, not to open a keyboard.
So I tried to map this key to "UNKOWN" or "NO_REMAP" but after all, it's sends back key to android, and this not work.
If I map this key to something other, it's work's, but it's send's too this second key, what is problematic.
Device is Galaxy Tab 3 7.0 with 4.1.2 stock rom and blackhawk kernel.
I wanna say that I don't have this issue under Galaxy Tab 2 10.1 with CM11, blackhawk kernel too (but I think blackhawk kernel was deleted by cm updates, because I don't have overclocking after these).
So, suggestion - add the keymap that do nothing, but after all, this will don't send too anything to android.
Also, thank's for great app that make using linux under chroot more friendly than anything (or no, only framebuffer method is more friendly :P)

Xserver unresponsive when not in foreground

I just installed a chroot environment on a galaxy s2 and almost everything is working fine except for a single irritating issue.
If the Xserver is not the frontmost application, it becomes unresponsive and the underliyng clients just hangs until i bring it to the front again.

Use case:
if i am playing an mp3 via an X gui application, as soon as i switch to another android app, the music just stops, because the X player cant update his gui (eg: for displaying the new song time position).
So i switch to Xserver again and the music starts.

Sure i could use vnc for that, but i'd like Xserver xsdl :)

Is there a way to force Xserver Xsdl to answer to clients even when it is not the frontmost app?
Maybe i can use some sort of X.org proxy like Xdmx, but i suspect that i'll have a performance hit.

Thanks for your attention.

custom fonts don't work

Hello,

I'm using XServer XSDL version 1.11.07.

Adding fonts with xset +fp does not work.

Only the "fixed" font is available in xfontsel.

Does X font server need to be implemented?

Thanks for your consideration.

Emulate mouse wheel on touchscreen?

Awesome app, I am using it to write this comment in firefox in a chroot on my android tablet, I have tweaked the settings until I am happy with the touchscreen, have given it five stars on the market.

Prior to this I used jump desktop (vnc), and it has a nice feature that dragging with two fingers emulates a mouse wheel. Any chance of including that? It would be the last missing piece to make this thing perfect for me. Ideally, drag down with two fingers = scroll page up, and vice versa (different from standard mouse wheel behaviour, but similar to how one drags on touchscreens).

crash on resolution change

Hello,

I'm using XServer XSDL version 1.11.07 under Android 4.3.

It crashes when I change the screen resolution in Android:

wm resize reset
wm density reset

Or:

wm resize 1920x1080
wm density 160

As a result, I lose my X session with errors like this:

xterm: fatal IO error 104 (Connection reset by peer) or KillClient on X server ":1"
Error: Can't open display: :1 

Thanks for your consideration.

Support for Android 2.1

Although Android 2.1 is pretty much deprecated by now, there are some devices stuck on it, e.g. the (rooted) versions of the Nook Simple Touch.
XSDL xserver currently cannot be installed on these. It would be great if there'd be at least one version of the app that could be compiled backwards compatibly so as to be able to run on those older devices.

how to keep it persistent in memory?

Hi
the xserver is frequently being killed on tablet thus renders it useless because i have to restart xserver and aall the apps i am using on it.

My device is cm11 1800mb ram android 4.4.4

I am wonfering iif there is a way to make it less prone to this kind if purging

Thanks

keep in foreground?

The big disadvantage with the xserver vs a vnc viewer is that, if the x server is killed, the session is gone. So far I worked around it by renicing it to -20 and doing a cron job to adjust the x server's oom_adj and oom_score_adj in /proc, but it just got killed again. (Android doesn't seem to kill the chrooted linux applications, only its own apps.) I read that if the app includes a "service", you can keep it in the foreground using startForeground() -- is that a possibility here? Thanks!
http://developer.android.com/reference/android/app/Service.html#startForeground%28int,%20android.app.Notification%29

Hardware keyboard issues(slow input and no Ctrl key)

Thank you developers for providing an excellent x server for android. My issue is that the X server handles input very slowly when entering different characters quickly in succession. If you for example spam 2 different keys repeatedly it will take seconds for the characters to appear on the screen(they appear after you stop typing). I was even able to reproduce this problem with an on-screen keyboard.
Another annoying problem is that the Ctrl is not registered by the x server. xev shows no events when pressing ctrl repeatedly or holding it.
I hope these issues can be fixed then it would feel like running a linux desktop natively on android.

Audio settings?

There are two sections in the configuration...

  • size of audio buffer and
  • video settings

Are audio and video actually supported?

no armeabi libs

many stock gingerbread devices like the one I'm using now are armeabi. google didn't stop armeabi support officially in favor of armeabi-v7a until ice cream sandwich.
I really enjoy this app.
my x86 build box has been out of commission for months or I'd not bother you with this issue.
I haven't been able to adapt the sdk or ndk for arm so no sdl build for rebuilding this myself for armeabi.
thanks for your work and for sharing source.

keyboard dont send "pipe/greater/smaller" key

I have some errors with my logitech k260 wireless keyboard:

The keys "-" and "รŸ" are switched and the keys "z" and "y" too. It could be easily be remapped in the xserver app.

But the "pipe" key isnt been recognised by xev so the key isnt working. The key is recognised by the app but if i try to remap it to an other key the new key isnt working too.

blank screen after Alt-Tab

Hello,

I'm using XServer XSDL version 1.11.07 under Android 4.3.

When I switch to another app (using Alt-Tab) and then switch back, the XServer XSDL app's screen becomes blank (nothing is rendered). Sometimes, after a random amount of switching to different apps, the XServer XSDL app's screen displays correctly again.

Thanks for your consideration.

click-and-drag support with touch screen?

I'm running xserver-xsdl from the Play Store and really enjoying the ability to use a Linux desktop on my rooted Android phablet. Moving the pointer by sliding my finger on the touch screen away from the mouse is ingenious and very easy to get used to. The only thing I haven't figured out is how to do a left click-and-drag operation (with the touch screen) which I commonly use to move a window around. Is this supported, and if not, can I make a feature request for it?

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.