On my compaq lcd, I use this cheatcode: vga-normal

Try boot cd using this cheatcode or any other cheatcode. If it boots okay, then you can append that codes in lilo.