Re: [Dorset] Hibernate in (K)Ubuntu

2020-05-07 Thread Terry Coles
On Wednesday, 6 May 2020 19:21:47 BST Terry Coles wrote:
> sudo hibernate --dry-run
> hibernate:Warning: Tuxonice binary signature file not found.
> terry@OptiPlex:~$
> 
> I installed tuxonice-userui, but that made no difference.  Maybe the system
> needs rebooting, but that would mean I would lose all the data computed, so
> that will have to wait.
> 
> I'm going to Suspend instead.

Well the good news is that Suspend appears to have worked and my Ibercivis 
Tasks appear to have resumed from where they left off.  Thanks for the idea 
Tim!

I've just spent some time looking into this tuxonice thing, but with no real 
success so far.  I found this:

https://launchpad.net/~tuxonice/+archive/ubuntu/ppa

so I applied the PPA, but when I ran apt update, I got:

Ign:1 http://ppa.launchpad.net/tuxonice/ppa/ubuntu eoan InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu eoan InRelease

   
Hit:3 http://gb.archive.ubuntu.com/ubuntu eoan-updates InRelease

   
Err:4 http://ppa.launchpad.net/tuxonice/ppa/ubuntu eoan Release 404  Not Found 
[IP: 91.189.95.83 80]
Hit:5 http://gb.archive.ubuntu.com/ubuntu eoan-backports InRelease  
 
Hit:6 https://packages.microsoft.com/repos/ms-teams stable InRelease
 
Hit:7 http://security.ubuntu.com/ubuntu eoan-security InRelease Reading 
package lists... Done
E: The repository 'http://ppa.launchpad.net/tuxonice/ppa/ubuntu eoan Release' 
does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore 
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration 
details.

TBH, I'm not going to spend any more time on this.  Suspend appears to work OK 
for me and apart from a flashing LED and extra power consumption overnight, 
there seem to be no disadvantages to it.

However, if anyone was considering trying to get hibernate to work, here's 
your starting point perhaps.  Note that on the page I linked to above it 
states that:

'In general, you do NOT need to change any configuration file and you do NOT 
need to install the hibernate package.'

I presume that the  tuxonice-userui, which is in the 19.10 Repository (even 
though the tuxonice kernel patch isn't), would make configuration easier.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2020-05-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Hibernate in (K)Ubuntu

2020-05-06 Thread Terry Coles
On Wednesday, 6 May 2020 12:03:16 BST Terry Coles wrote:
> On Wednesday, 6 May 2020 11:08:09 BST Terry Coles wrote:
> > I haven't found an equivalent page  for Kubuntu 18.10 (which I'm running),
> 
> > but this page for 18.04 sets out what needs to be done:
> Duh!  Senility creeps in!  I'm actually running Kubuntu 19.10 not 18.10. 
> When I searched for 'Kubuntu 19.10 hibernate', I found
> 
> https://launchpad.net/ubuntu/eoan/+package/hibernate
> 
> I'll try it out this evening.

Well it didn't work ;-(

Here is what I got:

sudo hibernate --dry-run
hibernate:Warning: Tuxonice binary signature file not found.
terry@OptiPlex:~$ 

I installed tuxonice-userui, but that made no difference.  Maybe the system 
needs rebooting, but that would mean I would lose all the data computed, so 
that will have to wait.

I'm going to Suspend instead.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2020-05-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Hibernate in (K)Ubuntu

2020-05-06 Thread Terry Coles
On Wednesday, 6 May 2020 13:41:29 BST PeterMerchant wrote:
> I ran up my ancient Dell Inspiron 6000 (32 bit) running xubuntu 18.04, and
> it has a suspend feature, but no obvious hibernate.

When I used it, I was probably running one of the earliest versions of 
(K)Ubuntu.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2020-05-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Hibernate in (K)Ubuntu

2020-05-06 Thread PeterMerchant

You made me do it..

I ran up my ancient Dell Inspiron 6000 (32 bit) running xubuntu 18.04, and it 
has a suspend feature, but no obvious hibernate.

Peter


--
 Next meeting: Online, Jitsi, Tuesday, 2020-05-05 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Hibernate in (K)Ubuntu

2020-05-06 Thread Patrick Wigmore
On Wed, 06 May 2020 13:09:58 +0100, Terry Coles wrote:
> I haven't encrypted my laptop because it rarely leaves the house (my
> wife uses  it mostly).

> I have never felt it necessary to encrypt my desktop.

I thought as much, but it was such a low hanging fruit of an answer 
that I thought it was worth picking it.

-- 
  Next meeting: Online, Jitsi, Tuesday, 2020-05-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Hibernate in (K)Ubuntu

2020-05-06 Thread Terry Coles
On Wednesday, 6 May 2020 13:03:38 BST Patrick Wigmore wrote:
> It's probably worth mentioning that hibernate is (usually)
> incompatible with encrypted swap, which you would normally have if you
> are using any kind of disk encryption.

I haven't encrypted my laptop because it rarely leaves the house (my wife uses 
it mostly).  I probably should because I might leave it in the pub/club after 
a LUG Meeting, but that's unlikely to happen any time soon!

I have never felt it necessary to encrypt my desktop.

In any case, there is very little on either machine that is of any value to 
anyone else.  I use a Password Manager for my many passwords.

So my un-encrypted laptop still doesn't support hibernation.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2020-05-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Hibernate in (K)Ubuntu

2020-05-06 Thread Patrick Wigmore
It's probably worth mentioning that hibernate is (usually) 
incompatible with encrypted swap, which you would normally have if you 
are using any kind of disk encryption.

When (K)Ubuntu first started offering encrypted home directories as a 
standard feature, I did not immediately make the connection that 
enabling that feature was the reason why I'd lost the ability to 
hibernate my laptop. If you think about it, it makes perfect sense, 
but I didn't think about it!

I did find this, however:
https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap

-- 
  Next meeting: Online, Jitsi, Tuesday, 2020-05-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Hibernate in (K)Ubuntu

2020-05-06 Thread Terry Coles
On Wednesday, 6 May 2020 11:08:09 BST Terry Coles wrote:
> I haven't found an equivalent page  for Kubuntu 18.10 (which I'm running),
> but this page for 18.04 sets out what needs to be done:

Duh!  Senility creeps in!  I'm actually running Kubuntu 19.10 not 18.10.  When 
I searched for 'Kubuntu 19.10 hibernate', I found

https://launchpad.net/ubuntu/eoan/+package/hibernate 

I'll try it out this evening.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2020-05-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Hibernate in (K)Ubuntu

2020-05-06 Thread Terry Coles
After yesterday's discussion in the 'New BOINC project that does computing for 
COVID-19' thread and last night's discussion online, I decided to pursue 
Ralph's suggestion to use systemd to hibernate the machine.

I've started a new thread because this really has nothing to do with BOINC!

Anyway, I started off by searching for systemd hibernate and found this:

http://manpages.ubuntu.com/manpages/bionic/man8/systemd-suspend.service.8.html

Amongst other things this says:

'Note that systemd-suspend.service, systemd-hibernate.service, and systemd-
hybrid-sleep.service systemd-suspend-then-hibernate.service should never be 
executed directly. Instead, trigger system sleep states with a command such as 
"systemctl suspend" or similar.'

So I searched for 'systemctl hibernate' and found quite a few complaints about 
this not working in Kubuntu and Ubuntu and it would seem to me, reading a 
number of pages, that these distros are not set up for hibernation by default.

I haven't found an equivalent page  for Kubuntu 18.10 (which I'm running), but 
this page for 18.04 sets out what needs to be done:

https://askubuntu.com/questions/1031633/enable-hibernate-in-ubuntu-18-04-lts

I'm still debating whether or not I should try this or simply use Suspend (to 
RAM).

BTW.  My laptop doesn't support Hibernate either, but I can recall doing on an 
old one that I had some years ago.  (I've only run Kubuntu on my personal 
machine since around 2002, so it used to do it once.)

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2020-05-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk