What is in Linux the equivalent code of this vb.net snipplet:
Public Sub SwitchGFX()
' Switches GFX card on MSI Notebooks
' Coded by Zibri http://www.zibri.org
Dim mo As New ManagementObject("\root\WMI:MSI_System.InstanceName=""ACPI\\PNP0C14\\0_4""")
mo.SetPropertyValue("System", 1)
mo.Put()
End Sub
Or this windows shell command:
wmic /namespace:\\root\wmi path MSI_System.InstanceName="ACPI\\PNP0C14\\0_4" set System=0
wmic /namespace:\\root\wmi path MSI_System.InstanceName="ACPI\\PNP0C14\\0_4" set System=1
P.S. This code switches the VGA from Intel to NVIDIA on a MSI Notebook.