本帖最后由 seanhut 于 2012-1-1 16:43 编辑
deep sleep就是断电睡眠,相当于windows的休眠。
坛子里好像很少有人研究这个,我比较喜欢deep sleep,不喜欢关机。
以前deep sleep之后,启动时就会弹一个
Not enough space to restore image. Press any key to proceed with normal boot
在网上爬文,发现这个问题存在已经很久了,大家都说是变色龙的bug,需要改代码解决。 这里很迷惑,为啥变色龙更新这么频繁,却没有修正这个问题呢? 修正的方法很简单,就是在判断语句里边加一个否定判断叹号。 代码文件:resume.c 原来 - if (((long long)mem_base + allocSize) < (1024 * bootInfo->extmem + 0x100000))
- {
- printf ("Not enough space to restore image. Press any key to proceed with normal boot.\n");
- getchar();
- return;
- }
复制代码
现在
- if (!((long long)mem_base + allocSize) < (1024 * bootInfo->extmem + 0x100000))
- {
- printf ("Not enough space to restore image. Press any key to proceed with normal boot.\n");
- getchar();
- return;
- }
复制代码
睡眠恢复的画面有点诡异,刚开始是一个进度条,后来从上而下刷成白色屏幕,左上方还有一条黑线。
另外,把我编译后的文件贴出来,V1767。
V1767.zip
(163.71 KB, 下载次数: 29)
|