! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
panel location with multiple monitors not using primary monitor information
Status:
RESOLVED: WORKSFORME
Product:
Xfce4-panel

Comments

Description Peter F. Patel-Schneider 2015-04-21 20:46:37 CEST
I have a second monitor that I sometimes connect to my laptop.  It is situated to the left of the laptop.

When I connect the second monitor, and make the laptop monitor be primary, my panels still show up on the second monitor.  I can "fix" the vertical panel by moving it to the right-hand side, but I would even like this panel to be on the left-hand side of the right-hand monitor.

So, could xfce4-panel use the new hint that was introduced in 4.12 to keep panels on the primary monitor?
Comment 1 Ski Kacoroski 2016-05-17 17:25:12 CEST
I have more to add to this.  On xbuntu 15.10 this worked ok for me using:

 xrandr --output eDP1 --auto --primary --output VGA1 --auto --left-of eDP1

However it fails on xbuntu 16.04.  A few things I found out while digging into this:

* I do not have an LVDS1 monitor, but eDP1 and VGA1.  When I was playing with this I got one error saying that LVDS1 was not defined so the panel was defaulting to original setup.

* Automatic and primary monitor in panel prefs do not seem to work in that the secondary monitor becomes monitor-0 (see below)

* My work around is to run the following each time I plugin or remove a monitor:

#!/bin/bash
# Simple script to handle multiple monitors.
#
# ski-141015: initial version
# ski-160517: modified for version 16.04 - added xfconf-query
#
if (xrandr | grep "VGA1 connected"); then
  xrandr --output eDP1 --auto --primary --output VGA1 --auto --left-of eDP1
  xfconf-query -c xfce4-panel -p /panels/panel-0/output-name -s monitor-1
  echo "two monitors set up"
else
  xrandr --output VGA1 --off
  xrandr --fb 1920x1080 --output eDP1 --auto --primary
  xfconf-query -c xfce4-panel -p /panels/panel-0/output-name -s monitor-0
  echo "one monitor set up"
fi

Hope this helps out.
Comment 2 Peter F. Patel-Schneider 2016-05-17 18:25:40 CEST
That works.

I don't know whether this is new behaviour or whether some change was made.

No matter what, this bug can be closed as "WORKSFOR ME".

Bug #11842

Reported by:
Peter F. Patel-Schneider
Reported on: 2015-04-21
Last modified on: 2016-05-17

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Version:
4.12.0

Attachments

Additional information