summaryrefslogtreecommitdiff
path: root/pm/functions
diff options
context:
space:
mode:
Diffstat (limited to 'pm/functions')
-rwxr-xr-xpm/functions91
1 files changed, 0 insertions, 91 deletions
diff --git a/pm/functions b/pm/functions
index 6834887..741d5cf 100755
--- a/pm/functions
+++ b/pm/functions
@@ -12,97 +12,6 @@ SUSPEND_MODULES=""
export HIBERNATE_RESUME_POST_VIDEO
export SUSPEND_MODULES
-get_video_type()
-{
- vendor=""
- vendor=$(/sbin/lspci -mn|awk '{if ($2 ~ /^"0300"$/ ) {print $3;exit;}}')
- vendor=$(eval echo $vendor)
- [ -z "$vendor" ] && return 1
- case "$vendor" in
- 1002)
- echo ATI
- return 0
- ;;
- 10de)
- echo nVidia
- return 0
- ;;
- 8086)
- echo Intel
- return 0
- ;;
- *)
- echo $vendor
- return 0
- ;;
- esac
-}
-
-get_lcd_status()
-{
- return 0
-}
-
-lcd_on()
-{
- return 0
-}
-
-lcd_off()
-{
- return 0
-}
-
-get_crt_status()
-{
- return 0
-}
-
-crt_on()
-{
- return 0
-}
-
-crt_off()
-{
- return 0
-}
-
-suspend_video()
-{
- return 0;
-}
-
-resume_video()
-{
- return 0;
-}
-
-rotate_video_state()
-{
- STATUS="$(get_crt_status) $(get_lcd_status)"
- case "$STATUS" in
- "off off")
- crt_off
- lcd_on
- ;;
- "off on")
- crt_on
- lcd_on
- ;;
- "on on")
- crt_on
- lcd_off
- ;;
- "on off")
- crt_off
- lcd_off
- ;;
- *)
- ;;
- esac
-}
-
take_suspend_lock()
{
VT=$(/usr/bin/fgconsole)