/tags/oBacklight 0.3.0/oBacklight_0.3.0.tar.gz |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/tags/oBacklight 0.3.0/src/changelog.txt |
---|
0,0 → 1,9 |
oBacklight Version 0.3 (2010-05-01) |
=============================================== |
Features: |
* Backlight functionality for Sony Laptops |
in combination with nvidia_bl driver. |
Tested with Sony VAIO VPCCW1S1E. |
Bugs: |
* None at this time. |
/tags/oBacklight 0.3.0/src/oBacklight.sh |
---|
0,0 → 1,78 |
#!/bin/bash |
##################################################### |
# Simple script to catch the changes to backlight # |
# events on sony laptops in combination with # |
# nvidia_bl. # |
# # |
# Tested with a Sony Vaio VPCCW1S1E Laptop. # |
# # |
# This has been tested on openSUSE 11.2 but # |
# should work on any distributions. # |
# # |
# Released under the BSDL Licens # |
# # |
# Author: Marcus Udenhed # |
# Version: 0.3 # |
# Last Modified 2010-05-01 14:30 # |
# # |
##################################################### |
### BEGIN INIT INFO |
# Provides: Sony Backlight |
# Default-Start: 3 5 |
# Default-Stop: 0 1 2 6 |
# Short-Description: Provides connector for nvidia_bl |
# Description: Provides a connector between the |
# standard Sony backlight interface and nvidia_bl |
# interface. Captures all backlight events from |
# /sys/class/backlight/sony. |
### END INIT INFO |
start() { |
/etc/init.d/oBacklight.sh run & |
} |
stop() { |
killall -r oBacklight |
} |
run() { |
DVAR=$(cat /sys/class/backlight/sony/brightness) |
while [ exit != 130 ] |
do |
sleep 1 |
GVAR=$(cat /sys/class/backlight/sony/brightness) |
if [ "$GVAR" != "$DVAR" ] |
then |
echo $GVAR > /sys/class/backlight/nvidia_backlight/brightness |
DVAR=$(cat /sys/class/backlight/sony/brightness) |
fi |
done |
} |
case $1 in |
start) |
start |
;; |
stop) |
stop |
;; |
run) |
run |
;; |
*) |
echo "start|stop|run" |
;; |
esac |
/tags/oBacklight 0.3.0/src/readme.txt |
---|
0,0 → 1,30 |
oBacklight |
========== |
Simple script to catch the changes to backlight events on Sony laptops in |
combination with the nvidia_bl found here: http://www.nvnews.net/vbulletin/showthread.php?t=143025 |
Tested with a Sony Vaio VPCCW1S1E Laptop. |
This has been tested on openSUSE 11.2 but should work on any distributions. |
Features: |
* Backlight functionality for Sony Laptops |
in combination with nvidia_bl driver. |
Tested with Sony VAIO VPCCW1S1E. |
Requirements: |
* nvidia_bl (http://www.nvnews.net/vbulletin/showthread.php?t=143025) |
Installation: |
1. Copy the script to /etc/init.d/ |
$ sudo cp oBacklight.sh /etc/init.d/ |
2. Add script to your startup sequence. |
This how you do it in openSUSE. |
$ sudo yast runlevel add service=oBacklight.sh |
3. To start the script either reboot your computer or start the script like this. |
$ sudo /etc/init.d/oBacklight.sh start |
Please report any bugs to the following address: bugs@osource.se. |