You are not logged in.

#1 2014-12-19 05:46:48

drtebi
Member
Registered: 2013-02-09
Posts: 148

[Enlightenment] Switching from xinerama 4k resolution to 2k

Hello,

to make a long story short: How can I switch off xinerama mode in Enlightenment e19 while running the DE?"

Let me explain...

I am about to reinstall my entire Arch Linux system, but before doing that I decided to test the latest Arch Linux on a different disk.

My trouble is my monitor setup. I have an IBM T221 monitor, which is basically four 1920x1200 monitors in one big screen. I have figured out xorg.conf to get the "4K" resolution, and with this line in ~/.xinitrc:

exec enlightenment_start -fake-xinerama-screen 3840x2400+0+0

... it all works perfectly fine.

However, movies don't run so well in that resolution. So what I do in my older e17 install is to simply run this xrandr command:

xrandr \
--screen 0 --size 1920x1200 \
--output DisplayPort-0 --off \
--output DisplayPort-1 --primary --mode 1920x1200 --pos 0x0 \
--output DisplayPort-2  --off \
--output DisplayPort-3  --off

... and that works as expected--I then get the "2K" resolution and movies run smoothly.

On e19 however, that does not work anymore

After running the xrandr script, I get the 2K resolution, but with a framebuffer of 4K; in otherwords, xinerama does not turn off, my screen shows the top left quarter of the 4K setup and when maximizing windows they maximize into the non-existent space...

My solution so far has been to logout, and "startx" with a different xorg.conf file. I wrote two scripts, one called "e2k" and another "e4k", and modified ~/.xinitrc:
e2k

#!/bin/sh

export RESOLUTION=lowres
/usr/bin/startx -- -config xorg.conf-2k

e4k

#!/bin/sh

export RESOLUTION=hires
/usr/bin/startx -- -config xorg.conf

~/.xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

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

if [ ${RESOLUTION} == 'lowres' ];
then
  exec enlightenment_start
else
  exec enlightenment_start -fake-xinerama-screen 3840x2400+0+0
fi

And this works well. However, it requires me to logout and login everytime I want to switch resolutions.

Is there a better way?

Offline

Board footer

Powered by FluxBB