You are not logged in.
This may be a quick, bone-basic question but I find that my nvidia-settings such as anti aliasing are not working in a separate xsession.
here is my little script for my game
X :3 -ac -terminate &
sleep 2
export WINEPREFIX=${HOME}/.local/share/wineprefixes/OpenBVE
export WINEARCH=win32
export DISPLAY=:3
cd "${WINEPREFIX}/drive_c/Program Files/openbve [1.2.14.0]"
wine OpenBve.exeCan any one tell me the steps to get em working?
THANKS ![]()
Offline
Run nvidia-settings, after setting DISPLAY, e.g.:
nvidia-settings --load-config-onlyOffline
hi,
thanks for the reply.
I got the following error when I ran the script with nvidia-settings added
X.Org X Server 1.14.3
Release Date: 2013-09-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.11.1-1-ARCH x86_64
Current Operating System: Linux GORFARCH 3.11.6-1-ck #1 SMP PREEMPT Fri Oct 18 15:58:37 EDT 2013 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-ck root=UUID=69842f5c-e134-4495-8dc8-629be04f5374 rw quiet nomodeset nouveau.modeset=0
Build Date: 08 October 2013 08:48:10PM
Current version of pixman: 0.30.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.3.log", Time: Tue Oct 22 12:41:46 2013
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
setversion 1.4 failed
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
Loading extension NV-GLX
Loading extension NV-CONTROL
Loading extension XINERAMA
setversion 1.4 failed
(EE) Server terminated successfully (0). Closing log file.
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:SetProcessDEPPolicy (1): stub
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
fixme:module:GetModuleHandleExW should pin refcount for 0x79000000
fixme:thread:SetThreadStackGuarantee (0x32fc44): stub
err:ole:CoGetContextToken apartment not initialised
fixme:shell:URL_ParseUrl failed to parse L"System.Windows.Forms"
fixme:shell:URL_ParseUrl failed to parse L"Tao.Sdl"
fixme:shell:URL_ParseUrl failed to parse L"System"
fixme:shell:URL_ParseUrl failed to parse L"OpenBveApi"
fixme:shell:URL_ParseUrl failed to parse L"System.Drawing"
fixme:shell:URL_ParseUrl failed to parse L"Tao.OpenGl"
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
fixme:imm:ImmDisableIME (-1): stub
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at OpenBve.Program.Main(String[] args)
wine: Unhandled page fault on read access to 0x00000088 at address 0x312ae07 (thread 0009), starting debugger...
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Unhandled exception: page fault on read access to 0x00000088 in 32-bit code (0x0312ae07).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:0312ae07 ESP:0032f2a8 EBP:0032f300 EFLAGS:00010216( R- -- I -A-P- )
EAX:00000000 EBX:0032f32c ECX:03771a98 EDX:00000000
ESI:00b4253c EDI:0032f2ac
Stack dump:
0x0032f2a8: da0a8bba 79e71998 0032f518 00000000
0x0032f2b8: 00000000 0032f32c 7a32b54c ffffffff
0x0032f2c8: 79e7bbb1 0032f300 0032f2f8 da0a8bba
0x0032f2d8: 00000005 001327c0 0032f310 79e88f63
0x0032f2e8: 00000000 001327c0 0032f32c 0032f32c
0x0032f2f8: 001327c0 00000000 0032f310 79e88f63
000c: sel=0067 base=00000000 limit=00000000 32-bit --x
Backtrace:
=>0 0x0312ae07 (0x0032f300)
1 0x79e88f63 in mscorwks (+0x18f62) (0x0032f310)
2 0x79e88ee4 in mscorwks (+0x18ee3) (0x0032f390)
3 0x79e88e31 in mscorwks (+0x18e30) (0x0032f4cc)
4 0x79e88d19 in mscorwks (+0x18d18) (0x0032f5a0)
5 0x00373db8 (0x00373c68)
6 0x00200004 (0x09000203)
0x0312ae07: movzbl 0x88(%edx),%edx
Modules:
Module Address Debug info Name (73 modules)
PE 400000- 4e6000 Deferred openbve
PE 3aa0000- 3ab0000 Deferred openbveapi
PE 3e40000- 3f5a000 Deferred tao.opengl
PE 11000000-11018000 Deferred tao.sdl
PE 5e380000-5e409000 Deferred diasymreader
PE 603b0000-60416000 Deferred mscoreei
PE 641f0000-6420d000 Deferred shfusion
PE 68100000-6815d000 Deferred sdl
PE 78130000-781cb000 Deferred msvcr80
PE 79000000-7904a000 Deferred mscoree
PE 79060000-790b3000 Deferred mscorjit
PE 790c0000-794de000 Deferred mscorlib
PE 79e70000-7a3d1000 Export mscorwks
PE 7a440000-7a724000 Deferred system
PE 7ade0000-7ae8e000 Deferred system.drawing
PE 7afd0000-7b4e6000 Deferred system.windows.forms
ELF 7b800000-7ba5e000 Deferred kernel32<elf>
\-PE 7b810000-7ba5e000 \ kernel32
ELF 7bc00000-7bce5000 Deferred ntdll<elf>
\-PE 7bc10000-7bce5000 \ ntdll
ELF 7bf00000-7bf04000 Deferred <wine-loader>
ELF 7deb2000-7dedd000 Deferred msacm32<elf>
\-PE 7dec0000-7dedd000 \ msacm32
ELF 7dedd000-7df97000 Deferred winmm<elf>
\-PE 7dee0000-7df97000 \ winmm
ELF 7df97000-7e06a000 Deferred crypt32<elf>
\-PE 7dfa0000-7e06a000 \ crypt32
ELF 7e06a000-7e0ad000 Deferred rsaenh<elf>
\-PE 7e070000-7e0ad000 \ rsaenh
ELF 7e0ad000-7e0e4000 Deferred uxtheme<elf>
\-PE 7e0b0000-7e0e4000 \ uxtheme
ELF 7e0e4000-7e1f1000 Deferred comctl32<elf>
\-PE 7e0f0000-7e1f1000 \ comctl32
ELF 7e1f1000-7e428000 Deferred shell32<elf>
\-PE 7e200000-7e428000 \ shell32
ELF 7e46e000-7e4f4000 Deferred rpcrt4<elf>
\-PE 7e480000-7e4f4000 \ rpcrt4
ELF 7e4f4000-7e637000 Deferred ole32<elf>
\-PE 7e510000-7e637000 \ ole32
ELF 7e637000-7e659000 Deferred libxcb.so.1
ELF 7e659000-7e790000 Deferred libx11.so.6
ELF 7e790000-7e7a3000 Deferred libxext.so.6
ELF 7e7ab000-7e7bf000 Deferred shfolder<elf>
\-PE 7e7b0000-7e7bf000 \ shfolder
ELF 7e7bf000-7e86a000 Deferred msvcrt<elf>
\-PE 7e7d0000-7e86a000 \ msvcrt
ELF 7e89d000-7e8c6000 Deferred libexpat.so.1
ELF 7e8c6000-7e901000 Deferred libfontconfig.so.1
ELF 7e901000-7e93a000 Deferred libpng16.so.16
ELF 7e93a000-7e94a000 Deferred libbz2.so.1.0
ELF 7e94a000-7ea02000 Deferred libfreetype.so.6
ELF 7ea07000-7ea0e000 Deferred libxdmcp.so.6
ELF 7ea34000-7eb58000 Deferred gdi32<elf>
\-PE 7ea40000-7eb58000 \ gdi32
ELF 7eb58000-7ecb9000 Deferred user32<elf>
\-PE 7eb70000-7ecb9000 \ user32
ELF 7ecb9000-7ed33000 Deferred shlwapi<elf>
\-PE 7ecd0000-7ed33000 \ shlwapi
ELF 7ed33000-7eda7000 Deferred advapi32<elf>
\-PE 7ed40000-7eda7000 \ advapi32
ELF 7eda7000-7edff000 Deferred libncursesw.so.5
ELF 7ef88000-7efce000 Deferred libm.so.6
ELF 7efcf000-7efe6000 Deferred libz.so.1
ELF 7efe6000-7f000000 Deferred version<elf>
\-PE 7eff0000-7f000000 \ version
ELF f7330000-f7334000 Deferred libxau.so.6
ELF f7336000-f733b000 Deferred libdl.so.2
ELF f7360000-f736d000 Deferred libnss_files.so.2
ELF f736d000-f751c000 Deferred libc.so.6
ELF f751c000-f7538000 Deferred libpthread.so.0
ELF f7538000-f76ef000 Dwarf libwine.so.1
ELF f76f0000-f7712000 Deferred ld-linux.so.2
ELF f7712000-f7713000 Deferred [vdso].so
Threads:
process tid prio (all id:s are in hex)
00000008 (D) C:\Program Files\openbve [1.2.14.0]\OpenBve.exe
0000002b 2
0000002a 0
00000009 0 <==
0000000e services.exe
00000026 0
00000025 0
0000001e 0
0000001a 0
00000018 0
00000010 0
0000000f 0
00000014 explorer.exe
00000029 0
00000015 0
0000001c winedevice.exe
00000024 0
00000021 0
00000020 0
0000001d 0
00000022 plugplay.exe
00000028 0
00000027 0
00000023 0X :3 -ac -terminate &
sleep 2
export WINEPREFIX=${HOME}/.local/share/wineprefixes/OpenBVE
export WINEARCH=win32
export DISPLAY=:3
nvidia-settings --load-config-only
cd "${WINEPREFIX}/drive_c/Program Files/openbve [1.2.14.0]"
wine OpenBve.exeOffline