Portál AbcLinuxu, 10. května 2025 09:42
#!/bin/sh
unsupported() {
echo org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported >&2
echo No hibernate script found >&2
exit 1
}
if [ -x "/usr/sbin/hibernate" ] ; then
/usr/sbin/hibernate
RET=$?
else
unsupported
fi
# Refresh devices when resuming from a hibernate
for type in button battery ac_adapter ; do
devices=$(hal-find-by-capbility --capability $type)
for device in $devices ; do
dbus-send --system --print-reply --dest=org.freedesktop.Hal $device \
org.freedesktop.Hal.Device.Rescan
done
done
exit $RET
Na otázku zatím nikdo bohužel neodpověděl.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.