You are not logged in.

#1 2016-04-18 12:18:56

presianbg
Member
Registered: 2016-04-18
Posts: 12

[Optimus] Separate X server for gaming

Dear All,

I'm running Optimus enabled laptop with the configuration suggested in the Arch Wiki:

/etc/X11/xorg.conf

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
    Option "TripleBuffer" "True"
    Option "RegistryDwords" "PerfLevelSrc=0x2222; PowerMizerDefaultAC=0x1"
EndSection

~/.xinitrc

#!/bin/sh

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

I'm trying to run separate X server with

 $ xinit /usr/bin/steam -- :1 

, but there is only black screen when the server starts. Also tried This and still have black screen. If I remove the xorg.conf I'm able to spawn another X server, but steam produce error for missing GLX extensions on this display.

Thank you in advance for your time.

Best Regards,
Presian

Last edited by presianbg (2016-04-18 12:28:16)

Offline

Board footer

Powered by FluxBB