Fix laptop screen being off when opening the lid

Authored by nicolasfella on Oct 17 2019, 5:30 PM.

Description

Fix laptop screen being off when opening the lid

Summary:
filePath() returns the full path to the config file. readFile() then prepends configsDirPath() to the path, leading to a garbled file path and making it impossible to load the right file. We should instead just pass id() + _lidOpen to readFile.

BUG: 371447

Test Plan:
Connected a monitor to my laptop. Closed and reopened the lid.
Before:
Laptop screen was off. Needed turning on in the KCM.
After:
Laptop screen is on.

Both X11 and Wayland

Reviewers: Plasma, romangg

Reviewed By: Plasma, romangg

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D24719

Details

Committed
nicolasfellaOct 17 2019, 5:30 PM
Reviewer
Plasma
Differential Revision
D24719: Fix laptop screen being off when opening the lid
Parents
R104:987f8210337d: Add missing check for outputModel
Branches
Unknown
Tags
Unknown