Fedora 15, hibernate, NetworkManger update

Ok, it’s been few days now as I am using Fedora 15. More comments…

Hibernate

As I mentioned in my previous post, hibernate was not working on my laptop. Apparently, the problem is that I am using swapfile instead of a swap partition. Since kernel saves the state of the system into swap while going to hibernate, it needs to know from where to get the state on power on. To do so we need to know 2 things: the UUID of the partition, on which swap is sitting (in my case it is a / partition) and an offset of the swapfile. The first one can be found out from /etc/fstab or from /etc/grub.conf (the root=UUID=XXXXX) or by any other means that I won’t cover here. The second one is can be found by running filefrag -v <path to swapfile> and taking the values of the physical column of the first data row of output (In my case 129024).

Now, when we know on which partition and at which particular offset our swap is, modify the /etc/grub.conf file for kernel boot flags and add restore=UUID=<UUID if the partition found above) restore_offset=<swap file offset found above> and reboot the system. After that hibernate works as it should.

Note that this does not fix my problem with suspend yet. That I will try to fix later as I am going through different solutions now.

P.S.: Initially found the hint on hibernation fix from syslog line “PM: Swap headers not found” and then googling around to this Ubuntu forum post, which I just adjusted to my self (thanks guys).

NetworkManager (0.8.999-3)

Today I received an update of NetworkManager which failed to startup after boot. Running NetworkManager –no-daemon was giving errors while trying to parse /etc/sysconfig/network-scripts/ifcfg-<whatever> files. Deleting those files fixed the problem (but I lost the configurations of wifi spots I had before, which is though not a huge problem for me anyway).

KDE4

For a couple of days I decided to use KDE4, since it’s been a while I touched it and I thought it is unfair not to try it again. I managed to configure everything more or less in a way I wanted. The only thing which forced me to go back to Xfce4 today was that because of NetworkManager failure, the network manager plugin of KDE was not starting as well and the whole desktop was not loading, which looked very strange to me. I don’t wanna desktop environment which fails to start only because of the network failure (which kinda unrelated from DE anyway).

Will see how I go about it later as well.