all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: Adam Mazurkiewicz <trzczy@gmail.com>
Cc: 36498@debbugs.gnu.org, help-guix@gnu.org
Subject: Re: bug#36498: modem["ttyUSB0"]: error starting PPP: Could not find "pppd" binary
Date: Sat, 6 Jul 2019 12:46:04 +0200	[thread overview]
Message-ID: <20190706104604.pvopw2ogc5cok2gh@pelzflorian.localdomain> (raw)
In-Reply-To: <CALStFoGWmvrUK=H7BifT427vtr5qPyJ-EaLUUPKzJ9p5EYTt8g@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3536 bytes --]

On Sat, Jul 06, 2019 at 04:07:24AM +0000, Adam Mazurkiewicz wrote:
> sob., 6 lip 2019 o 04:01 Adam Mazurkiewicz <trzczy@gmail.com> napisał(a):
> >
> > pt., 5 lip 2019 o 03:24 pelzflorian (Florian Pelz)
> > <pelzflorian@pelzflorian.de> napisał(a):
> > >
> > > On Thu, Jul 04, 2019 at 06:08:55PM +0200, pelzflorian (Florian Pelz) wrote:
> > > > On Thu, Jul 04, 2019 at 04:46:32PM +0200, pelzflorian (Florian Pelz) wrote:
> > > > > (git
> > > > reset --hard master, then git am this-new-patch and reconfigure.)
> > > >
> > >
> > > Sorry, I meant to write `git reset --hard master^` with a ^ to get rid
> > > of the previous patch.
> > >
> > > I would be much obliged if you could test, because my modem works
> > > without NetworkManager needing to find pppd.
> > >
> > > Regards,
> > > Florian
> >
> > Thanks for your replies, Florian. I used the patch from your first
> > reply. Then the ability to choose the modem disappeared from nm. Then
> > I typed out the git reset command you mentioned in your third reply
> > and it still was a lack of the modem option in nm. Log messages are
> > these now:
> >
> > s@s /root/debianek/home/s/mirrors/work-tree/guix$ cat
> > /var/log/messages |grep -i modem |grep 'Jul  6 05:41'
> > Jul  6 05:41:40 localhost dbus-daemon[316]: [system] Activating
> > service name='org.freedesktop.ModemManager1' requested by ':1.3'
> > (uid=0 pid=319 comm="/gnu/store/97as7cp13ivsi97ia58gh18m3q6fc5hi-networ")
> > (using servicehelper)
> > Jul  6 05:41:40 localhost ModemManager[407]: <info>  ModemManager
> > (version 1.4.14) starting in system bus...
> > Jul  6 05:41:40 localhost dbus-daemon[316]: [system] Successfully
> > activated service 'org.freedesktop.ModemManager1'
> > Jul  6 05:41:40 localhost NetworkManager[319]: <info>
> > [1562384500.1841] modem-manager: ModemManager not available
> > Jul  6 05:41:40 localhost NetworkManager[319]: <info>
> > [1562384500.1937] modem-manager: ModemManager now available
> > Jul  6 05:41:42 localhost ModemManager[407]: <info>  Couldn't find
> > support for device at
> > '/sys/devices/pci0000:00/0000:00:1c.2/0000:02:00.0': not supported by
> > any plugin
> > s@s /root/debianek/home/s/mirrors/work-tree/guix$
> >
> > Regards,
> > Adam
> 
> And I used the patch you add in your second reply. So the log messages
> are after the git reset command and using the second patch.
> Regards,
> Adam
> 

I assume you did try rebooting and unplugging and replugging your
modem after each
sudo -i
cd …/guix
./pre-inst-env guix system reconfigure /etc/config.scm


It seems you are using a Huawei modem like me.  For me my
old /var/log/messages contains these consecutive lines on one boot:

Jun 26 13:31:50 localhost ModemManager[16847]: <info>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:16.0/0000:03:00.
0': not supported by any plugin 
Jun 26 13:32:04 localhost ModemManager[16847]: <info>  Creating modem with plugin 'Huawei' and '5' ports


Normally only the second line appears.

Can you try using the attached patch *in addition to* the second patch
0001-gnu-network-manager-Add-ppp-input-configure-flag-and.patch
so /var/log/messages contains debug info on the ModemManager plugins?

When I reconfigure with this, reboot, wait for everything to start and
then plug in the modem, these are the messages I get from
ModemManager: <https://pelzflorian.de/files/messages.txt>
Yours must be different at some point if it does not work.

Regards,
Florian

[-- Attachment #2: 0002-only-for-testing-gnu-modem-manager-Activate-debug-mo.patch --]
[-- Type: text/plain, Size: 1595 bytes --]

From f67a4859689acc08d8ad18ef5da7d27ed5d6ab56 Mon Sep 17 00:00:00 2001
From: Florian Pelz <pelzflorian@pelzflorian.de>
Date: Sat, 6 Jul 2019 11:33:37 +0200
Subject: [PATCH 2/2] [only for testing] gnu: modem-manager: Activate debug
 mode.

* gnu/packages/freedesktop.scm (modem-manager)[arguments]: Add --debug
command-line argument to dbus service.
---
 gnu/packages/freedesktop.scm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 4b37ffdf3c..70d64b1d30 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -998,7 +998,19 @@ which speak the Qualcomm MSM Interface (QMI) protocol.")
          ;; FIXME: Without this flag the build fails with "error: assignment
          ;; from incompatible pointer type" whenever the return value of
          ;; "g_object_ref" is assigned to "ctx->self".
-         "--disable-more-warnings")))
+         "--disable-more-warnings")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'set-debug
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute*
+                 (string-append
+                  (assoc-ref outputs "out")
+                  "/share/dbus-1/system-services/\
+org.freedesktop.ModemManager1.service")
+               (("sbin/ModemManager")
+                "sbin/ModemManager --debug"))
+             #t)))))
     (native-inputs
      `(("glib:bin" ,glib "bin") ; for glib-mkenums
        ("gobject-introspection" ,gobject-introspection)
-- 
2.22.0


  reply	other threads:[~2019-07-06 10:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-04 13:48 modem["ttyUSB0"]: error starting PPP: Could not find "pppd" binary Adam Mazurkiewicz
2019-07-04 14:46 ` pelzflorian (Florian Pelz)
2019-07-04 16:08   ` bug#36498: " pelzflorian (Florian Pelz)
2019-07-05  3:24     ` pelzflorian (Florian Pelz)
2019-07-06  4:01       ` Adam Mazurkiewicz
2019-07-06  4:07         ` Adam Mazurkiewicz
2019-07-06 10:46           ` pelzflorian (Florian Pelz) [this message]
2019-07-06 13:02             ` pelzflorian (Florian Pelz)
2019-07-07 18:55               ` Adam Mazurkiewicz
2019-07-07 20:28                 ` pelzflorian (Florian Pelz)
     [not found]                   ` <CALStFoEi2HkU-hib0C_iYfZygwowyyD5Hv=magCfNpwGctL8-A@mail.gmail.com>
2019-07-12 19:13                     ` Adam Mazurkiewicz
2019-07-12 20:14                       ` pelzflorian (Florian Pelz)
2019-07-13  7:19                         ` pelzflorian (Florian Pelz)
2019-08-11 20:38                           ` Adam Mazurkiewicz
2019-07-06 10:46           ` pelzflorian (Florian Pelz)
2019-07-05  3:24     ` pelzflorian (Florian Pelz)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190706104604.pvopw2ogc5cok2gh@pelzflorian.localdomain \
    --to=pelzflorian@pelzflorian.de \
    --cc=36498@debbugs.gnu.org \
    --cc=help-guix@gnu.org \
    --cc=trzczy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.