[acpi-jp 3000] Re: Fujitsu Function Button ACPI Module (FJEX)
Anish Mistry
mistry.7 at osu.edu
Mon Jul 19 22:14:24 PDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 13 July 2004 11:27 am, you wrote:
> On Fri, Jul 02, 2004 at 11:47:36AM -0400, Anish Mistry wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Monday 12 January 2004 08:29 pm, Nate Lawson wrote:
> > > On Mon, 12 Jan 2004, Anish Mistry wrote:
> > > > I've been sitting on this for a while waiting to hear back from the
> > > > primary author, but no word after a few weeks, so I'm posting it to
> > > > see what people think. This module allows a program to receive
> > > > events when the function buttons are pressed. It's companion
> > > > userland program fujiapp hooks in and receives and event when a
> > > > button is pressed and show the level. It has only been tested on the
> > > > Fujitsu P2000 series laptops, but may work on other models with the
> > > > FJEX acpi device.
> > > >
> > > > Sean's website:
> > > > http://www.stalker.org/~sean/freebsd-p2040/FujiApp/
> > > >
> > > > My modifications to make it a loadable module:
> > > > http://am-productions.biz/docs/acpi_fjex.tgz
> > > > and just fujiapp without the module source included:
> > > > http://am-productions.biz/docs/fujiapp-1.1.tgz
> > >
> > > You should use acpi_UserNotify() to send events to userland. The
> > > events will appear on /dev/devctl and can be parsed by devd. If you
> > > can do what you want via devd.conf, fine. If you want to have your own
> > > program reading /dev/devctl, you'll have to implement device cloning
> > > for /dev/devctl first or not run devd. (A current deficiently in devctl
> > > is that only one reader can be present at a time.)
> > >
> > > -Nate
> >
> > After much procrastination I've finally updated this module to CURRENT
> > and match the Toshiba driver. Test if you have a Fujitsu P2000 (I've
> > heard this device also appears on the P5000 and the S series).
> >
> > http://am-productions.biz/docs/acpi_fuji.tgz
> >
> > FYI: My network has been a bit flaky you might have to request it a
> > couple of times before it goes through.
> >
> > Opps, sent it to the old list. I know that there are some style issues,
> > but I'd like to get comments about anything that is wrong with the way
> > I've done things, or just suggestions.
>
> Hi,
>
> I forgot whether I mentioned it already, but I'm having a look at it
> (again). We should get it ready for import this time, I tried to get some
> Fujitsu laptop, but that failed, so you have to do the testing for me.
>
> Mark
I've finally got the userland part down, it's a bit slow since it's all shell
scripts but it works for me.
The following is added to my devd.conf to relay the acpi_fuji events:
notify 10 {
match "system" "ACPI";
match "subsystem" "FUJI";
action "/etc/rc.d/acpi_fuji_exec.sh $notify";
};
Then into /etc/rc.d I put this:
http://am-productions.biz/docs/acpi_fuji_exec.sh
Then from an xterm or similar run the following from an X session (This is
actually good for displaying the logger event from the syslog)
requires /usr/ports/misc/xosd :
http://am-productions.biz/docs/fuji_display.sh
- --
Anish Mistry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFA/KpuxqA5ziudZT0RArX4AKC+Z0vhXiZU8HiqJuvhV3ILUozqTACglp96
03EZ06J9tybGkIuAiv0/KO8=
=8I3/
-----END PGP SIGNATURE-----
More information about the freebsd-acpi
mailing list