You are not logged in.

#1 2015-11-29 09:11:29

Deuchnord
Member
From: France
Registered: 2015-04-04
Posts: 17
Website

Nvidia Optimus and dual screens issue

Hi there

For some reasons I wrote a script that configures my dual screen with Xrandr and Nouveau:

#!/bin/bash
# Dual-head configuration script with xrandr

xrandr --setprovideroutputsource nouveau Intel

INTERNAL_OUTPUT="LVDS1"
INTERNAL_OUTPUT_BRIGHTNESS=0.75
EXTERNAL_OUTPUT=$(xrandr -q | egrep "^HDMI[0-9-]+ connected" | sed -r "s/^(HDMI[0-9-]+).+$/\1/")
INTERNAL_OUTPUT_OFFSET="1920x440"

echo "External screen found at $EXTERNAL_OUTPUT."

# Positioning the external screen on the left
xrandr --output $EXTERNAL_OUTPUT --left-of $INTERNAL_OUTPUT

# Making the external screen the primary output
xrandr --output $EXTERNAL_OUTPUT --primary

# Switching on the left screen and positionning the right screen
xrandr --output $EXTERNAL_OUTPUT --mode 1920x1080 --pos 0x0 --rotate normal
xrandr --output $INTERNAL_OUTPUT --pos $INTERNAL_OUTPUT_OFFSET

All this worked perfectly until Monday. But since an update of Xorg and Nouveau, it totally fails to configure my dual screen and the display is completely broken, as you can see on this photo. I took a screenshot and saw that the size of the left screen (the external) and the position of the right screen (the internal) were not correct.

How could I solve this issue?

Thanks in advance

Last edited by Deuchnord (2016-02-05 10:35:19)

Offline

#2 2015-12-04 16:06:22

Deuchnord
Member
From: France
Registered: 2015-04-04
Posts: 17
Website

Re: Nvidia Optimus and dual screens issue

No idea? sad

Offline

#3 2016-02-05 10:32:22

Deuchnord
Member
From: France
Registered: 2015-04-04
Posts: 17
Website

Re: Nvidia Optimus and dual screens issue

After more investigation, I discovered that my issue wasn't due to Nouveau but to Compiz. I tried to recompile the compiz package from the AUR, but this didn't solve my problem.

Has anyone got a similar issue? neutral

Offline

Board footer

Powered by FluxBB