PDA

View Full Version : [ubuntu] I need another X!!! Help



Sugi
March 4th, 2009, 01:09 AM
I'm trying to get a another X running so I can run wine on it. But I get a weird error message when opening a new X. Any clues on how to fix this?


My Xorg.conf
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
Option "RenderAccel" "true"
##This turns on NVidia’s TwinView
Option "TwinView"
##Here I’m setting the resolution to the individual monitors.
Option "MetaModes" "1680x1050 1920x1080"
Option "TwinViewOrientation" "Clone"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
Inputdevice "Synaptics Touchpad"
EndSection
Section "Module"
Load "glx"
EndSection

Section "ServerLayout"
Identifier "SCLayout"
Screen 0 "StarCraft Screen"
InputDevice "kbd" "CoreKeyboard"
InputDevice "mouse" "CorePointer"
EndSection

Section "Screen"
Identifier "StarCraft Screen"
Device "nvidia"
Monitor "StarCraft Monitor"
DefaultDepth 24
SubSection "Display"
Virtual 640 480
Depth 24
Modes "640x480@60" "1280x800@50"
EndSubSection
EndSection

Section "Monitor"
Identifier "StarCraft Monitor"
VendorName "Plug 'n' Play"
ModelName "Plug 'n' Play"
Gamma 1
ModeLine "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
EndSection



terminal output
+ X :1 -layout SCLayout -ac
+ XPID=2770
+ sleep 2

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 miso 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 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.1.log", Time: Tue Mar 3 18:00:22 2009
(==) Using config file: "/etc/X11/xorg.conf"
Data incomplete in file /etc/X11/xorg.conf
Undefined InputDevice "kbd" referenced by ServerLayout "SCLayout".
(EE) Problem parsing the config file
(EE) Error parsing the config file

Fatal server error:
no screens found
+ DISPLAY=:1 cd /home/miso/.wine/drive_c/Program Files/Starcraft
+ env WINEPREFIX=/home/miso/.wine nice -20 wine C:\Program Files\Starcraft\StarCraft.exe -- /usr/bin/X :1 -layout SCLayout
fixme:advapi:SetSecurityInfo stub
fixme:win:EnumDisplayDevicesW ((null),0,0x32f410,0x00000000), stub!
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x8 @0! (XRandR)
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 1680x1050x8 @0! (XRandR)
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 1680x1050x32 @0! (XRandR)
+ sleep 1
+ kill 2770
kill: 1: No such process

This is the guild I used to do this:
http://ubuntuforums.org/showthread.php?t=822888

PS: I think I inputed the wrong information for my keyboard,mouse, and graphic cards for the new X, but I don't know what to input into my Xorg to correct this.

Thanks,
Sugi

Locutus_of_Borg
March 4th, 2009, 01:51 AM
try executing just this:

startx -- :1

Sugi
March 4th, 2009, 06:22 PM
How so? Can you explain this a bit more?


#!/bin/sh
X :1 -layout SCLayout -ac &
XPID=$!
sleep 2
DISPLAY=:1 wine $HOME/.wine/drive_c/\
Program/Files/Starcraft/StarCraft.exe -- /usr/bin/X :1 -layout SCLayout
sleep 1
kill $XPID

Where would I input that command and how would I stop it?

Sugi

Sugi
March 11th, 2009, 03:33 PM
bump