~ubuntu-branches/ubuntu/wily/acpi-support/wily

« back to all changes in this revision

Viewing changes to suspend.d/50-tosh-save-brightness.sh

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2009-04-27 10:08:23 UTC
  • Revision ID: james.westby@ubuntu.com-20090427100823-ngqo38hwxxuc8mim
Tags: 0.122
* sleep.sh, hibernate.sh:
  - Don't use custom suspend/hibernate solution.  Instead, call pm-utils.
    LP: #366119
* prepare.sh, resume.sh, resume.d, suspend.d:
  - Delete; no longer used
* debian/dirs, debian/rules:
  - Don't install resume.d and suspend.d directories
* debian/control:
  - Depend on pm-utils
* debian/preinst:
  - Remove any existing resume.d and suspend.d files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
TOSH_LCD=/proc/acpi/toshiba/lcd
4
 
 
5
 
if [ -e $TOSH_LCD ]; then
6
 
  TOSH_BRIGHTNESS=$(( `grep brightness: $TOSH_LCD | cut -d: -f2` + 0 ))
7
 
  TOSH_MAXBRIGHT=$(( `grep brightness_levels: $TOSH_LCD | cut -d: -f2` - 1))
8
 
  # Turn brightness to max to make bios password prompt easier to see
9
 
  echo 'brightness : '$TOSH_MAXBRIGHT > $TOSH_LCD
10
 
fi
11