added B_SAFEMODE_DISABLE_APM
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25334 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7a58a3ed3d
commit
7c8ddc9795
@ -15,6 +15,7 @@
|
||||
#define B_SAFEMODE_DISABLE_USER_ADD_ONS "disableuseraddons"
|
||||
#define B_SAFEMODE_DISABLE_IDE_DMA "disableidedma"
|
||||
#define B_SAFEMODE_DISABLE_ACPI "disable_acpi"
|
||||
#define B_SAFEMODE_DISABLE_APM "disable_apm"
|
||||
#define B_SAFEMODE_DISABLE_SMP "disable_smp"
|
||||
#define B_SAFEMODE_DISABLE_HYPER_THREADING "disable_hyperthreading"
|
||||
#define B_SAFEMODE_FAIL_SAFE_VIDEO_MODE "fail_safe_video_mode"
|
||||
|
@ -35,7 +35,7 @@ platform_add_menus(Menu *menu)
|
||||
|
||||
menu->AddItem(item = new(nothrow) MenuItem("Disable APM"));
|
||||
item->SetType(MENU_ITEM_MARKABLE);
|
||||
item->SetData("disable_apm");
|
||||
item->SetData(B_SAFEMODE_DISABLE_APM);
|
||||
item->SetHelpText("This overrides the APM setting in the kernel settings file");
|
||||
|
||||
menu->AddItem(item = new(nothrow) MenuItem("Disable ACPI"));
|
||||
|
@ -291,7 +291,7 @@ apm_init(kernel_args *args)
|
||||
|
||||
handle = load_driver_settings(B_SAFEMODE_DRIVER_SETTINGS);
|
||||
if (handle != NULL) {
|
||||
apm = !get_driver_boolean_parameter(handle, "disable_apm", !apm, !apm);
|
||||
apm = !get_driver_boolean_parameter(handle, B_SAFEMODE_DISABLE_APM, !apm, !apm);
|
||||
unload_driver_settings(handle);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user