Annotation of /trunk/hal/patches/hal-0.5.7.1-rescan-on-resume.patch
Parent Directory | Revision Log
Revision 82 -
(hide annotations)
(download)
Fri Oct 20 18:01:50 2006 UTC (17 years, 11 months ago) by niro
File size: 516 byte(s)
Fri Oct 20 18:01:50 2006 UTC (17 years, 11 months ago) by niro
File size: 516 byte(s)
patches and files for hal-0.5.7.1-r1
1 | niro | 82 | --- tools/hal-system-power-hibernate 2006-04-26 19:25:40.000000000 -0500 |
2 | +++ tools/hal-system-power-hibernate 2006-04-26 19:34:00.000000000 -0500 | ||
3 | @@ -53,4 +53,13 @@ | ||
4 | fi | ||
5 | fi | ||
6 | |||
7 | +# Refresh devices when resuming from a hibernate | ||
8 | +for type in button battery ac_adapter ; do | ||
9 | + devices=$(hal-find-by-capbility --capability $type) | ||
10 | + for device in $devices ; do | ||
11 | + dbus-send --system --print-reply --dest=org.freedesktop.Hal $device \ | ||
12 | + org.freedesktop.Hal.Device.Rescan | ||
13 | + done | ||
14 | +done | ||
15 | + | ||
16 | exit $RET |