Index: powermgmt.c =================================================================== RCS file: /cvsroot/rockbox/firmware/powermgmt.c,v retrieving revision 1.90 diff -u -b -r1.90 powermgmt.c --- powermgmt.c 14 Sep 2005 09:08:26 -0000 1.90 +++ powermgmt.c 17 Oct 2005 21:08:52 -0000 @@ -47,6 +47,7 @@ #include "tlv320.h" #endif #include "logf.h" +#include "../apps/settings.h" /* * Define DEBUG_FILE to create a csv (spreadsheet) with battery information @@ -394,6 +395,8 @@ if(TIME_AFTER(current_tick, last_event_tick + timeout) && TIME_AFTER(current_tick, last_disk_activity + timeout)) { + if (global_settings.autocreatebookmark == BOOKMARK_YES) + queue_post(&button_queue, BUTTON_OFF, NULL); sys_poweroff(); } } @@ -417,6 +420,8 @@ #endif { DEBUGF("Sleep timer timeout. Shutting off...\n"); + if (global_settings.autocreatebookmark == BOOKMARK_YES) + queue_post(&button_queue, BUTTON_OFF, NULL); sys_poweroff(); } }