<div dir="ltr"><div>bought a thinkpad e540 from free geek, mostly works great, 8g ram and 1t hd for $100 seemed decent even with a missing key, a couple dings on the case, can't open the optical drive, and when it sleeps it won't wake up.</div><div><br></div><div>i thought maybe i might get by without sleeping:</div><div>systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target</div><div><br></div><div>as a result now when i've closed the cover my incoming ssh sessions survive and thrive but it kills off my console session and doesn't leave a way to login again upon reopening the cover.  is there a better approach?<br></div><div><br></div><div>for waking from sleeping to work it probably needs a bios update.  the lenovo site has this bios <a href="https://download.lenovo.com/pccbbs/mobiles/j9uj28wd.iso">iso</a> and <a href="https://download.lenovo.com/pccbbs/mobiles/j9uj28wd.txt">doc</a> (tho i gained nothing from reading it).  inserting a cd is a no go.  but you'd think i ought to be able to boot via grub, right?</div><div><br></div><div>i tried this in grub:</div><div>menuentry e540firmwarej9uj28wd.iso {<br>             search --no-floppy --set=root --fs-uuid cb3d9931-e086-4632-8216-1f0aab276d73<br>            linux16        /usr/lib/syslinux/memdisk iso<br>           initrd16  /home/greg/e540firmwarej9uj28wd.iso<br>}</div><div><br></div><div>and got this:<div>stuff scrolled off screen, screen shows:</div></div><div>MEMDISK:  Image seems to have fractional end cylinder</div><div>Disk is hd0, 16694 K, C/H/S = 16/64/32 (MBR/MBR), EDD on, rw</div><div>Using safe INT 15 access to high memory</div><div>Code 1860, meminfo 384, cmdline 41, stack 512</div><div>Total size needed = 2797 bytes, allocating 3K</div><div>Old dos memory at 0x9d000 (map says 0x9d000), loading at 0x9c400</div><div>1588: 0xffff  15E801: 0x3c00 0x34f3</div><div>INT 13 00: Success, count = 1, BPT = 0000:0000</div><div>Drive probing gives drive shift limit: 0x82</div><div>old: int13 = f0005757  int15 = f000c119  int17 = f000efc7</div><div>new: int13 = 9c40000a  int15 = 9c4003fd  int17 = f000efc7</div><div>Loading boot sector... booting...</div><div>Lenovo Group Limited</div><div></div><div>Starting PC DOS...</div><div><br></div><div></div><div>Bad or missing C:\HIMEM.SYS</div><div>Error in CONFIG.SYS line 3</div><div></div><div>Bad or missing C:\RAMDRIVE.SYS</div><div>Error in CONFIG.SYS line 4</div><div>HMA not available: Loading DOS low</div><div>Bad command or file name</div><div><div><br></div><div>looking around for clues:<br></div><div><div>C:\FLASH>dir..</div><div> Volume in drive C is PCDOS_6</div><div> Volume serial number is 386A-8A21</div><div> Directory of C:\</div></div></div><div><div><br></div><div><div><div><div>COMMAND  COM      54,654 12-31-93  12:00a</div>CONFIG   SYS         123 04-15-09   1:39p</div>AUTOEXEC BAT          58 04-04-08   6:23p</div>EFI          <DIR>       04-25-18   8:01p</div><div>FLASH        <DIR>       04-25-18   8:01p</div>        5 file(s)       54,835 bytes<br><div>                    1,638,400 bytes free</div></div><div><div><br></div><div>C:\FLASH>type..\config.sys</div><div>FILES=30</div><div>BUFFERS=10</div><div>DEVICE=C:\HIMEM.SYS /NUMHANDLES=120</div><div>DEVICEHIGH=C:\ramdrive.sys /E 1024</div><div>DOS=HIGH,UMB</div><div>STACKS=9,256<br><div><div><br></div><div>C:\FLASH>type..\autoexec.bat</div><div>@ECHO OFF</div><div>PROMPT $p$g</div><div>cd c:\flash</div><div><a href="http://command.com">command.com</a><br></div></div></div></div><div><br></div><div>C:\FLASH>dir..\efi<div> Volume in drive C is PCDOS_6</div><div> Volume serial number is 386A-8A21</div><div> Directory of C:\EFI</div><div><div><div><div><div><br></div><div>.            <DIR>       06-20-18  10:51a</div><div>..           <DIR>       06-20-18  10:51a</div><div>BOOT         <DIR>       04-25-18   8:01p<br></div><div>        3 file(s)            0 bytes<br></div><div>                    1,638,400 bytes free</div><div><div><br></div><div>C:\FLASH>dir..\efi\boot<br><div> Volume in drive C is PCDOS_6</div><div> Volume serial number is 386A-8A21</div><div> Directory of C:\EFI\BOOT</div><div><br></div><div>.            <DIR>       06-20-18  10:51a</div><div>..           <DIR>       06-20-18  10:51a</div><div>BOOTX64  EFI   1,309,016 07-26-13   3:21p<br></div><div>        3 file(s)    1,309,016 bytes<br></div><div>                    1,638,400 bytes free</div><div><br></div></div></div></div></div></div></div><div>C:\FLASH>dir</div></div><div></div><div> Volume in drive C is PCDOS_6</div><div> Volume serial number is 386A-8A21</div><div> Directory of C:\FLASH</div><div><br></div><div>.            <DIR>       06-20-18  10:51a</div><div>..           <DIR>       06-20-18  10:51a</div><div>J9ETA2WW     <DIR>       06-20-18  10:50a<br></div><div>        3 file(s)            0 bytes<br></div><div>                    1,638,400 bytes free</div><div><br></div><div></div><div>C:\FLASH>dir j9eta2ww<br><div></div><div> Volume in drive C is PCDOS_6</div><div> Volume serial number is 386A-8A21</div><div> Directory of C:\FLASH\J9ETA2WW</div><div><br></div><div>.            <DIR>       06-20-18  10:52a</div><div>..           <DIR>       06-20-18  10:52a</div><div>$0AJ9000 FL1  13,230,160 06-20-18  10:39a<br></div><div>        3 file(s)   13,230,160 bytes<br></div><div>                    1,638,400 bytes free</div><div></div><div>C:\FLASH></div></div><div><br><div><div>i also tried with "raw":</div><div>menuentry "e540firmwarej9uj28wd.iso raw" {<br>             search --no-floppy --set=root --fs-uuid cb3d9931-e086-4632-8216-1f0aab276d73<br>            linux16        /usr/lib/syslinux/memdisk iso raw<br>           initrd16  /home/greg/e540firmwarej9uj28wd.iso<br>}</div><div><br><div>and got pretty much the same:</div><div>stuff scrolled off screen, screen shows:<br></div><div>MEMDISK:  Image seems to have fractional end cylinder</div><div>Disk is hd0, 16694 K, C/H/S = 16/64/32 (MBR/MBR), EDD on, rw</div><div>Using raw access to high memory</div><div>Code 1860, meminfo 384, cmdline 45, stack 512</div><div>Total size needed = 2801 bytes, allocating 3K</div><div>Old dos memory at 0x9d000 (map says 0x9d000), loading at 0x9c400</div><div>1588: 0xffff  15E801: 0x3c00 0x34f3</div><div>INT 13 00: Success, count = 1, BPT = 0000:0000</div><div>Drive probing gives drive shift limit: 0x82</div><div>old: int13 = f0005757  int15 = f000c119  int17 = f000efc7</div><div>new: int13 = 9c40000a  int15 = 9c4003fd  int17 = f000efc7</div><div>Loading boot sector... booting...</div><div>Lenovo Group Limited</div><div>Starting PC DOS...</div><div><br></div><div>Bad or missing C:\HIMEM.SYS</div><div>Error in CONFIG.SYS line 3</div><div>Bad or missing C:\RAMDRIVE.SYS</div><div>Error in CONFIG.SYS line 4</div><div>HMA not available: Loading DOS low</div><div>Bad command or file name</div><div><br></div><div>C:\FLASH>dir..</div><div>...<br>(same contents)<br></div><div><br></div><div>does anyone see where to go with this?  my dos fu is weak.  what would you try next?<br></div></div></div></div></div>