Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43089 - acpi4asus-0.29 (Bump)
Summary: acpi4asus-0.29 (Bump)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords: EBUILD
: 49143 72509 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-27 05:25 UTC by Marco Testarmata
Modified: 2005-05-07 11:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New ebuild (acpi4asus-0.27.ebuild,1.04 KB, application/octet-stream)
2004-02-27 05:27 UTC, Marco Testarmata
Details
acpi4asus-0.28.ebuild (acpi4asus-0.28.ebuild,924 bytes, text/plain)
2004-08-29 12:29 UTC, MAL
Details
acpi4asus-0.28.ebuild (acpi4asus-0.28.ebuild.txt,927 bytes, text/plain)
2004-08-30 01:03 UTC, MAL
Details
acpi4asus-0.29.ebuild (acpi4asus-0.29.ebuild,2.00 KB, text/plain)
2004-09-05 04:48 UTC, Marco Testarmata
Details
acpi4asus-0.29.ebuild (acpi4asus-0.29.ebuild,1.00 KB, text/plain)
2005-01-29 01:43 UTC, Stefan Schweizer (RETIRED)
Details
patch for acpi4asus-0.29.ebuild (2005-01-29 01:43 PST) (acpi4asus-0.29.ebuild_200501290143PST_200505071858GMT.diff,544 bytes, patch)
2005-05-07 11:01 UTC, Ricardo Cordeiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Testarmata 2004-02-27 05:25:59 UTC
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:
Comment 1 Marco Testarmata 2004-02-27 05:27:27 UTC
Created attachment 26464 [details]
New ebuild

i suggested sys-apps/acpi4asus
Comment 2 Peter Johanson (RETIRED) gentoo-dev 2004-02-28 20:57:32 UTC
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!
Comment 3 MAL 2004-08-29 12:29:00 UTC
Created attachment 38450 [details]
acpi4asus-0.28.ebuild

Updated ebuild for typos
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2004-08-29 22:30:17 UTC
*** Bug 49143 has been marked as a duplicate of this bug. ***
Comment 5 MAL 2004-08-30 01:01:12 UTC
49143 was the right place for this bug - this is an old version in testing.  Pls reopen 49143.
Comment 6 MAL 2004-08-30 01:03:00 UTC
Created attachment 38472 [details]
acpi4asus-0.28.ebuild

Updated in case 49143 isn't reopened.

The previous attachment was uploaded as a mistake anyway.
Comment 7 Marco Testarmata 2004-09-05 04:48:42 UTC
Created attachment 38970 [details]
acpi4asus-0.29.ebuild
Comment 8 Marco Testarmata 2004-09-05 05:00:20 UTC
Comment on attachment 38970 [details]
acpi4asus-0.29.ebuild

Include kernel modules
Comment 9 Marco Testarmata 2004-09-05 05:01:24 UTC
Summary changed from NEW ebuild acpi4asus-0.27 to NEW ebuild acpi4asus.
Please test and report success/failure.
Comment 10 Marco Testarmata 2004-09-05 05:04:08 UTC
acpi4asus-0.27 and acpi4asus-0.28 work fine, none problem. ASUS L3400.
Comment 11 Marco Testarmata 2004-09-05 13:24:39 UTC
Reopen bug
Comment 12 Marco Testarmata 2004-09-22 15:40:03 UTC
acpi4asus-0.29 work fine.
Comment 13 kemir 2004-11-25 15:25:20 UTC
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")
Comment 14 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-29 01:43:30 UTC
Created attachment 49806 [details]
acpi4asus-0.29.ebuild

New ebuild using linux-mod

Please test and comment.
Comment 15 Henrik Brix Andersen 2005-04-24 09:36:03 UTC
*** Bug 72509 has been marked as a duplicate of this bug. ***
Comment 16 Ricardo Cordeiro 2005-05-07 10:55:21 UTC
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
Comment 17 Ricardo Cordeiro 2005-05-07 11:01:56 UTC
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
Comment 18 Ricardo Cordeiro 2005-05-07 11:22:52 UTC
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.
Comment 19 Stefan Schweizer (RETIRED) gentoo-dev 2005-05-07 11:44:17 UTC
thanks, fixed