Add udev rules to auto-dim panel when on battery power

Bug #250355 reported by TJ
4
Affects Status Importance Assigned to Milestone
smartdimmer (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

Binary package hint: smartdimmer

I've added a udev script to auto-dim the back-light to 50% when the charger is removed, and return it to 100% when the charger is attached.

The file is /etc/udev/rules.d/80-smartdimmer.rules

# NVidia backlight control using smartdimmer
# Copyright July 2008, TJ <email address hidden>
# Licensed under the GNU General Public License, v2

ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Battery", ATTR{status}=="Discharging", RUN+="/usr/bin/smartdimmer -s 12"
ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Battery", ATTR{status}=="Charging", RUN+="/usr/bin/smartdimmer -s 21"

TJ (tj)
Changed in smartdimmer:
importance: Undecided → Wishlist
Revision history for this message
Steve Langasek (vorlon) wrote :

This should be addressed in userspace policy via gnome-power-manager or equivalent, not via a hard-coded udev rule.

Changed in smartdimmer:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.