Hi,
I just wanted to chat about MX Linux on laptop. No real reason. To kick things off I noticed that there is no real good 'Hibernate' feature on MX linux (or is there?)
When I 'Suspend' its just like 'sleep', it's still on, like the light on my mouse is still on and if the battery runs out I lose the volatile memory, do we think MX Linux will ever add a feature or is there a specific reason why this is not the case; or is there just some additional programme you can add to fulfill this feature?
Also, side question, I made it autologin, so I don't have to enter my password on startup. However, after I come back from 'suspend' it still asks me for password to login. Is there a way to rectify this?
Cheers,
Laptop MX Linux
Re: Laptop MX Linux
I'm not using xfce but kde in KDE under power management Hibernate is there and works.
I would assume that something similar would be available in XFCE. Good Luck.
(Note for Hibernations to work you need to have either a swap file or partition.
I would assume that something similar would be available in XFCE. Good Luck.
(Note for Hibernations to work you need to have either a swap file or partition.
Re: Laptop MX Linux
Just open the Power Manager (security tab) and uncheck to lock screen after sleep.
Also those suspend / hibernate etc. are not directly MX-specific in fact, but those software like Xfce , lightdm etc ..
Also those suspend / hibernate etc. are not directly MX-specific in fact, but those software like Xfce , lightdm etc ..
Re: Laptop MX Linux
Thanks for the replies on the battery aspect; I'll look into power management for XFCE.
p.s. I think I also need to research swap files.
Cheers,
p.s. I think I also need to research swap files.
Cheers,
Last edited by tone2 on Wed Sep 30, 2020 8:14 am, edited 1 time in total.
Re: Laptop MX Linux
Meanwhile, don't worry about suspend & battery. It doesn't draw a big amount of energy. Even with this "dead" 15 y.o. battery I can leave it from night to afternoon or even longer :) (ok, maybe the mouse or external things like that.. I use touchpad only)..
Re: Laptop MX Linux
I have hibernation working well on two 2016 and 2018 Intel-based laptops, as well as "hybrid sleep", but I think it works better with more recent kernels if MX is booted with systemd.
Re: Laptop MX Linux
Hi, I have an update; and for the record I am using XFCE.Huckleberry Finn wrote: Wed Sep 30, 2020 7:57 am Just open the Power Manager (security tab) and uncheck to lock screen after sleep.
Also those suspend / hibernate etc. are not directly MX-specific in fact, but those software like Xfce , lightdm etc ..
I typed: free -h and I for some reason I had 2G of Swap. Yet I have 5.7G of RAM (I assume 2G + 4G sticks)
So I typed: fallocate -l 6G /swapfile
then: chmod 600 /swapfile
then: mkswap /swapfile
then: swapon /swapfile
then in /etc/fstab I added the line: /swapfile none swap sw 0 0
then I typed: dpkg-reconfigure uswsusp
and I saw it had my /swapfile and I clicked 'Next'.
Then I rebooted and it wouldn't get passed the login screen. So I Ctrl + Alt+ F2'd in as root and removed the line from /etc/fstab
and I also deleted all the swap files. I say all because I accidentally created another just called 'swap'.
Also, just to note, when I did log back in my Konky clock was gone and the time was only displayed in the task bar, which I thought was strange.
To add confusion, I noticed that Transmission had totally filled up my SSD and there was no space left, not sure if this could have also caused the problem.
Does anyone see any glaring issue with what I did? It all seemed to go according to plan until it didn't work. Remember, not only am I new, but I'm also an idiot ;-)
I do want to try again but scared I'll destroy my OS install and lose all my browser sessions and saved tabs (I know you can back them up but I haven't had a chance how to figure out how to do it on waterfox). I do have another linux PC I can plug my SSD into, so I'm not really worried about being able to get the data off the drive.
Also note, there was already mention of a swap in the unmodified fstab file:
"UUID=6e92d1d9-ca30-42d9-9e14-c749d0f349b5 / ext4 defaults 1 1
UUID=f6fa5d86-ca03-41b8-b59e-ce427520787a swap swap defaults 0 0"
I assume this is normal though or did it also need to be modified to say 'swapfile'?
P.S. even if it did all work, would the 'Hibernate' button magically appear when I clicked the power button? Because even after the swap file is established I'm not sure how to Hibernate the system.
Thanks,
Last edited by tone2 on Sun Oct 04, 2020 3:47 am, edited 3 times in total.
Re: Laptop MX Linux
See viewtopic.php?f=108&t=60091&p=594725tone2 wrote: Sun Oct 04, 2020 3:42 am even after the swap file is established I'm not sure how to Hibernate the system.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.
Re: Laptop MX Linux
As @Stevo suggested, try suspend/hibernation with systemd. If you choose the second boot option of a given kernel from the advanced boot (grub) menu (you reach grub by pressing ESC or F2 or sometimes another F-key during boot after the splash screen), the system will boot with systemd.
By the way, I don't think you're an idiot - you seem to have the right attitude to try out stuff, and in linux there's a lot of stuff to play with. As long as you keep backups of your most important data, you're bound to have a lot of fun with (MX) Linux.
By the way, I don't think you're an idiot - you seem to have the right attitude to try out stuff, and in linux there's a lot of stuff to play with. As long as you keep backups of your most important data, you're bound to have a lot of fun with (MX) Linux.
Re: Laptop MX Linux
Thanks for the reply Jay/MXtones.JayM wrote: Sun Oct 04, 2020 5:29 amSee viewtopic.php?f=108&t=60091&p=594725tone2 wrote: Sun Oct 04, 2020 3:42 am even after the swap file is established I'm not sure how to Hibernate the system.
Actually I think I already saw that, and in fact I think it's where I got the 'sudo dpkg-reconfigure uswsusp' line from.
So all I have to do is type 'sudo hibernate'?
Did you have any opinion as to if there was anything intrinsically wrong with the approach I described in my previous post? Do you think it all actually worked as it should, but there is some grub thing I need to do
I know nothing about using systemd. I vaguely know it's an init system, but I don't know where to start reading for the appropriate information on this topic.
Thanks again!