Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

How to start ModemManager in debug mode?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
orion777
Apprentice
Apprentice
Posts: 207
Joined: Wed Mar 15, 2017 11:05 am
Location: Riga, Latvia

How to start ModemManager in debug mode?

  • Quote

Post by orion777 » Thu Jan 02, 2020 12:59 pm

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: Select all

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?
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Jan 02, 2020 1:18 pm

Never tried but following this howto you can try with

Code: Select all

# /etc/init.d/NetworkManager stop
# /usr/sbin/ModemManager --debug
# /usr/sbin/NetworkManager --debug --log-level=DEBUG
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
orion777
Apprentice
Apprentice
Posts: 207
Joined: Wed Mar 15, 2017 11:05 am
Location: Riga, Latvia

  • Quote

Post by orion777 » Fri Jan 03, 2020 7:14 pm

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?
Top
orion777
Apprentice
Apprentice
Posts: 207
Joined: Wed Mar 15, 2017 11:05 am
Location: Riga, Latvia

  • Quote

Post by orion777 » Sun Jan 05, 2020 9:05 am

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.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sun Jan 05, 2020 11:00 am

Maybe something with NetworkManager.conf?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic