USB-IrDA udev hotplug support

Bug #361431 reported by Daniele Napolitano
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Invalid
Undecided
Unassigned
irda-utils (Debian)
Fix Released
Unknown
irda-utils (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: irda-utils

For make USB-IrDA devices hotpluggable and working instantly, needs a udev rule that call irattach for new device plugged in. Obviously we need to kill irattach on plug out.

This is a working rule for udev:

SUBSYSTEM=="net", SUBSYSTEMS=="usb", ACTION=="add", ATTR{type}=="783", RUN+="/sbin/start-stop-daemon --start --quiet --pidfile /var/run/irattach.pid --startas /usr/sbin/irattach -- $env{INTERFACE} -s"

SUBSYSTEM=="net", SUBSYSTEMS=="usb", ACTION=="remove", KERNEL=="irda*", RUN+="/sbin/start-stop-daemon --stop --quiet --oknodo --name irattach --pidfile /var/run/irattach.pid"

This rule can be installed on /etc/udev/rules.d during irda-utils package installation.

Same things related PnP autoconfig via udev instead init script (irda-setup).

Note: udev rules tested with a KingSun KS-959 IRDA/USB adapter (ks959_sir module).

Revision history for this message
Ferry Toth (ftoth) wrote :

This is definitely the way to go!

But after irattach I need to modprobe ircomm, ircomm_tty and irtty_sir as well before run gnome-ppp.

Preferably would be to get these loaded by udev as well. And possibly pop up Ircp Tray.

And then use Network Manager (instead of gnome-ppp) to manually create a ppp over my GSM.

Any ideas how to get this done?

I have the same USB dongle.

Ferry

Revision history for this message
Martin Albisetti (beuno) wrote :

Thank you for bringing this bug to our attention. Unfortunately a paper cut should be a small usability issue that affects many people and is quick and easy to fix. I'm afraid this bug can't be addressed as part of this project.
A paper cut is a minor usability annoyance that an average user would encounter on his/her first day of using a new installation of Ubuntu 9.10.

Changed in hundredpapercuts:
status: New → Invalid
Revision history for this message
Thomas Trummer (truetom) wrote :

This works fine with SigmaTel STIr4200 IRDA/USB.

Changed in irda-utils (Ubuntu):
status: New → Confirmed
Vish (vish)
Changed in irda-utils (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Changed in irda-utils (Debian):
status: Unknown → New
Revision history for this message
Al Tarakanoff (al-tarakanoff) wrote :

This works fine with SigmaTel STIr4200 IRDA/USB at Ubuntu Linux 10.04. It is strange it is not in the irda-utils deb-package.

Changed in irda-utils (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.