[PATCH v1 03/10] drm: panel-orientation-quirks: Add Ayaneo 3

2025-09-04 Thread Antheas Kapenekakis
arguments are used to differentiate the panels. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index

[PATCH v1 04/10] drm: panel-orientation-quirks: Add OneXPlayer X1 variants

2025-09-04 Thread Antheas Kapenekakis
The OneXPlayer X1 series features a 2k 10.95 display with a portrait orientation. Add quirks to set the panel orientation to portrait mode to the Intel, AMD, and EVA-02 variants. Signed-off-by: Antheas Kapenekakis --- .../gpu/drm/drm_panel_orientation_quirks.c| 24 +++ 1

[PATCH v1 01/10] drm: panel-orientation-quirks: Add AOKZOE A1 Pro

2025-09-04 Thread Antheas Kapenekakis
The AOKZOE A1 Pro has a portrait 16:10 panel, add a quirk for it. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm

[PATCH v1 07/10] drm: panel-orientation-quirks: Add OneXPlayer G1 variants

2025-09-04 Thread Antheas Kapenekakis
Add quirks for the new clamshell device OneXPlayer G1 for both AMD and Intel. The device has a 1600x2560p 144hz LCD panel. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v1 02/10] drm: panel-orientation-quirks: add additional ID for Ayaneo 2021

2025-09-04 Thread Antheas Kapenekakis
The Ayaneo 2021 has an alternate variant that skips AYA in the beginning. Add that as well. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers

[PATCH v1 10/10] drm: panel-orientation-quirks: Add Zeenix Lite and Pro

2025-09-04 Thread Antheas Kapenekakis
Add quirks for two Zeenix handhelds, the Lite and the Pro. They are identical to the Ayn Loki and the Ayn Loki Pro respectively. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu

[PATCH v1 05/10] drm: panel-orientation-quirks: Add OneXPlayer X1 Mini variants

2025-09-04 Thread Antheas Kapenekakis
The OneXPlayer X1 mini features a 2k 8.8 display with a portrait orientation. The Pro is a CPU refresh. Add quirks to set the panel orientation to portrait mode. There is no Intel variant. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 1

[PATCH v1 09/10] drm: panel-orientation-quirks: Add GPD Pocket 4

2025-09-04 Thread Antheas Kapenekakis
The GPD Pocket 4 is a mini laptop replacement with a portrait 2k panel. Add a quirk for it. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers

[PATCH v1 08/10] drm: panel-orientation-quirks: Add GPD Win Max (2021)

2025-09-04 Thread Antheas Kapenekakis
Right side up, DSI-1, 800x1280 screen. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index

[PATCH v1 06/10] drm: panel-orientation-quirks: Add OneXPlayer F1 variants

2025-09-04 Thread Antheas Kapenekakis
The OneXPlayer F1Pro has a 144hz 1920x1080 portrait OLED panel. Add a quirk to correct the panel portrait orientation. In addition, it comes with a red limited edition variant in the Chinese market, so add that as well. Then, add the 8840U non-pro variant as well. Signed-off-by: Antheas

[PATCH v1 00/10] drm: panel-orientation-quirks: Add various handheld quirks

2025-09-04 Thread Antheas Kapenekakis
Adds a bunch of handheld orientation quirks that collected in the Bazzite kernel. I made sure they are alphabetically sorted. In addition, to keep the series short, I grouped variants of the same device together. Antheas Kapenekakis (10): drm: panel-orientation-quirks: Add AOKZOE A1 Pro drm

[PATCH v3 5/6] drm: panel-backlight-quirks: Add Steam Deck brightness quirk

2025-08-29 Thread Antheas Kapenekakis
tion/-/commit/806dd74bb225 Reviewed-by: Robert Beckett Reviewed-by: Mario Limonciello Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_backlight_quirks.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_backlight_quirks.c b/dr

Re: [PATCH v3 6/6] drm: panel-backlight-quirks: Log applied panel brightness quirks

2025-08-29 Thread Antheas Kapenekakis
On Fri, 29 Aug 2025 at 16:57, Antheas Kapenekakis wrote: > > Currently, when a panel brightness quirk is applied, there is no log > indicating that a quirk was applied. Unwrap the drm device on its own > and use drm_info() to log when a quirk is applied. > > Suggested-by:

[PATCH v3 4/6] drm: panel-backlight-quirks: Add brightness mask quirk

2025-08-29 Thread Antheas Kapenekakis
d-off-by: Antheas Kapenekakis --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 5 +++ drivers/gpu/drm/drm_panel_backlight_quirks.c | 36 +++ include/drm/drm_utils.h | 1 + 4 files changed, 49 inser

[PATCH v3 2/6] drm: panel-backlight-quirks: Convert brightness quirk to generic structure

2025-08-29 Thread Antheas Kapenekakis
lo Signed-off-by: Antheas Kapenekakis --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 -- drivers/gpu/drm/drm_panel_backlight_quirks.c | 41 ++- include/drm/drm_utils.h | 7 +++- 3 files changed, 35 insertions(+), 25 deletions(-) diff --git a/drive

[PATCH v3 0/6] drm: panel-backlight-quirks: Do partial refactor and apply OLED fix

2025-08-29 Thread Antheas Kapenekakis
patch 4 (currently unreleased) - Reword patch 1 and 5 subjects Antheas Kapenekakis (6): drm: panel-backlight-quirks: Make EDID match optional drm: panel-backlight-quirks: Convert brightness quirk to generic structure drm: panel-backlight-quirks: Add secondary DMI match drm: panel

[PATCH v3 6/6] drm: panel-backlight-quirks: Log applied panel brightness quirks

2025-08-29 Thread Antheas Kapenekakis
Currently, when a panel brightness quirk is applied, there is no log indicating that a quirk was applied. Unwrap the drm device on its own and use drm_info() to log when a quirk is applied. Suggested-by: Mario Limonciello Signed-off-by: Antheas Kapenekakis --- .../gpu/drm/amd/display/amdgpu_dm

[PATCH v3 3/6] drm: panel-backlight-quirks: Add secondary DMI match

2025-08-29 Thread Antheas Kapenekakis
Using a single DMI match only allows matching per manufacturer. Introduce a second optional match to allow matching make/model. In addition, make DMI optional to allow matching only by EDID. Tested-by: Philip Müller Reviewed-by: Mario Limonciello Signed-off-by: Antheas Kapenekakis --- drivers

[PATCH v3 1/6] drm: panel-backlight-quirks: Make EDID match optional

2025-08-29 Thread Antheas Kapenekakis
Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_backlight_quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_panel_backlight_quirks.c b/drivers/gpu/drm/drm_panel_backlight_quirks.c index 598f812b7cb3..b38b33e26ea5 100644 --- a/drivers/gpu

Re: [PATCH v2 0/5] drm: panel-backlight-quirks: Do partial refactor and apply OLED fix

2025-08-27 Thread Antheas Kapenekakis
On Wed, 27 Aug 2025 at 20:38, Mario Limonciello wrote: > > On 8/27/2025 12:43 PM, Antheas Kapenekakis wrote: > > This is an alternative to [1], since Phil found out there are still invalid > > values. We need to reconsider the other patch in that series anyway because > >

[PATCH v2 4/5] drm: panel-backlight-quirks: Add brightness mask quirk

2025-08-27 Thread Antheas Kapenekakis
86144: 101011000 87809: 1010101110001 251650: 0101110010 Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3803 Tested-by: Philip Müller Signed-off-by: Antheas Kapenekakis --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 .../gpu/drm/amd/display

[PATCH v2 3/5] drm: panel-backlight-quirks: Add secondary DMI match

2025-08-27 Thread Antheas Kapenekakis
Using a single DMI match only allows matching per manufacturer. Introduce a second optional match to allow matching make/model. In addition, make DMI optional to allow matching only by EDID. Tested-by: Philip Müller Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm

[PATCH v2 2/5] drm: panel-backlight-quirks: Convert brightness quirk to generic structure

2025-08-27 Thread Antheas Kapenekakis
Currently, the brightness quirk is limited to minimum brightness only. Refactor it to a structure, so that more quirks can be added in the future. Reserve 0 value for "no quirk", and use u16 to allow minimum brightness up to 255. Tested-by: Philip Müller Signed-off-by: Antheas K

[PATCH v2 5/5] drm: panel-backlight-quirks: Add Steam Deck brightness quirk

2025-08-27 Thread Antheas Kapenekakis
tion/-/commit/806dd74bb225 Reviewed-by: Robert Beckett Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_backlight_quirks.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_backlight_quirks.c b/drivers/gpu/drm/drm_panel_backlight_q

[PATCH v2 1/5] drm: panel-backlight-quirks: Make EDID match optional

2025-08-27 Thread Antheas Kapenekakis
Currently, having a valid panel_id match is required to use the quirk system. For certain devices, we know that all SKUs need a certain quirk. Therefore, allow not specifying ident by only checking for a match if panel_id is non-zero. Tested-by: Philip Müller Signed-off-by: Antheas Kapenekakis

[PATCH v2 0/5] drm: panel-backlight-quirks: Do partial refactor and apply OLED fix

2025-08-27 Thread Antheas Kapenekakis
1 and 5 subjects Antheas Kapenekakis (5): drm: panel-backlight-quirks: Make EDID match optional drm: panel-backlight-quirks: Convert brightness quirk to generic structure drm: panel-backlight-quirks: Add secondary DMI match drm: panel-backlight-quirks: Add brightness mask quirk drm

Re: [PATCH v1 1/2] drm/amdgpu/vpe: increase VPE_IDLE_TIMEOUT to fix hang on Strix Halo

2025-08-26 Thread Antheas Kapenekakis
On Tue, 26 Aug 2025 at 22:13, Matthew Schwartz wrote: > > > > > On Aug 26, 2025, at 12:21 PM, Antheas Kapenekakis wrote: > > > > On Tue, 26 Aug 2025 at 21:19, Mario Limonciello wrote: > >> > >> On 8/26/2025 8:41 AM, Alex Deucher wrote: > >>

Re: [PATCH v1 1/2] drm/amdgpu/vpe: increase VPE_IDLE_TIMEOUT to fix hang on Strix Halo

2025-08-26 Thread Antheas Kapenekakis
On Tue, 26 Aug 2025 at 21:19, Mario Limonciello wrote: > > On 8/26/2025 8:41 AM, Alex Deucher wrote: > > On Tue, Aug 26, 2025 at 3:49 AM Antheas Kapenekakis > > wrote: > >> > >> On Mon, 25 Aug 2025 at 03:38, Mario Limonciello wrote: > >>&g

Re: [PATCH v1 4/5] drm: panel-backlight-quirks: Add brightness mask quirk

2025-08-25 Thread Antheas Kapenekakis
On Mon, 25 Aug 2025 at 23:22, Mario Limonciello wrote: > > On 8/25/2025 4:17 PM, Antheas Kapenekakis wrote: > > On Mon, 25 Aug 2025 at 20:02, Mario Limonciello > > wrote: > >> > >> On 8/24/2025 3:02 PM, Antheas Kapenekakis wrote: > >>> Certain

Re: [PATCH v1 5/5] drm: panel-backlight-quirks: Add Steam Decks

2025-08-25 Thread Antheas Kapenekakis
On Mon, 25 Aug 2025 at 23:05, Mario Limonciello wrote: > > On 8/25/2025 4:02 PM, Antheas Kapenekakis wrote: > > On Mon, 25 Aug 2025 at 18:47, Mario Limonciello > > wrote: > >> > >> On 8/24/2025 3:02 PM, Antheas Kapenekakis wrote: > >>> On the

Re: [PATCH v1 4/5] drm: panel-backlight-quirks: Add brightness mask quirk

2025-08-25 Thread Antheas Kapenekakis
On Mon, 25 Aug 2025 at 20:02, Mario Limonciello wrote: > > On 8/24/2025 3:02 PM, Antheas Kapenekakis wrote: > > Certain OLED devices malfunction on specific brightness levels. > > Specifically, when DP_SOURCE_BACKLIGHT_LEVEL is written to with > > the first byte being 0x00

Re: [PATCH v1 5/5] drm: panel-backlight-quirks: Add Steam Decks

2025-08-25 Thread Antheas Kapenekakis
On Mon, 25 Aug 2025 at 18:47, Mario Limonciello wrote: > > On 8/24/2025 3:02 PM, Antheas Kapenekakis wrote: > > On the SteamOS kernel, Valve universally makes minimum brightness 0 > > for all devices. SteamOS is (was?) meant for the Steam Deck, so > > enabling it u

Re: [PATCH v1 1/2] drm/amdgpu/vpe: increase VPE_IDLE_TIMEOUT to fix hang on Strix Halo

2025-08-25 Thread Antheas Kapenekakis
On Mon, 25 Aug 2025 at 18:41, Mario Limonciello wrote: > > On 8/25/2025 9:01 AM, Antheas Kapenekakis wrote: > > On Mon, 25 Aug 2025 at 15:33, Antheas Kapenekakis wrote: > >> > >> On Mon, 25 Aug 2025 at 15:20, Alex Deucher wrote: > >>> > >>&g

Re: [PATCH v1 1/2] drm/amdgpu/vpe: increase VPE_IDLE_TIMEOUT to fix hang on Strix Halo

2025-08-25 Thread Antheas Kapenekakis
On Mon, 25 Aug 2025 at 15:33, Antheas Kapenekakis wrote: > > On Mon, 25 Aug 2025 at 15:20, Alex Deucher wrote: > > > > On Mon, Aug 25, 2025 at 3:13 AM Antheas Kapenekakis > > wrote: > > > > > > On the Asus Z13 2025, which uses a Strix Halo platfo

Re: [PATCH v1 1/2] drm/amdgpu/vpe: increase VPE_IDLE_TIMEOUT to fix hang on Strix Halo

2025-08-25 Thread Antheas Kapenekakis
On Mon, 25 Aug 2025 at 03:38, Mario Limonciello wrote: > > > > On 8/24/25 3:46 PM, Antheas Kapenekakis wrote: > > On Sun, 24 Aug 2025 at 22:16, Mario Limonciello wrote: > >> > >> > >> > >> On 8/24/25 3:53 AM, Antheas Kapenekakis wrote: > &

Re: [PATCH v1 1/2] drm/amdgpu/vpe: increase VPE_IDLE_TIMEOUT to fix hang on Strix Halo

2025-08-25 Thread Antheas Kapenekakis
On Mon, 25 Aug 2025 at 15:20, Alex Deucher wrote: > > On Mon, Aug 25, 2025 at 3:13 AM Antheas Kapenekakis wrote: > > > > On the Asus Z13 2025, which uses a Strix Halo platform, around 8% of the > > suspend resumes result in a soft lock around 1 second after the screen

Re: [PATCH v1 1/2] drm/amdgpu/vpe: increase VPE_IDLE_TIMEOUT to fix hang on Strix Halo

2025-08-24 Thread Antheas Kapenekakis
On Sun, 24 Aug 2025 at 22:16, Mario Limonciello wrote: > > > > On 8/24/25 3:53 AM, Antheas Kapenekakis wrote: > > On the Asus Z13 2025, which uses a Strix Halo platform, around 8% of the > > suspend resumes result in a soft lock around 1 second after the screen > &g

[PATCH v1 3/5] drm: panel-backlight-quirks: Add secondary DMI match

2025-08-24 Thread Antheas Kapenekakis
Using a single DMI match only allows matching per manufacturer. Introduce a second optional match to allow matching make/model. In addition, make DMI optional to allow matching only by EDID. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_backlight_quirks.c | 19

[PATCH v1 5/5] drm: panel-backlight-quirks: Add Steam Decks

2025-08-24 Thread Antheas Kapenekakis
tion/-/commit/806dd74bb225 Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_backlight_quirks.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_panel_backlight_quirks.c b/drivers/gpu/drm/drm_panel_backlight_quirks.c index

[PATCH v1 0/5] drm: panel-backlight-quirks: Do partial refactor and apply OLED fix

2025-08-24 Thread Antheas Kapenekakis
ch [4] https://gitlab.freedesktop.org/drm/amd/-/issues/3803 Antheas Kapenekakis (5): drm: panel-backlight-quirks: Make ident optional drm: panel-backlight-quirks: Convert brightness quirk to generic structure drm: panel-backlight-quirks: Add secondary DMI match drm: panel-backlight-quirks

[PATCH v1 4/5] drm: panel-backlight-quirks: Add brightness mask quirk

2025-08-24 Thread Antheas Kapenekakis
86144: 101011000 87809: 1010101110001 251650: 0101110010 Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3803 Signed-off-by: Antheas Kapenekakis --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 + .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 6

[PATCH v1 2/5] drm: panel-backlight-quirks: Convert brightness quirk to generic structure

2025-08-24 Thread Antheas Kapenekakis
Currently, the brightness quirk is limited to minimum brightness only. Refactor it to a structure, so that more quirks can be added in the future. Reserve 0 value for "no quirk", and use u16 to allow minimum brightness up to 255. Signed-off-by: Antheas Kapenekakis --- .../gpu/drm/a

[PATCH v1 1/5] drm: panel-backlight-quirks: Make ident optional

2025-08-24 Thread Antheas Kapenekakis
Currently, having a valid panel_id match is required to use the quirk system. For certain devices, we know that all SKUs need a certain quirk. Therefore, allow not specifying ident by only checking for a match if panel_id is non-zero. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm

Re: [PATCH v1 2/2] drm/amd/display: Adjust AUX brightness to be a granularity of 100

2025-08-24 Thread Antheas Kapenekakis
On Sun, 24 Aug 2025 at 10:54, Antheas Kapenekakis wrote: > > Certain OLED devices malfunction on specific brightness levels. > Specifically, when DP_SOURCE_BACKLIGHT_LEVEL is written to with > the minor byte being 0x00 and sometimes 0x01, the panel forcibly > turns off until th

[PATCH v1 2/2] drm/amd/display: Adjust AUX brightness to be a granularity of 100

2025-08-24 Thread Antheas Kapenekakis
/it and 73 increments (to saturate the range) shows no issues. Windows likewise shows no issues. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3803 Signed-off-by: Antheas Kapenekakis --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 28 +++ 1 file changed, 17

[PATCH v1 1/2] drm/amdgpu/vpe: increase VPE_IDLE_TIMEOUT to fix hang on Strix Halo

2025-08-24 Thread Antheas Kapenekakis
e vpe dpm") Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c index 121ee17b522b..24f09e457352 100644 --

Re: [PATCH 5/5] drm: panel-orientation-quirks: Add Zotac Gaming Zone quirk

2025-03-17 Thread Antheas Kapenekakis
On Mon, 17 Mar 2025 at 10:23, Antheas Kapenekakis wrote: > > On Mon, 17 Mar 2025 at 10:20, Hans de Goede wrote: > > > > Hi, > > > > On 22-Feb-25 17:43, Antheas Kapenekakis wrote: > > > The Zotac Gaming Zone handheld features a 1080p portrait OLED scre

Re: [PATCH 5/5] drm: panel-orientation-quirks: Add Zotac Gaming Zone quirk

2025-03-17 Thread Antheas Kapenekakis
On Mon, 17 Mar 2025 at 10:20, Hans de Goede wrote: > > Hi, > > On 22-Feb-25 17:43, Antheas Kapenekakis wrote: > > The Zotac Gaming Zone handheld features a 1080p portrait OLED screen. > > Add the rotation to the panel orientation quirks. > > > >

Re: [PATCH 3/5] drm: panel-orientation-quirks: Add OneXPlayer F1Pro quirk

2025-03-17 Thread Antheas Kapenekakis
On Mon, 17 Mar 2025 at 10:15, Hans de Goede wrote: > > Hi, > > On 22-Feb-25 17:43, Antheas Kapenekakis wrote: > > The OneXPlayer F1Pro has a 144hz 1920x1080 portrait OLED panel. > > Add a quirk to correct the panel portrait orientation. In addition, > > it comes with

Re: [PATCH 0/5] drm: panel-orientation-quirks: Add 2024 OneXPlayer line & ZOTAC Zone orientation quirks

2025-03-16 Thread Antheas Kapenekakis
On Sat, 22 Feb 2025 at 17:43, Antheas Kapenekakis wrote: > > A number of OneXPlayer handhelds have come out with portrait panels. > Specifically, those are the X1 AMD and Intel variants, X1 Mini, and F1 Pro. > For X1 specifically, they also have spurious battery reporting within their

[PATCH 5/5] drm: panel-orientation-quirks: Add Zotac Gaming Zone quirk

2025-02-22 Thread Antheas Kapenekakis
The Zotac Gaming Zone handheld features a 1080p portrait OLED screen. Add the rotation to the panel orientation quirks. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 4/5] HID: Add quirk to ignore the touchscreen battery on OneXPlayer X1

2025-02-22 Thread Antheas Kapenekakis
The X1 devices come with a pen-capable touchscreen, in which the HID descriptor reports there is always a battery at 100% charge. Quirk it to not report the battery status. Signed-off-by: Antheas Kapenekakis --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-input.c | 2 ++ 2 files changed, 3

[PATCH 3/5] drm: panel-orientation-quirks: Add OneXPlayer F1Pro quirk

2025-02-22 Thread Antheas Kapenekakis
The OneXPlayer F1Pro has a 144hz 1920x1080 portrait OLED panel. Add a quirk to correct the panel portrait orientation. In addition, it comes with a red limited edition variant in the Chinese market, so add that as well. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm

[PATCH 2/5] drm: panel-orientation-quirks: Add OneXPlayer X1 Mini (AMD) quirk

2025-02-22 Thread Antheas Kapenekakis
The OneXPlayer X1 mini features a 2k 8.8 display with a portrait orientation. Add a quirk to set the panel orientation to portrait mode. There is no Intel variant. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++ 1 file changed, 6 insertions

[PATCH 1/5] drm: panel-orientation-quirks: Add OneXPlayer X1 AMD and Intel quirk

2025-02-22 Thread Antheas Kapenekakis
The OneXPlayer X1 series features a 2k 10.95 display with a portrait orientation. Add a quirk to set the panel orientation to portrait mode to both the Intel and AMD variants. Signed-off-by: Antheas Kapenekakis --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 ++ 1 file

[PATCH 0/5] drm: panel-orientation-quirks: Add 2024 OneXPlayer line & ZOTAC Zone orientation quirks

2025-02-22 Thread Antheas Kapenekakis
as well. Antheas Kapenekakis (5): drm: panel-orientation-quirks: Add OneXPlayer X1 AMD and Intel quirk drm: panel-orientation-quirks: Add OneXPlayer X1 Mini (AMD) quirk drm: panel-orientation-quirks: Add OneXPlayer F1Pro quirk HID: Add quirk to ignore the touchscreen battery on OneXPlayer

Re: [RFC 00/13] acpi/x86: s2idle: implement Modern Standby transition states and expose to userspace

2024-12-06 Thread Antheas Kapenekakis
21 Nov 2024 at 18:41, Rafael J. Wysocki wrote: > > On Thu, Nov 21, 2024 at 6:28 PM Antheas Kapenekakis wrote: > > > > The following series moves the _DSM 3,4,7,8 firmware notifications outside > > the suspend sequence, and makes them part of a transition function, whe

Re: [RFC 00/13] acpi/x86: s2idle: implement Modern Standby transition states and expose to userspace

2024-11-22 Thread Antheas Kapenekakis
On Fri, 22 Nov 2024 at 20:26, Xaver Hugl wrote: > > Am Do., 21. Nov. 2024 um 18:22 Uhr schrieb Antheas Kapenekakis > : > > > > The following series moves the _DSM 3,4,7,8 firmware notifications outside > > the suspend sequence, and makes them part of a transition fun

[RFC 05/13] acpi/x86: s2idle: add modern standby transition function

2024-11-21 Thread Antheas Kapenekakis
Add a new function to transition modern standby states and call it as part of the suspend sequence to make sure it begins under the Modern Standby "Sleep" state. Signed-off-by: Antheas Kapenekakis --- include/linux/suspend.h | 11 kernel/power/power.h| 1 + kernel/power

[RFC 01/13] Documentation: PM: Add documentation for S0ix Standby States

2024-11-21 Thread Antheas Kapenekakis
Add documentation about the S0ix Standby States that will be exposed to userspace as part of this series. Signed-off-by: Antheas Kapenekakis --- .../admin-guide/pm/standby-states.rst | 133 ++ Documentation/admin-guide/pm/system-wide.rst | 1 + 2 files changed, 134

[RFC 13/13] PM: standby: Add sysfs attribute for modern standby transitions

2024-11-21 Thread Antheas Kapenekakis
the kernel suspend process and userspace will never see it. Signed-off-by: Antheas Kapenekakis --- Documentation/ABI/testing/sysfs-power | 34 kernel/power/main.c | 75 +++ 2 files changed, 109 insertions(+) diff --git a/Documentation/ABI/

[RFC 09/13] acpi/x86: s2idle: call Sleep Entry/Exit as part of callbacks

2024-11-21 Thread Antheas Kapenekakis
Move the Sleep Entry/Exit notifications outside the suspend sequence, with their own ACPI lock, as was done for Display On/Off. Suggested-by: Mario Limonciello Signed-off-by: Antheas Kapenekakis --- drivers/acpi/x86/s2idle.c | 57 --- 1 file changed, 47

[RFC 11/13] acpi/x86: s2idle: add quirk table for modern standby delays

2024-11-21 Thread Antheas Kapenekakis
lers prior to suspending. Signed-off-by: Antheas Kapenekakis --- drivers/acpi/x86/s2idle.c | 56 +++ 1 file changed, 56 insertions(+) diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c index d389c57d2963..504e6575d7ad 100644 --- a/driver

Re: [RFC 11/13] acpi/x86: s2idle: add quirk table for modern standby delays

2024-11-21 Thread Antheas Kapenekakis
On Thu, 21 Nov 2024 at 19:04, Mario Limonciello wrote: > > On 11/21/2024 11:22, Antheas Kapenekakis wrote: > > Unfortunately, some modern standby systems, including the ROG Ally, rely > > on a delay between modern standby transitions. Add a quirk table for > > introduci

Re: [RFC 05/13] acpi/x86: s2idle: add modern standby transition function

2024-11-21 Thread Antheas Kapenekakis
On Thu, 21 Nov 2024 at 19:16, Mario Limonciello wrote: > > On 11/21/2024 11:22, Antheas Kapenekakis wrote: > > Add a new function to transition modern standby states and call it > > as part of the suspend sequence to make sure it begins under the > > Modern Standby &quo

Re: [RFC 01/13] Documentation: PM: Add documentation for S0ix Standby States

2024-11-21 Thread Antheas Kapenekakis
On Thu, 21 Nov 2024 at 22:08, Mario Limonciello wrote: > > On 11/21/2024 14:33, Antheas Kapenekakis wrote: > > On Thu, 21 Nov 2024 at 20:40, Mario Limonciello > > wrote: > >> > >> On 11/21/2024 13:11, Antheas Kapenekakis wrote: > >>> On Thu, 21 N

[RFC 02/13] acpi/x86: s2idle: add support for Display Off and Display On callbacks

2024-11-21 Thread Antheas Kapenekakis
outside of the suspend/resume path. Co-developed-by: Mario Limonciello Signed-off-by: Mario Limonciello Signed-off-by: Antheas Kapenekakis --- include/linux/suspend.h | 2 ++ kernel/power/suspend.c | 10 ++ 2 files changed, 12 insertions(+) diff --git a/include/linux/suspend.h b/inc

[RFC 04/13] acpi/x86: s2idle: add support for Turn On Display callback

2024-11-21 Thread Antheas Kapenekakis
to restore PLx while still remaining in the sleep state. Signed-off-by: Antheas Kapenekakis --- include/linux/suspend.h | 1 + kernel/power/suspend.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 733dffb09b28..01ee64321cda

[RFC 00/13] acpi/x86: s2idle: implement Modern Standby transition states and expose to userspace

2024-11-21 Thread Antheas Kapenekakis
: Documentation/admin-guide/pm/standby-states.rst [8] Changes from previous series (`acpi/x86: s2idle: move Display off/on calls outside suspend (fixes ROG Ally suspend)`): - Separate Display On/Off rename into its own commit (suggested by Hans) - Move delay quirks into s2idle.c (suggested by Ha

[RFC 08/13] acpi/x86: s2idle: rename MS Exit/Entry to Sleep Exit/Entry

2024-11-21 Thread Antheas Kapenekakis
Rename as part of converting it into a transition. Signed-off-by: Antheas Kapenekakis --- drivers/acpi/x86/s2idle.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c index 8b39e3b12ec0..49dcbdea903a 100644

[RFC 12/13] platform/x86: asus-wmi: remove Ally (1st gen) and Ally X suspend quirk

2024-11-21 Thread Antheas Kapenekakis
adding a large amount of delay to the suspend and wake process. Reviewed-by: Mario Limonciello Signed-off-by: Antheas Kapenekakis --- drivers/platform/x86/asus-wmi.c | 54 - 1 file changed, 54 deletions(-) diff --git a/drivers/platform/x86/asus-wmi.c b/drivers

[RFC 06/13] acpi/x86: s2idle: rename Screen On/Off to Display On/Off

2024-11-21 Thread Antheas Kapenekakis
repare for that, rename the variables to "Display On/Off". Signed-off-by: Antheas Kapenekakis --- drivers/acpi/x86/s2idle.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c ind

[RFC 07/13] acpi/x86: s2idle: call Display On/Off as part of callbacks

2024-11-21 Thread Antheas Kapenekakis
Move the Display On/Off notifications into dedicated callbacks that gate the ACPI mutex, so they can be called outside of the suspend path. Co-developed-by: Mario Limonciello Signed-off-by: Mario Limonciello Signed-off-by: Antheas Kapenekakis --- drivers/acpi/x86/s2idle.c | 67

Re: [RFC 01/13] Documentation: PM: Add documentation for S0ix Standby States

2024-11-21 Thread Antheas Kapenekakis
On Thu, 21 Nov 2024 at 19:58, Mario Limonciello wrote: > > On 11/21/2024 11:22, Antheas Kapenekakis wrote: > > Add documentation about the S0ix Standby States that will be exposed > > to userspace as part of this series. > > > > Signed-off-by: Antheas Kapenekakis &g

[RFC 10/13] acpi/x86: s2idle: add Turn On Display and call as part of callback

2024-11-21 Thread Antheas Kapenekakis
corresponds to Modern Standby Firmware notification (_DSM) 9. Signed-off-by: Antheas Kapenekakis --- drivers/acpi/x86/s2idle.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c index bdc2cc8d4994..d389c57d2963 100644

[RFC 03/13] acpi/x86: s2idle: add support for Sleep Entry and Sleep Exit callbacks

2024-11-21 Thread Antheas Kapenekakis
state without suspending the device. Suggested-by: Mario Limonciello Signed-off-by: Antheas Kapenekakis --- include/linux/suspend.h | 2 ++ kernel/power/suspend.c | 10 ++ 2 files changed, 12 insertions(+) diff --git a/include/linux/suspend.h b/include/linux/suspend.h index

Re: [RFC 01/13] Documentation: PM: Add documentation for S0ix Standby States

2024-11-21 Thread Antheas Kapenekakis
On Thu, 21 Nov 2024 at 20:40, Mario Limonciello wrote: > > On 11/21/2024 13:11, Antheas Kapenekakis wrote: > > On Thu, 21 Nov 2024 at 19:58, Mario Limonciello > > wrote: > >> > >> On 11/21/2024 11:22, Antheas Kapenekakis wrote: > >>> Add document

Re: [PATCH v1 2/4] acpi/x86: s2idle: handle screen off/on calls outside of suspend sequence

2024-09-20 Thread Antheas Kapenekakis
Hi, as noted in the cover letter, I think the connection to DRM is a red herring. The Display off callback in Windows is always called 5 seconds after the screen turns off due to inactivity or instantly if the user presses the power button. Likewise, Display on is called when the display is about