You are not logged in.

#1 2013-09-17 20:57:21

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 20

Strange desktop issue

I've been using a normal, 24 inch, 1920x1080 monitor, and recently was given an older 1024x768 monitor. I plugged it in and followed some directions online about how to set up a second monitor using xrandr. I was able to make the second monitor work by entering the following:

xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
xrandr --addmode DP2 1024x768
xrandr --auto --output DP2 --mode 1024x768 --left-of VGA1

as you can tell, my main monitor is VGA1 and my second is DP2.
this works fine, except for this happens:
http://imgur.com/3TlJgQG

and when i disable the monitor, this happens:
http://imgur.com/iLRs7II

can someone help me fix this?

Offline

#2 2013-09-17 20:59:30

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 20

Re: Strange desktop issue

By the way, the screenshots are both of my main monitor

Offline

#3 2013-09-17 21:05:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Strange desktop issue

Interesting.
You should probably tell us which video cards  and chipsets you are using. 
Are you using a single card with multiple heads, or multiple cards? 
Which drivers are you using?
What desktop environment are you using ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2013-09-17 21:14:47

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 20

Re: Strange desktop issue

ewaller wrote:

Interesting.
You should probably tell us which video cards  and chipsets you are using. 
Are you using a single card with multiple heads, or multiple cards? 
Which drivers are you using?
What desktop environment are you using ?

I am using integrated intel graphics (no cards at all), so I would assume it is more similar to a card with multiple heads.
I am using openbox as my WM.
thanks

Offline

#5 2013-09-17 21:15:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Strange desktop issue

Did you restart X with the updated settings?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2013-09-17 21:17:58

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 20

Re: Strange desktop issue

jasonwryan wrote:

Did you restart X with the updated settings?

yes, multiple times, and I also hard rebooted a few times as well.

Offline

#7 2013-09-17 21:19:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Strange desktop issue

Please paste your conf where you enable those settings (xorg or xinitrc).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2013-09-17 21:25:22

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 20

Re: Strange desktop issue

jasonwryan wrote:

Please paste your conf where you enable those settings (xorg or xinitrc).

I am currently running with an empty xorg.conf and the screenshots were taken while xorg.conf was empty too. I tried a few edits in the middle, but failed to make it better

Offline

#9 2013-09-17 21:28:12

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 20

Re: Strange desktop issue

tmathmeyer wrote:
jasonwryan wrote:

Please paste your conf where you enable those settings (xorg or xinitrc).

I am currently running with an empty xorg.conf and the screenshots were taken while xorg.conf was empty too. I tried a few edits in the middle, but failed to make it better


sorry, here is my .xinitrc too

#!/bin/bash

export DE=openbox

# Dbus fix
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
    eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi

/usr/bin/xdg-user-dirs-update

/usr/bin/openbox-session > ~/.openbox_startup.log 2>&1

Offline

#10 2013-09-17 21:31:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Strange desktop issue

You can edit your post rather than creating another for a simple edit.


My point above was that you need to restart X with the new settings (either in xorg or in your xinitrc).

Something like:

# setup external monitor
external=$(xrandr -q | awk '/HDMI2/ {print $2}')
if [ "$external" = "connected" ]; then
    xrandr --output LVDS1 --off 
    xrandr --output HDMI2 --mode 1920x1080
fi

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2013-09-17 21:41:18

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 20

Re: Strange desktop issue

jasonwryan wrote:

You can edit your post rather than creating another for a simple edit.


My point above was that you need to restart X with the new settings (either in xorg or in your xinitrc).

Something like:

# setup external monitor
external=$(xrandr -q | awk '/HDMI2/ {print $2}')
if [ "$external" = "connected" ]; then
    xrandr --output LVDS1 --off 
    xrandr --output HDMI2 --mode 1920x1080
fi

My issue is that I dont know what to put into this file. When I leave it blank, I get
http://imgur.com/iLRs7II

and when i manually run the xrandr commands, i get
http://imgur.com/3TlJgQG

that first image has somehow become the default on my system, I'm not sure how or what file/setting will revert it though. I even get it when I reboot with the second monitor unplugged. It doesnt affect the usage of the computer per se, but I would like to have my wallpaper fixed, and conky on the right hand side of the larger, main monitor

Offline

#12 2013-09-17 21:43:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Strange desktop issue

Use `xrandr -q` to get the details of both displays. Then, reset your original display (`man xrandr`).

The wiki page on xorg will give you the details.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2013-09-17 21:46:00

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Strange desktop issue

Undo what you did, then try to configure it using arandr (in [community]). If that works, take a look at the output of "unxrandr" (also in the arandr package) and compare it to your previous command.

If that doesn't work, well, smurf it.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#14 2013-09-17 22:07:38

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 20

Re: Strange desktop issue

jasonwryan wrote:

Use `xrandr -q` to get the details of both displays. Then, reset your original display (`man xrandr`).

The wiki page on xorg will give you the details.

xrandr -s 0 and xrandr -s 1920x1080 both dont do anything.

note: here is the output of xrandr -q http://pastebin.com/SfLrhiv0

Offline

#15 2013-09-17 22:09:46

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 20

Re: Strange desktop issue

Xyne wrote:

Undo what you did, then try to configure it using arandr (in [community]). If that works, take a look at the output of "unxrandr" (also in the arandr package) and compare it to your previous command.

If that doesn't work, well, smurf it.


I tried to use axrandr as well. no change to the weirdness

Offline

#16 2013-09-17 22:15:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Strange desktop issue

Please read the suggestions (and the man page) that I posted. You will need the --output option to specify the display you want to work with.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB