Acpi daemon to control ASUS Laptop Hotkey HomePage http://sourceforge.net/projects/acpi4asus You mast have "ASUS/Medion Laptop Extras" kernel modules Reproducible: Always Steps to Reproduce:
Created attachment 26464 [details] New ebuild i suggested sys-apps/acpi4asus
Okay, ebuild commited. Please test and report success/failure. I updated the src_install section to use portage's utilities for the installation. Please see the ebuild once you sync. More info on using these portage shortcuts are in "man 5 ebuild" Thanks!
Created attachment 38450 [details] acpi4asus-0.28.ebuild Updated ebuild for typos
*** Bug 49143 has been marked as a duplicate of this bug. ***
49143 was the right place for this bug - this is an old version in testing. Pls reopen 49143.
Created attachment 38472 [details] acpi4asus-0.28.ebuild Updated in case 49143 isn't reopened. The previous attachment was uploaded as a mistake anyway.
Created attachment 38970 [details] acpi4asus-0.29.ebuild
Comment on attachment 38970 [details] acpi4asus-0.29.ebuild Include kernel modules
Summary changed from NEW ebuild acpi4asus-0.27 to NEW ebuild acpi4asus. Please test and report success/failure.
acpi4asus-0.27 and acpi4asus-0.28 work fine, none problem. ASUS L3400.
Reopen bug
acpi4asus-0.29 work fine.
einfo in pkg_postinst is wrong: replace: "/ush/share/docs/acpi4asus-0.29/README" (einfo "see /ush/share/docs/${P}/README for details") by "/usr/share/doc/acpi4asus-0.29/README.gz" (einfo "see /usr/share/doc/${P}/README.gz for details")
Created attachment 49806 [details] acpi4asus-0.29.ebuild New ebuild using linux-mod Please test and comment.
*** Bug 72509 has been marked as a duplicate of this bug. ***
acpi4asus' asus_acpid depends on acpid. Where's the problem: pt_lamb@milk pt_lamb $ asus_acpid connect: Connection refused asus_acpid: can't open unix domain socket on /var/run/acpid.socket: Illegal seek Solution: milk root # emerge acpid milk root # /etc/init.d/acpid start and rerun asus_acpid
Created attachment 58288 [details, diff] patch for acpi4asus-0.29.ebuild (2005-01-29 01:43 PST) added the RDEPEND var and corrected some typos on postinst
I did the following tests on my Asus M6800N laptop with the factory BIOS version 209 Test #1 Loading the module: milk root # modprobe asus_acpi milk root # dmesg |tail -n 2 Asus Laptop ACPI Extras version 0.29 M6N model detected, supported Works. Test #2 Checking events: milk acpi # cat /proc/acpi/event (pressing a lot of kotkeys and combinations) hotkey ATKD 00000050 00000001 hotkey ATKD 00000051 00000001 hotkey ATKD 0000005d 00000002 hotkey ATKD 0000006b 00000000 hotkey ATKD 0000005c 00000001 hotkey ATKD 00000040 00000000 hotkey ATKD 00000043 00000000 hotkey ATKD 00000045 00000000 hotkey ATKD 00000041 00000000 hotkey ATKD 0000005d 00000003 hotkey ATKD 0000002e 00000000 hotkey ATKD 0000001f 00000000 hotkey ATKD 00000034 00000000 hotkey ATKD 00000033 00000000 hotkey ATKD 00000034 00000001 hotkey ATKD 00000033 00000001 hotkey ATKD 00000061 00000000 hotkey ATKD 00000032 00000000 hotkey ATKD 00000031 00000000 hotkey ATKD 00000030 00000000 Only Fn+F1 (sleep combination) failed, other then that it works. Test #3 Changing LED states: milk asus # echo 1 > /proc/acpi/asus/mled milk asus # echo 0 > /proc/acpi/asus/mled milk asus # echo 1 > /proc/acpi/asus/wled milk asus # echo 0 > /proc/acpi/asus/wled Works properly. Test #4 Checking DSDT information: milk asus # cat /proc/acpi/asus/info Asus Laptop ACPI Extras Driver 0.29 Model reference : M6N SFUN value : 0x0877 DSDT length : 24861 DSDT checksum : 209 DSDT revision : 1 OEM id : 1ABSP OEM table id : 1ABSP000 OEM revision : 0x0 ASL comp vendor id : MSFT ASL comp revision : 0x100000d Ok. Test #5 Changing LCD's brightness: for i in `seq 0 15`; do sleep 1 ; echo $i > /proc/acpi/asus/brn; done Works. Test #6 Turning LCD on/off: milk asus # echo 0 > /proc/acpi/asus/lcd milk asus # echo 1 > /proc/acpi/asus/lcd Works. Test #7 Switching displays: Didn't run this test because my laptop's model is not supported. Test #8 Running asus_acpid: pt_lamb@milk pt_lamb $ cd pt_lamb@milk pt_lamb $ mkdir .asus_acpi pt_lamb@milk pt_lamb $ cp -r /usr/share/acpi4asus/samples/* .asus_acpi/ pt_lamb@milk pt_lamb $ cat > .asus_acpi/hotk0.sh echo hotk0 (CTRL+D) pt_lamb@milk pt_lamb $ cat > .asus_acpi/hotk1.sh echo hotk1 (CTRL+D) pt_lamb@milk pt_lamb $ cat > .asus_acpi/hotk2.sh echo hotk2 (CTRL+D) pt_lamb@milk pt_lamb $ chmod u+x .asus_acpi/hotk* pt_lamb@milk pt_lamb $ asus_acpid pt_lamb@milk pt_lamb $ tail -f .asus_acpi/log (pressed 2 hotkeys) [Sat May 7 19:08:52 2005] starting up [Sat May 7 19:08:52 2005] 7 rules loaded [Sat May 7 19:08:59 2005] received event "hotkey ATKD 00000050 00000004" [Sat May 7 19:08:59 2005] executing action "~/.asus_acpi/hotk0.sh" [Sat May 7 19:08:59 2005] BEGIN HANDLER MESSAGES hotk0 [Sat May 7 19:08:59 2005] END HANDLER MESSAGES [Sat May 7 19:08:59 2005] action exited with status 0 [Sat May 7 19:08:59 2005] completed event "hotkey ATKD 00000050 00000004" [Sat May 7 19:09:03 2005] received event "hotkey ATKD 00000051 00000003" [Sat May 7 19:09:03 2005] executing action "~/.asus_acpi/hotk1.sh" [Sat May 7 19:09:03 2005] BEGIN HANDLER MESSAGES hotk1 [Sat May 7 19:09:03 2005] END HANDLER MESSAGES [Sat May 7 19:09:03 2005] action exited with status 0 END OF TESTS milk root # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1400MHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 17:48:05)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mmmx -msse2 -mfpmath=sse,387 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mmmx -msse2 -mfpmath=sse,387 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks fixpackages noauto sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS=" http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://193.136.191.98/mirrors/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://ftp.belnet.be/gentoo-portage/" USE="x86 X acpi aim alsa apache2 apm app-editors/vim:vim-with-x arts avi berkdb bitmap-fonts bonobo bzlib cdr crypt cups curl dga divx4linux doc dvd dvdr emboss encode esd fam fbcon foomaticdb fortran gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile icq imagemagick imlib ipv6 jack java jpeg junit libg++ libwww mad mikmod mmx motif mozilla mozsvg mp3 mpeg msn mysql nas ncurses net-misc/openssh:chroot net-www/links:javascripti nls ogg oggvorbis opengl oscar oss pam pcmcia pdflib perl php pic pie png pnp posix python qt quicktime readline samba sdl session shared sharedmem slang snmp sockets spell sse ssl svga sys-libs/glibc:erandom sys-libs/glibc:makecheck sys-libs/glibc:nptl tcltk tcpd tetex tiff truetype truetype-fonts trusted type1-fonts unicode usb vorbis x11-base/xfree-drm:radeon x11-misc/xscreensaver:offensive xine xinerama xml xml2 xmms xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS Guess everything works fine. I would like to see it stable on x86 if there's no remaining issue.
thanks, fixed