När jag kör scriptet, så startar servern, men inte wine.
Händelseförlopp:
1. Niklas trycker på scriptet, och väljer kör.
2. Skärmen blir svart och växlar sedan till myrornas krig med ett X till musmarkör
3. Niklas väntar i en evighet utan att något förändras
4. Niklas dödar servern med Ctrl+Alt+Backsteg
5. Niklas är tillbaka i sin ursprungliga X-server.
min version av scriptet ser ut så här:
(jag har bara förändrat de viktiga värdena och låtit kommentarer o sånt vara kvar inför framtida redigeringar)
Kod: Markera allt
#!/bin/sh
#uncomment if launching from console session
#sudo /etc/init.d/gdm stop
#KDE use this instead
#sudo /etc/init.d/kdm stop
# Launches a new X session on display 3.
X :3 -ac -terminate
# Goto game dir (modify as needed)
cd "$HOME/.wine/drive_c/Program Files/Aracnum/"
# Forces the system to have a break for 2 seconds, X doesn't launch instantly
sleep 5s
# Launches game (modify as needed)
DISPLAY=:3 WINEDEBUG=-all wine "C:/Program Files/Aracnum/Arcanum.exe" -no3d
Spelet startar om jag kör det utan en egen x-server, men med dålig prestanda. Bl a hanterar det inte fönstersystemet särskilt väl. Därav önskan att ha det i en egen miljö.
Jag funderade på om spelet startades för nära inpå x-servern och försköt därför starten med 5 sekunder istället för 2, men det var ingen skillnad.
Jag har oxå prövat att kommentera ut delerna som startar en egen x-server för att försäkra mig om att scriptet startar spelet. Sökvägar och spelkommando är korrekt.
Wine 1.0
Xorg + resterande system uppdaterat enl pakethanteraren, Hardy 8.04
När jag kör scriptet från terminalen (och ser till o spara output i en fil) så får jag följande intressanta information:
Kod: Markera allt
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
X.Org X Server 1.4.0.90
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: Linux Ubuntu (xorg-server 2:1.4.1~git20080131-1ubuntu9.2)
Current Operating System: Linux niklas-laptop 2.6.24-19-generic #1 SMP Wed Jun 4 16:35:01 UTC 2008 i686
Build Date: 13 June 2008 01:08:21AM
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
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: Wed Jun 18 19:43:49 2008
(==) Using config file: "/etc/X11/xorg.conf"
(WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found
(II) Module "ddc" already built-in
(II) Module "i2c" already built-in
(II) Module "ramdac" already built-in
(EE) [drm] Could not set DRM device bus ID.
(EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI.
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
Atom 4, CARD32 4, unsigned long 4
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.
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.
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.
...
Kod: Markera allt
(WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found
...
(EE) [drm] Could not set DRM device bus ID.
(EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI.
...
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.
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.