Re: ModemManager serial port lock-files

2013-06-10 Thread Aleksander Morgado
On 06/09/2013 04:11 PM, Aleksander Morgado wrote: I now wonder if this 'pnp' subsystem can be considered fully equivalent >> > to the 'platform' one for our purposes. >> > Yes, PNP is basically equivalent to platform for us here. > > Dan, wouldn't we need to explicitly require the device

Re: ModemManager serial port lock-files

2013-06-09 Thread Aleksander Morgado
>>> I am working with git version of MM and Ubuntu 12.04. >>> > > >>> > > I have three different physical serial (RS232) ports and they are not >>> > > USB-to-serial. Now MM probes all of them. I want MM to automatically >>> > > detect the port the modem is connected to but there're another devic

Re: ModemManager serial port lock-files

2013-06-08 Thread Dmitry Ivanyushin
Sadly, that won't work. Both deamons (MM and mine) are started as root. As far as I know exclusive lock has no power against rooted lock acquire. And there is no chance not to run my daemon not as root in due to architecture and interfaces. 2013/6/8 Dan Williams > On Fri, 2013-06-07 at 17:43 +0

Re: ModemManager serial port lock-files

2013-06-07 Thread Dan Williams
On Fri, 2013-06-07 at 17:43 +0400, Dmitry Ivanyushin wrote: > I am working with git version of MM and Ubuntu 12.04. > > I have three different physical serial (RS232) ports and they are not > USB-to-serial. Now MM probes all of them. I want MM to automatically detect > the port the modem is connec

Re: ModemManager serial port lock-files

2013-06-07 Thread Dan Williams
On Fri, 2013-06-07 at 18:30 +0200, Aleksander Morgado wrote: > On 06/07/2013 03:43 PM, Dmitry Ivanyushin wrote: > > I am working with git version of MM and Ubuntu 12.04. > > > > I have three different physical serial (RS232) ports and they are not > > USB-to-serial. Now MM probes all of them. I wa

Re: ModemManager serial port lock-files

2013-06-07 Thread Aleksander Morgado
On 06/07/2013 03:43 PM, Dmitry Ivanyushin wrote: > I am working with git version of MM and Ubuntu 12.04. > > I have three different physical serial (RS232) ports and they are not > USB-to-serial. Now MM probes all of them. I want MM to automatically > detect the port the modem is connected to but

Re: ModemManager serial port lock-files

2013-06-07 Thread Dmitry Ivanyushin
I am working with git version of MM and Ubuntu 12.04. I have three different physical serial (RS232) ports and they are not USB-to-serial. Now MM probes all of them. I want MM to automatically detect the port the modem is connected to but there're another devices controlled by another daemon. If

Re: ModemManager serial port lock-files

2013-06-07 Thread Aleksander Morgado
> I have several serial ports in my system but also I have a daemon that > is responsible for communication with several devices connected to those > serial ports. This daemon runs as root. However when MM starts it tries > to find modem via writing to all serial ports registered in the system. >

ModemManager serial port lock-files

2013-06-07 Thread Dmitry Ivanyushin
I have several serial ports in my system but also I have a daemon that is responsible for communication with several devices connected to those serial ports. This daemon runs as root. However when MM starts it tries to find modem via writing to all serial ports registered in the system. That operat