Skip to contentSkip to conversation

OptiPlex 7400 AIO HDMI-IN button requires WMI startup method

DISCUSSION Teodora 2 participants 9 messages Oct 24 – Nov 15 1 message not in the archive x86 platform drivers

lore
Share & tools
lore

Teodora

author
#1 lore raw
In reply to a message not in the archive

Hi,

I have a Dell OptiPlex 7400 All-in-One machine and have been investigating why its physical HDMI-In/source button works under Windows but not under Linux. I wanted to flag a potential solution, though I am not a kernel developer but was hoping that perhaps this could help the community.

So, my system details are:

- Dell OptiPlex 7400 All-in-One
- Fedora 44
- Kernel: 7.2.11-200.fc44.x86_64
- dell-wmi-aio is present and loaded

While investigating the Dell Windows OSD software, I found that the button generates a WMI event through Acpi_OSD_event, GUID: 02314822-307C-4F66-BF0E-48AEAEB26CC8. The GDat payload generated when pressing the source button begins 02 00 00 00 F2 DD which corresponds to event/scancode 0xDDF2.

More importantly, Dell's OSD service invokes another WMI method during startup:

Class: AcpiOSD_WMBC_method
GUID: 2D703EE8-36AC-4F88-BDB5-7556CE6B2946

Method: PegaOemNotificationStartUp
WmiMethodId: 1
Description: "Invoked by AP when system up."

Linux exposes this WMI interface on the machine, with instance_count = 1. I wrote a minimal test WMI driver which binds only to this GUID and invokes: wmidev_invoke_procedure(wdev, 0, 1, &input); using an empty input buffer.

The result is reproducible: After a normal Linux boot, the HDMI/source button does not switch the display. Then loading the test driver invokes WMI method 1 and the firmware reports success. Immediately after, the physical source button works correctly and switches the panel to HDMI-In. The test module can then be unloaded and the physical button continues to work.

After rebooting, the problem returns until method 1 is invoked again. This suggests that PegaOemNotificationStartUp is a one-shot firmware initialization which Dell's Windows software performs at startup but Linux currently does not.

Below I am sharing the small module I use as a workaround; this is loaded once on boot.

// SPDX-License-Identifier: GPL-2.0

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/wmi.h>

#define DELL_OSD_WMI_GUID "2D703EE8-36AC-4F88-BDB5-7556CE6B2946" #define DELL_OSD_STARTUP_METHOD 1

static int dell_osd_probe(struct wmi_device *wdev, const void *context) {
struct wmi_buffer input = {
.length = 0,
.data = NULL,
};

u8 instances;
int ret;

(void)context;

instances = wmidev_instance_count(wdev);

dev_info(&wdev->dev,
"Dell OSD test: WMI device found, instance count = %u\n", instances);

if (instances < 1) {
dev_err(&wdev->dev,
"Dell OSD test: no WMI instance 0 available\n");
return -ENODEV;
}

dev_info(&wdev->dev,
"Dell OSD test: calling PegaOemNotificationStartUp, method ID 1\n");

ret = wmidev_invoke_procedure(
wdev,
0,
DELL_OSD_STARTUP_METHOD,
&input
);

if (ret < 0) {
dev_err(&wdev->dev,
"Dell OSD test: startup method failed: %d\n",
ret);
return ret;
}

dev_info(&wdev->dev,
"Dell OSD test: startup method returned success\n");

return 0;
}

static const struct wmi_device_id dell_osd_id_table[] = { {
.guid_string = DELL_OSD_WMI_GUID,
},
{ }
};

MODULE_DEVICE_TABLE(wmi, dell_osd_id_table);

static struct wmi_driver dell_osd_driver = {
.driver = {
.name = "dell-osd-wmi-test",
},
.id_table = dell_osd_id_table,
.probe = dell_osd_probe,
.no_singleton = true,
};

module_wmi_driver(dell_osd_driver);

MODULE_AUTHOR("Dell OptiPlex 7400 AIO experimental test"); MODULE_DESCRIPTION("Experimental Dell OSD WMI startup-method test"); MODULE_LICENSE("GPL");

I hope this would be useful as not having this function has been such a bugbear for me over the years, especially on a business machine.

Thanks,
Teodora

#2 lore raw
In reply to a message not in the archive

Am 24.10.26 um 15:48 schrieb Teodora:

Quoted 22 lines

Hi,

I have a Dell OptiPlex 7400 All-in-One machine and have been investigating why its physical HDMI-In/source button works under Windows but not under Linux. I wanted to flag a potential solution, though I am not a kernel developer but was hoping that perhaps this could help the community.

So, my system details are:

- Dell OptiPlex 7400 All-in-One
- Fedora 44
- Kernel: 7.2.11-200.fc44.x86_64
- dell-wmi-aio is present and loaded

While investigating the Dell Windows OSD software, I found that the button generates a WMI event through Acpi_OSD_event, GUID: 02314822-307C-4F66-BF0E-48AEAEB26CC8. The GDat payload generated when pressing the source button begins 02 00 00 00 F2 DD which corresponds to event/scancode 0xDDF2.

More importantly, Dell's OSD service invokes another WMI method during startup:

    Class: AcpiOSD_WMBC_method
    GUID: 2D703EE8-36AC-4F88-BDB5-7556CE6B2946

    Method: PegaOemNotificationStartUp
    WmiMethodId: 1
    Description: "Invoked by AP when system up."

Quoted 5 lines

Linux exposes this WMI interface on the machine, with instance_count = 1. I wrote a minimal test WMI driver which binds only to this GUID and invokes: wmidev_invoke_procedure(wdev, 0, 1, &input); using an empty input buffer.

The result is reproducible: After a normal Linux boot, the HDMI/source button does not switch the display. Then loading the test driver invokes WMI method 1 and the firmware reports success. Immediately after, the physical source button works correctly and switches the panel to HDMI- In. The test module can then be unloaded and the physical button continues to work.

After rebooting, the problem returns until method 1 is invoked again. This suggests that PegaOemNotificationStartUp is a one-shot firmware initialization which Dell's Windows software performs at startup but Linux currently does not.

Interesting, can you share the output of acpidump?

Quoted 79 lines

Below I am sharing the small module I use as a workaround; this is loaded once on boot.

// SPDX-License-Identifier: GPL-2.0

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/wmi.h>

#define DELL_OSD_WMI_GUID "2D703EE8-36AC-4F88-BDB5-7556CE6B2946" #define DELL_OSD_STARTUP_METHOD 1

static int dell_osd_probe(struct wmi_device *wdev, const void *context) {
 struct wmi_buffer input = {
  .length = 0,
  .data = NULL,
 };

 u8 instances;
 int ret;

 (void)context;

 instances = wmidev_instance_count(wdev);

 dev_info(&wdev->dev,
   "Dell OSD test: WMI device found, instance count = %u\n", instances);

 if (instances < 1) {
  dev_err(&wdev->dev,
   "Dell OSD test: no WMI instance 0 available\n"); return -ENODEV;
 }

 dev_info(&wdev->dev,
   "Dell OSD test: calling PegaOemNotificationStartUp, method ID 1\n");

 ret = wmidev_invoke_procedure(
  wdev,
  0,
  DELL_OSD_STARTUP_METHOD,
  &input
 );

 if (ret < 0) {
  dev_err(&wdev->dev,
   "Dell OSD test: startup method failed: %d\n",
   ret);
  return ret;
 }

 dev_info(&wdev->dev,
   "Dell OSD test: startup method returned success\n");

 return 0;
}

static const struct wmi_device_id dell_osd_id_table[] = {
 {
  .guid_string = DELL_OSD_WMI_GUID,
 },
 { }
};

MODULE_DEVICE_TABLE(wmi, dell_osd_id_table);

static struct wmi_driver dell_osd_driver = {
 .driver = {
  .name = "dell-osd-wmi-test",
 },
 .id_table = dell_osd_id_table,
 .probe = dell_osd_probe,
 .no_singleton = true,
};

module_wmi_driver(dell_osd_driver);

Quoted 8 lines

MODULE_AUTHOR("Dell OptiPlex 7400 AIO experimental test"); MODULE_DESCRIPTION("Experimental Dell OSD WMI startup-method test"); MODULE_LICENSE("GPL");

I hope this would be useful as not having this function has been such a bugbear for me over the years, especially on a business machine.

Thanks,
Teodora

Nice work, i will try to check if other devices expose the same firmware interface. If yes then we can for sure have a small driver initializing this during probe.

Does the OEM software invoke any other methods on this WMI device?

Thanks,
Armin Wolf

author
#3 lore raw

Hi Armin,

Thanks for your response. Attached is the requested acpidump.

Regarding the other methods on the same WMI interface: DellOSDService.exe appears to invoke AcpiOSD_WMBC_method::PegaOemNotificationStartUp. The companion MediaButtons.exe also has WMI execution paths for PegaOemNotificationBrightnessUP and PegaOemNotificationBrightnessDown. I did not find call paths for PegaOemNotificationStop, PegaOemNotificationRSVD1, or PegaOemNotificationRSVD2, however.

There is also a separate AcpiOSD_WMBB_method interface used by DellOSDService.exe for a method named PegaOemReturnUBFR, but that appears to be a different WMI interface.

I can boot back into Windows and retrieve the WmiMethodId qualifiers for all of the WMBC methods if that would be useful, but I have not done that yet.

Thanks

Quoted 127 lines · Armin Wolf

Am 24.10.26 um 15:48 schrieb Teodora:

Quoted 22 lines

Hi,

I have a Dell OptiPlex 7400 All-in-One machine and have been investigating why its physical HDMI-In/source button works under Windows but not under Linux. I wanted to flag a potential solution, though I am not a kernel developer but was hoping that perhaps this could help the community.

So, my system details are:

- Dell OptiPlex 7400 All-in-One
- Fedora 44
- Kernel: 7.2.11-200.fc44.x86_64
- dell-wmi-aio is present and loaded

While investigating the Dell Windows OSD software, I found that the button generates a WMI event through Acpi_OSD_event, GUID: 02314822-307C-4F66-BF0E-48AEAEB26CC8. The GDat payload generated when pressing the source button begins 02 00 00 00 F2 DD which corresponds to event/scancode 0xDDF2.

More importantly, Dell's OSD service invokes another WMI method during startup:

Class: AcpiOSD_WMBC_method
GUID: 2D703EE8-36AC-4F88-BDB5-7556CE6B2946

Method: PegaOemNotificationStartUp
WmiMethodId: 1
Description: "Invoked by AP when system up."

Quoted 5 lines

Linux exposes this WMI interface on the machine, with instance_count = 1. I wrote a minimal test WMI driver which binds only to this GUID and invokes: wmidev_invoke_procedure(wdev, 0, 1, &input); using an empty input buffer.

The result is reproducible: After a normal Linux boot, the HDMI/source button does not switch the display. Then loading the test driver invokes WMI method 1 and the firmware reports success. Immediately after, the physical source button works correctly and switches the panel to HDMI- In. The test module can then be unloaded and the physical button continues to work.

After rebooting, the problem returns until method 1 is invoked again. This suggests that PegaOemNotificationStartUp is a one-shot firmware initialization which Dell's Windows software performs at startup but Linux currently does not.

Interesting, can you share the output of acpidump?

Quoted 80 lines

Below I am sharing the small module I use as a workaround; this is loaded once on boot.

// SPDX-License-Identifier: GPL-2.0

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/wmi.h>

#define DELL_OSD_WMI_GUID "2D703EE8-36AC-4F88-BDB5-7556CE6B2946" #define DELL_OSD_STARTUP_METHOD 1

static int dell_osd_probe(struct wmi_device *wdev, const void *context) {
struct wmi_buffer input = {
.length = 0,
.data = NULL,
};

u8 instances;
int ret;

  (void)context;

  instances = wmidev_instance_count(wdev);

dev_info(&wdev->dev,
"Dell OSD test: WMI device found, instance count = %u\n", instances);

  if (instances < 1) {
   dev_err(&wdev->dev,
    "Dell OSD test: no WMI instance 0 available\n");
   return -ENODEV;
  }

dev_info(&wdev->dev,
"Dell OSD test: calling PegaOemNotificationStartUp, method ID
1\n");

ret = wmidev_invoke_procedure(
wdev,
0,
DELL_OSD_STARTUP_METHOD,
&input
);

  if (ret < 0) {
   dev_err(&wdev->dev,
    "Dell OSD test: startup method failed: %d\n",
    ret);
   return ret;
  }

dev_info(&wdev->dev,

    "Dell OSD test: startup method returned success\n");

return 0;
}

static const struct wmi_device_id dell_osd_id_table[] = {
{
.guid_string = DELL_OSD_WMI_GUID,
},
{ }
};

MODULE_DEVICE_TABLE(wmi, dell_osd_id_table);

static struct wmi_driver dell_osd_driver = {

  .driver = {
   .name = "dell-osd-wmi-test",

},
.id_table = dell_osd_id_table,
.probe = dell_osd_probe,
.no_singleton = true,
};

module_wmi_driver(dell_osd_driver);

Quoted 8 lines

MODULE_AUTHOR("Dell OptiPlex 7400 AIO experimental test"); MODULE_DESCRIPTION("Experimental Dell OSD WMI startup-method test"); MODULE_LICENSE("GPL");

I hope this would be useful as not having this function has been such a bugbear for me over the years, especially on a business machine.

Thanks,
Teodora

Nice work, i will try to check if other devices expose the same firmware interface. If yes then we can for sure have a small driver initializing this during probe.

Does the OEM software invoke any other methods on this WMI device?

Thanks,
Armin Wolf

#4 lore raw

Am 24.10.26 um 21:09 schrieb Teodora:

Quoted 11 lines

Hi Armin,

Thanks for your response. Attached is the requested acpidump.

Regarding the other methods on the same WMI interface: DellOSDService.exe appears to invoke AcpiOSD_WMBC_method::PegaOemNotificationStartUp. The companion MediaButtons.exe also has WMI execution paths for PegaOemNotificationBrightnessUP and PegaOemNotificationBrightnessDown. I did not find call paths for PegaOemNotificationStop, PegaOemNotificationRSVD1, or PegaOemNotificationRSVD2, however.

There is also a separate AcpiOSD_WMBB_method interface used by DellOSDService.exe for a method named PegaOemReturnUBFR, but that appears to be a different WMI interface.

I can boot back into Windows and retrieve the WmiMethodId qualifiers for all of the WMBC methods if that would be useful, but I have not done that yet.

Thanks

Thanks, but i do not think that this will be necessary, the ACPI tables should already contain the necessary data. I will check tomorrow and report back if i need any additional data from you.

Armin Wolf

Quoted 129 lines · Armin Wolf
Quoted 126 lines

Am 24.10.26 um 15:48 schrieb Teodora:

Quoted 22 lines

Hi,

I have a Dell OptiPlex 7400 All-in-One machine and have been investigating why its physical HDMI-In/source button works under Windows but not under Linux. I wanted to flag a potential solution, though I am not a kernel developer but was hoping that perhaps this could help the community.

So, my system details are:

- Dell OptiPlex 7400 All-in-One
- Fedora 44
- Kernel: 7.2.11-200.fc44.x86_64
- dell-wmi-aio is present and loaded

While investigating the Dell Windows OSD software, I found that the button generates a WMI event through Acpi_OSD_event, GUID: 02314822-307C-4F66-BF0E-48AEAEB26CC8. The GDat payload generated when pressing the source button begins 02 00 00 00 F2 DD which corresponds to event/scancode 0xDDF2.

More importantly, Dell's OSD service invokes another WMI method during startup:

     Class: AcpiOSD_WMBC_method
     GUID: 2D703EE8-36AC-4F88-BDB5-7556CE6B2946

     Method: PegaOemNotificationStartUp
     WmiMethodId: 1
     Description: "Invoked by AP when system up."

Quoted 5 lines

Linux exposes this WMI interface on the machine, with instance_count = 1. I wrote a minimal test WMI driver which binds only to this GUID and invokes: wmidev_invoke_procedure(wdev, 0, 1, &input); using an empty input buffer.

The result is reproducible: After a normal Linux boot, the HDMI/ source button does not switch the display. Then loading the test driver invokes WMI method 1 and the firmware reports success. Immediately after, the physical source button works correctly and switches the panel to HDMI- In. The test module can then be unloaded and the physical button continues to work.

After rebooting, the problem returns until method 1 is invoked again. This suggests that PegaOemNotificationStartUp is a one-shot firmware initialization which Dell's Windows software performs at startup but Linux currently does not.

Interesting, can you share the output of acpidump?

Quoted 79 lines

Below I am sharing the small module I use as a workaround; this is loaded once on boot.

// SPDX-License-Identifier: GPL-2.0

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/wmi.h>

#define DELL_OSD_WMI_GUID "2D703EE8-36AC-4F88-BDB5-7556CE6B2946" #define DELL_OSD_STARTUP_METHOD 1

static int dell_osd_probe(struct wmi_device *wdev, const void *context) {
  struct wmi_buffer input = {
   .length = 0,
   .data = NULL,
  };

  u8 instances;
  int ret;

  (void)context;

  instances = wmidev_instance_count(wdev);

  dev_info(&wdev->dev,
    "Dell OSD test: WMI device found, instance count = %u\n", instances);

  if (instances < 1) {
   dev_err(&wdev->dev,
    "Dell OSD test: no WMI instance 0 available\n"); return -ENODEV;
  }

  dev_info(&wdev->dev,
    "Dell OSD test: calling PegaOemNotificationStartUp, method ID 1\n");

  ret = wmidev_invoke_procedure(
   wdev,
   0,
   DELL_OSD_STARTUP_METHOD,
   &input
  );

  if (ret < 0) {
   dev_err(&wdev->dev,
    "Dell OSD test: startup method failed: %d\n",
    ret);
   return ret;
  }

  dev_info(&wdev->dev,
    "Dell OSD test: startup method returned success\n");

  return 0;
}

static const struct wmi_device_id dell_osd_id_table[] = { {
   .guid_string = DELL_OSD_WMI_GUID,
  },
  { }
};

MODULE_DEVICE_TABLE(wmi, dell_osd_id_table);

static struct wmi_driver dell_osd_driver = {
  .driver = {
   .name = "dell-osd-wmi-test",
  },
  .id_table = dell_osd_id_table,
  .probe = dell_osd_probe,
  .no_singleton = true,
};

module_wmi_driver(dell_osd_driver);

Quoted 8 lines

MODULE_AUTHOR("Dell OptiPlex 7400 AIO experimental test"); MODULE_DESCRIPTION("Experimental Dell OSD WMI startup-method test"); MODULE_LICENSE("GPL");

I hope this would be useful as not having this function has been such a bugbear for me over the years, especially on a business machine.

Thanks,
Teodora

Nice work, i will try to check if other devices expose the same firmware interface. If yes then we can for sure have a small driver initializing this during probe.

Does the OEM software invoke any other methods on this WMI device?

Thanks,
Armin Wolf

#5 lore raw

Am 24.10.26 um 21:14 schrieb Armin Wolf:

Quoted 9 lines

Am 24.10.26 um 21:09 schrieb Teodora:

Quoted 8 lines

Hi Armin,

Thanks for your response. Attached is the requested acpidump.

Regarding the other methods on the same WMI interface: DellOSDService.exe appears to invoke AcpiOSD_WMBC_method::PegaOemNotificationStartUp. The companion MediaButtons.exe also has WMI execution paths for PegaOemNotificationBrightnessUP and PegaOemNotificationBrightnessDown. I did not find call paths for PegaOemNotificationStop, PegaOemNotificationRSVD1, or PegaOemNotificationRSVD2, however.

There is also a separate AcpiOSD_WMBB_method interface used by DellOSDService.exe for a method named PegaOemReturnUBFR, but that appears to be a different WMI interface.

Quoted 7 lines
Quoted 3 lines

I can boot back into Windows and retrieve the WmiMethodId qualifiers for all of the WMBC methods if that would be useful, but I have not done that yet.

Thanks

Thanks, but i do not think that this will be necessary, the ACPI tables should already contain the necessary data. I will check tomorrow and report back if i need any additional data from you.

Armin Wolf

I have written a experimental kernel patch based on your custom kernel module, check the attached zip file. Can you check if building and loading this kernel module correctly enables notifications? Please also check that unloading said module produces no warnings in dmesg.

Thanks,
Armin Wolf

Quoted 131 lines
Quoted 129 lines · Armin Wolf
Quoted 126 lines

Am 24.10.26 um 15:48 schrieb Teodora:

Quoted 22 lines

Hi,

I have a Dell OptiPlex 7400 All-in-One machine and have been investigating why its physical HDMI-In/source button works under Windows but not under Linux. I wanted to flag a potential solution, though I am not a kernel developer but was hoping that perhaps this could help the community.

So, my system details are:

- Dell OptiPlex 7400 All-in-One
- Fedora 44
- Kernel: 7.2.11-200.fc44.x86_64
- dell-wmi-aio is present and loaded

While investigating the Dell Windows OSD software, I found that the button generates a WMI event through Acpi_OSD_event, GUID: 02314822-307C-4F66-BF0E-48AEAEB26CC8. The GDat payload generated when pressing the source button begins 02 00 00 00 F2 DD which corresponds to event/scancode 0xDDF2.

More importantly, Dell's OSD service invokes another WMI method during startup:

     Class: AcpiOSD_WMBC_method
     GUID: 2D703EE8-36AC-4F88-BDB5-7556CE6B2946

     Method: PegaOemNotificationStartUp
     WmiMethodId: 1
     Description: "Invoked by AP when system up."

Quoted 5 lines

Linux exposes this WMI interface on the machine, with instance_count = 1. I wrote a minimal test WMI driver which binds only to this GUID and invokes: wmidev_invoke_procedure(wdev, 0, 1, &input); using an empty input buffer.

The result is reproducible: After a normal Linux boot, the HDMI/ source button does not switch the display. Then loading the test driver invokes WMI method 1 and the firmware reports success. Immediately after, the physical source button works correctly and switches the panel to HDMI- In. The test module can then be unloaded and the physical button continues to work.

After rebooting, the problem returns until method 1 is invoked again. This suggests that PegaOemNotificationStartUp is a one-shot firmware initialization which Dell's Windows software performs at startup but Linux currently does not.

Interesting, can you share the output of acpidump?

Quoted 79 lines

Below I am sharing the small module I use as a workaround; this is loaded once on boot.

// SPDX-License-Identifier: GPL-2.0

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/wmi.h>

#define DELL_OSD_WMI_GUID "2D703EE8-36AC-4F88-BDB5-7556CE6B2946" #define DELL_OSD_STARTUP_METHOD 1

static int dell_osd_probe(struct wmi_device *wdev, const void *context) {
  struct wmi_buffer input = {
   .length = 0,
   .data = NULL,
  };

  u8 instances;
  int ret;

  (void)context;

  instances = wmidev_instance_count(wdev);

  dev_info(&wdev->dev,
    "Dell OSD test: WMI device found, instance count = %u\n", instances);

  if (instances < 1) {
   dev_err(&wdev->dev,
    "Dell OSD test: no WMI instance 0 available\n"); return -ENODEV;
  }

  dev_info(&wdev->dev,
    "Dell OSD test: calling PegaOemNotificationStartUp, method ID 1\n");

  ret = wmidev_invoke_procedure(
   wdev,
   0,
   DELL_OSD_STARTUP_METHOD,
   &input
  );

  if (ret < 0) {
   dev_err(&wdev->dev,
    "Dell OSD test: startup method failed: %d\n",
    ret);
   return ret;
  }

  dev_info(&wdev->dev,
    "Dell OSD test: startup method returned success\n");

  return 0;
}

static const struct wmi_device_id dell_osd_id_table[] = { {
   .guid_string = DELL_OSD_WMI_GUID,
  },
  { }
};

MODULE_DEVICE_TABLE(wmi, dell_osd_id_table);

static struct wmi_driver dell_osd_driver = {
  .driver = {
   .name = "dell-osd-wmi-test",
  },
  .id_table = dell_osd_id_table,
  .probe = dell_osd_probe,
  .no_singleton = true,
};

module_wmi_driver(dell_osd_driver);

Quoted 8 lines

MODULE_AUTHOR("Dell OptiPlex 7400 AIO experimental test"); MODULE_DESCRIPTION("Experimental Dell OSD WMI startup-method test"); MODULE_LICENSE("GPL");

I hope this would be useful as not having this function has been such a bugbear for me over the years, especially on a business machine.

Thanks,
Teodora

Nice work, i will try to check if other devices expose the same firmware interface. If yes then we can for sure have a small driver initializing this during probe.

Does the OEM software invoke any other methods on this WMI device?

Thanks,
Armin Wolf

#6 lore raw

Am 27.10.26 um 18:12 schrieb Armin Wolf:

Quoted 14 lines

Am 24.10.26 um 21:14 schrieb Armin Wolf:

Quoted 13 lines

Am 24.10.26 um 21:09 schrieb Teodora:

Quoted 11 lines

Hi Armin,

Thanks for your response. Attached is the requested acpidump.

Regarding the other methods on the same WMI interface: DellOSDService.exe appears to invoke AcpiOSD_WMBC_method::PegaOemNotificationStartUp. The companion MediaButtons.exe also has WMI execution paths for PegaOemNotificationBrightnessUP and PegaOemNotificationBrightnessDown. I did not find call paths for PegaOemNotificationStop, PegaOemNotificationRSVD1, or PegaOemNotificationRSVD2, however.

There is also a separate AcpiOSD_WMBB_method interface used by DellOSDService.exe for a method named PegaOemReturnUBFR, but that appears to be a different WMI interface.

I can boot back into Windows and retrieve the WmiMethodId qualifiers for all of the WMBC methods if that would be useful, but I have not done that yet.

Thanks

Quoted 8 lines
Quoted 3 lines

Thanks, but i do not think that this will be necessary, the ACPI tables should already contain the necessary data. I will check tomorrow and report back if i need any additional data from you.

Armin Wolf

I have written a experimental kernel patch based on your custom kernel module, check the attached zip file. Can you check if building and loading this kernel module correctly enables notifications? Please also check that unloading said module produces no warnings in dmesg.

Thanks,
Armin Wolf

Forgot to attach the zip file, sorry.

Quoted 133 lines
Quoted 132 lines
Quoted 130 lines · Armin Wolf
Quoted 126 lines

Am 24.10.26 um 15:48 schrieb Teodora:

Quoted 22 lines

Hi,

I have a Dell OptiPlex 7400 All-in-One machine and have been investigating why its physical HDMI-In/source button works under Windows but not under Linux. I wanted to flag a potential solution, though I am not a kernel developer but was hoping that perhaps this could help the community.

So, my system details are:

- Dell OptiPlex 7400 All-in-One
- Fedora 44
- Kernel: 7.2.11-200.fc44.x86_64
- dell-wmi-aio is present and loaded

While investigating the Dell Windows OSD software, I found that the button generates a WMI event through Acpi_OSD_event, GUID: 02314822-307C-4F66-BF0E-48AEAEB26CC8. The GDat payload generated when pressing the source button begins 02 00 00 00 F2 DD which corresponds to event/scancode 0xDDF2.

More importantly, Dell's OSD service invokes another WMI method during startup:

     Class: AcpiOSD_WMBC_method
     GUID: 2D703EE8-36AC-4F88-BDB5-7556CE6B2946

     Method: PegaOemNotificationStartUp
     WmiMethodId: 1
     Description: "Invoked by AP when system up."

Quoted 5 lines

Linux exposes this WMI interface on the machine, with instance_count = 1. I wrote a minimal test WMI driver which binds only to this GUID and invokes: wmidev_invoke_procedure(wdev, 0, 1, &input); using an empty input buffer.

The result is reproducible: After a normal Linux boot, the HDMI/ source button does not switch the display. Then loading the test driver invokes WMI method 1 and the firmware reports success. Immediately after, the physical source button works correctly and switches the panel to HDMI- In. The test module can then be unloaded and the physical button continues to work.

After rebooting, the problem returns until method 1 is invoked again. This suggests that PegaOemNotificationStartUp is a one-shot firmware initialization which Dell's Windows software performs at startup but Linux currently does not.

Interesting, can you share the output of acpidump?

Quoted 79 lines

Below I am sharing the small module I use as a workaround; this is loaded once on boot.

// SPDX-License-Identifier: GPL-2.0

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/wmi.h>

#define DELL_OSD_WMI_GUID "2D703EE8-36AC-4F88-BDB5-7556CE6B2946" #define DELL_OSD_STARTUP_METHOD 1

static int dell_osd_probe(struct wmi_device *wdev, const void *context) {
  struct wmi_buffer input = {
   .length = 0,
   .data = NULL,
  };

  u8 instances;
  int ret;

  (void)context;

  instances = wmidev_instance_count(wdev);

  dev_info(&wdev->dev,
    "Dell OSD test: WMI device found, instance count = %u\n", instances);

  if (instances < 1) {
   dev_err(&wdev->dev,
    "Dell OSD test: no WMI instance 0 available\n"); return -ENODEV;
  }

  dev_info(&wdev->dev,
    "Dell OSD test: calling PegaOemNotificationStartUp, method ID 1\n");

  ret = wmidev_invoke_procedure(
   wdev,
   0,
   DELL_OSD_STARTUP_METHOD,
   &input
  );

  if (ret < 0) {
   dev_err(&wdev->dev,
    "Dell OSD test: startup method failed: %d\n",
    ret);
   return ret;
  }

  dev_info(&wdev->dev,
    "Dell OSD test: startup method returned success\n");

  return 0;
}

static const struct wmi_device_id dell_osd_id_table[] = { {
   .guid_string = DELL_OSD_WMI_GUID,
  },
  { }
};

MODULE_DEVICE_TABLE(wmi, dell_osd_id_table);

static struct wmi_driver dell_osd_driver = {
  .driver = {
   .name = "dell-osd-wmi-test",
  },
  .id_table = dell_osd_id_table,
  .probe = dell_osd_probe,
  .no_singleton = true,
};

module_wmi_driver(dell_osd_driver);

Quoted 8 lines

MODULE_AUTHOR("Dell OptiPlex 7400 AIO experimental test"); MODULE_DESCRIPTION("Experimental Dell OSD WMI startup-method test"); MODULE_LICENSE("GPL");

I hope this would be useful as not having this function has been such a bugbear for me over the years, especially on a business machine.

Thanks,
Teodora

Nice work, i will try to check if other devices expose the same firmware interface. If yes then we can for sure have a small driver initializing this during probe.

Does the OEM software invoke any other methods on this WMI device?

Thanks,
Armin Wolf

#7 lore raw

Got it, thanks! I am away at the moment but will test it on the weekend and get back to you as soon as I can.

Quoted 158 lines · Armin Wolf

Am 27.10.26 um 18:12 schrieb Armin Wolf:

Quoted 12 lines
Quoted 12 lines

Am 24.10.26 um 21:14 schrieb Armin Wolf:
Am 24.10.26 um 21:09 schrieb Teodora:

Quoted 10 lines

Hi Armin,

Thanks for your response. Attached is the requested acpidump.

Regarding the other methods on the same WMI interface: DellOSDService.exe appears to invoke AcpiOSD_WMBC_method::PegaOemNotificationStartUp. The companion MediaButtons.exe also has WMI execution paths for PegaOemNotificationBrightnessUP and PegaOemNotificationBrightnessDown. I did not find call paths for PegaOemNotificationStop, PegaOemNotificationRSVD1, or PegaOemNotificationRSVD2, however.

There is also a separate AcpiOSD_WMBB_method interface used by DellOSDService.exe for a method named PegaOemReturnUBFR, but that appears to be a different WMI interface.

I can boot back into Windows and retrieve the WmiMethodId qualifiers for all of the WMBC methods if that would be useful, but I have not done that yet.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Thanks

Thanks, but i do not think that this will be necessary, the ACPI tables should already contain the necessary data. I will check tomorrow and report back if i need any additional data from you.

Armin Wolf

I have written a experimental kernel patch based on your custom kernel module, check the attached zip file. Can you check if building and loading this kernel module correctly enables notifications? Please also check that unloading said module produces no warnings in dmesg. Thanks,
Armin Wolf

Forgot to attach the zip file, sorry.

Quoted 123 lines
Quoted 123 lines
Quoted 123 lines · Armin Wolf
Quoted 121 lines

Am 24.10.26 um 15:48 schrieb Teodora:

Quoted 22 lines

Hi,

I have a Dell OptiPlex 7400 All-in-One machine and have been investigating why its physical HDMI-In/source button works under Windows but not under Linux. I wanted to flag a potential solution, though I am not a kernel developer but was hoping that perhaps this could help the community.

So, my system details are:

- Dell OptiPlex 7400 All-in-One
- Fedora 44
- Kernel: 7.2.11-200.fc44.x86_64
- dell-wmi-aio is present and loaded

While investigating the Dell Windows OSD software, I found that the button generates a WMI event through Acpi_OSD_event, GUID: 02314822-307C-4F66-BF0E-48AEAEB26CC8. The GDat payload generated when pressing the source button begins 02 00 00 00 F2 DD which corresponds to event/scancode 0xDDF2.

More importantly, Dell's OSD service invokes another WMI method during startup:

Class: AcpiOSD_WMBC_method
GUID: 2D703EE8-36AC-4F88-BDB5-7556CE6B2946

Method: PegaOemNotificationStartUp
WmiMethodId: 1
Description: "Invoked by AP when system up."

Quoted 5 lines

Linux exposes this WMI interface on the machine, with instance_count = 1. I wrote a minimal test WMI driver which binds only to this GUID and invokes: wmidev_invoke_procedure(wdev, 0, 1, &input); using an empty input buffer.

The result is reproducible: After a normal Linux boot, the HDMI/ source button does not switch the display. Then loading the test driver invokes WMI method 1 and the firmware reports success. Immediately after, the physical source button works correctly and switches the panel to HDMI- In. The test module can then be unloaded and the physical button continues to work.

After rebooting, the problem returns until method 1 is invoked again. This suggests that PegaOemNotificationStartUp is a one-shot firmware initialization which Dell's Windows software performs at startup but Linux currently does not.

Interesting, can you share the output of acpidump?

Quoted 79 lines

Below I am sharing the small module I use as a workaround; this is loaded once on boot.

// SPDX-License-Identifier: GPL-2.0

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/wmi.h>

#define DELL_OSD_WMI_GUID "2D703EE8-36AC-4F88-BDB5-7556CE6B2946" #define DELL_OSD_STARTUP_METHOD 1

static int dell_osd_probe(struct wmi_device *wdev, const void *context) {
struct wmi_buffer input = {
.length = 0,
.data = NULL,
};

u8 instances;
int ret;

  (void)context;

  instances = wmidev_instance_count(wdev);

dev_info(&wdev->dev,
"Dell OSD test: WMI device found, instance count = %u\n", instances);

  if (instances < 1) {
   dev_err(&wdev->dev,
    "Dell OSD test: no WMI instance 0 available\n");
   return -ENODEV;
  }

dev_info(&wdev->dev,

    "Dell OSD test: calling PegaOemNotificationStartUp, method ID 1\n");

ret = wmidev_invoke_procedure(
wdev,
0,
DELL_OSD_STARTUP_METHOD,
&input
);

  if (ret < 0) {
   dev_err(&wdev->dev,
    "Dell OSD test: startup method failed: %d\n",
    ret);
   return ret;
  }

dev_info(&wdev->dev,

    "Dell OSD test: startup method returned success\n");

return 0;
}

static const struct wmi_device_id dell_osd_id_table[] = {
{
.guid_string = DELL_OSD_WMI_GUID,
},
{ }
};

MODULE_DEVICE_TABLE(wmi, dell_osd_id_table);

static struct wmi_driver dell_osd_driver = {

  .driver = {
   .name = "dell-osd-wmi-test",

},
.id_table = dell_osd_id_table,
.probe = dell_osd_probe,
.no_singleton = true,
};

module_wmi_driver(dell_osd_driver);

Quoted 8 lines

MODULE_AUTHOR("Dell OptiPlex 7400 AIO experimental test"); MODULE_DESCRIPTION("Experimental Dell OSD WMI startup-method test"); MODULE_LICENSE("GPL");

I hope this would be useful as not having this function has been such a bugbear for me over the years, especially on a business machine.

Thanks,
Teodora

Nice work, i will try to check if other devices expose the same firmware interface. If yes then we can for sure have a small driver initializing this during probe.

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines

Does the OEM software invoke any other methods on this WMI device?

Thanks,
Armin Wolf

<dell-wmi-pega.zip>

author
#8 lore raw

Hi Armin,

Apologies for the delay in getting back to you. I finally had some time to test your module, and have some good news.

I first disabled my original DKMS module and rebuilt the initramfs to ensure it wasn't loaded during boot. After a clean boot without either module, the HDMI/source button did not work. I built and signed your module, then loaded it using insmod; the physical HDMI/source button immediately started working. I unloaded your module using rmmod, which completed without errors. The HDMI/source button continued working after the module was unloaded.

The only warming message associated with your module was "dell_wmi_pega: loading out-of-tree module taints kernel".

So the startup initialization works correctly on my hardware, and module removal appears clean. The STOP method doesn't appear to reverse HDMI switching, at least on this machine.

Thanks for working on this - happy to test any further revisions.

Teodora

Quoted 181 lines · On Tue, Oct 27 2026 at 20:57:36 +00:00:00, [email protected] wrote:

Got it, thanks! I am away at the moment but will test it on the weekend and get back to you as soon as I can.

Quoted 178 lines · Armin Wolf

Am 27.10.26 um 18:12 schrieb Armin Wolf:

Quoted 17 lines
Quoted 17 lines

Am 24.10.26 um 21:14 schrieb Armin Wolf:
Am 24.10.26 um 21:09 schrieb Teodora:

Quoted 14 lines

Hi Armin,

Thanks for your response. Attached is the requested acpidump.

Regarding the other methods on the same WMI interface:
DellOSDService.exe appears to invoke AcpiOSD_WMBC_method::PegaOemNotificationStartUp. The companion MediaButtons.exe also has WMI execution paths for PegaOemNotificationBrightnessUP and PegaOemNotificationBrightnessDown. I did not find call paths for PegaOemNotificationStop, PegaOemNotificationRSVD1, or PegaOemNotificationRSVD2, however.

There is also a separate AcpiOSD_WMBB_method interface used by
DellOSDService.exe for a method named PegaOemReturnUBFR, but that appears to be a different WMI interface.

I can boot back into Windows and retrieve the WmiMethodId
qualifiers for all of the WMBC methods if that would be useful, but I have not done that yet.

Thanks

Quoted 8 lines
Quoted 4 lines

Thanks, but i do not think that this will be necessary, the ACPI
tables should already contain the necessary data. I will check tomorrow and report back if i need any additional data from you.

Armin Wolf

I have written a experimental kernel patch based on your custom
kernel module, check the attached zip file. Can you check if building and loading this kernel module correctly enables notifications? Please also check that unloading said module produces no warnings in dmesg.
Thanks,
Armin Wolf

Forgot to attach the zip file, sorry.

Quoted 140 lines
Quoted 140 lines
Quoted 140 lines
Quoted 137 lines · Armin Wolf

Am 24.10.26 um 15:48 schrieb Teodora:

Quoted 25 lines

Hi,

I have a Dell OptiPlex 7400 All-in-One machine and have been
investigating why its physical HDMI-In/source button works under Windows but not under Linux. I wanted to flag a potential solution, though I am not a kernel developer but was hoping that perhaps this could help the community.

So, my system details are:

- Dell OptiPlex 7400 All-in-One
- Fedora 44
- Kernel: 7.2.11-200.fc44.x86_64
- dell-wmi-aio is present and loaded

While investigating the Dell Windows OSD software, I found
that the button generates a WMI event through Acpi_OSD_event, GUID: 02314822-307C-4F66-BF0E-48AEAEB26CC8. The GDat payload generated when pressing the source button begins 02 00 00 00 F2 DD which corresponds to event/scancode 0xDDF2.

More importantly, Dell's OSD service invokes another WMI
method during startup:

Class: AcpiOSD_WMBC_method
GUID: 2D703EE8-36AC-4F88-BDB5-7556CE6B2946

Method: PegaOemNotificationStartUp
WmiMethodId: 1
Description: "Invoked by AP when system up."

Quoted 8 lines

Linux exposes this WMI interface on the machine, with
instance_count = 1. I wrote a minimal test WMI driver which binds only to this GUID and invokes: wmidev_invoke_procedure(wdev, 0, 1, &input); using an empty input buffer.

The result is reproducible: After a normal Linux boot, the
HDMI/ source button does not switch the display. Then loading the test driver invokes WMI method 1 and the firmware reports success. Immediately after, the physical source button works correctly and switches the panel to HDMI- In. The test module can then be unloaded and the physical button continues to work.

After rebooting, the problem returns until method 1 is invoked
again. This suggests that PegaOemNotificationStartUp is a one-shot firmware initialization which Dell's Windows software performs at startup but Linux currently does not.

Interesting, can you share the output of acpidump?

Quoted 88 lines

Below I am sharing the small module I use as a workaround;
this is loaded once on boot.

// SPDX-License-Identifier: GPL-2.0

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/wmi.h>

#define DELL_OSD_WMI_GUID
"2D703EE8-36AC-4F88-BDB5-7556CE6B2946"
#define DELL_OSD_STARTUP_METHOD 1

static int dell_osd_probe(struct wmi_device *wdev, const void
*context)

 {
   struct wmi_buffer input = {
    .length = 0,
    .data = NULL,
   };

   u8 instances;
   int ret;

   (void)context;

   instances = wmidev_instance_count(wdev);

   dev_info(&wdev->dev,
     "Dell OSD test: WMI device found, instance count = %u\n",
     instances);

   if (instances < 1) {
    dev_err(&wdev->dev,
     "Dell OSD test: no WMI instance 0 available\n");
    return -ENODEV;
   }

   dev_info(&wdev->dev,
     "Dell OSD test: calling PegaOemNotificationStartUp, method 

ID 1\n");

   ret = wmidev_invoke_procedure(
    wdev,
    0,
    DELL_OSD_STARTUP_METHOD,
    &input
   );

   if (ret < 0) {
    dev_err(&wdev->dev,
     "Dell OSD test: startup method failed: %d\n",
     ret);
    return ret;
   }

   dev_info(&wdev->dev,
     "Dell OSD test: startup method returned success\n");

   return 0;

}

 static const struct wmi_device_id dell_osd_id_table[] = {
   {
    .guid_string = DELL_OSD_WMI_GUID,
   },
   { }

};

MODULE_DEVICE_TABLE(wmi, dell_osd_id_table);

static struct wmi_driver dell_osd_driver = {

   .driver = {
    .name = "dell-osd-wmi-test",

},
.id_table = dell_osd_id_table,
.probe = dell_osd_probe,
.no_singleton = true,
};

module_wmi_driver(dell_osd_driver);

MODULE_AUTHOR("Dell OptiPlex 7400 AIO experimental test"); MODULE_DESCRIPTION("Experimental Dell OSD WMI startup-method
test");
MODULE_LICENSE("GPL");

Quoted 5 lines

I hope this would be useful as not having this function has
been such a bugbear for me over the years, especially on a business machine.

Thanks,
Teodora

Nice work, i will try to check if other devices expose the same
firmware interface. If yes then we can for sure have a small driver initializing this during probe.

Does the OEM software invoke any other methods on this WMI
device?

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

Thanks,
Armin Wolf

<dell-wmi-pega.zip>

#9 lore raw

Am 15.11.26 um 19:39 schrieb Teodora:

Quoted 6 lines

Hi Armin,

Apologies for the delay in getting back to you. I finally had some time to test your module, and have some good news.

I first disabled my original DKMS module and rebuilt the initramfs to ensure it wasn't loaded during boot. After a clean boot without either module, the HDMI/source button did not work. I built and signed your module, then loaded it using insmod; the physical HDMI/source button immediately started working. I unloaded your module using rmmod, which completed without errors. The HDMI/source button continued working after the module was unloaded.

Quoted 7 lines

The only warming message associated with your module was "dell_wmi_pega: loading out-of-tree module taints kernel".

So the startup initialization works correctly on my hardware, and module removal appears clean. The STOP method doesn't appear to reverse HDMI switching, at least on this machine.

Thanks for working on this - happy to test any further revisions.

Teodora

Nice, i will prepare a patch then.

Thanks,
Armin Wolf

Quoted 165 lines · On Tue, Oct 27 2026 at 20:57:36 +00:00:00, [email protected] wrote:
Quoted 161 lines

Got it, thanks! I am away at the moment but will test it on the weekend and get back to you as soon as I can.

Quoted 158 lines · Armin Wolf

 Am 27.10.26 um 18:12 schrieb Armin Wolf:

Quoted 12 lines
Quoted 12 lines

 Am 24.10.26 um 21:14 schrieb Armin Wolf:
 Am 24.10.26 um 21:09 schrieb Teodora:

Quoted 10 lines

 Hi Armin,

 Thanks for your response. Attached is the requested acpidump.

 Regarding the other methods on the same WMI interface: DellOSDService.exe appears to invoke AcpiOSD_WMBC_method::PegaOemNotificationStartUp. The companion MediaButtons.exe also has WMI execution paths for PegaOemNotificationBrightnessUP and PegaOemNotificationBrightnessDown. I did not find call paths for PegaOemNotificationStop, PegaOemNotificationRSVD1, or PegaOemNotificationRSVD2, however.

 There is also a separate AcpiOSD_WMBB_method interface used by DellOSDService.exe for a method named PegaOemReturnUBFR, but that appears to be a different WMI interface.

 I can boot back into Windows and retrieve the WmiMethodId qualifiers for all of the WMBC methods if that would be useful, but I have not done that yet.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

 Thanks

 Thanks, but i do not think that this will be necessary, the ACPI tables should already contain the necessary data. I will check tomorrow and report back if i need any additional data from you.

 Armin Wolf

 I have written a experimental kernel patch based on your custom kernel module, check the attached zip file. Can you check if building and loading this kernel module correctly enables notifications? Please also check that unloading said module produces no warnings in dmesg. Thanks,
 Armin Wolf

 Forgot to attach the zip file, sorry.

Quoted 123 lines
Quoted 123 lines
Quoted 123 lines · Armin Wolf
Quoted 121 lines

 Am 24.10.26 um 15:48 schrieb Teodora:

Quoted 22 lines

 Hi,

 I have a Dell OptiPlex 7400 All-in-One machine and have been investigating why its physical HDMI-In/source button works under Windows but not under Linux. I wanted to flag a potential solution, though I am not a kernel developer but was hoping that perhaps this could help the community.

 So, my system details are:

 - Dell OptiPlex 7400 All-in-One
 - Fedora 44
 - Kernel: 7.2.11-200.fc44.x86_64
 - dell-wmi-aio is present and loaded

 While investigating the Dell Windows OSD software, I found that the button generates a WMI event through Acpi_OSD_event, GUID: 02314822-307C-4F66-BF0E-48AEAEB26CC8. The GDat payload generated when pressing the source button begins 02 00 00 00 F2 DD which corresponds to event/scancode 0xDDF2.

 More importantly, Dell's OSD service invokes another WMI method during startup:

      Class: AcpiOSD_WMBC_method
      GUID: 2D703EE8-36AC-4F88-BDB5-7556CE6B2946

      Method: PegaOemNotificationStartUp
      WmiMethodId: 1
      Description: "Invoked by AP when system up."

Quoted 5 lines

 Linux exposes this WMI interface on the machine, with instance_count = 1. I wrote a minimal test WMI driver which binds only to this GUID and invokes: wmidev_invoke_procedure(wdev, 0, 1, &input); using an empty input buffer.

 The result is reproducible: After a normal Linux boot, the HDMI/ source button does not switch the display. Then loading the test driver invokes WMI method 1 and the firmware reports success. Immediately after, the physical source button works correctly and switches the panel to HDMI- In. The test module can then be unloaded and the physical button continues to work.

 After rebooting, the problem returns until method 1 is invoked again. This suggests that PegaOemNotificationStartUp is a one-shot firmware initialization which Dell's Windows software performs at startup but Linux currently does not.

 Interesting, can you share the output of acpidump?

Quoted 79 lines

 Below I am sharing the small module I use as a workaround; this is loaded once on boot.

 // SPDX-License-Identifier: GPL-2.0

 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/wmi.h>

 #define DELL_OSD_WMI_GUID "2D703EE8-36AC-4F88-BDB5-7556CE6B2946" #define DELL_OSD_STARTUP_METHOD 1

 static int dell_osd_probe(struct wmi_device *wdev, const void *context) {
   struct wmi_buffer input = {
    .length = 0,
    .data = NULL,
   };

   u8 instances;
   int ret;

   (void)context;

   instances = wmidev_instance_count(wdev);

   dev_info(&wdev->dev,
     "Dell OSD test: WMI device found, instance count = %u\n", instances);

   if (instances < 1) {
    dev_err(&wdev->dev,
     "Dell OSD test: no WMI instance 0 available\n"); return -ENODEV;
   }

   dev_info(&wdev->dev,
     "Dell OSD test: calling PegaOemNotificationStartUp, method ID 1\n");

   ret = wmidev_invoke_procedure(
    wdev,
    0,
    DELL_OSD_STARTUP_METHOD,
    &input
   );

   if (ret < 0) {
    dev_err(&wdev->dev,
     "Dell OSD test: startup method failed: %d\n", ret);
    return ret;
   }

   dev_info(&wdev->dev,
     "Dell OSD test: startup method returned success\n");

   return 0;
 }

 static const struct wmi_device_id dell_osd_id_table[] = { {
    .guid_string = DELL_OSD_WMI_GUID,
   },
   { }
 };

 MODULE_DEVICE_TABLE(wmi, dell_osd_id_table);

 static struct wmi_driver dell_osd_driver = {
   .driver = {
    .name = "dell-osd-wmi-test",
   },
   .id_table = dell_osd_id_table,
   .probe = dell_osd_probe,
   .no_singleton = true,
 };

 module_wmi_driver(dell_osd_driver);

Quoted 8 lines

 MODULE_AUTHOR("Dell OptiPlex 7400 AIO experimental test"); MODULE_DESCRIPTION("Experimental Dell OSD WMI startup-method test"); MODULE_LICENSE("GPL");

 I hope this would be useful as not having this function has been such a bugbear for me over the years, especially on a business machine.

 Thanks,
 Teodora

 Nice work, i will try to check if other devices expose the same firmware interface. If yes then we can for sure have a small driver initializing this during probe.

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines

 Does the OEM software invoke any other methods on this WMI device?

 Thanks,
 Armin Wolf

 <dell-wmi-pega.zip>