[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2020-11-03 Thread Gunnar Hjalmarsson
@RussianNeuroMancer: This bug is closed, so please file a new bug if you have found a new issue. OTOH, an issue with Linux 5.9 isn't reasonably an Ubuntu bug yet. If you think there is a need to modify usb-modeswitch to work with Linux 5.9, then I think it's best to start a new topic in the

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2020-11-03 Thread RussianNeuroMancer
*on Ubuntu 20.10 with Linux 5.8 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to usb-modeswitch in Ubuntu. https://bugs.launchpad.net/bugs/1800794 Title: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE Status in

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2020-11-03 Thread RussianNeuroMancer
Issue is no longer reproducible on Linux 5.8, although on 5.9 there is regression: https://bugzilla.kernel.org/show_bug.cgi?id=209469 ** Bug watch added: Linux Kernel Bug Tracker #209469 https://bugzilla.kernel.org/show_bug.cgi?id=209469 -- You received this bug notification because you are

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2020-06-30 Thread Launchpad Bug Tracker
This bug was fixed in the package usb-modeswitch - 2.6.0-2ubuntu1 --- usb-modeswitch (2.6.0-2ubuntu1) groovy; urgency=medium * Resynchronize on Debian * Remove dispatcher-c-rewrite, it has issues and no active maintainer (LP: #1800794) * debian/rules: - don't use the

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2020-06-22 Thread Sebastien Bacher
** Changed in: usb-modeswitch (Ubuntu) Status: In Progress => Incomplete -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to usb-modeswitch in Ubuntu. https://bugs.launchpad.net/bugs/1800794 Title: usb-modeswitch can't apply

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-23 Thread RussianNeuroMancer
Currently I doesn't have access to hardware. I will try to check /run/usb_modeswitch/current_cfg content with latest build from PPA this Friday, or next week. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to usb-modeswitch in Ubuntu.

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-16 Thread Mathieu Trudel-Lapierre
So with my PPA version, what do you have in /run/usb_modeswitch/current_cfg then? I suspect the program is crashing, I probably made a small mistake in the patch? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to usb-modeswitch in Ubuntu.

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-10 Thread RussianNeuroMancer
I referring to the variant with the TCL dispatcher in the first PPA. You described this version in #4 as "dispatcher-c-rewrite.patch disabled" so this is why I call it like this. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-09 Thread Gunnar Hjalmarsson
Thanks! I'll leave it to Mathieu to ask possible follow-up questions. However, there is one thing I wonder ATM: When you say "with disabled dispatcher-c-rewrite.patch" above, are you then talking about not using a dispatcher at all, or are you referring to the variant with the TCL dispatcher in

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-09 Thread RussianNeuroMancer
Log of usb-modeswitch 2.5.2+repack0-2ubuntu2~mtrudel1 and with /usr/share/usb_modeswitch/03f0:0857 (Configuration=3) ** Attachment added: "usb_modeswitch.log" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1800794/+attachment/5287517/+files/usb_modeswitch.log -- You received

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-09 Thread RussianNeuroMancer
Log of usb-modeswitch 2.5.2+repack0-2ubuntu2~mtrudel1 and without /usr/share/usb_modeswitch/03f0:0857 ** Attachment added: "usb_modeswitch.log" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1800794/+attachment/5287516/+files/usb_modeswitch.log -- You received this bug

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-09 Thread RussianNeuroMancer
Log of usb-modeswitch 2.5.2+repack0-2ubuntu1 from Ubuntu eoan repository and with /usr/share/usb_modeswitch/03f0:0857 (Configuration=3) ** Attachment added: "usb_modeswitch.log" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1800794/+attachment/5287518/+files/usb_modeswitch.log

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-09 Thread RussianNeuroMancer
Shortly, 2.5.2+repack0-2ubuntu2~mtrudel1 version does not work with or without /usr/share/usb_modeswitch/03f0:0857 I created /usr/share/usb_modeswitch/03f0:0857 with Configuration=3 specifically to check if 2.5.2+repack0-2ubuntu2~mtrudel1 can behave at least like usb-modeswitch

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-09 Thread RussianNeuroMancer
Just in case I want to clarify that I did mistake in #19 and #22 - I totally forgot that besides configuration file I also added couple of lines with modem id's to /lib/udev/rules.d/40-usb_modeswitch.rules: # HP lt4210 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0857", RUN+="usb_modeswitch '/%k'"

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-09 Thread Gunnar Hjalmarsson
@RussianNeuroMancer: With your log files as guidance, Mathieu has made several modifications of dispatcher-c-rewrite.patch, which I put in the second PPA: https://launchpad.net/~gunnarhj/+archive/ubuntu/usb-modeswitch2 Any chance you can try that too? -- You received this bug notification

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-05 Thread RussianNeuroMancer
> i.e. it addresses the problem description in the bug summary: "usb- modeswitch can't apply Configuration=0 to Snapdragon X12 LTE". Is that correct? Yes. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to usb-modeswitch in Ubuntu.

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-05 Thread Gunnar Hjalmarsson
@RussianNeuroMancer: Thanks for the additional info. From what you now say, and unlike how I understood comment #14, the newline fix *does* make a difference, i.e. it addresses the problem description in the bug summary: "usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE". Is that

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-05 Thread RussianNeuroMancer
So last time (#16) usb-modeswitch service failed for me because there was no configuration for this modem in usb-modeswitch-data - result log is in #20 It's possible to workaround this be creating configuration manually (#21) but version without dispatcher-c-rewrite.patch is more convenient - it

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-05 Thread RussianNeuroMancer
Log of usb-modeswitch with fixed dispatcher-c-rewrite.patch and without /usr/share/usb_modeswitch/03f0:0857 ** Attachment added: "usb_modeswitch.log" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1800794/+attachment/5286995/+files/usb_modeswitch.log -- You received this bug

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-05 Thread RussianNeuroMancer
Log of usb-modeswitch with fixed dispatcher-c-rewrite.patch and with /usr/share/usb_modeswitch/03f0:0857 (Configuration=0) ** Attachment added: "usb_modeswitch.log" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1800794/+attachment/5286996/+files/usb_modeswitch.log -- You

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-05 Thread RussianNeuroMancer
Log of usb-modeswitch with disabled dispatcher-c-rewrite.patch and without /usr/share/usb_modeswitch/03f0:0857 ** Attachment added: "usb_modeswitch_2-3" https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1800794/+attachment/5286994/+files/usb_modeswitch_2-3 -- You received this

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-05 Thread Mathieu Trudel-Lapierre
Rather than pasting just a single error line, please include the full debug log for running usb-modeswitch. You can do that by modifying /etc/usb_modeswitch.conf: EnableLogging=1 And looking under /var/log/ for the log file written by usb-modeswitch after it has run. Having the full file means

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-03 Thread Gunnar Hjalmarsson
So to summarize you found the newline issue, but that proved to not be related to the error message you get, even if fixing it may be necessary as a partial solution. If I modify the test script by commenting the newline fix I get: File "/lib/modules/5.0.0-25-generic

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-09-01 Thread RussianNeuroMancer
> Is that the same error you get when you run the usb-modeswitch version in the Ubuntu archive? Yes, same error: "usb_modeswitch_dispatcher[3587]: Could not read attribute: No such file or directory" Installed version is: 2.5.2+repack0-2ubuntu1 > Can you please run test Sure, output is: ~$

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-30 Thread Gunnar Hjalmarsson
@RussianNeuroMancer: Thanks for testing! Is that the same error you get when you run the usb-modeswitch version in the Ubuntu archive? Attached please find a test script I put together. Can you please run test: ./test and let us know what it outputs. When I run it, it says: File

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-30 Thread RussianNeuroMancer
> Any chance you can test this variant too, before I ask a sponsor to upload the patch? This variant fail to apply configuration with following error: > usb_modeswitch_dispatcher[2373]: Could not read attribute: No such file or directory Probably there is other issues besides new line. -- You

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-28 Thread Gunnar Hjalmarsson
@Josua: Thanks for your answer! (I didn't see it before posting the debdiff.) I may make an attempt with install-static later then. Possibly a better alternative for Ubuntu (easier maintenance) than keeping the C patch. -- You received this bug notification because you are a member of Desktop

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-28 Thread Gunnar Hjalmarsson
There is no enthusiasm among the Ubuntu developers to go back to a TCL dispatcher, so I have made an alternative fix via the attached debdiff where I simply modified the C patch by removing the problematic newline. Built with the modified patch in this PPA:

Re: [Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-28 Thread Josua Dietze
Am 27. August 2019 19:17:09 GMT+02:00 schrieb Gunnar Hjalmarsson <1800...@bugs.launchpad.net>: >@Josua: Thanks for that explanation. > >Since you are here, may I take the opportunity to ask a question. I >think that Mathieu would prefer that TCL somehow is compiled into a >binary, and that's what

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-27 Thread Gunnar Hjalmarsson
@Josua: Thanks for that explanation. Since you are here, may I take the opportunity to ask a question. I think that Mathieu would prefer that TCL somehow is compiled into a binary, and that's what README indicates will happen with the installed- shared option. But Debian builds with

Re: [Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-27 Thread Josua Dietze
Am 27. August 2019 04:04:34 GMT+02:00 schrieb Gunnar Hjalmarsson <1800...@bugs.launchpad.net>: > > The upstream source has a jim/ folder with a lot of stuff, but that > folder is excluded in the Debian/Ubuntu source. The inclusion of the jim shell code is just meant to be a suggestion for users

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-27 Thread Gunnar Hjalmarsson
@RussianNeuroMancer: Thanks for confirming. Then we can fix this bug either by modifying dispatcher-c-rewrite.patch or by replacing it with upstream's TCL code (as is done in the PPA version). I'm hoping for Mathieu's input on the latter option. It would make maintenance easier going forward,

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-27 Thread RussianNeuroMancer
> Does this possibly address the issue you are having? Yes, I can confirm that with Configuration=0 in /usr/share/usb_modeswitch/03f0:0857 and usb-modeswitch package from ppa:gunnarhj/usb-modeswitch usb-modeswitch service automatically switch bConfigurationValue of HP lt4220 (Snapdragon X12 LTE)

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-26 Thread Lars Melin
As RussianNeuroMancer correctly pointed out the bug is in the concatenation of the strings MODULES_PATH, kversion, and CDC_MBIM_DRIVER_PATH into cdc_mbim_module_path. The ending linefeed char in kversion is the culprit and it makes the dispatcher unable to detect the presence of a cdc-mbim

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-26 Thread Gunnar Hjalmarsson
On 2019-08-26 23:42, Gunnar Hjalmarsson wrote: > I built usb-modeswitch with tcl8.6-dev and > dispatcher-c-rewrite.patch disabled, and mobile broadband still works > with my old USB thing. > > No extra runtime depends. That does not make sense, apparently. Changed it so the usb-modeswitch

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-26 Thread Gunnar Hjalmarsson
I built usb-modeswitch with tcl8.6-dev and dispatcher-c-rewrite.patch disabled, and mobile broadband still works with my old USB thing. No extra runtime depends. https://launchpad.net/~gunnarhj/+archive/ubuntu/usb-modeswitch @Mathieu: Would appreciate your input. Would this be a suitable step

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-26 Thread RussianNeuroMancer
** Changed in: usb-modeswitch (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to usb-modeswitch in Ubuntu. https://bugs.launchpad.net/bugs/1800794 Title: usb-modeswitch can't apply

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-26 Thread RussianNeuroMancer
>From my understating this issue boils down to not dropping new line symbol from kernel version string when function in C program check presence of cdc_mbim kernel module. It can’t find cdc_mbim kernel module because it looking in folder that doesn’t exist, so automatic changing LTE modem mode to

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-26 Thread RussianNeuroMancer
> Please include all the debugging information you can here check_mbim_available function was modified like this: check_mbim_available (void) { int kver_fd = -1; ssize_t read_count; char kversion[100]; char *cdc_mbim_module_path; struct stat buf; kver_fd = open(OSRELEASE_FILE,

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-26 Thread Mathieu Trudel-Lapierre
Please describe the problem here, rather than in forum posts. It's not helpful to have to go through various pages and posts from different people, with information that is potentially irrelevant to the bug. To compound to the situation, pastebins have disappeared by now. Please include all the

[Desktop-packages] [Bug 1800794] Re: usb-modeswitch can't apply Configuration=0 to Snapdragon X12 LTE

2019-08-25 Thread Norbert
** Tags added: cosmic disco eoan ** Tags removed: cosmic -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to usb-modeswitch in Ubuntu. https://bugs.launchpad.net/bugs/1800794 Title: usb-modeswitch can't apply Configuration=0 to