From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: bug#36498: modem["ttyUSB0"]: error starting PPP: Could not find "pppd" binary Date: Sat, 6 Jul 2019 12:46:04 +0200 Message-ID: <20190706104604.pvopw2ogc5cok2gh@pelzflorian.localdomain> References: <20190704144632.g4vzhkwekdf7q54e@pelzflorian.localdomain> <20190704160854.xaitrx6t2bjthi7a@pelzflorian.localdomain> <20190705032405.ep5dojl57kz7gjsa@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="io6tls4mysqo2e36" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45362) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjiCn-00064L-Cv for help-guix@gnu.org; Sat, 06 Jul 2019 06:46:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjiCm-00073n-1F for help-guix@gnu.org; Sat, 06 Jul 2019 06:46:09 -0400 Received: from pelzflorian.de ([5.45.111.108]:46348 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hjiCl-000720-Ar for help-guix@gnu.org; Sat, 06 Jul 2019 06:46:07 -0400 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Adam Mazurkiewicz Cc: 36498@debbugs.gnu.org, help-guix@gnu.org --io6tls4mysqo2e36 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 06, 2019 at 04:07:24AM +0000, Adam Mazurkiewicz wrote: > sob., 6 lip 2019 o 04:01 Adam Mazurkiewicz napisa=C5= =82(a): > > > > pt., 5 lip 2019 o 03:24 pelzflorian (Florian Pelz) > > napisa=C5=82(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 Pe= lz) 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=3D'org.freedesktop.ModemManager1' requested by ':1.3' > > (uid=3D0 pid=3D319 comm=3D"/gnu/store/97as7cp13ivsi97ia58gh18m3q6fc5h= i-networ") > > (using servicehelper) > > Jul 6 05:41:40 localhost ModemManager[407]: 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]: > > [1562384500.1841] modem-manager: ModemManager not available > > Jul 6 05:41:40 localhost NetworkManager[319]: > > [1562384500.1937] modem-manager: ModemManager now available > > Jul 6 05:41:42 localhost ModemManager[407]: 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 >=20 > 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 >=20 I assume you did try rebooting and unplugging and replugging your modem after each sudo -i cd =E2=80=A6/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]: Couldn't find supp= ort for device at '/sys/devices/pci0000:00/0000:00:16.0/0000:03:00. 0': not supported by any plugin=20 Jun 26 13:32:04 localhost ModemManager[16847]: Creating modem wit= h 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: Yours must be different at some point if it does not work. Regards, Florian --io6tls4mysqo2e36 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0002-only-for-testing-gnu-modem-manager-Activate-debug-mo.patch" >From f67a4859689acc08d8ad18ef5da7d27ed5d6ab56 Mon Sep 17 00:00:00 2001 From: Florian Pelz 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 --io6tls4mysqo2e36--