blob: f8ba01d52d9d3374d830308746b243ada56c4e17 (
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
|
#!/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 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
}
|