You are not logged in.
Hi
After having a working desktop I decided not to use xinerama because it wouldn't work with the composite extension. So i decided to start from scratch. After following the wiki on making a dual-head setup in my xorg.conf file it kind of worked (cloned display 1280x1024). I changed settings in ccc and all was perfect (Big desktop 3200x1080). But then after restarting all ccc configuration was lost.
xorg.conf:
Section "ServerLayout"
Identifier "screen-layout"
Screen 0 "screen0" 1920 0
EndSection
Section "Monitor"
Identifier "monitor0"
Option "VendorName" "BenQ"
Option "ModelName" "TV"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "monitor1"
Option "VendorName" "ViewSonic"
Option "ModelName" "Display"
Option "DPMS" "true"
Option "RightOf" "monitor0"
EndSection
Section "Device"
Identifier "device0"
Driver "fglrx"
Option "OverlayOnCRTC2" "1"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "device1"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "screen0"
Device "device0"
Monitor "monitor0"
DefaultDepth 24
Option "TVOverScan" "0"
SubSection "Display"
Viewport 0 0
Virtual 3200 1080
Depth 24
EndSubSection
EndSectionAnd here is the log:
sudo cat /var/log/Xorg.0.log | grep WW
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 6.433] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 6.536] (WW) Falling back to old probe method for fglrx
[ 6.632] (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
[ 6.639] (WW) fglrx(0): board is an unknown third party board, chipset is supported
[ 6.912] (WW) fglrx(0): Big Desktop related functionalities are replaced by RandR 1.2!
[ 6.946] (WW) fglrx(0): Option "VendorName" is not used
[ 6.946] (WW) fglrx(0): Option "ModelName" is not used
[ 7.347] (WW) fglrx(0): TFD direct rotation is not supported currently with multi-viewport screen
[ 7.807] (WW) evdev: EST Gaming keyboard: ignoring absolute axes.Does anyone know how to fix this or have a better solution on dual-head without xinerama?
Thanks in advance!
Last edited by Nue (2014-07-15 12:17:06)
Offline
So the xorg.conf is still there? How do you start X? What desktop environment and greeter, if any, do you use?
So you want just to clone the monitor? Or do you want two separate screens, but do not wish to drag windows between them? I use two screens, one of them without a window manager primarily to watch movies.
Offline
The xorg.conf is at /etc/X11/xorg.conf.
I'm using slim to start x and awesome wm.
I want to extend my desktop and not clone. And be able to drag windows between the screens.
Offline
What is the content of your ~/.xinitrc? What is in /etc/X11/xorg.conf.d?
I want to extend my desktop and not clone.
So far I can follow.
And be able to drag windows between the screens.
If you do not mean Eyefinity, which I know little about, then how do you want to achieve this without Xinerama? I am not aware of that possibility, but will be gladly corrected.
Offline
I just realized that I wont need to be able to drag windows between screens. heh
I got it mostly right now. It's just that my second screen is black. You can move the mouse there but thats it. I will keep on working.
My .xinitrc
cat .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
setxkbmap -layout se
exec awesomeThe xorg.conf.d should be untouched
sudo ls /etc/X11/xorg.conf.d/
10-evdev.conf 50-joystick.conf 50-vmmouse.conf
10-quirks.conf 50-synaptics.confThe main issue and reason I started over was that Composite wouldn't work when xinerama was enabled.
Offline
It's just that my second screen is black.
You can put a wallpaper on it. Again I suggest using two screens on one display for this (2 devices, 2 monitors, 2 screens and a modified serverlayout are necessary). You can run another instance of awesome on the second screen also, I sometimes do that with openbox. For the two screen approach using the DISPLAY=:0.1 variable set so is necessary.
Offline
You can run another instance of awesome on the second screen also, I sometimes do that with openbox.
I did a bit of google on multiple X instances but could not figure out how to start it in just my second screen. I tried "startx -- :1" and "startx -- :1.1" but it just started another instance on my main screen.
For the two screen approach using the DISPLAY=:0.1 variable set so is necessary.
Where do I set this variable?
Last edited by Nue (2014-07-15 11:19:33)
Offline
This did the trick but I do not think it is a good solution...
cat .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
setxkbmap -layout se
DISPLAY=:0.0
exec awesome &
DISPLAY=:0.1
exec awesomeOffline
You set/export DISPLAY in the shell where you run applications for the other screen/display. Take a look here and somewhat different but still helpful thread here.
env DISPLAY=:0.1 awesomeDo you really want two instances of X instead of two screens on one "display"? They will be still separate.
Edit: Too slow. Yes that is basically it. But those are two exact awesome sessions, maybe you want something different for the other screen (another awesome configuration).
Last edited by emeres (2014-07-15 11:40:16)
Offline
I figured out I can use two diffrent configurations with -c like this.
DISPLAY=:0.0
exec awesome -c <config.lua> &
DISPLAY=:0.1
exec awesome -c <other-config.lua>Or if this works?
env DISPLAY=:0.0 awesome -c <config.lua> &
env DISPLAY=:0.1 awesome -c <other-config.lua>Anyway I think I have it from here. Thanks very much for the help! ![]()
Offline
For more explanation read:
man env export bash #Shell VariablesYou are welcome.
Offline