Linux machine Failed to hibernate, “system via logind: Sleep verb not supported”

So after using fedora 28 for a while. I tried to configure my power management using xfce power management system.

Looking at these power management settings, are very simple explanation. I set my machine to hibernate or sleep mode when inactive for 16 minutes.

Saved the settings. then I closed the laptop lid, so it started to be inactive until the next 16 minutes. Supposed to be hibernated.

But it did not, instead…

I opened up my laptop, and there is this error:

System via logind: Sleep verb not supported...

It turns out that the states of the machine are not available for hibernate. You can check them out with this simple command:

$ sudo cat /sys/power/disk
[disabled]

Now, that’s a problem. The machine cannot be hibernate, nor suspend if the output is disabled.

The solution is quite simple. Reboot the machine, then enter BIOS mode. This one is requires the BIOS setting, secure boot to be disabled.

Secure boot setting in BIOS

Switch the secure boot in BIOS setting to Disabled. Then reboot the system.

After I rebooted the system with secure boot disabled, the output of /sys/power/disk now is contains more than one, including suspend/hibernate.

$ cat /sys/power/disk 
[platform] shutdown reboot suspend test_resume

The machine’s power management system now can run the machine with hibernate mode.

Install pulse secure linux 9 on Fedora 28

This installation is using pulse secure linux version 9 with rpm package ps-pulse-linux-9.0r1.0-b739-centos-rhel-64-bit-installer.rpm

$ sudo dnf install compat-libicu57-57.1-2.fc28.x86_64
$ sudo dnf install libgnome-keyring
$ sudo rpm -i ps-pulse-linux-9.0r1.0-b739-centos-rhel-64-bit-installer.rpm

Create vpn shortcut (optional):

$ sudo touch /usr/bin/vpn
$ sudo vim /usr/bin/vpn

Fill with this script below:

#!/bin/bash

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pulse
/usr/local/pulse/pulseUi

Make it executable:

$ sudo chmod +x /usr/bin/vpn

Now, you can just open the app with command vpn

Install Arcanist Phabricator on Fedora 28

$ mkdir $HOME/arctools
$ cd $HOME/arctools
$ git clone https://github.com/phacility/libphutil.git
$ git clone https://github.com/phacility/arcanist.git
$ mv $HOME/arctools /opt
$ echo 'export PATH=$PATH:/opt/arctools/arcanist/bin' >> ~/.bash_profile
$ source ~/.bash_profile
$ sudo dnf install php php-json
$ arc --help
$ arc install-certificate
# and follow the rest of the instruction from the arc

Install google chrome in Fedora for the first time

When you install google chrome in fedora, you probably must have seen this error:

$ sudo rpm -i google-chrome-stable_current_x86_64.rpm
warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
error: Failed dependencies:
	/usr/bin/lsb_release is needed by google-chrome-stable-68.0.3440.106-1.x86_64
[muffat@localhost Downloads]$ sudo rpm -i google-chrome-stable_current_x86_64.rpm 
warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
error: Failed dependencies:
	/usr/bin/lsb_release is needed by google-chrome-stable-68.0.3440.106-1.x86_64

Try to install the dependencies:

$ sudo dnf install libappindicator-gtk3
$ sudo dnf install redhat-lsb-core

And try again to install the chrome with rpm