pelya / xserver-xsdl

XSDL - X.Org server ported to Android using SDL.
https://play.google.com/store/apps/details?id=x.org.server
Other
311 stars 55 forks source link

invoke X server directly #136

Closed zanfix closed 3 years ago

zanfix commented 3 years ago

Hi pelya

I recently purchased a samsung tablet with DEX.

This is now my main device even for work at home (remote connection to office mainly).

My problem is: since DEX on hdmi and dex on the tablet screen have different resolutions i would be forced to go into the app and change the options manually, that as you can imagine gets quite tediuos and cumbersome.

So what i do at the moment is to automate the process from my chroot script environment by modifing the libsdl-settings.cfg before launching the xsdl app

something like this:

// // figure out the device, active android screen, etc... // // modify the config file accordingly printf $XSDL$NOHELP$SCREEN$RES$NOCURSOR | dd of=${XSDL_FILES_FOLDER}/${XSDL_CONFIG_FILE} bs=1 seek=1301 count=86 conv=notrunc // //start the xserver monkey -p x.org.server -c android.intent.category.LAUNCHER 1

i have other reasons to invoke the xsdl app from my script environment, because I have weird stuff going on dex that I am still trying to understand if it's dex or xsdl fault (for example the x server screen getting opaque/colors washed out if i ALT+TAB out of XSDL)

So my question would be...

Can I invoke the X server directly from a script passing the appropriate parameters as required by the device/environment it is running in?

I see that from you src tree that you have this "host-build/Xsdl-test.sh"' where you do something similar:

hw/kdrive/sdl/Xsdl :1 -audit 3 -screen 640x480x32 -listen inet -listen inet6 -nolisten unix -nopn -exec "x-window-manager & xlogo & xev & xclock -update 1 & xloadimage -onroot -fullscreen background.bmp"

But I suppose this done only in your development environment (and maybe not even on android?)

Can I do this direct invocation myself from the "production" app?

Regards

pelya commented 3 years ago

Yes, this script is to test XSDL on Linux. If you want to modify commandline arguments, you will have to edit libsdl-settings.cfg in the app private directory in /data/ The file format is Java ObjectOutputStream. Or recompile the app yourself and make it read arguments from the SD card.

On Thu, Mar 18, 2021 at 4:20 PM zanfix @.***> wrote:

Hi pelya

I recently purchased a samsung tablet with DEX.

This is now my main device even for work at home (remote connection to office mainly).

My problem is: since DEX on hdmi and dex on the tablet screen have different resolutions i would be forced to go into the app and change the options manually, that as you can imagine gets quite tediuos and cumbersome.

So what i do at the moment is to automate the process from my chroot script environment by modifing the libsdl-settings.cfg before launching the xsdl app

something like this:

// // figure out the device, active android screen, etc... // // modify the config file accordingly printf $XSDL$NOHELP$SCREEN$RES$NOCURSOR | dd of=${XSDL_FILES_FOLDER}/${XSDL_CONFIG_FILE} bs=1 seek=1301 count=86 conv=notrunc // //start the xserver monkey -p x.org.server -c android.intent.category.LAUNCHER 1

i have other reasons to invoke the xsdl app from my script environment, because I have weird stuff going on dex that I am still trying to understand if it's dex or xsdl fault (for example the x server screen getting opaque/colors washed out if i ALT+TAB out of XSDL)

So my question would be...

Can I invoke the X server directly from a script passing the appropriate parameters as required by the device/environment it is running in?

I see that from you src tree that you have this "host-build/Xsdl-test.sh"' where you do something similar:

hw/kdrive/sdl/Xsdl :1 -audit 3 -screen 640x480x32 -listen inet -listen inet6 -nolisten unix -nopn -exec "x-window-manager & xlogo & xev & xclock -update 1 & xloadimage -onroot -fullscreen background.bmp"

But I suppose this done only in your development environment (and maybe not even on android?)

Can I do this direct invocation myself from the "production" app?

Regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pelya/xserver-xsdl/issues/136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABF5QFSQJJI6NWAPEO4YLLTEID2VANCNFSM4ZMW3AQA .

zanfix commented 3 years ago

Yes, this script is to test XSDL on Linux. If you want to modify commandline arguments, you will have to edit libsdl-settings.cfg in the app private directory in /data/ The file format is Java ObjectOutputStream. Or recompile the app yourself and make it read arguments from the SD card. On Thu, Mar 18, 2021 at 4:20 PM zanfix @.***> wrote: Hi pelya I recently purchased a samsung tablet with DEX. This is now my main device even for work at home (remote connection to office mainly). My problem is: since DEX on hdmi and dex on the tablet screen have different resolutions i would be forced to go into the app and change the options manually, that as you can imagine gets quite tediuos and cumbersome. So what i do at the moment is to automate the process from my chroot script environment by modifing the libsdl-settings.cfg before launching the xsdl app something like this: // // figure out the device, active android screen, etc... // // modify the config file accordingly printf $XSDL$NOHELP$SCREEN$RES$NOCURSOR | dd of=${XSDL_FILES_FOLDER}/${XSDL_CONFIG_FILE} bs=1 seek=1301 count=86 conv=notrunc // //start the xserver monkey -p x.org.server -c android.intent.category.LAUNCHER 1 i have other reasons to invoke the xsdl app from my script environment, because I have weird stuff going on dex that I am still trying to understand if it's dex or xsdl fault (for example the x server screen getting opaque/colors washed out if i ALT+TAB out of XSDL) So my question would be... Can I invoke the X server directly from a script passing the appropriate parameters as required by the device/environment it is running in? I see that from you src tree that you have this "host-build/Xsdl-test.sh"' where you do something similar: hw/kdrive/sdl/Xsdl :1 -audit 3 -screen 640x480x32 -listen inet -listen inet6 -nolisten unix -nopn -exec "x-window-manager & xlogo & xev & xclock -update 1 & xloadimage -onroot -fullscreen background.bmp" But I suppose this done only in your development environment (and maybe not even on android?) Can I do this direct invocation myself from the "production" app? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#136>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABF5QFSQJJI6NWAPEO4YLLTEID2VANCNFSM4ZMW3AQA .

sure, it's what iˆm doing, opened the config file with an hex editor and figured out the offsets

zanfix commented 3 years ago

was a stupid question anyway...