File: 17-video-restore.sh

package info (click to toggle)
acpi-support 0.143-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 828 kB
  • sloc: sh: 816; ansic: 131; makefile: 38
file content (13 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Attempt to restore some video card state
if [ x$SAVE_VBE_STATE = xtrue ]; then
  vbetool vbestate restore <$VBESTATE
  if [ $VBEMODE != "3" ]; then
    vbetool vbemode set $VBEMODE;
  else
    vbetool vgamode set 3;
  fi
fi