HAL and running a app upon connection.

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

HAL and running a app upon connection.

Postby Arron on Sat Jul 12, 2008 9:48 pm

Im trying to get my Nostromo N52 running and port a small howto I did for Ubuntu to here. This is the details of the howto, look for my posts:

http://ubuntuforums.org/showthread.php?t=87390&page=4

Anyhow, my question is more Hal and Elyssa specific i think. I have the controller app compiled and installed and running but im having problems with Hal running a script when the usb controller is plugged in.

I have this in /etc/udev/rules.d/85-nostromon52_rule.rules

ACTION=="add", SUBSYSTEM=="usb_device", SYSFS{idVendor}=="050d", SYSFS{idProduct}=="0815", RUN="/home/arron/bin/nost.scr"

This worked fine for Mint 4, but for some reason with 5 it does not run the script. The script is there, and does run properly when called, but it appears Hal does not run it upon the usb connection. This same setup worked fine with Ubuntu 7.10 and Mint 4 Gnome/XFCE.

Any ideas? I wish Hal was more documented and supported, it could be a very useful tool for many things if it was simpler. If I could just get Hal to play nice, I would be all set.

---insert Space Odyssey jokes here---
User avatar
Arron
Level 3
Level 3
 
Posts: 147
Joined: Wed Apr 02, 2008 12:24 pm

Linux Mint is funded by ads and donations.
 

Re: HAL and running a app upon connection.

Postby Husse on Sun Jul 13, 2008 7:18 am

This could be a kernel issue
/etc/udev/rules.d/85-nostromon52_rule.rules looks almost OK
I'm no expert in this field but all other files I study have RUN+= not RUN=
There may of course be a difference in what they do between += and =
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: HAL and running a app upon connection.

Postby Arron on Sun Jul 13, 2008 1:41 pm

Ok did some more testing on this.....

Something is running the script from removable drives and storage before the Hal/udev rule. This would normally run the app that i need (I really wish this was more configurable, you could specify more details when what items are plugged in), I need to configure the device with sudo privileges, so the script from here wont do it.

I see this is the gnome-volume-properties app, can this play nice with hal, or be finely tuned?
User avatar
Arron
Level 3
Level 3
 
Posts: 147
Joined: Wed Apr 02, 2008 12:24 pm

Re: HAL and running a app upon connection.

Postby Husse on Sun Jul 13, 2008 4:54 pm

http://man.root.cz/1/gnome-volume-properties/
I think that it at least has some potential, but I have not played with this toys - I wish I had the time but I work full time besides Mint
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden


Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 25 guests