← Back to team overview

desktop-packages team mailing list archive

[Bug 1292398] Re: Second screen position isn't saved from one session to another

 

Hey guys, I've written a script
https://github.com/Anachron/scripts/blob/master/display.sh which I
invoke at the startup of my system
https://github.com/Anachron/scripts/blob/master/startup.sh , which
checks the system every second for changed display settings. (It will
generate a list of attached screen devices and compare to the old list)
If a change has been detected, it will check what displays are used and
will setup a predefined behavior.

This works pretty well! Whenever I attach/detach screens from my pc, it will do as it says. 
Also, the interval of 1 second may be overkill for you, but it doesn't need any CPU power (under 1%) and it seems very smooth.

You should run the command xrandr before using/modifying the display script to get a list of possible devices that you can use.
That's what always bothered me with linux, and that's my solution.

I hope you enjoy!

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1292398

Title:
  Second screen position isn't saved from one session to another

Status in elementary OS:
  Confirmed
Status in Gnome Settings Daemon:
  New
Status in GNOME Shell:
  Confirmed
Status in Ubuntu GNOME:
  Confirmed
Status in “gnome-settings-daemon” package in Ubuntu:
  Triaged
Status in “gnome-shell” package in Ubuntu:
  Triaged

Bug description:
  (Noticed on Ubuntu 14.04 beta 1 GNOME)
  At work I have a second screen, which I prefer to virtually put on the left side of my laptop screen.
  Using gnome-control-center I can change the position of the second without problem.
  But when I disconnect the second screen (to work on another place) and then connect it again
  OR if I just power off the laptop and turn it on again,
  the second screen position is set back to the default right position.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: gnome-control-center 1:3.6.3-0ubuntu53
  ProcVersionSignature: Ubuntu 3.13.0-17.37-generic 3.13.6
  Uname: Linux 3.13.0-17-generic x86_64
  ApportVersion: 2.13.3-0ubuntu1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Fri Mar 14 08:50:00 2014
  InstallationDate: Installed on 2014-03-01 (12 days ago)
  InstallationMedia: Ubuntu-GNOME 14.04 "Trusty Tahr" - Alpha amd64 (20140226)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  SourcePackage: gnome-control-center
  UpgradeStatus: No upgrade log present (probably fresh install)
  usr_lib_gnome-control-center: deja-dup 29.5-0ubuntu2

To manage notifications about this bug go to:
https://bugs.launchpad.net/elementaryos/+bug/1292398/+subscriptions