Доброго времени суток, ЛОР!
Проблема: есть слабый пк и желание более менее играбельно поиграть в танчики. Win7 показывала 20 fps на ультраминимальных настройках, на бунте как ни странно дела по лучше, но пару тройку кадров не хватает. Вспомнил как где-то читал о запуске приложений в отдельной x сессии. Решил попробовать не осилил :( Прошу помощи...
Что есть: Чистая xubuntu 16.04, playonlinux, wine 1.9.9, скачанный wot.
Скрипт от пользователя Farcaller:
#!/usr/bin/python
import os, sys, time, signal
XORG_DELAY = 8
if len(sys.argv) == 1 or (len(sys.argv)==2 and sys.argv[1].startswith('-x:')):
print >>sys.stderr, "Usage: %s [-x:id] app [args]" % sys.argv[0]
sys.exit(2)
if sys.argv[1].startswith('-x:'):
xid = int(sys.argv[1].split(':')[1])
argv = sys.argv[2:]
else:
xid = 1
argv = sys.argv[1:]
pid = os.fork()
if pid == 0:
# Xorg child
print " * Staring X11 on :%d" % xid
sys.stdin.close()
sys.stdout.close()
sys.stderr.close()
os.execvp('Xorg', ['/usr/bin/Xorg', ':%d' % xid])
else:
print " * Waiting for X11 to finish starting (%d seconds)" % XORG_DELAY
time.sleep(XORG_DELAY)
cmd = 'env DISPLAY=":' + str(xid) + '" ' + ' '.join(argv)
print " * Starting %s" % cmd
os.system(cmd)
print " * Application done, terminating spawned X11"
os.kill(pid, signal.SIGTERM)
os.wait()
И лог после запуска:
[ 827.506]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 827.506] X Protocol Version 11, Revision 0
[ 827.506] Build Operating System: Linux 3.13.0-85-generic x86_64 Ubuntu
[ 827.506] Current Operating System: Linux Satellite-A300 4.4.0-22-generic #39-Ubuntu SMP Thu May 5 16:53:32 UTC 2016 x86_64
[ 827.506] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.0-22-generic root=UUID=5712ac70-5ca1-4260-8fce-b881facd4de3 ro quiet splash vt.handoff=7
[ 827.506] Build Date: 07 April 2016 09:18:50AM
[ 827.506] xorg-server 2:1.18.3-1ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 827.506] Current version of pixman: 0.33.6
[ 827.506] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 827.506] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 827.506] (==) Log file: "/home/ara/.local/share/xorg/Xorg.1.log", Time: Sun May 8 02:52:03 2016
[ 827.506] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 827.507] (==) No Layout section. Using the first Screen section.
[ 827.507] (==) No screen section available. Using defaults.
[ 827.507] (**) |-->Screen "Default Screen Section" (0)
[ 827.507] (**) | |-->Monitor "<default monitor>"
[ 827.507] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 827.507] (==) Automatically adding devices
[ 827.507] (==) Automatically enabling devices
[ 827.507] (==) Automatically adding GPU devices
[ 827.507] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 827.507] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 827.507] Entry deleted from font path.
[ 827.507] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 827.507] Entry deleted from font path.
[ 827.507] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 827.507] Entry deleted from font path.
[ 827.507] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 827.507] Entry deleted from font path.
[ 827.507] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 827.507] Entry deleted from font path.
[ 827.507] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[ 827.507] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[ 827.507] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 827.507] (II) Loader magic: 0x563234a14da0
[ 827.507] (II) Module ABI versions:
[ 827.507] X.Org ANSI C Emulation: 0.4
[ 827.507] X.Org Video Driver: 20.0
[ 827.507] X.Org XInput driver : 22.1
[ 827.507] X.Org Server Extension : 9.0
[ 827.515] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[ 827.518] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 827.519] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 1
[ 827.519] (EE) Error systemd-logind returned paused fd for drm node
[ 827.519] (II) systemd-logind: releasing fd for 226:0
[ 827.520] (II) config/udev: Ignoring already known drm device (/dev/dri/card0)
[ 827.523] (--) PCI:*(0:0:2:0) 8086:2a42:1179:ff1e rev 7, Mem @ 0x90000000/4194304, 0x80000000/268435456, I/O @ 0x00005110/8
[ 827.524] (--) PCI: (0:0:2:1) 8086:2a43:1179:ff1e rev 7, Mem @ 0x93500000/1048576
[ 827.524] (II) LoadModule: "glx"
[ 827.524] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 827.526] (II) Module glx: vendor="X.Org Foundation"
[ 827.526] compiled for 1.18.3, module version = 1.0.0
[ 827.526] ABI class: X.Org Server Extension, version 9.0
[ 827.526] (==) AIGLX enabled
[ 827.526] (==) Matched intel as autoconfigured driver 0
[ 827.526] (==) Matched modesetting as autoconfigured driver 1
[ 827.526] (==) Matched fbdev as autoconfigured driver 2
[ 827.526] (==) Matched vesa as autoconfigured driver 3
[ 827.526] (==) Assigned the driver to the xf86ConfigLayout
[ 827.526] (II) LoadModule: "intel"
[ 827.526] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 827.526] (II) Module intel: vendor="X.Org Foundation"
[ 827.526] compiled for 1.18.1, module version = 2.99.917
[ 827.527] Module class: X.Org Video Driver
[ 827.527] ABI class: X.Org Video Driver, version 20.0
[ 827.527] (II) LoadModule: "modesetting"
[ 827.527] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 827.527] (II) Module modesetting: vendor="X.Org Foundation"
[ 827.527] compiled for 1.18.3, module version = 1.18.3
[ 827.527] Module class: X.Org Video Driver
[ 827.527] ABI class: X.Org Video Driver, version 20.0
[ 827.527] (II) LoadModule: "fbdev"
[ 827.529] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 827.529] (II) Module fbdev: vendor="X.Org Foundation"
[ 827.529] compiled for 1.18.1, module version = 0.4.4
[ 827.529] Module class: X.Org Video Driver
[ 827.529] ABI class: X.Org Video Driver, version 20.0
[ 827.529] (II) LoadModule: "vesa"
[ 827.530] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 827.530] (II) Module vesa: vendor="X.Org Foundation"
[ 827.530] compiled for 1.18.1, module version = 2.3.4
[ 827.530] Module class: X.Org Video Driver
[ 827.530] ABI class: X.Org Video Driver, version 20.0
[ 827.530] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 827.530] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 827.530] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 827.530] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 827.530] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 827.530] (II) FBDEV: driver for framebuffer: fbdev
[ 827.530] (II) VESA: driver for VESA chipsets: vesa
[ 827.530] (EE)
Fatal server error:
[ 827.531] (EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)
[ 827.531] (EE)
[ 827.531] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 827.533] (EE) Please also check the log file at "/home/ara/.local/share/xorg/Xorg.1.log" for additional information.
[ 827.533] (EE)