Sample Header Ad - 728x90

PC-BSD command line approaches to sleep (suspend to RAM) and hibernate (suspend to disk)

2 votes
1 answer
2630 views
## Background ## Lumina offers a *Suspend* option, which works. KDE Plasma 4 offers *Sleep* and *Hibernate* options, neither of which work. As suspend to RAM can work with Lumina, so I'd like to try the same with KDE. ## The question ## Are there command-line approaches to sleep (suspend to RAM) and hibernate (suspend to disk)? ### Software ### PC-BSD 11.0-CURRENTMAR2016 (based on FreeBSD) with upower and Lumina release 0.8.8_2,1. [graham@macbookpro82] ~% pkg -v upower 1.6.4 [graham@macbookpro82] … [graham@macbookpro82] ~% pkg info lumina lumina-0.8.8_2,1 Name : lumina Version : 0.8.8_2,1 Installed on : Wed Mar 9 13:31:37 2016 GMT Origin : x11/lumina Architecture : freebsd:11:x86:64 Prefix : /usr/local Categories : x11 Licenses : BSD3CLAUSE Maintainer : kmoore@FreeBSD.org WWW : http://lumina-desktop.org Comment : Lumina Desktop Environment Options : MULTIMEDIA : on PCBSD : on Shared Libs required: libxcb-composite.so.0 libxcb-damage.so.0 libQt5X11Extras.so.5 libQt5Gui.so.5 libQt5Core.so.5 libxcb-ewmh.so.2 libGL.so.1 libXdamage.so.1 libxcb-image.so.0 libQt5Concurrent.so.5 libQt5Widgets.so.5 libxcb-util.so.1 libQt5Network.so.5 libxcb-icccm.so.4 libQt5Multimedia.so.5 libQt5Svg.so.5 libxcb.so.1 libQt5MultimediaWidgets.so.5 Shared Libs provided: libLuminaUtils.so.1 Annotations : icon : \"http://www.pcbsd.org/appcafe/icons/x11_lumina.png\ " repo_type : binary repository : pcbsd-major screen1 : \"http://www.pcbsd.org/appcafe/screenshots/x11/lumina/screen1.png\ " Flat size : 11.8MiB Description : Lumina-DE is a lightweight, BSD licensed desktop environment, designed specifically for use on FreeBSD WWW: http://lumina-desktop.org [graham@macbookpro82] ~% KDE [graham@macbookpro82] ~% pkg info pcbsd-meta-kde pcbsd-meta-kde-1429798531 Name : pcbsd-meta-kde Version : 1429798531 Installed on : Wed Mar 9 14:25:06 2016 GMT Origin : misc/pcbsd-meta-kde Architecture : freebsd:11:x86:64 Prefix : /usr/local Categories : misc Licenses : Maintainer : kris@pcbsd.org WWW : http://www.pcbsd.org Comment : The meta-port pcbsd-meta-kde Annotations : icon : \"http://www.pcbsd.org/appcafe/icons/misc_pcbsd-meta-kde.png\ " repo_type : binary repository : pcbsd-major screen1 : \"http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/KDE_4.png/1024px-KDE_4.png\ " Flat size : 0.00B Description : The meta-port for PC-BSD meta-pkg kde WWW: http://www.pcbsd.org [graham@macbookpro82] ~% ### Hardware ### Apple notebook, early 2011 MacBookPro8,2 - MacBook Pro (15-inch, Early 2011) - Technical Specifications - MacBook Pro "Core i7" 2.0 15" Early 2011 Specs (Early 2011 15", MC721LL/A, MacBookPro8,2, A1286, 2353-1*) @ EveryMac.com It's currently **without a battery**, so hibernation is particularly desirable. (If I can get sleep or hibernation to work with KDE Plasma 4 on PC-BSD, then I'll arrange a replacement battery.) ## Notes ## [graham@macbookpro82] ~% pkg search power | grep manage gnome-power-manager-3.18.0 Power management system for the GNOME Desktop mate-power-manager-1.12.1 Power management system for the MATE Desktop upower-0.99.3 D-Bus daemon for simplifying power management tasks xfce4-power-manager-1.5.2 Power manager for the Xfce Desktop [graham@macbookpro82] ~% pkg search suspend p5-Thread-Suspend-1.22_1 Suspend and resume operations for threads [graham@macbookpro82] ~% pkg search sleep vdr-plugin-sleeptimer-0.8.2_5 Video Disk Recorder - sleep timer plugin [graham@macbookpro82] ~% pkg search hibernat [graham@macbookpro82] ~% freebsd-version ; uname -a 11.0-CURRENTMAR2016 FreeBSD macbookpro82 11.0-CURRENTMAR2016 FreeBSD 11.0-CURRENTMAR2016 #0 e0cb0b6(freebsd-base-graphics): Sat Feb 27 01:01:50 UTC 2016 root@devastator:/usr/obj/tmp/build/80Wd/pcb sd/git/freebsd/sys/GENERIC amd64 [graham@macbookpro82] ~% FreeBSD 10.2 manual pages: - upower(1) - UPower(7)
Asked by Graham Perrin (362 rep)
Mar 11, 2016, 10:42 AM
Last activity: May 31, 2021, 06:02 AM