Display Flickering + Machine Dies



i have a powerbook G4 with osx 10.2.6. recently ive been getting quite alot of flickering on the screen when i rotate the display around - and sometimes the machine will lock up and has to be rebooted. could this just be a bad connection between the base and the display?

now im not sure if this is linked, but if i leave my machine on, but close the display, my machine never recovers and the display never comes back - i have to reboot it.

im also getting to the point where if my machine has been off for a while it wont boot the first time, i have to reboot it twice before it will start up!

are these problems possibly connected?
thanks for any help