Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: badpenguin on May 02, 2015, 06:10:31 am

Title: [SOLVED] FS start on the wrong display in dual head with debian 8
Post by: badpenguin on May 02, 2015, 06:10:31 am
First of all i'm very upset that wxlauncher and fs 3.7.0 in debian stable does not works.
I've used FS2 for ages under win7 without any problem but now i'm back on a linux desktop.

I've compiled myself a 3.7.2 64bit.

It works in "-window" mode but i want full screen of course.

When i try fullscreen it opens on the 2nd monitor or it opens spawning on both 1st and 2nd monitor!!!

Is there a way to fix it?

The command line i'm using is this one:
Code: [Select]
./fs2_open_3.7.2 -3dshockwave -cache_bitmaps -ship_choice_3d -weapon_choice_3d -warp_flash -fps  -res 1920x1200 -voicer
This is the output of my xrandr:
Code: [Select]
Screen 0: minimum 320 x 200, current 3280 x 1200, maximum 16384 x 16384
HDMI-0 connected 1360x768+1920+0 (normal left inverted right x axis y axis) 160mm x 90mm
   1360x768      60.02*+
   1920x1080     60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98 
   1920x1080i    60.00    50.00    59.94 
   1280x720      60.00    50.00    59.94 
   1024x768      75.08    70.07    60.00 
   832x624       74.55 
   800x600       72.19    75.00    60.32 
   720x576       50.00 
   720x480       60.00    59.94 
   640x480       75.00    72.81    66.67    60.00    59.94 
   720x400       70.08 
DVI-0 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 495mm x 310mm
   1920x1200     59.95*+
VGA-0 disconnected (normal left inverted right x axis y axis)

This is how xrand is configured:
Code: [Select]
xrandr --output DVI-0 --primary --mode 1920x1200 --output HDMI-0 --mode 1360x768 --right-of DVI-0
Thanks.
Title: Re: FS start on the wrong display in dual head with debian 8
Post by: niffiwan on May 02, 2015, 06:54:07 am
From what I know FSO isn't really dual-head aware, it's probably spawning on the 1st "detected by hardware" screen (although that doesn't fit the issue of spawning across both screens). Can you switch your DVI/HDMI cables between the two monitors? Otherwise, you could try compiling the antipodes branch (https://github.com/scp-fs2open/fs2open.github.com/tree/antipodes) and see if that works any better? It has SDL2.0 support which ~may~ handle dual-head under Linux better than the current SDL1.2.
Title: Re: FS start on the wrong display in dual head with debian 8
Post by: badpenguin on May 02, 2015, 07:04:43 am
Solved!!! :)))

Code: [Select]
export SDL_VIDEO_FULLSCREEN_HEAD=0
 ;7
Title: Re: [SOLVED] FS start on the wrong display in dual head with debian 8
Post by: niffiwan on May 02, 2015, 07:11:05 am
sweet! I'll have to put that in the wiki
Title: Re: [SOLVED] FS start on the wrong display in dual head with debian 8
Post by: badpenguin on May 02, 2015, 07:29:57 am
sweet! I'll have to put that in the wiki

Do you have some info about how to enable /dev/speech ???

I cannot find a debian package for that :-/
Title: Re: [SOLVED] FS start on the wrong display in dual head with debian 8
Post by: niffiwan on May 02, 2015, 07:38:38 am
Sorry, I haven't investigated/tested either TTS (e.g. for briefings) or voice recognition (http://www.hard-light.net/forums/index.php?topic=89598.0) in FSO on Linux yet.
Title: Re: [SOLVED] FS start on the wrong display in dual head with debian 8
Post by: AdmiralRalwood on May 02, 2015, 01:42:47 pm
Sorry, I haven't investigated/tested either TTS (e.g. for briefings) or voice recognition (http://www.hard-light.net/forums/index.php?topic=89598.0) in FSO on Linux yet.
If someone can find a cross-platform voice recognition library, it'd be great to make that feature no longer be Windows-only.
Title: Re: [SOLVED] FS start on the wrong display in dual head with debian 8
Post by: jr2 on May 03, 2015, 02:02:01 pm
http://stackoverflow.com/questions/23772698/well-documented-cross-platform-speech-recognition-api

Quote
I've been looking for a decent library to start a speech recognition project, and have found quite a few libraries, all with poor documentation or implementation.

Are there any cross-platform solutions that aren't terrible, or that you wouldn't exclusively recommend to your worst enemy?

So far I've seen Microsoft's SAPI, CMUSphinx, VOCE, and Julius.

The library can be in any language, however I've mostly been looking in C++. Does anyone have any experience or suggestions?


asked May 21 '14 at 1:43


          
Try CMUSphinx, if you count answers on cmusphinx tag here it will win with 5:0 score. SAPI is not cross-platform.      May 21 '14 at 8:28
Title: Re: [SOLVED] FS start on the wrong display in dual head with debian 8
Post by: badpenguin on May 03, 2015, 02:41:09 pm
oh well i had speechd working on /dev/speech but FS fails to initialize
when i'll have time i will look in the speech directory of the FS's source code
does not seems much complicated at first look