Problem with hibernate function (pixels)

Asked by Ricky00

Hi.

I installed a clean version of Ubuntu 9.04 on my DELL Dimension (P3-1Ghz).
I got a ATI AIW 9800 Pro 250 MB

When I go to hibernate, just before it shot sown computer, I got 3 errors messages on the screen (about releasing INT13 I beleive). Anyway, don't know if it related to my problem. When computer turn back for hibernation, i got the logo from from Ubuntu on screen and the text that is returning back, but at the end, the screen is full of pixels and the screen is unreadable. I have to shutdown the computer with power button.

I think this is a bug with the initialisation of the card after returning from hibernation.

Now, the other problem problem: I know that this video card is not supported by ATI anymore for Catalyst, and lower version of Catalyst cannot been installed on the newer version of Ubuntu (9.04). So, I am stuck with the open driver radeon.

I also tried to install GTI (modification of the open driver radeon for the 3D) that did not help me: instead of getting pixels, i got a blank screen. I still have to do a shutdown of my computer with the power button.

So, this is the report of my problem. I don't know how can I help more than that except if you want to know the exact error on screeen, tell me witch log file to look at.

Thanks

Ricky00

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu xorg Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vihar (vmankov) said :
#1

To have successful hibernation you must have swap space equal or greater than the RAM. For instance if your RAM is 1 GB then the swap partition or file should be not less than 1 GB.
Do you have it?

Revision history for this message
Ricky00 (ericlapoin) said :
#2

Hi.

I ckecked my system configuration.

My swap partition indicate 454 MB and my machine got 512 MB.

However, I got another problem. I am not able to resize the main partition since the first partition got my Linux running on it, and my extended partition got the swap partition.

So, how can I change (or resize) partition ? Hope it will fix my problem. BTW, do I have to add the memory of the video card with my PC memory for the swap partition ???

Thanks

Ricky00

Revision history for this message
Vihar (vmankov) said :
#3

It's easy to create more swap space in a file, without dealing with partitions:
https://help.ubuntu.com/community/SwapFaq

Revision history for this message
Vihar (vmankov) said :
#4

And as far as I know the memory of the video card has nothing to do with the swap and vice versa.

Revision history for this message
Vihar (vmankov) said :
#5

Well, I just reread the SwapFaq...
There are two things that are making me thing it is not so obvious how to hibernate to a swap FILE (not partition):

"The hibernation feature (suspend-to-disk) writes out the contents of RAM to the swap partition before turning off the machine. Therefore, your swap partition should be at least as big as your RAM size. The hibernation implementation currently used in Ubuntu, swsusp, needs a swap or suspend partition. It cannot use a swap file on an active file system. "

and

"TODO :

    * Add power suspend considerations.
    * Add how to add the swap file to make Ubuntu hibernate to it "

But anyway you can try it creating a swap file in your Ubuntu partition and then hibernating.

Concerning the other way: describe please your disk with Ubuntu - MB, how many partitions, their size and formatting.

Revision history for this message
Tom (tom6) said :
#6

Yes one of the things that makes linux so much faster is having a separate partition for swap.

Windows uses a file called "pagefile.sys" and allows it to keep resizing and moving around a lot which makes a really messy kludge and of course it suffers a lot from getting heavily fragmented quite quickly. This is one reason why a fresh install of Windows seems so lovely and fast but grinds to a complete standstill after a few months.

To resize a partition you must make sure you are not using it at the time!

Backup!
If there is any data on the drive it is wise to copy it to an external drive before starting any of this. If you are really stuck about doing that then at least copy your /home folder or perhaps just critical data to external hard-drive, cd/dvd-drive or perhaps just onto a partition that you are not going to resize. The best option is to backup your entire /home to external hard-drive but just do what you can.

A LiveCd session will allow you to do the resizing
https://help.ubuntu.com/community/LiveCD
by sheer luck there are screenshots of exactly how to get to the Partition Editor in the guide :)

If you get to a command-line
https://help.ubuntu.com/community/UsingTheTerminal#Starting%20a%20Terminal
and type in

sudo fdisk -l

where " -l" is a lower-case " -L" and copy the output from that into here and add in the info from the bottom half of GPartEd (the Partition Editor) then we might be able to give all sorts of helpful suggestions ;)

Good luck and regards from
Tom :)

Revision history for this message
Ricky00 (ericlapoin) said :
#7

Hi.

Thanks for many replys.
Sorry for the delays on my side.

OK, last night, I tried with the Live-CD (Ubuntu) to change partition size of te swap partition. However, after loading the computer and try to hibertnate, the computer cannot find swap (asking to do swapon -a). I checked the file fstab in /etc/ to verify the UUID of the new patition made. I checked it on the file but cannot mount it.

...So, without loosing time, I re-installed Ubuntu completetly, but this time, I specified the paritions sizes.

For your information,, I got a Maxtor 10.1 Gb IDE drive. I gave a partition of 8.6 GB as ext3 and the remaining space for a Linux swap (more than 1 Gb space should be enough for a 514 Mb RAM system). So, I tough that this sould have solve my problem but NO, still the same problem. Hopefully, I was able to grab my camera and capture the errors just before it get on hibernate. this is what I got:

124.020006 Trying to free already-free IRQ3
124.040013 pm_op(): pci_pm_thaw=0x0/0x50 returns -16
124.040013 PM: Device 0000:00:00.0 failed to thaw error -16

I just don't know that thats means and not sure this is related to my video card, but what I am sure is the screen after recovering for hibernation is still incorrect and unreadable, making the hibernate function useless.

So, what should I do now ?? And what should I looking for... ?

Ricky00

Revision history for this message
Ricky00 (ericlapoin) said :
#8

OK,

I did a small research about the errors on screen.

The bugs #298803 and #330407 are reporting sames kind of problem. (artifacts after resuming from hibernation)
Never they mentionned somethng about swap partition. However, most of them (almost ALL of them) are related to DELL computer. I was wondering if DELL APCI functions aren't fully compatible with standard APCI calls.

Any ideas ?

Ricky00

Revision history for this message
Tom (tom6) said :
#9

I don't know so i was leaving the question open to encourage other answers. I think hibernate is worth avoiding anyway because it leaves your machine in a much more vulnerable state. Some people say that it uses less energy or is environmentally friendly but they seem to stop counting before the machine has stopped using power. The drain on a boats batteries seems almost exactly the same when i compare the 'lengthy' boot up process and short shutdown compared with the short unhibernate and lengthy going into hibernate. The advantage with hibernate is that i can quickly shut the lid and look as tho i hadn't been doing anything - although the power light is still visibly on. I tend to find normal bootup is barely enough time to clear all the stuff off my desk and find my mouse. It used to be enough time for me to go and grab a cuppa tea.

Revision history for this message
Tom (tom6) said :
#10

It is annoying tho. Not being allowed to do something is hugely different from choosing not to do it. It is quite important that the computer doesn't crash and do odd things like you describe. Also it's a bit of a mystery that would be good to know more about - like how to stop it from mis-behaving ;)

Revision history for this message
Ricky00 (ericlapoin) said :
#11

Tom

The computer that i want to fix is for daughter 7 years old. Before I started with Ubuntu, I was with Windows XP and I configure the computer to hibernate after 2 hours of inactivity. At least, if i forgot to check her computer, it will remain off from 8h PM to 7h AM, so almost 11 hours that thhe computer will not use electricity. That's almost half of the day of consuption for nothing. And since my daughter forgot to shut it down by herself, I let the computer to do it automatically.

Now, for Ubuntu, hibernation it is not working and that's a fact. Avoid the problem by not using it is not a reasonable solution, since the problem is already known and never been fix yet. Others threads mention the same kind of problem. I am open to help Ubuntu by trying solution until solution is found.

Ricky00

Revision history for this message
Tom (tom6) said :
#12

Hi Ricky :)

Have you been following the bug reports, particularly
https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/330407
as there seem to have been some suggestions in there?

Have you managed to fix this problem yet or is it still annoying?
Regards from
Tom :)

Revision history for this message
Ricky00 (ericlapoin) said :
#13

Hi Tom.

I checked the link mentionned on your message.
Unfortunately, this is not appliable to my problem.

My PC was installed from a clean Ubuntu 9.04, not a upgrade from 8.04. So, the UUID mixup is not appliable (already checked anyway).

Also I did oversize the swap partition to exceed the amount of memory from my computer (768 Mb for a 512 Mb ram system is enough).

I need some coaching where to look for somes info, like what device did did not work properly for this line:

124.020006 Trying to free already-free IRQ3
124.040013 pm_op(): pci_pm_thaw=0x0/0x50 returns -16
124.040013 PM: Device 0000:00:00.0 failed to thaw error -16

I Also checked another tread about problem with portable computer unable to hibernate. Suggesting to disable ACPI and enable APM but this is no good for my desktop (I do not want to unplug my computer to shutting down).

Ricky00

Revision history for this message
Tom (tom6) said :
#14

Hmmm, please could you post this as a new question then andsee if anyone new has any good ideas? I think the question about where to check system logs is worthy of a 2nd question on its own
https://answers.edge.launchpad.net/ubuntu/+source/xorg/+addquestion
Also it might be worth asking in a few other forums such as this one
http://www.linuxquestions.org

I agree that 768Mb swap for 512Mb ram should be more than enough. 768Mb is a good healthy amount there.

Good luck with this!
Regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#15

Hi :)

Have you been able to try the new Ubuntu 10.04 before it gets officially released?
http://www.ubuntulinux.org/testing/lucid/beta2
Trying it as a LiveCd or as an extra dual/multi-boot would be ideal. Developers and everyone are keen to try to iron out any problems before 10.04 gets officially released so you might find faster & more effective answers to your bug reports which would make 10.04 work better on your system for you

Thanks and regards from
Tom :)

Can you help with this problem?

Provide an answer of your own, or ask Ricky00 for more information if necessary.

To post a message you must log in.