Danny Backx
2006-12-28 16:19:58 UTC
Hi,
I've just installed Mandriva 2007.0 on my system and got Synce to work
again with it, my PDA is a Mio 168.
As I did before, I took guidance from
http://synce.sourceforge.net/synce/hotplug.php
but I wanted to show you the tweaks I made.
When I used the documented syntax in /etc/udev/ipaq.rules, I got a
warning message telling me to write DRIVERS== instead of DRIVER==.
Here's my changed /etc/udev/ipaq.rules :
[***@dannypc ~]# cat /etc/udev/ipaq.rules
#
# udev rules file for ipaq
#
DRIVERS=="ipaq", NAME="ipaq", SYMLINK="tts/USB%n", GROUP="tty",
MODE="0600", RUN+="/etc/dev.d/ipaq/synce.dev"
(That's one wrapped line.)
Also I've changed the hotplug script a bit :
[***@dannypc ~]# cat /etc/dev.d/ipaq/synce.dev
#!/bin/sh
LOGFILE=/var/log/synce
if [ "$ACTION" = "add" ]; then
if [ "$DEVPATH" = "/class/tty/ttyUSB0" ] ; then
echo "`date +"%b %d %X"` `uname -n`: iPAQ plugged,
connecting .." >>$LOGFILE
echo "Specifics : DEVNAME $DEVNAME, DEVLINKS $DEVLINKS"
synce-serial-start >>$LOGFILE 2>&1
else
echo "Device " $DEVPATH ", ignoring" >>$LOGFILE
fi
elif [ "$ACTION" = "remove" ]; then
echo "`date +"%b %d %X"` `uname -n`: iPAQ removed" >>$LOGFILE
synce-serial-abort >>$LOGFILE 2>&1
fi
This makes it auto-configure for the right device (running
synce-serial-config before synce-serial-start).
A final note :
- I always see two hotplug events, one on /dev/tts/USB0, another
on /dev/tts/USB1. The first one works, ignoring the second one is
built into the script above.
- I never see "remove" events.
Cheers,
Danny
I've just installed Mandriva 2007.0 on my system and got Synce to work
again with it, my PDA is a Mio 168.
As I did before, I took guidance from
http://synce.sourceforge.net/synce/hotplug.php
but I wanted to show you the tweaks I made.
When I used the documented syntax in /etc/udev/ipaq.rules, I got a
warning message telling me to write DRIVERS== instead of DRIVER==.
Here's my changed /etc/udev/ipaq.rules :
[***@dannypc ~]# cat /etc/udev/ipaq.rules
#
# udev rules file for ipaq
#
DRIVERS=="ipaq", NAME="ipaq", SYMLINK="tts/USB%n", GROUP="tty",
MODE="0600", RUN+="/etc/dev.d/ipaq/synce.dev"
(That's one wrapped line.)
Also I've changed the hotplug script a bit :
[***@dannypc ~]# cat /etc/dev.d/ipaq/synce.dev
#!/bin/sh
LOGFILE=/var/log/synce
if [ "$ACTION" = "add" ]; then
if [ "$DEVPATH" = "/class/tty/ttyUSB0" ] ; then
echo "`date +"%b %d %X"` `uname -n`: iPAQ plugged,
connecting .." >>$LOGFILE
echo "Specifics : DEVNAME $DEVNAME, DEVLINKS $DEVLINKS"
$LOGFILE
synce-serial-config $DEVNAME >>$LOGFILE 2>&1synce-serial-start >>$LOGFILE 2>&1
else
echo "Device " $DEVPATH ", ignoring" >>$LOGFILE
fi
elif [ "$ACTION" = "remove" ]; then
echo "`date +"%b %d %X"` `uname -n`: iPAQ removed" >>$LOGFILE
synce-serial-abort >>$LOGFILE 2>&1
fi
This makes it auto-configure for the right device (running
synce-serial-config before synce-serial-start).
A final note :
- I always see two hotplug events, one on /dev/tts/USB0, another
on /dev/tts/USB1. The first one works, ignoring the second one is
built into the script above.
- I never see "remove" events.
Cheers,
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info