|  | 
 
| 本帖最后由 liuzhaoyzz 于 2021-2-5 10:13 编辑 
 grub4dos_UEFI版本截图办法
 1、为了方便g4e反馈,wintoflash大神为g4e写了个load命令,可以加载CrScreenshotDxe.efi截图模块,调用办法:启动分区中\EFI\grub\menu.lst前面加上load -n /EFI/grub/CrScreenshotDxe.efi,把CrScreenshotDxe.efi先拷贝到(启动分区)/EFI/grub/目录下,然后按左Ctrl+左Alt+F12就可以截图了,图片会用8位数字.png的形式保存在第一个找到的FAT16/FAT32分区。
 用手机拍摄电脑屏幕会因为液晶屏幕和手机频率不一致和屏幕反光问题不清晰,有时候拍摄的屏幕也不全面,建议用这个方法上传截图,反馈问题。
 
 示例菜单:
 timeout 5
 default 0
 graphicsmode -1 800
 find --ignore-floppies --set-root /efi/grub/unifont.hex.gz
 font /efi/grub/unifont.hex.gz
 #font --font-high=40 /efi/grub/menu40.hex.gz
 #splashimage /efi/grub/lt.jpg
 #ctrl+alt+f12=ScreenShot,save in FAT32 partition
 load -n /EFI/grub/CrScreenshotDxe.efi
 color normal=0x55ffff highlight=0xff00ff helptext=0xffff55 standard=0x55ffff border=0xaaaaaa
 #color normal=0x07 highlight=0xE1 helptext=0x07 heading=0x02
 #setmenu --box x=4 w=60 y=6 h=9 l=2
 #setmenu --keyhelp=1 --lang=zh
 #setmenu --auto-num-on
 #setmenu --keyhelp=1=0x66ff00
 #setmenu --string=m=2=0x0000000000ffff="G4D维护菜单"
 #setmenu --string=s=1=0x8800000000ffff="date&time=yyyy-MM-dd  HH:mm:ss"
 #setmenu --timeout=90=2=0x88000000ffff
 setmenu --hotkey -A [F4] commandline
 
 title /boot/imgs/WePE_64_V2.1.iso
 find --set-root /boot/imgs/WePE_64_V2.1.iso
 map --mem /boot/imgs/WePE_64_V2.1.iso (0xff)
 chainloader (0xff)
 
 title 启动存在的光盘(cd0)
 chainloader (cd0)
 
 title ^Ctrl+d commandline
 commandline
 
 title [F3] reboot
 reboot
 
 title halt
 halt
 
 2、在菜单中利用g4e的debug和pause命令,在你想要暂停的语句后面加上pause即可,然后用上面的办法截图,这样子就不用手工输入复杂的一串命令了。我最怕的就是输入那一串命令。
 比如上面的菜单:
 
 title /boot/imgs/WePE_64_V2.1.iso
 debug 3
 find --set-root /boot/imgs/WePE_64_V2.1.iso
 map --mem /boot/imgs/WePE_64_V2.1.iso (0xff)
 pause pause1
 chainloader (0xff)
 
 我上传个示例菜单和CrScreenshotDxe.efi模块,考虑到g4e离开了字库就不能正常加载,我把unifont.hex一并打包上来,把这些文件放到(启动分区)\EFI\grub\目录下即可。来自wintoflash大神817楼低调的发布:
 GRUB4DOS for UEFI - 第28页 - GRUB4DOS - 无忧启动论坛 - Powered by Discuz! http://bbs.wuyou.net/forum.php?m ... &page=28#pid4195636
 
 CrScreenshotDxe.efi原作者是LongSoft:
 GitHub - LongSoft/CrScreenshotDxe: UEFI DXE driver to take screenshots from GOP-compatible graphic consoles https://github.com/LongSoft/CrScreenshotDxe
 
 grub2-UEFI下面的截图模块用法:
 UEFI 下的截图模块 - GRUB2 - 无忧启动论坛 - Powered by Discuz! http://wuyou.net/forum.php?mod=viewthread&tid=421511#lastpost
 
 
 | 
 |