https://bugs.kde.org/show_bug.cgi?id=485837

            Bug ID: 485837
           Summary: x conf file being changed without confirmation
    Classification: Plasma
           Product: KScreen
           Version: 6.0.4
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: common
          Assignee: kscreen-bugs-n...@kde.org
          Reporter: a...@atikayda.au
  Target Milestone: ---

SUMMARY
After updating the x conf file using nvidia settings to enable downscaling via
the ViewPortIn and ViewPortOut settings, the kscreen daemon edits the x conf
file during the login process to remove the edit. The edit remains commented
out, and a new line without the downscaling has taken its place.

STEPS TO REPRODUCE
1. Open the proprietary nvidia-settings applet with elevated privileges, with
two screens of different resolutions. In my instance, the two screens are 4K
and QHD
2. On the QHD screen, change the ViewPortIn setting to 4K (3840x2160). Leave
the viewport out setting at it's default value
3. Save the updates to the x conf file in the nvidia-settings applet.  In my
case, this added the line 

```Option "metamodes" "DP-2: nvidia-auto-select +0+0
{ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0:
nvidia-auto-select +3840+132 {viewportin=3840x2160,
ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"```

4. Reboot the device. At the login screen, the x conf file has not been
updated, and the downscaling is in place.

5. Login.  The x conf file is updated by the kscreen daemon and the downscaling
is removed.  In my instance, it looks like this

```# Removed Option "metamodes" "DP-2: nvidia-auto-select +0+0
{ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0:
nvidia-auto-select +3840+132 {viewportin=3840x2160,
ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"

Option         "metamodes" "DP-2: nvidia-auto-select +0+0
{ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0:
nvidia-auto-select +3840+132 {ForceCompositionPipeline=On,
ForceFullCompositionPipeline=On}"```

OBSERVED RESULT

Valid x settings are removed on login, with no prompt or warning.


EXPECTED RESULT

Valid settings should be left intact, or a confirmation/warning should be
present so that the user is able to determine why their x conf file is being
updated.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.8.7-arch1-1 (64-bit)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to