Bug 494331

Summary: Add option to position panels to grandr
Product: [Fedora] Fedora Reporter: Jan Wildeboer <jwildebo>
Component: gnome-applet-grandrAssignee: Xavier Lamien <lxtnow>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: lxtnow, mat.booth
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 12:47:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Wildeboer 2009-04-06 12:48:22 UTC
Description of problem:

With Intel graphic chipset xrandr usually makes the external port the primary screen, causing the panels to be placed on the wrong screen.

Version-Release number of selected component (if applicable):

All

How reproducible:

Laptop with Intel graphics

Steps to Reproduce:
1. Activate second screen (VGA port)
2. Watch top_panel and bottom_panel go to external screen
  
Actual results:

Panels are non-deterministically placed (from a users POV)

Expected results:

Panels are where the user expects them

Additional info:

I have created a small hack that solves it for me. By using gconftool-2 I force the top_panel and bottom_panel to be on screen #1 in case of external connection.

PROPOSED FEATURE:

Add a simple checkbox to grandr with

"Place panels here"

Suggested workflow: Click on screen, check/uncheck, done

ALTERNATIVE

Dropdown listing all available screens

My hack:

in /usr/local/bin/vgaswitch

#!/bin/sh
xrandr | grep "VGA connected"
if [ $? = 0 ] ; then
  # We have a working VGA connection. Let's use it with fixed 1024x768
  echo "VGA connected, setting VGA to 1024x768 @ 60 Hz"
  # Move the panels to screen #1 as VGA becomes screen #0 due to intel
  /usr/bin/xrandr --output LVDS --auto --output VGA --mode 1024x768 --rate 60 --right-of LVDS
  gconftool-2 --set "/apps/panel/toplevels/bottom_panel/monitor" --type integer "1"
  gconftool-2 --set "/apps/panel/toplevels/top_panel/monitor" --type integer "1"
else
  echo "No VGA connected, back to single screen"
  # All back to the internal screen
  /usr/bin/xrandr --output LVDS --auto --output VGA --off
  gconftool-2 --set "/apps/panel/toplevels/bottom_panel/monitor" --type integer "0"
  gconftool-2 --set "/apps/panel/toplevels/top_panel/monitor" --type integer "0"
fi

Comment 1 Mat Booth 2013-02-21 12:47:02 UTC
This package has been retired:

https://fedorahosted.org/rel-eng/ticket/4916