This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Survey

Sabtu, 10 Mei 2014

Pengaturan Brightness Ubuntu 14.04 pada Lenovo G480

Ubuntu 14.04 LTS sudah release. Saatnya untuk melakukan perubahan pada Laptop setelah sebelumnya mengunduh dokumen ISO pada website resmi Ubuntu.
Malam ini saya baru saja melakukan instalasi Ubuntu 14.04 pada laptop Lenovo G480 yang bukan milik saya (milik kantor). Ternyata ada hal yang tidak bisa dilakukan yaitu saat menekan tombol (Fn + panah bawah) untuk menurunkan kecerahan warna. Setelah googling akhirnya saya menemukan caranya.


1. Cari key code untuk mengatur kecerahan layar
acpi_listen





2. Buat hook untuk menaikkan kecerahan layar
gksu gedit /etc/acpi/events/asus-keyboard-backlight-up
3. Copy-Paste scipt berikut ini pada  file asus-keyboard-backlight-up, key code disesuaikan dengan hasil acpi_listen di atas
event=video/brightnessup BRTUP 00000086 00000000
action=/etc/acpi/brightup.sh










4. Buat hook untuk menurunkan kecerahan layar

gksu gedit /etc/acpi/events/asus-keyboard-backlight-down
5. Copy-Paste scipt berikut ini pada  file asus-keyboard-backlight-down, key code disesuaikan dengan hasil acpi_listen di atas
event=video/brightnessdown BRTDN 00000087 00000000
action=/etc/acpi/brightdown.sh










6. Buat script untuk menaikkan kecerahan layar
gksu gedit /etc/acpi/brightup.sh
7. Copy-Paste scipt berikut ini pada  file brightup.sh
#!/bin/bash

curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ $curr -lt 4272 ]; then
curr=$((curr+610));
echo $curr  > /sys/class/backlight/intel_backlight/brightness;
fi

8. Copy-Paste scipt berikut ini pada  file brightdown.sh
#!/bin/bash

curr=`cat /sys/class/backlight/intel_backlight/actual_brightness`
if [ $curr -gt 610 ]; then
curr=$((curr-610));
echo $curr  > /sys/class/backlight/intel_backlight/brightness;
fi

9. Buat supaya file yang sudah di buat tadi dapat dieksekusi
sudo chmod +x /etc/acpi/events/asus-keyboard-backlight-up
sudo chmod +x /etc/acpi/events/asus-keyboard-backlight-down
sudo chmod +x /etc/acpi/brightup.sh
sudo chmod +x /etc/acpi/brightdown.sh
 10. Restart daemon acpid
sudo service acpid restart
11. Selesai. Saya coba test kembali dengan Fn + Tombol bawah, akhirnya tingkat kecerahan layar saya sudah bisa diturukan.

Jakarta, 10 Mei 2014 by waw

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More