Howto rescan for modems on RS232 port with udevadm



Hi,

i changed the udev rule 77-mm-platform-serial-whitelist.rules to:

### ModemManager: only check /dev/ttyS1 (atmel_usart.1) ###
ACTION!="add|change", GOTO="mm_platform_device_whitelist_end"whitelist.rules.real
SUBSYSTEM!="platform", GOTO="mm_platform_device_whitelist_end"
DRIVERS=="atmel_usart", KERNELS=="atmel_usart.1", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
LABEL="mm_platform_device_whitelist_end"


The modem detection works, but i need a modem rescan (eg attach a rs232 modem after modemmanager started).

I tried to do this with udevadm:

# udevadm trigger --action=add --subsystem-match=tty --subsystem-match=platform --sysname-match=ttyS1 --verbose
/sys/devices/platform/atmel_usart.1/tty/ttyS1


But MM does nothing. When i execute the command with ttyS0, the output is:
# udevadm trigger --action=add --subsystem-match=tty --subsystem-match=platform --sysname-match=ttyS0 --verbose
/sys/devices/platform/atmel_usart.1/tty/ttyS0
modem-manager[772]: <debug> [1299145393.216952] [mm-manager.c:802] device_added(): (tty/ttyS0): port's parent platform driver is not whitelisted



Any ideas how to solve this?

Cheers,

Tom







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]