Activar el funcionamiento de los botones del brillo de las laptops HP Compaq Presario en Ubuntu Hardy 8.04

Existe un problema en Ubuntu Hardy 8.04 con las laptop HP Compaq Presario que hace que los botones del brillo no funcionen, lo cual se resuelve modificando los scripts para subir (/etc/acpi/video_brightnessup.sh) y bajar (/etc/acpi/video_brightnessdown.sh) el brillo.

- Para arreglar el botón de subir brillo reemplazar el contenido de /etc/acpi/video_brightnessup.sh por este:

#!/bin/bash
#. /usr/share/acpi-support/key-constants
#acpi_fakekey $KEY_BRIGHTNESSUP

RUTA="/proc/acpi/video/OVGA/DD03/brightness"
let CIEN=100
let SUMAR=10

let VALOR=`tail -n 1 /proc/acpi/video/OVGA/DD03/brightness | cut -f 2 -d ' '`

if [ $VALOR -lt $CIEN ] ; then
let VALOR=$VALOR+$SUMAR
echo $VALOR > $RUTA
fi

- Para arreglar el botón de bajar brillo reemplazar el contenido de /etc/acpi/video_brightnessdown.sh por este:

#!/bin/bash
#. /usr/share/acpi-support/key-constants
#acpi_fakekey $KEY_BRIGHTNESSDOWN

RUTA="/proc/acpi/video/OVGA/DD03/brightness"
let CERO=0
let RESTAR=10

let VALOR=`tail -n 1 /proc/acpi/video/OVGA/DD03/brightness | cut -f 2 -d ' '`

if [ $VALOR -gt $CERO ] ; then
let VALOR=$VALOR-$RESTAR
echo $VALOR > $RUTA
fi

No hay comentarios:

Publicar un comentario