blob: 21de23c1f51818e048c4be35b19c9e6cea5c21b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
# THESE FILE IS UNUSED AND WILL BE REMOVED WHEN FULL FUNCTIONALITY IS IN HAL
[ -x /usr/sbin/vbetool ] || return
suspend_video()
{
{
/usr/sbin/vbetool vbestate save > /var/run/vbestate
/usr/sbin/vbetool dpms suspend
} >/dev/null 2>&1
}
resume_video()
{
{
/usr/sbin/vbetool post
/usr/sbin/vbetool dpms on
/usr/sbin/vbetool vbestate restore < /var/run/vbestate
} >/dev/null 2>&1
}
lcd_on()
{
/usr/sbin/vbetool dpms on >/dev/null 2>&1
}
lcd_off()
{
/usr/sbin/vbetool dpms off >/dev/null 2>&1
}
|