Pc not waking up after Kunbuntu add/remove

Werner Schram wrschram at gmail.com
Mon Dec 21 11:57:26 UTC 2009


Adam Petty wrote:
> On Sun, Dec 20, 2009 at 3:30 PM, Adam Petty <linux at papettys.com> wrote:
>   
>> On Sun, Dec 20, 2009 at 3:22 PM, NoOp <glgxg at sbcglobal.net> wrote:
>>     
>>> On 12/20/2009 06:00 AM, Steve wrote:
>>>       
>>>> On Sun, 20 Dec 2009 13:51:25 -0000, Adam Petty <linux at papettys.com> wrote:
>>>>
>>>>         
>>>>> On Sun, Dec 20, 2009 at 7:40 AM, Steve <yorvik.ubunto at googlemail.com>
>>>>> wrote:
>>>>>           
>>>>>> On Sun, 20 Dec 2009 12:28:27 -0000, Adam Petty <linux at papettys.com>
>>>>>> wrote:
>>>>>>
>>>>>>             
>>>>>>>> I just googled for simmilar log messages. It looks like what you just
>>>>>>>> posted is the end of a stack trace of a 'page allocation failure'
>>>>>>>> message. Which is likely related to the absence of your swap, and
>>>>>>>> could
>>>>>>>> be the cause of your suspend problems.
>>>>>>>>
>>>>>>>> Werner
>>>>>>>>
>>>>>>>>                 
>>>>>>> After seeing that, I created a swap file and it still locked up over
>>>>>>> night
>>>>>>>
>>>>>>>               
>>>>>> Is that a swap file or swap partition, is it bigger then RAM size.
>>>>>> There’s been discussion on here before about suspend and swap files, I
>>>>>> believe you can’t suspend to a swap file.
>>>>>>
>>>>>> --
>>>>>> Steve
>>>>>>
>>>>>>             
>>>>> Its a swap file about half the size of the RAM installed. It locked up
>>>>> before I created the swap file
>>>>>
>>>>>           
>>>> The swap file/partition needs to be bigger than RAM size.
>>>>
>>>>         
>>> These might be of help:
>>> https://help.ubuntu.com/community/SwapFaq
>>> <quote>
>>> Hibernation (suspend-to-disk) 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.
>>> </quote>
>>> https://help.ubuntu.com/community/Partitioning/Swap
>>>
>>>
>>>       
>> I'll try adding a swap partition. I have the room. Its just this did
>> not happen before Kubuntu install
>>
>>     
>
> I created the Partition, I then set the power management to sleep
> after 2 hours. It was not set to sleep at all, so I am not sure what
> it was doing. It just turned the monitor off and locked up eventually
>
> When I got up this morning, the pc was "sleeping" I hit the power
> button and it came right up. So I guess this is resolved. Thanx for
> all the help
>
>   
That is good to hear. I am still currious though to whatever hapened to 
your original swap partition. Didn't it get created during your initial 
installation, or did it get removed during your switch?

Note that the next time you want to switch desktop environments, you 
could just use the commands:

sudo apt-get install kubuntu-desktop
sudo service gdm stop && sudo service kdm start
sudo apt-get remove ubuntu-desktiop
sudo apt-get autoremove

The method you noted in your earlier mail from 
http://www.psychocats.net/ubuntu/puregnome will probably work, but the 
above method will make sure you don't remove software that is currently 
running, it will work for every version of ubuntu and it will not remove 
any gnome packages which you specifically installed yourself. Just 
switch kubuntu-desktop/kdm and ubuntu-desktop/gdm if you want to do it 
the other way around.

Werner




More information about the ubuntu-users mailing list