updated on Wed Jan 18 04:00:29 UTC 2012
[aur-mirror.git] / lenovo-sl-laptop / lenovo-sl-laptop.install
blob0a85a606c2f989562fe665c90e73f5bd4d5b2757
1 post_install() {
2 cat << EOF
3 ==> To enable the brightness control, load the module with the 
4 ==> "control_backlight=1" module parameter (i.e.
5 ==> modprobe lenovo-sl-laptop.ko control_backlight=1 )
6 ==> 
7 ==> Note that the brightness control will likely conflict with
8 ==> the ACPI video driver brightness control. So, if you have
9 ==> the ACPI video driver loaded (and you probably do):
10 ==> 
11 ==> echo 0 > /sys/module/video/parameters/brightness_switch_enabled
12 ==> insmod lenovo-sl-laptop.ko control_backlight=1
13 ==> and then restart X.
14 ==> 
15 ==> Alternatively, you can try to use the "acpi_backlight=vendor"
16 ==> kernel parameter (added to some recent kernel versions).
17 ==> 
18 ==> Alternatively alternatively, simply unload the ACPI video
19 ==> driver (rmmod video).
20 EOF
21 depmod -a
24 post_upgrade() {
25         post_install $1
28 op=$1
29 shift
30 $op $*