Ok this one kind of puzzles me.
I was installing "wine" last night and since I knew it was going to take a while I closed the lid of the laptop and turned it upside down on the floor. (I always turn the laptop upside down when not using it otherwise might overheat)
When I woke up this morning roughly 8 hours after I went to sleep the machine was turned off.
Using the "last -x | grep shutdown | head -1" it stated that it went down at roughly 6 hours from when I went to sleep.
The program I was installing got finished installing but I never set up an auto-shutdown program or anything of the sort.
If this isn't a problem with linux then its a problem with my bios. If its a problem with my bios I will just have to live with it because my bios is locked.
/var/log/messages says this:
alexslaptop logger: ACPI event unhandled: battery BAT1 00000080 00000001
alexslaptop shutdown: shutting down for system halt
alexslaptop init: Switching to runlevel: 0
alexslaptop sshd: Received signal 15; terminating.
alexslaptop acpid: client 12958[0:0] has disconnected
alexslaptop logger: ACPI event unhandled: ac_adapter ADP1 00000080 00000000
alexslaptop acpid: exiting
alexslaptop syslog-ng: Termination requested via signal, terminating;
alexslaptop syslog-ng: syslog-ng shutting down; version='3.1.1'