First post, by petran79
petran79
Offline
Rank
Newbie
I have a vga crt monitor connected to the laptop. I have disabled the laptop monitor. I set various custom resolutions at xorg.conf file. Laptop has an nvidia card with 550 drivers installed.
When I run dosbox it switches to fullscreen fine. Though if I exit the app, resolution remains at 640x400, the one DOSBOX autoswitched to. However when I try to launch a game it fails to switch to fullscreen and I get a black screen, though I can hear the sound. In windowed mode game runs fine. But when I press alt-enter to switch to fullscreen dosbox crashes
DOSBox version 0.74-3Copyright 2002-2019 DOSBox Team, published under GNU GPL.---CONFIG:Loading primary settings from config file /home/petros/.dosbox/dosbox-0.74-3.confMIXER:Got different values from SDL: freq 44100, blocksize 512ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)MIDI:Opened device:ossOne joystick reported, initializing with 4axisUsing joystick ST LIS3LV02DL Accelerometer with 3 axes, 0 buttons and 0 hat(s)DOSBox switched to max cycles, because of the setting: cycles=auto. If the game runs too fast try a fixed cycles amount in DOSBox's options.Warning: file creation failed: /mnt/7571a82e-f4bb-4ae8-90aa-252228c292c7/msdos/PSYCPIN/OTHER/HISCORES.FLGX Error of failed request: BadValue (integer parameter out of range for operation)Major opcode of failed request: 153 (XFree86-VidModeExtension)Minor opcode of failed request: 10 (XF86VidModeSwitchToMode)Value in failed request: 0x26bSerial number of failed request: 406Current serial number in output stream: 408Same when I run Dosbox in fullscreen and press alt-Enter for windowed mode. Or when I run in windowed mode and try to enter full screen and then back to windowed mode.dosboxDOSBox version 0.74-3Copyright 2002-2019 DOSBox Team, published under GNU GPL.---CONFIG:Loading primary settings from config file /home/petros/.dosbox/dosbox-0.74-3.confMIXER:Got different values from SDL: freq 44100, blocksize 512ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)MIDI:Opened device:ossOne joystick reported, initializing with 4axisUsing joystick ST LIS3LV02DL Accelerometer with 3 axes, 0 buttons and 0 hat(s)X Error of failed request: BadValue (integer parameter out of range for operation)Major opcode of failed request: 153 (XFree86-VidModeExtension)Minor opcode of failed request: 10 (XF86VidModeSwitchToMode)Value in failed request: 0x3c0001cSerial number of failed request: 353Current serial number in output stream: 355When I disable the CRT monitor and use the laptops LCD monitor, DOSBOX tries to switch to the CRT monitor, despite the fact it is deactivated. If I disconnect it completely, LCD monitor becomes black. Only if I reconnect it does the fullscreen image appear on CRT monitor but with the above issues. I guess xorg redirects dosbox to the crt monitor as that resolution is not available to the CRT# This is the configuration file for DOSBox 0.74-3. (Please use the latest version of DOSBox)# Lines starting with a # are comment lines and are ignored by DOSBox.# They are used to (briefly) document the effect of each option.[sdl]# fullscreen: Start dosbox directly in fullscreen. (Press ALT-Enter to go back)# fulldouble: Use double buffering in fullscreen. It can reduce screen flickering, but it can also result in a slow DOSBox.# fullresolution: What resolution to use for fullscreen: original, desktop or fixed size (e.g. 1024x768).# Using your monitor's native resolution (desktop) with aspect=true might give the best results.# If you end up with small window on a large screen, try an output different from surface.# On Windows 10 with display scaling (Scale and layout) set to a value above 100%, it is recommended# to use a lower full/windowresolution, in order to avoid window size problems.# windowresolution: Scale the window to this size IF the output device supports hardware scaling.# (output=surface does not!)# output: What video system to use for output.# Possible values: surface, overlay, opengl, openglnb.# autolock: Mouse will automatically lock, if you click on the screen. (Press CTRL-F10 to unlock)# sensitivity: Mouse sensitivity.# waitonerror: Wait before closing the console if dosbox has an error.
# priority: Priority levels for dosbox. Second entry behind the comma is for when dosbox is not focused/minimized.# pause is only valid for the second entry.# Possible values: lowest, lower, normal, higher, highest, pause.# mapperfile: File used to load/save the key/event mappings from. Resetmapper only works with the default value.# usescancodes: Avoid usage of symkeys, might not work on all operating systems.fullscreen=falsefulldouble=falsefullresolution=originalwindowresolution=originaloutput=openglautolock=truesensitivity=100waitonerror=truepriority=higher,normalmapperfile=mapper-0.74-3.mapusescancodes=true[dosbox]# language: Select another language file.# machine: The type of machine DOSBox tries to emulate.# Possible values: hercules, cga, tandy, pcjr, ega, vgaonly, svga_s3, svga_et3000, svga_et4000, svga_paradise, vesa_nolfb, vesa_oldvbe.# captures: Directory where things like wave, midi, screenshot get captured.# memsize: Amount of memory DOSBox has in megabytes.# This value is best left at its default to avoid problems with some games,# though few games might require a higher value.# There is generally no speed advantage when raising this value.language=machine=svga_s3captures=capturememsize=16[render]# frameskip: How many frames DOSBox skips before drawing one.# aspect: Do aspect correction, if your output method doesn't support scaling this can slow things down!# scaler: Scaler used to enlarge/enhance low resolution modes. If 'forced' is appended,# then the scaler will be used even if the result might not be desired.# To fit a scaler in the resolution used at full screen may require a border or side bars,# to fill the screen entirely, depending on your hardware, a different scaler/fullresolution might work.# Possible values: none, normal2x, normal3x, advmame2x, advmame3x, advinterp2x, advinterp3x, hq2x, hq3x, 2xsai, super2xsai, supereagle, tv2x, tv3x, rgb2x, rgb3x, scan2x, scan3x.frameskip=0aspect=falsescaler=none[cpu]# core: CPU Core used in emulation. auto will switch to dynamic if available and# appropriate.# Possible values: auto, dynamic, normal, simple.# cputype: CPU Type used in emulation. auto is the fastest choice.# Possible values: auto, 386, 386_slow, 486_slow, pentium_slow, 386_prefetch.# cycles: Amount of instructions DOSBox tries to emulate each millisecond.# Setting this value too high results in sound dropouts and lags.# Cycles can be set in 3 ways:# 'auto' tries to guess what a game needs.# It usually works, but can fail for certain games.# 'fixed #number' will set a fixed amount of cycles. This is what you usually# need if 'auto' fails. (Example: fixed 4000).# 'max' will allocate as much cycles as your computer is able to# handle.# Possible values: auto, fixed, max.# cycleup: Amount of cycles to decrease/increase with keycombos.(CTRL-F11/CTRL-F12)# cycledown: Setting it lower than 100 will be a percentage.core=autocputype=autocycles=autocycleup=10cycledown=20[mixer]# nosound: Enable silent mode, sound is still emulated though.# rate: Mixer sample rate, setting any device's rate higher than this will probably lower their sound quality.# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.# blocksize: Mixer block size, larger blocks might help sound stuttering but sound will also be more lagged.# Possible values: 1024, 2048, 4096, 8192, 512, 256.# prebuffer: How many milliseconds of data to keep on top of the blocksize.nosound=falserate=44100blocksize=1024prebuffer=25[midi]# mpu401: Type of MPU-401 to emulate.# Possible values: intelligent, uart, none.# mididevice: Device that will receive the MIDI data from MPU-401.# Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use# (find the id with mixer/listmidi).# Or in the case of coreaudio, you can specify a soundfont here.# See the README/Manual for more details.mpu401=intelligentmididevice=defaultmidiconfig=[sblaster]# sbtype: Type of Soundblaster to emulate. gb is Gameblaster.# Possible values: sb1, sb2, sbpro1, sbpro2, sb16, gb, none.# sbbase: The IO address of the soundblaster.# Possible values: 220, 240, 260, 280, 2a0, 2c0, 2e0, 300.# irq: The IRQ number of the soundblaster.# Possible values: 7, 5, 3, 9, 10, 11, 12.# dma: The DMA number of the soundblaster.# Possible values: 1, 5, 0, 3, 6, 7.# hdma: The High DMA number of the soundblaster.# Possible values: 1, 5, 0, 3, 6, 7.# sbmixer: Allow the soundblaster mixer to modify the DOSBox mixer.# oplmode: Type of OPL emulation. On 'auto' the mode is determined by sblaster type. All OPL modes are Adlib-compatible, except for 'cms'.# Possible values: auto, cms, opl2, dualopl2, opl3, none.# oplemu: Provider for the OPL emulation. compat might provide better quality (see oplrate as well).# Possible values: default, compat, fast.# oplrate: Sample rate of OPL music emulation. Use 49716 for highest quality (set the mixer rate accordingly).# Possible values: 44100, 49716, 48000, 32000, 22050, 16000, 11025, 8000.sbtype=sb16sbbase=220irq=7dma=1hdma=5sbmixer=trueoplmode=autooplemu=defaultoplrate=44100[gus]# gus: Enable the Gravis Ultrasound emulation.# gusrate: Sample rate of Ultrasound emulation.# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.# gusbase: The IO base address of the Gravis Ultrasound.# Possible values: 240, 220, 260, 280, 2a0, 2c0, 2e0, 300.# gusirq: The IRQ number of the Gravis Ultrasound.# Possible values: 5, 3, 7, 9, 10, 11, 12.# gusdma: The DMA channel of the Gravis Ultrasound.# Possible values: 3, 0, 1, 5, 6, 7.# ultradir: Path to Ultrasound directory. In this directory# there should be a MIDI directory that contains# the patch files for GUS playback. Patch sets used# with Timidity should work fine.gus=truegusrate=44100gusbase=240gusirq=5gusdma=3ultradir=C:\ULTRASND[speaker]# pcspeaker: Enable PC-Speaker emulation.# pcrate: Sample rate of the PC-Speaker sound generation.# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.# tandy: Enable Tandy Sound System emulation. For 'auto', emulation is present only if machine is set to 'tandy'.# Possible values: auto, on, off.# tandyrate: Sample rate of the Tandy 3-Voice generation.# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.# disney: Enable Disney Sound Source emulation. (Covox Voice Master and Speech Thing compatible).pcspeaker=truepcrate=44100tandy=autotandyrate=44100disney=true[joystick]# joysticktype: Type of joystick to emulate: auto (default), none,# 2axis (supports two joysticks),# 4axis (supports one joystick, first joystick used),# 4axis_2 (supports one joystick, second joystick used),# fcs (Thrustmaster), ch (CH Flightstick).# none disables joystick emulation.# auto chooses emulation depending on real joystick(s).# (Remember to reset dosbox's mapperfile if you saved it earlier)# Possible values: auto, 2axis, 4axis, 4axis_2, fcs, ch, none.# timed: enable timed intervals for axis. Experiment with this option, if your joystick drifts (away).# autofire: continuously fires as long as you keep the button pressed.# swap34: swap the 3rd and the 4th axis. Can be useful for certain joysticks.# buttonwrap: enable button wrapping at the number of emulated buttons.joysticktype=autotimed=trueautofire=falseswap34=falsebuttonwrap=false[serial]# serial1: set type of device connected to com port.# Can be disabled, dummy, modem, nullmodem, directserial.# Additional parameters must be in the same line in the form of# parameter:value. Parameter for all types is irq (optional).# for directserial: realport (required), rxdelay (optional).# (realport:COM1 realport:ttyS0).# for modem: listenport (optional).# for nullmodem: server, rxdelay, txdelay, telnet, usedtr,# transparent, port, inhsocket (all optional).# Example: serial1=modem listenport:5000# Possible values: dummy, disabled, modem, nullmodem, directserial.# serial2: see serial1# Possible values: dummy, disabled, modem, nullmodem, directserial.# serial3: see serial1# Possible values: dummy, disabled, modem, nullmodem, directserial.# serial4: see serial1# Possible values: dummy, disabled, modem, nullmodem, directserial.serial1=dummyserial2=dummyserial3=disabledserial4=disabled[dos]# xms: Enable XMS support.# ems: Enable EMS support.# umb: Enable UMB support.# keyboardlayout: Language code of the keyboard layout (or none).xms=trueems=trueumb=truekeyboardlayout=auto[ipx]# ipx: Enable ipx over UDP/IP emulation.ipx=false[autoexec]# Lines in this section will be run at startup.# You can put your MOUNT lines here.mount C "/mnt/7571a82e-f4bb-4ae8-90aa-252228c292c7/msdos" -freesize 500
do not know if it helps, but here is the xorg.conf file too
Section "Monitor"HorizSync 30.0 - 70.0VertRefresh 50.0 - 160.0Identifier "Monitor0"Modeline "256x240_160.00" 13.50 256 264 288 320 240 243 253 267 -hsync +vsyncModeline "288x240_160.00" 15.50 288 304 328 368 240 243 253 267 -hsync +vsyncModeline "288x240_124.00" 11.25 288 296 320 352 240 243 253 261 -hsync +vsyncModeline "296x240_124.00" 11.50 296 304 328 360 240 243 253 261 -hsync +vsyncModeline "296x240_160.00" 16.00 296 312 336 376 240 243 253 267 -hsync +vsyncModeline "304x240_124.00" 11.75 304 312 336 368 240 243 253 261 -hsync +vsyncModeline "304x240_160.00" 16.25 304 320 344 384 240 243 253 267 -hsync +vsyncModeline "320x200_140.00" 12.25 320 336 360 400 200 203 209 220 -hsync +vsyncModeline "320x200_160.00" 14.00 320 336 360 400 200 203 209 223 -hsync +vsyncModeline "320x224_150.00" 14.75 320 336 360 400 224 227 237 248 -hsync +vsyncModeline "320x224_160.00" 15.75 320 336 360 400 224 227 237 249 -hsync +vsyncModeline "320x240_140.00" 14.50 320 336 360 400 240 243 247 264 -hsync +vsyncModeline "320x240_142.00" 14.75 320 336 360 400 240 243 247 264 -hsync +vsyncModeline "320x512_100.00" 22.50 320 336 368 416 512 515 525 545 -hsync +vsyncModeline "320x512_120.00" 27.50 320 336 368 416 512 515 525 552 -hsync +vsyncModeline "320x240_160.00" 17.00 320 336 360 400 240 243 247 267 -hsync +vsyncModeline "320x256_160.00" 18.75 320 336 368 416 256 259 266 284 -hsync +vsyncModeline "336x288_160.00" 22.00 336 352 384 432 288 291 301 320 -hsync +vsyncModeline "384x240_160.00" 21.00 384 408 440 496 240 243 249 267 -hsync +vsyncModeline "384x240_122.00" 15.25 384 400 432 480 240 243 249 261 -hsync +vsyncModeline "400x300_150.00" 25.25 400 424 456 512 300 303 307 331 -hsync +vsyncModeline "432x243_140.00" 20.25 432 448 488 544 243 246 251 267 -hsync +vsyncModeline "496x384_120.00" 31.75 496 520 568 640 384 387 397 415 -hsync +vsyncModeline "512x288_160.00" 34.25 512 544 592 672 288 291 296 320 -hsync +vsyncModeline "600x200_140.00" 22.75 600 616 672 744 200 203 213 220 -hsync +vsyncModeline "600x200_150.00" 24.50 600 616 672 744 200 203 213 222 -hsync +vsyncModeline "600x224_120.00" 21.50 600 616 672 744 224 227 237 244 -hsync +vsyncModeline "600x224_121.00" 21.75 600 616 672 744 224 227 237 244 -hsync +vsyncModeline "600x224_122.00" 22.00 600 616 672 744 224 227 237 244 -hsync +vsyncModeline "600x224_123.00" 22.25 600 616 672 744 224 227 237 244 -hsync +vsyncModeline "600x224_124.00" 22.25 600 616 672 744 224 227 237 244 -hsync +vsyncModeline "600x224_125.00" 22.50 600 616 672 744 224 227 237 244 -hsync +vsyncModeline "600x224_130.00" 23.50 600 616 672 744 224 227 237 245 -hsync +vsyncModeline "600x224_140.00" 26.00 600 624 680 760 224 227 237 246 -hsync +vsyncModeline "600x240_120.00" 23.00 600 616 672 744 240 243 253 261 -hsync +vsyncModeline "600x240_121.00" 23.25 600 616 672 744 240 243 253 261 -hsync +vsyncModeline "600x240_122.00" 23.50 600 616 672 744 240 243 253 261 -hsync +vsyncModeline "600x240_123.00" 23.75 600 616 672 744 240 243 253 261 -hsync +vsyncModeline "600x240_124.00" 24.00 600 616 672 744 240 243 253 261 -hsync +vsyncModeline "600x240_125.00" 24.25 600 616 672 744 240 243 253 261 -hsync +vsyncModeline "600x240_160.00" 33.00 600 632 688 776 240 243 253 267 -hsync +vsyncModeline "768x240_122.00" 30.50 768 792 864 960 240 243 253 261 -hsync +vsyncModeline "1024x240_122.00" 40.50 1024 1056 1152 1280 240 243 253 261 -hsync +vsyncModeline "1280x240_122.00" 50.75 1280 1320 1440 1600 240 243 253 261 -hsync +vsyncModeline "512x384_160.00" 45.50 512 544 592 672 384 387 391 425 -hsync +vsyncModeline "640x200_160.00" 29.00 640 664 728 816 200 203 213 223 -hsync +vsyncModeline "640x224_100.00" 19.00 640 664 720 800 224 227 237 241 -hsync +vsyncModeline "640x224_124.00" 24.00 640 664 720 800 224 227 237 244 -hsync +vsyncModeline "640x224_121.00" 23.50 640 664 720 800 224 227 237 244 -hsync +vsyncModeline "640x224_122.00" 23.50 640 664 720 800 224 227 237 244 -hsync +vsyncModeline "640x224_123.00" 23.75 640 664 720 800 224 227 237 244 -hsync +vsyncModeline "640x240_122.00" 25.25 640 664 720 800 240 243 253 261 -hsync +vsyncModeline "640x256_160.00" 37.75 640 672 736 832 256 259 269 284 -hsync +vsync
Modeline "640x350_70.00" 20.50 640 664 720 800 350 353 363 368 -hsync +vsyncModeline "640x350_160.00" 52.50 640 680 744 848 350 353 363 388 -hsync +vsyncModeline "640x400_69.00" 23.00 640 664 720 800 400 403 409 419 -hsync +vsyncModeline "640x400_70.00" 23.25 640 664 720 800 400 403 409 420 -hsync +vsyncModeline "640x400_71.00" 23.75 640 664 720 800 400 403 409 420 -hsync +vsyncModeline "640x400_72.00" 24.00 640 664 720 800 400 403 409 420 -hsync +vsyncModeline "640x400_75.00" 25.00 640 664 720 800 400 403 409 421 -hsync +vsyncModeline "640x400_140.00" 51.75 640 680 744 848 400 403 409 437 -hsync +vsyncModeline "640x400_141.00" 52.00 640 680 744 848 400 403 409 437 -hsync +vsyncModeline "640x400_142.00" 52.50 640 680 744 848 400 403 409 438 -hsync +vsyncModeline "640x400_150.00" 55.75 640 680 744 848 400 403 409 440 -hsync +vsyncModeline "640x480_70.00" 28.00 640 664 720 800 480 483 487 503 -hsync +vsyncModeline "640x480_72.00" 29.50 640 664 728 816 480 483 487 503 -hsync +vsyncModeline "640x480_75.00" 30.75 640 664 728 816 480 483 487 504 -hsync +vsyncModeline "640x480_85.00" 35.00 640 664 728 816 480 483 487 507 -hsync +vsyncModeline "640x480_100.00" 42.50 640 672 736 832 480 483 487 512 -hsync +vsyncModeline "640x480_120.00" 52.50 640 680 744 848 480 483 487 518 -hsync +vsyncModeline "640x480_125.00" 54.75 640 680 744 848 480 483 487 519 -hsync +vsyncModeline "640x480_130.00" 57.25 640 680 744 848 480 483 487 521 -hsync +vsyncModeline "640x480_133.00" 58.75 640 680 744 848 480 483 487 522 -hsync +vsyncModeline "640x480_136.00" 60.00 640 680 744 848 480 483 487 523 -hsync +vsyncModeline "640x512_120.00" 56.00 640 680 744 848 512 515 522 552 -hsync +vsyncModeline "640x512_100.00" 45.25 640 672 736 832 512 515 522 545 -hsync +vsyncModeline "720x400_72.00" 27.00 720 744 808 896 400 403 413 420 -hsync +vsyncModeline "720x480_130.00" 64.75 720 768 840 960 480 483 493 521 -hsync +vsyncModeline "640x528_100.00" 47.50 640 680 744 848 528 531 541 562 -hsync +vsyncModeline "640x528_120.00" 57.75 640 680 744 848 528 531 541 569 -hsync +vsyncModeline "800x600_70.00" 45.50 800 840 920 1040 600 603 607 628 -hsync +vsyncModeline "800x600_72.00" 47.00 800 840 920 1040 600 603 607 628 -hsync +vsyncModeline "800x600_75.00" 49.00 800 840 920 1040 600 603 607 629 -hsync +vsyncModeline "800x600_85.00" 56.75 800 848 928 1056 600 603 607 633 -hsync +vsyncModeline "800x600_100.00" 67.25 800 848 928 1056 600 603 607 639 -hsync +vsyncModeline "800x600_105.00" 72.00 800 856 936 1072 600 603 607 640 -hsync +vsyncModeline "800x600_108.00" 74.00 800 856 936 1072 600 603 607 642 -hsync +vsyncModeline "992x768_57.66" 59.50 992 1048 1144 1296 768 771 781 797 -hsync +vsyncModeline "1024x768_70.00" 75.25 1024 1080 1184 1344 768 771 775 802 -hsync +vsyncModeline "1024x768_72.00" 78.50 1024 1088 1192 1360 768 771 775 803 -hsync +vsyncModeline "1024x768_75.00" 82.00 1024 1088 1192 1360 768 771 775 805 -hsync +vsyncModeline "1024x768_85.00" 94.50 1024 1096 1200 1376 768 771 775 809 -hsync +vsyncModeline "1152x864_70.00" 96.75 1152 1224 1344 1536 864 867 871 902 -hsync +vsyncModeline "1152x864_72.00" 99.75 1152 1224 1344 1536 864 867 871 903 -hsync +vsyncModeline "1152x864_75.00" 104.00 1152 1224 1344 1536 864 867 871 905 -hsync +vsyncModeline "1280x256_160.00" 75.50 1280 1344 1472 1664 256 259 269 284 -hsync +vsyncModeline "1280x512_120.00" 113.25 1280 1368 1496 1712 512 515 525 552 -hsync +vsyncModeline "1280x512_100.00" 91.50 1280 1352 1480 1680 512 515 525 545 -hsync +vsyncModeline "1280x800_70.00" 99.00 1280 1360 1488 1696 800 803 809 836 -hsync +vsyncModeline "1280x960_70.00" 120.00 1280 1368 1496 1712 960 963 967 1002 -hsync +vsyncModeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsyncModeline "1280x1024_65.00" 118.50 1280 1368 1496 1712 1024 1027 1034 1066 -hsync +vsyncModeline "1920x1080_72.00" 210.25 1920 2056 2256 2592 1080 1083 1088 1128 -hsync +vsyncModeline "1920x1080_74.00" 217.75 1920 2064 2264 2608 1080 1083 1088 1129 -hsync +vsyncModeline "1920x1080_75.00" 220.75 1920 2064 2264 2608 1080 1083 1088 1130 -hsync +vsyncModeline "2560x240_122.00" 102.00 2560 2632 2888 3216 240 243 253 261 -hsync +vsyncEndSectionSection "Device"Identifier "Device0"Driver "nvidia"Option "UseEdidFreqs" "false"EndSectionSection "Screen"Identifier "Screen0"Device "Device0"Monitor "Monitor0"Option "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"Option "ModeValidation" "AllowNonEdidModes"EndSection