cat /var/log/acpid (...) [Fri Apr 4 08:28:08 2008] received event "video LCD 00000087 00000000" [Fri Apr 4 08:28:08 2008] notifying client 5735[110:122] [Fri Apr 4 08:28:08 2008] notifying client 5883[0:0] [Fri Apr 4 08:28:08 2008] notifying client 5883[0:0] [Fri Apr 4 08:28:08 2008] executing action "/etc/acpi/video_brightnessdown.sh" [Fri Apr 4 08:28:08 2008] BEGIN HANDLER MESSAGES [Fri Apr 4 08:28:08 2008] END HANDLER MESSAGES [Fri Apr 4 08:28:08 2008] action exited with status 0 [Fri Apr 4 08:28:08 2008] completed event "video LCD 00000087 00000000"
/etc/acpi/video_brightnessdown.sh produces no output, same as "acpi_fakekey 224" (it's command..)..
root@sim:/# strace acpi_fakekey 224 execve("/usr/bin/acpi_fakekey", ["acpi_fakekey", "224"], [/* 23 vars */]) = 0 brk(0) = 0x804a000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fa0000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=64080, ...}) = 0 mmap2(NULL, 64080, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f90000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260e\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1364388, ...}) = 0 mmap2(NULL, 1369712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e41000 mmap2(0xb7f8a000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x149) = 0xb7f8a000 mmap2(0xb7f8d000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f8d000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e40000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e406b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xb7f8a000, 4096, PROT_READ) = 0 munmap(0xb7f90000, 64080) = 0 open("/dev/input/event0", O_RDWR) = 3 ioctl(3, 0x80404521, 0xbffdff50) = 64 close(3) = 0 open("/dev/input/event1", O_RDWR) = 3 ioctl(3, 0x80404521, 0xbffdff50) = 64 write(3, "\240\203\4\10\364\277\370\267\1\0\340\0\1\0\0\0", 16) = 16 write(3, "\240\203\4\10\364\277\370\267\1\0\340\0\0\0\0\0", 16) = 16 exit_group(0) = ? Process 12686 detached
cat /var/log/acpid video_brightnes sdown.sh"
(...)
[Fri Apr 4 08:28:08 2008] received event "video LCD 00000087 00000000"
[Fri Apr 4 08:28:08 2008] notifying client 5735[110:122]
[Fri Apr 4 08:28:08 2008] notifying client 5883[0:0]
[Fri Apr 4 08:28:08 2008] notifying client 5883[0:0]
[Fri Apr 4 08:28:08 2008] executing action "/etc/acpi/
[Fri Apr 4 08:28:08 2008] BEGIN HANDLER MESSAGES
[Fri Apr 4 08:28:08 2008] END HANDLER MESSAGES
[Fri Apr 4 08:28:08 2008] action exited with status 0
[Fri Apr 4 08:28:08 2008] completed event "video LCD 00000087 00000000"
/etc/acpi/ video_brightnes sdown.sh produces no output, same as "acpi_fakekey 224" (it's command..)..
root@sim:/# strace acpi_fakekey 224 "/usr/bin/ acpi_fakekey" , ["acpi_fakekey", "224"], [/* 23 vars */]) = 0 "/etc/ld. so.nohwcap" , F_OK) = -1 ENOENT (No such file or directory) PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0xb7fa0000 "/etc/ld. so.preload" , R_OK) = -1 ENOENT (No such file or directory) etc/ld. so.cache" , O_RDONLY) = 3 S_IFREG| 0644, st_size=64080, ...}) = 0 "/etc/ld. so.nohwcap" , F_OK) = -1 ENOENT (No such file or directory) lib/tls/ i686/cmov/ libc.so. 6", O_RDONLY) = 3 1\1\1\0\ 0\0\0\0\ 0\0\0\0\ 3\0\3\0\ 1\0\0\0\ 260e\1" ..., 512) = 512 S_IFREG| 0755, st_size=1364388, ...}) = 0 PROT_EXEC, MAP_PRIVATE| MAP_DENYWRITE, 3, 0) = 0xb7e41000 PROT_WRITE, MAP_PRIVATE| MAP_FIXED| MAP_DENYWRITE, 3, 0x149) = 0xb7f8a000 PROT_WRITE, MAP_PRIVATE| MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0xb7f8d000 PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0xb7e40000 area({entry_ number: -1 -> 6, base_addr: 0xb7e406b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 0xb7f8a000, 4096, PROT_READ) = 0 dev/input/ event0" , O_RDWR) = 3 dev/input/ event1" , O_RDWR) = 3 4\10\364\ 277\370\ 267\1\0\ 340\0\1\ 0\0\0", 16) = 16 4\10\364\ 277\370\ 267\1\0\ 340\0\0\ 0\0\0", 16) = 16
execve(
brk(0) = 0x804a000
access(
mmap2(NULL, 8192, PROT_READ|
access(
open("/
fstat64(3, {st_mode=
mmap2(NULL, 64080, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f90000
close(3) = 0
access(
open("/
read(3, "\177ELF\
fstat64(3, {st_mode=
mmap2(NULL, 1369712, PROT_READ|
mmap2(0xb7f8a000, 12288, PROT_READ|
mmap2(0xb7f8d000, 9840, PROT_READ|
close(3) = 0
mmap2(NULL, 4096, PROT_READ|
set_thread_
mprotect(
munmap(0xb7f90000, 64080) = 0
open("/
ioctl(3, 0x80404521, 0xbffdff50) = 64
close(3) = 0
open("/
ioctl(3, 0x80404521, 0xbffdff50) = 64
write(3, "\240\203\
write(3, "\240\203\
exit_group(0) = ?
Process 12686 detached