Only enable modem when needed with kill switches

For privacy reasons I want to keep modem disabled unless I want to make a call or use internet via the modem.

I was expecting operating system on pinephone to find the modem once its powered back by the hardware kill-swich on the back of the device.

Doesn't work: once the modem's hardware kill-switch is "off", the modem does not re-appear in pinephone operating system when the hardware kill-switch is returned to "on" position.

I tried with postmarketOS, ubuntu touch and pure os for pinephone (purism guy says on Librem phone the switches are not requiring re-boot for re-activating the hardware, at least not wifi: ). Neither was able to detect modem when its re-enabled by the hardware kill-switch.

Is there any way to bring pinephone modem back to operating mode without system reboot after I flip its hardware kill switch from "off" to "on" position?

Thank you

on my Linux laptop (not a Pine product) the internal 4G modem sometimes 'disappears' after a suspend. I'm always able to enable it again and have it detected by modemmanager by resetting it using usb_modeswitch -R  -v vendorid -p productid

Update: just checked on my PinePhone, the Quectell LTE Modem is on USB, id:2c7c:0125
as root, running: 
usb_modeswitch -R -v 2c7c -p 0125
Did reset the modem. 



I also see Quectell LTE Modem on USB Bus 003, device 002: ID 2c7c:0125 on my PinePhone.

Problem is: when modem is hardware killed with physical switch flipped "off" and then back "on" - the modem does not re-appear in lsusb output.

At this point running as root
usb_modeswitch -R -v 2c7c -p 0125

Look for default devices ...
No devices in default mode found. Nothing to do. Bye!

It seems that after being killed with hardware kill-switch host has to reset the bus to enable the re-enumeration of the device (source Replicant devs:

Is there way to reset USB Bus 003 to force enumeration of attached USB devices?

Possibly Related Threads…
Thread Author Replies Views Last Post
  Supported Carrier and Modem Bands NachoMomma 4 1,900 03-23-2024, 02:00 PM
Last Post: Kevin Kofler
  power circuit can't charge battery and can't supply enough power for modem or wifi vortex 2 795 02-17-2024, 04:15 PM
Last Post: vortex
Bug PinePhone modem keeps "disappearing" Kevin Kofler 14 6,587 03-22-2023, 05:28 PM
Last Post: Kevin Kofler
  modem not working michelinux 0 1,033 02-16-2023, 04:56 AM
Last Post: michelinux
  modem not detected al_x 3 4,530 02-15-2023, 11:17 AM
Last Post: fxc
  firmware udate Quectel EG25-G modem alwi 7 6,024 07-06-2022, 01:43 PM
Last Post: user641
  Need command to tell what modem firmware I am on. purpletiger 4 3,227 07-06-2022, 12:35 PM
Last Post: Zebulon Walton
  The modem does not recognize Korean SIM cards (what?) bdicewk 9 4,692 06-13-2022, 04:12 AM
Last Post: zetabeta
  Modem Hardware bad? Not ready for 5g?? linux76 8 5,249 05-31-2022, 06:41 PM
Last Post: SwordfishII
Lightbulb [Volunteer needed]Too high DRAM clock speed MAY be causing you random crashes/freezes devrtz 108 148,988 04-20-2022, 11:44 AM
Last Post: biketool

Forum Jump:

Users browsing this thread: 1 Guest(s)