mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Added option to disable tablet mode switch in config
This commit is contained in:
@@ -342,6 +342,7 @@ namespace GHelper.Input
|
|||||||
|
|
||||||
public static void TabletMode()
|
public static void TabletMode()
|
||||||
{
|
{
|
||||||
|
if (AppConfig.Is("disable_tablet")) return;
|
||||||
|
|
||||||
bool touchpadState = GetTouchpadState();
|
bool touchpadState = GetTouchpadState();
|
||||||
bool tabletState = Program.acpi.DeviceGet(AsusACPI.TabletState) > 0;
|
bool tabletState = Program.acpi.DeviceGet(AsusACPI.TabletState) > 0;
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ namespace GHelper.Mode
|
|||||||
if (cpuTemp >= RyzenControl.MinTemp && cpuTemp < RyzenControl.MaxTemp)
|
if (cpuTemp >= RyzenControl.MinTemp && cpuTemp < RyzenControl.MaxTemp)
|
||||||
{
|
{
|
||||||
var resultCPU = SendCommand.set_tctl_temp((uint)cpuTemp);
|
var resultCPU = SendCommand.set_tctl_temp((uint)cpuTemp);
|
||||||
Logger.WriteLine($"CPU Temp: {cpuTemp} {resultCPU}");
|
if (log) Logger.WriteLine($"CPU Temp: {cpuTemp} {resultCPU}");
|
||||||
|
|
||||||
var restultAPU = SendCommand.set_apu_skin_temp_limit((uint)cpuTemp);
|
var restultAPU = SendCommand.set_apu_skin_temp_limit((uint)cpuTemp);
|
||||||
if (log) Logger.WriteLine($"APU Temp: {cpuTemp} {restultAPU}");
|
if (log) Logger.WriteLine($"APU Temp: {cpuTemp} {restultAPU}");
|
||||||
|
|||||||
Reference in New Issue
Block a user