Display rotation not remembered over sessions

asked 2019-01-16 06:56:13 -0600

mikidi gravatar image

updated 2019-01-16 13:41:50 -0600

My hardware is the following:

  • Dell XPS 9360, running Fedora 29, gnome 3.30.2 on Wayland
  • Dell TB15 thunderbolt dock
  • 2 external monitors connected to the dock over displayport

When connected to the dock I configured:

  • the builtin display of the laptop to be disabled
  • a second (external) screen to be primary at normal resolution
  • a third (external) screen rotated portrait-left at normal resolution.

Configuring this setup works out exactly as I want it to, however, when logging out or rebooting, the rotation setting of the third screen doesn't persist. For it to be rotated I again have to go in display settings and rotate it. All other settings (which is primary, builtin disabled, display order) seem to persist over sessions.

contents of ~/.config/monitors.xml and ~/.config/monitors.xml~ in working setting (before reboot)

<monitors version="2">
<configuration>
<logicalmonitor>
  <x>0</x>
  <y>0</y>
  <scale>1</scale>
  <primary>yes</primary>
  <monitor>
    <monitorspec>
      <connector>DP-7</connector>
      <vendor>HPN</vendor>
      <product>HP E273</product>
      <serial>CNK8121G6W</serial>
    </monitorspec>
    <mode>
      <width>1920</width>
      <height>1080</height>
      <rate>60.000495910644531</rate>
    </mode>
  </monitor>
</logicalmonitor>
<logicalmonitor>
  <x>1920</x>
  <y>0</y>
  <scale>1</scale>
  <transform>
    <rotation>right</rotation>
    <flipped>no</flipped>
  </transform>
  <monitor>
    <monitorspec>
      <connector>DP-5</connector>
      <vendor>HPN</vendor>
      <product>HP E273</product>
      <serial>CNK8121GVJ</serial>
    </monitorspec>
    <mode>
      <width>1920</width>
      <height>1080</height>
      <rate>60.000495910644531</rate>
    </mode>
  </monitor>
</logicalmonitor>
<disabled>
  <monitorspec>
    <connector>eDP-1</connector>
    <vendor>SHP</vendor>
    <product>0x1449</product>
    <serial>0x00000000</serial>
  </monitorspec>
</disabled>

</configuration>

When going into display settings to adapt the rotation (after a reboot or logout), a new <configuration> is appended to ~/.config/monitors.xml. ~/.config/monitors.xml~ stays the same

<monitors version="2">
<configuration>
<logicalmonitor>
  <x>0</x>
  <y>0</y>
  <scale>1</scale>
  <primary>yes</primary>
  <monitor>
    <monitorspec>
      <connector>DP-7</connector>
      <vendor>HPN</vendor>
      <product>HP E273</product>
      <serial>CNK8121G6W</serial>
    </monitorspec>
    <mode>
      <width>1920</width>
      <height>1080</height>
      <rate>60.000495910644531</rate>
    </mode>
  </monitor>
</logicalmonitor>
<logicalmonitor>
  <x>1920</x>
  <y>0</y>
  <scale>1</scale>
  <transform>
    <rotation>right</rotation>
    <flipped>no</flipped>
  </transform>
  <monitor>
    <monitorspec>
      <connector>DP-5</connector>
      <vendor>HPN</vendor>
      <product>HP E273</product>
      <serial>CNK8121GVJ</serial>
    </monitorspec>
    <mode>
      <width>1920</width>
      <height>1080</height>
      <rate>60.000495910644531</rate>
    </mode>
  </monitor>
</logicalmonitor>
<disabled>
  <monitorspec>
    <connector>eDP-1</connector>
    <vendor>SHP</vendor>
    <product>0x1449</product>
    <serial>0x00000000</serial>
  </monitorspec>
</disabled>
</configuration>
<configuration>
<logicalmonitor>
  <x>0</x>
  <y>0</y>
  <scale>1</scale>
  <primary>yes</primary>
  <monitor>
    <monitorspec>
      <connector>DP-7</connector>
      <vendor>HPN</vendor>
      <product>HP E273</product>
      <serial>CNK8121G6W</serial>
    </monitorspec>
    <mode>
      <width>1920</width>
      <height>1080</height>
      <rate>60.000495910644531</rate>
    </mode>
  </monitor>
</logicalmonitor>
<logicalmonitor>
  <x>1920</x>
  <y>0</y>
  <scale>1</scale>
  <transform>
    <rotation>right</rotation>
    <flipped>no</flipped>
  </transform>
  <monitor>
    <monitorspec>
      <connector>DP-5</connector>
      <vendor>HPN</vendor>
      <product>HP E273</product>
      <serial>CNK8121GVJ</serial>
    </monitorspec>
    <mode>
      <width>1920</width>
      <height>1080</height>
      <rate>60.000495910644531</rate>
    </mode>
  </monitor>
</logicalmonitor>

</configuration> </monitors>

How can I fix this or gather any clues as to why the display rotation setting isn't persisted over sessions?

Thx

edit retag flag offensive close merge delete