Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to start ModemManager in debug mode?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
orion777
Apprentice
Apprentice


Joined: 15 Mar 2017
Posts: 197
Location: Riga, Latvia

PostPosted: Thu Jan 02, 2020 12:59 pm    Post subject: How to start ModemManager in debug mode? Reply with quote

I need to play with AT commands, therefore the ModemManager should to be started with the --debug option.
I'm not sure how to do this, since the ModemManager is started via the NetworkManager as a child process (as far I know, because there are no ModemManager in the autostarts).
Code:
pi64 ~ # ps -ax | grep ModemManager
 2175 ?        Sl     0:05 /usr/sbin/ModemManager
 4562 pts/1    S+     0:00 grep --colour=auto ModemManager
pi64 ~ # rc-update | grep -i manager
       NetworkManager |      default
pi64 ~ #

Do somebody knows how to force the modemanager to be started in debug mode?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23462
Location: here

PostPosted: Thu Jan 02, 2020 1:18 pm    Post subject: Reply with quote

Never tried but following this howto you can try with
Code:
# /etc/init.d/NetworkManager stop
# /usr/sbin/ModemManager --debug
# /usr/sbin/NetworkManager --debug --log-level=DEBUG

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
orion777
Apprentice
Apprentice


Joined: 15 Mar 2017
Posts: 197
Location: Riga, Latvia

PostPosted: Fri Jan 03, 2020 7:14 pm    Post subject: Reply with quote

Thank You fedeliallalinea for the answer!

The problem is that the Modemmanages is started by the Networkmanages as a child, its is NOT started from the init.d.
Therefore, I have to kill the NetworkManager first, othervice it will restart killed ModemManager (and does not react on /etc/init.d/NetworkManager stop ):
1) kill -9 networkmanager's pid
2) kill -9 modemmanager's pid
3) /usr/sbin/ModemManager --debug
4) rc-service Networkmanager start

So yes, such approach is possible, but it can't be permanent... So, maybe some more legal approach exists?
Back to top
View user's profile Send private message
orion777
Apprentice
Apprentice


Joined: 15 Mar 2017
Posts: 197
Location: Riga, Latvia

PostPosted: Sun Jan 05, 2020 9:05 am    Post subject: Reply with quote

Can we start something with options from init.d? E.g. ModemManager --debug
However, the --debug option disables daemon mode...


Last edited by orion777 on Mon Jan 06, 2020 10:46 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23462
Location: here

PostPosted: Sun Jan 05, 2020 11:00 am    Post subject: Reply with quote

Maybe something with NetworkManager.conf?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum