Leap 42.2 KDE 5.8.6 Hibernate mode / resizing the swap to 8 Gb

Hi there!

As far as I figured out, I will have to increase my Linux-swap from 2Gb to 8Gb, since I got 4 Gb of physical RAM in order to make use of the Hibernate Mode (also known as suspend to disk?)

Is that true?

I thought I would first increase my swap and then go ahead trying to figure out how to get Hibernation onto my System, since there is no such option in the shutdown menu, only “suspend” (also known as suspend to RAM?) which works fine.

I tried GParted and the partitioner, both did not allow me to simply increase the size of the swap. Sliders simply wont let me get above the 2Gb but it might be me (in GParted I also used “swapoff” before trying). I am pretty new to all this and neither got experience with partitioning nor with Linux. I took the presets during Installation and gave openSUSE the whole disk to do whatever it wants.

Hardware: Lenovo U330p, i5-4210U, 4096MB RAM, DirectX 12, Intel HD Graphics Family, SSD drive with about 119 Gb of space.

Thanks everybody

swap exists in it’s own partition you must increase the size of the partition. But you can only grow a partition from the end thus it must have space to expand into.

Show us fdisk -l

Please use code tags (# on tool bar) to stop the editor from reformatting the pasted computer output

BTW 4 gig plus a little is probably enough since the memory image is stored compressed

My Linux system all of a sudden cant load any Websites anymore. Firefox says “unable to connect” :open_mouth:

disconnected from the Network and connected again, still not working. Worked fine all day and I did nothing on the System. Windows Computer works fine…

Shut it down and now after booting I am represented with a KDE Wallet Service which demands a Password, tried my Admin/root Password. No success. Did I set a Password for this at some Point? I dont remember … :expressionless:

Edit: Think I have to delete the wallet/home/<user name>/.kde/share/apps/kwallet/kdewallet.kwl

How do I do this? theres no “user name” on home when using dolphin … search didn yield any results either :slight_smile:

Managed to turn it off in its Settings menu. when rebooting it Pops up again and is demanding the same Password as before. Now I disabled it the same way again and checked the Wifi Connection. It now states “waiting for authorization” reconnecting did not work either. DOH!

Edit: now after some time the Wifi symbol in the bottom right is completely gone. Any ideas?

Guess I will need a new thread for this? Is the Wallet even causing my network problems? I am yet not familiar with whats a KDE application and what not.

Can anyone or even me delete my last 2 Posts please?

Back to original topic: I went for a reinstallation of openSUSE. Couldnt resize the swap there either. Will post the fdisk -l tomorrow. (using the lates DVD installation of Leap with a usb stick)

Thanks :slight_smile:

You have to change the size of the swap partition and thus either your root or home partition must be made smaller to provide space if you don’t have any free space

post fdisk -l so we can advise you

linux-9loy:~ # fdisk -l
Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 979DF2FB-71C8-4F16-ADBE-6F4C3AC68E87

Device        Start       End   Sectors  Size Type
/dev/sda1      2048    354303    352256  172M EFI System
/dev/sda2    354304   4562943   4208640    2G Microsoft basic data
/dev/sda3   4562944  88453119  83890176   40G Microsoft basic data
/dev/sda4  88453120 250068991 161615872 77.1G Microsoft basic data
linux-9loy:~ # ^C


Is it even possible to add the hibernate button to the shut down menu easily? Hve no clue of programming and don’t want to mess :slight_smile: anything up :). Just saw that in the energy saving options there is a hibernate option already. Also I am not sure if I will damage anything when trying to partitionate myself :slight_smile:

Should be an option under power/session on menu

AAhhh … stupid me :slight_smile: Seems to work fine. So no need to increase the swap? Or will I run into problems when having more programs / more RAM intensive stuff open and then go to hibernate?

Well with 4 gig memory and only 2 gig swap you are running close to max. Hibernate is compressed but compression ratio can vary depending on the redundancy of the data. Also if you are using swap for swap that limits the amount available for hibernation.

In this case, I would like to increase the swap to 4.2 Gb. Any foolproof tutorials regarding this out there? In the Linux world it seems it´s hard to find anything appropriate for the own circumstances. For a layman like me, at least.

show output of fdisk -l for better advice. we need to see the geometry of the partitions

Oops I see you did post above

Here is what you have to do. Swap is the second partition and you can only expand a partition from the end so you must resize either 3 or 4 then move them down to give space to expand swap. You must do this from a live Linux disk or USB because you can’t change tires while you drive. Perhaps gparted disk

Any time you do major changes like this be save backup any important data because anything goes wrong all is lost

Note XFS I don’t think supports reduction in size so assuming a standard install 4th partition would be formatted as XFS

Thanks so far, havent tried your suggestion yet. I am now fighting with KDE and Root. I think I got rid of KDE Password prompts by specifying a blank password, but I am still asked for authentication by root during normal productive use of the computer (iirc). Is there a way to auto login on startup with root rights? I think I want that.

Thanks again :slight_smile:

OK KDE wallet seems out of the way. But after booting (auto login into the DE) a window opens:

“System policy prevents modification of network settings for all users”

after then entering the root password in the prompt, the wireless connection to the router is established and surfing the web works fine.

I somewhere chose to allow all users connecting to the network (no success in regards to the wallet still asking, so I disabled the wallet by setting a blank password).

I would like to get rid of the system everytiem asking for a root password to connect to the wifi, thus I thought about an “auto login with root rights - solution”.

any input appreciated :slight_smile:

You do not want to run a GUI as root you lose all security gained by having individual accounts and can seriously damage your own system accidentally with god-rights.

I suspect you may have setup wifi as root thus the prompt because that is not mormal. WiFi should be set up as the user not as root. Then checking allow others should work as advertised.

Cant find anything to change “root user” to “normal user” in regards to the wifi connection. Looked in Yast and the connection editor.

Edit:
Leap 42.2 KDE 5.8.6

Using Wicked or NetworkManager. I assumed NM since you spoke of allow all users connecting to the network. If this was done under root that may be the problem it should only be done as a normal user.

You definitely don’t want a network connection running as root it is a serious security problem.

Since our time machine is broken we can not go back and see what you did so you must tell it.

Well, I thought its normal to use the system being logged in as root, just like on windows where it never asked for a password when running an exe or something requiring root/admin rights. I think the user I am now logged in is the root user. If I got that right.

As far as i understood you: I will now just try to create a new user, set it as the auto login user (no idea yet how) and establish a connection within this new user. keep the “allow all users to connect”-option on and will try my luck. right? :slight_smile:

Sorry, I am not sure what I did so far, afaik nothing except for the “allow all users connection to the network”-option and the KDE Wallet thing. Thank you so much for your indulgence so far!

No root user is called root

You may have the same password as root but that does not give you super powers.

And no Linux is not Windows. It is different. The confusion between administrator and user in Windows is a prime reason it is a virus magnet.

You don’t need another user your default user should be ok the problem is that somehow you managed to setup NM as root at least that is my best guess. Not sure at all how that was done :’( unless you logged in as root???

root is a user that has full powers to view and modify just about everything ie the system administrator

all other users are users and they can only modify things that they own or have been granted access to though a group they belong to.

Hm.The user I originally were using was also required to always enter the root password when trying to change something system relevant or so. edit: So it wasnt a root user I suppose?

I now created another user as auto log in, then the laptop screen (like no power) turned black after / while booting, I am using another screen via HDMI. Also the task bar disappeared again after logging in with the new user. OK, not my problem at the moment, whatever :slight_smile:

So I established a connection and configured the KDE Wallet and everything with that new user, checked if the connection is allowed to everybody (it still was). Then after autologging in the new user the above described problems appeared and the WIFI connection stated that its active, but as far as I remember the browser (FF that came with the OpenSUSE) only showed “server could not be reached” or something similiar.

Then I chose the original user to auto log in after booting and Laptop screen and task bar worked again (while second screen via HDMI attached). The mentioned system policy window is still popping up, but when I only chose cancel I can use the web browser just fine …

Strange, I am very confused now. Could be a bug and I will just have to live with canceling the window that pops up (system policy prevents modification of network settings for all users) and keep on?

Next thing i wanted to try was using something called “jamba” to comfortably exchange data between my windows PC and Linux via the LAN/WIFI and changing the swap size, the swap size by doing what you advised me to to do.

Oh well … I am so sorry for stretching your patience and would fully understand if your support stops here :slight_smile: