! 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 !
Display settings resolution not saved
Status:
RESOLVED: FIXED
Product:
Xfce4-settings
Component:
Display Settings

Comments

Description bittwister 2019-05-21 10:26:12 CEST
Display settings resolution not saved after clicking Apply.

Changed resolution, logged out/in,  resolution was back to original value.
This has always worked in the past.

XFCE Desktop Theme: Aurora Icons: Oxygen    Window Decorations: default
Icon size 22

xfce4-settings-manager 4.13.6 (Xfce 4.14pre1)
xfce4-session 4.13.2 (Xfce 4.14pre1)

 $ cat /etc/sysconfig/desktop
DISPLAYMANAGER=lightdm

 $ systemctl status display-manager.service | grep -E "PID|bin/"
 Main PID: 930 (lightdm)
           ├─ 930 /usr/sbin/lightdm

$ grep '=' /home/bittwister/.dmrc
Language=en_US.utf8
Session=xfce

$ cat /etc/release
Mageia release 7 (Official) for x86_64
Comment 1 Andre Miranda editbugs 2019-05-23 14:15:15 CEST
*** Bug 15438 has been marked as a duplicate of this bug. ***
Comment 2 Landry Breuil editbugs 2019-05-23 14:17:33 CEST
can confirm too on OpenBSD with the same versions, i thought it was due to a xfce4-session crash upon exit..

the displays channel in xfconf has the properties correctly set in a running session.
Comment 3 Landry Breuil editbugs 2019-05-23 18:11:43 CEST
Created attachment 8574 
displays.xml with the default values

default values reseted at startup ?

note the strange " in the name property..
Comment 4 Landry Breuil editbugs 2019-05-23 18:13:07 CEST
Created attachment 8575 
displays.xml with desired values

after settings proper resolution
Comment 5 Jani Välimaa 2019-05-26 18:56:13 CEST
Like I mentioned in bug 15438 comment 1, new settings are preserved over reboot/relogin if a new profile is created and applied in Advanced tab.
Comment 6 Git Bot editbugs 2019-05-26 22:59:58 CEST
Simon Steinbeiss referenced this bugreport in commit 1f94a8b0890d2c3228e5c70b24c5cc9979ebb9d5

display: Disable auto-enabling profiles by default

https://git.xfce.org/xfce/xfce4-settings/commit?id=1f94a8b0890d2c3228e5c70b24c5cc9979ebb9d5
Comment 7 bittwister 2019-05-26 23:19:31 CEST
(In reply to Jani Välimaa from comment #5)
> Like I mentioned in bug 15438 comment 1, new settings are preserved over
> reboot/relogin if a new profile is created and applied in Advanced tab.

In my opinion, that is a workaround and needs to be updated with instructions
as to what buttons in bottom of that screen need to be enabled.
Comment 8 Simon Steinbeiss editbugs 2019-05-27 00:23:41 CEST
I have pushed a commit (see comment 6) that should at least resolve things for people who upgrade and don't change their settings.

So as long as you don't change the "Automatically enable profiles when new display is connected" option your settings will be retained even without creating a profile (I agree with @bittwister that that is only a workaround).

My attempts at finding out what goes wrong in the _init function have been fruitless so far, but I'll try to take another look before 4.14pre2. Until then feel free to test with the commit above and with (just to be sure)

xfconf-query -c displays -p /AutoEnableProfiles -s false
Comment 9 Jani Välimaa 2019-05-27 19:18:32 CEST
I didn't have AutoEnableProfiles setting at the very beginning. It appeared only after I enabled and disabled "Automatically enable profiles when new display is connected" from Advanced tab.

Settings seems to be working OK after the patch from comment 6 or without the patch after setting AutoEnableProfiles to false.
Comment 10 Marcel Kühlhorn 2019-07-30 15:15:56 CEST
Just for the record because Simon asked to add a comment here:

I'm having the same issue with 4.14 pre3 (4.13.8) after updating from pre2 (4.13.7) where AutoEnableProfiles was working for me
Comment 11 Marcel Kühlhorn 2019-08-01 14:04:21 CEST
I did some more trying out things, it seems for me Display settings always revert to the Defaults whenever I disconnect and reconnect a Monitor and applying a saved profile does not work manually either.

I copied the displays.xml at every step:
- Connecting a Monitor, applying an existing profile failed (the Display setup remains as it was) https://paste.opensuse.org/view//3bc3859b
- Manually setting up the Displays https://paste.opensuse.org/view//eb24f18c
- Updating the existing profile https://paste.opensuse.org/view//41287233
Comment 12 Simon Steinbeiss editbugs 2019-08-03 23:25:35 CEST
@Marcel: The pre3 regression should be resolved now in git master (also reported as https://bugzilla.xfce.org/show_bug.cgi?id=15769)
Comment 13 Git Bot editbugs 2019-08-08 01:54:01 CEST
Simon Steinbeiss referenced this bugreport in commit 09bdf5d1118b9ba8ce48fb8cf4528f024b218be2

display: Fix settings retention (Bug #15437)

https://git.xfce.org/xfce/xfce4-settings/commit?id=09bdf5d1118b9ba8ce48fb8cf4528f024b218be2
Comment 14 Simon Steinbeiss editbugs 2019-08-08 01:58:17 CEST
I have finally understood the problem (it's documented in the extended commit message) - just in time for 4.14.
Comment 15 co.category 2019-08-08 13:39:42 CEST
I can shed extra light on this. I am a Manjaro Arch Linux user. After the latest updates this problem started happening. It was discussed in the forums and some of the other users have realised that if the "Configure new displays when connected" setting is enabled, any saved display profiles are ignored. I actually think they are getting overwritten as the display profile is still exists but in my case the display has been set to the maximum resolution possible which was not what the original saved profile was set to. 

If the "Configure new displays when connected" is disabled, and a new profile is set and the machine rebooted the saved display profile is picked up and applied. If I re-enable the setting again, the saved profile is overwritten and we are back to square one. HTH.
Comment 16 co.category 2019-08-08 13:40:07 CEST
I can shed extra light on this. I am a Manjaro Arch Linux user. After the latest updates this problem started happening. It was discussed in the forums and some of the other users have realised that if the "Configure new displays when connected" setting is enabled, any saved display profiles are ignored. I actually think they are getting overwritten as the display profile is still exists but in my case the display has been set to the maximum resolution possible which was not what the original saved profile was set to. 

If the "Configure new displays when connected" is disabled, and a new profile is set and the machine rebooted the saved display profile is picked up and applied. If I re-enable the setting again, the saved profile is overwritten and we are back to square one. HTH.
Comment 17 Simon Steinbeiss editbugs 2019-08-08 13:44:47 CEST
@co.category: You're already on today's version from git?

If not, this issue is meanwhile fixed, so no need for more testing and feedback on older versions. Thanks!
Comment 18 co.category 2019-08-08 14:01:11 CEST
I'm on version 4.14pre2.
Comment 19 Simon Steinbeiss editbugs 2019-08-08 14:02:26 CEST
As I said, the issue was fixed *today* so even pre3 would be too old/irrelevant.
You'd have to build and test from git master.
Comment 20 co.category 2019-08-08 14:03:36 CEST
It's ok, I can wait for the new fix to be picked up by the Manjaro team. Thanks!

Bug #15437

Reported by:
bittwister
Reported on: 2019-05-21
Last modified on: 2019-08-08
Duplicates (1):
  • 15438 Display settings are reverted back to previous values after reboot/relogin

People

Assignee:
Simon Steinbeiss
CC List:
5 users

Version

Version:
4.13.6

Attachments

displays.xml with the default values (1.58 KB, text/xml)
2019-05-23 18:11 CEST , Landry Breuil
no flags
displays.xml with desired values (1.58 KB, text/xml)
2019-05-23 18:13 CEST , Landry Breuil
no flags

Additional information