~xavi-garcia-mena/ubuntu/vivid/upower/percentages-power-off

« back to all changes in this revision

Viewing changes to rules/95-upower-battery-recall-toshiba.rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-02-16 10:16:24 UTC
  • Revision ID: james.westby@ubuntu.com-20100216101624-2cmwqsr1ndftdd87
Tags: upstream-0.9.0+git20100216.72bb2
ImportĀ upstreamĀ versionĀ 0.9.0+git20100216.72bb2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##############################################################################################################
 
2
# Battery recall notices: Toshiba
 
3
#
 
4
# These are properties defining the behavior:
 
5
#  UPOWER_RECALL_NOTICE
 
6
#  UPOWER_RECALL_VENDOR
 
7
#  UPOWER_RECALL_URL
 
8
#
 
9
 
 
10
# only match power_supply devices
 
11
SUBSYSTEM!="power_supply", GOTO="up_battery_recall_toshiba_end"
 
12
 
 
13
# only match batteries
 
14
ATTR{type}!="Battery", GOTO="up_battery_recall_toshiba_end"
 
15
 
 
16
# only match correct manufacturer
 
17
ATTR{manufacturer}!="TOSHIBA", GOTO="up_battery_recall_toshiba_end"
 
18
 
 
19
ATTR{model_name}=="PA3465U", ENV{UPOWER_RECALL_NOTICE}="1"
 
20
ATTR{model_name}=="PA3399U", ENV{UPOWER_RECALL_NOTICE}="1"
 
21
ATTR{model_name}=="PA3400U", ENV{UPOWER_RECALL_NOTICE}="1"
 
22
ATTR{model_name}=="PA3465U", ENV{UPOWER_RECALL_NOTICE}="1"
 
23
ATTR{model_name}=="PA3399U", ENV{UPOWER_RECALL_NOTICE}="1"
 
24
ATTR{model_name}=="PA3400U", ENV{UPOWER_RECALL_NOTICE}="1"
 
25
 
 
26
ENV{UPOWER_RECALL_NOTICE}=="1", ENV{UPOWER_RECALL_VENDOR}="Toshiba", ENV{UPOWER_RECALL_URL}="http://bxinfo.toshiba.com/"
 
27
 
 
28
LABEL="up_battery_recall_toshiba_end"
 
29