Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum

Screen Settings for external Monitor are not stored

Started by GBano, July 10, 2022, 04:16:13 PM

Previous topic - Next topic



I've got an external monitor attached to my laptop.
By adjusting the settings, I can set it to be to the left of my laptop screen.

But when I shut down and restart, these settings are lost, although I explicitely applied and saved the settings.

It starts up with mirroring the main screen on the laptop.

Why does it not save those settings and applies them when the external monitior is attached/active?

There is a similar thread, but it grew old, so I may also refer to this one as a similar problem of settings ot being stored.


Nothing is easy as it looks. Danielle Steel
Join at [url="//"][/url]


Every desktop environment save it with no problem, but a window manager needs to store such settings manually, there is a solution on our wiki:
Nothing is easy as it looks. Danielle Steel
Join at [url="//"][/url]


So it's ID the monitors with a xandr query:
$ xrandr -q
Screen 0: minimum 8 x 8, current 2048 x 768, maximum 32767 x 32767
LVDS1 connected primary 1024x600+1024+0 (normal left inverted right x axis y axis) 220mm x 130mm
   1024x600      60.00*+
   1024x576      59.90    59.82 
   960x540       59.63    59.82 
   800x600       60.32    56.25 
   864x486       59.92    59.57 
   640x480       59.94 
   720x405       59.51    58.99 
   640x360       59.84    59.32 
   512x300       60.00 
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 300mm x 230mm
   1024x768      75.03*+  70.07    60.00 
   832x624       74.55 
   800x600       72.19    75.00    60.32    56.25 
   640x480       75.00    72.81    66.67    59.94 
   720x400       70.08 
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Then generate a modeline:
gtf 1024 600 60

  # 1024x600 @ 60.00 Hz (GTF) hsync: 37.32 kHz; pclk: 48.96 MHz
  Modeline "1024x600_60.00"  48.96  1024 1064 1168 1312  600 601 604 622  -HSync +Vsync
# 1024x768 @ 75.03 Hz (GTF) hsync: 60.17 kHz; pclk: 81.84 MHz
  Modeline "1024x768_75.03"  81.84  1024 1080 1192 1360  768 769 772 802  -HSync +Vsync
create a '.monitor' file into which xandr --newmode ### --addmode ### --output lines (separately) are entered.

Having read the manpage for xandr I wonder
- how do I make the additional monitor options, only when attached?
- what is the syntax for modifying two screens (6 separate lines? How will they be read?)? Unfortunately the manpage doesn't show multiple screen examples. But it does mention the positioning option.
- and the settings are currently set for both screens, so it seems I need to reverse to default to make these changes (or not?)?

Haven't done anything, don't want to mess it up...

View the most recent posts on the forum