@jerdung
I have tried your given command and found that modem is registering and de-register continuously it self within 1 or 2 seconds as below,
#################################################################
console:/ # dmesg | grep -i âsierrâ
[ 9.711239] usbcore: registered new interface driver sierra_net
[ 9.794306] usbcore: registered new interface driver sierra
[ 9.794457] usbserial: USB Serial support registered for Sierra USB modem
[ 9.794474] sierra: v.1.7.46_android_generic_2:USB Driver for Sierra Wireless USB modems
[ 17.600332] sierra 1-1.2:1.0: Sierra USB modem converter detected
[ 17.607054] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB0
[ 17.614012] sierra 1-1.2:1.2: Sierra USB modem converter detected
[ 17.651489] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB1
[ 17.664660] sierra 1-1.2:1.3: Sierra USB modem converter detected
[ 17.729711] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB2
[ 17.955031] init: Parsing file /system/etc/init/rildsierra.rcâŚ
[ 30.054501] init: processing action (boot) from (/system/etc/init/rildsierra.rc:1)
[ 30.055781] init: Command âchmod 0755 /system/bin/dhcpcdâ action=boot (/system/etc/init/rildsierra.rc:9) took 0ms and failed: fchmodat() failed: Read-only file system
[ 30.056147] init: Command âchmod 0755 /system/bin/init.config.ipâ action=boot (/system/etc/init/rildsierra.rc:10) took 0ms and failed: fchmodat() failed: Read-only file system
[ 30.056494] init: Command âchmod 0755 /system/bin/init.dhcpcdâ action=boot (/system/etc/init/rildsierra.rc:11) took 0ms and failed: fchmodat() failed: Read-only file system
[ 30.106303] init: processing action (persist.sys.ril.type=QMI) from (/system/etc/init/rildsierra.rc:61)
[ 35.158141] init: processing action (persist.sys.ril.type=QMI) from (/system/etc/init/rildsierra.rc:61)
[ 49.958338] init: processing action (sys.boot_completed=1) from (/system/etc/init/rildsierra.rc:76)
[ 50.336983] init: processing action (sys.ril.modem.reset=1) from (/system/etc/init/rildsierra.rc:73)
[ 63.306518] init: Received control message âstartâ for âsierra_dhcpcdâ from pid: 893 (/vendor/bin/hw/rild -l /vendor/lib64/libsierra-ril.so â -a -i wwan0)
[ 63.308241] init: starting service âsierra_dhcpcdââŚ
[ 63.781938] init: Service âsierra_dhcpcdâ (pid 2815) exited with status 0
#####################################################################
cd /sys/bus/usb/devices/1-1
####################################################################
find . -name control -print -exec cat {} ;
####################################################################
./1-1.1/1-1.1:1.0/ep_02/power/control
auto
./1-1.1/1-1.1:1.0/ep_81/power/control
auto
./1-1.1/1-1.1:1.0/host0/scsi_host/host0/power/control
auto
./1-1.1/1-1.1:1.0/host0/target0:0:0/power/control
auto
./1-1.1/1-1.1:1.0/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0/power/control
auto
./1-1.1/1-1.1:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1/power/control
auto
./1-1.1/1-1.1:1.0/host0/target0:0:0/0:0:0:0/block/sda/power/control
auto
./1-1.1/1-1.1:1.0/host0/target0:0:0/0:0:0:0/power/control
on
./1-1.1/1-1.1:1.0/host0/target0:0:0/0:0:0:0/scsi_generic/sg0/power/control
auto
./1-1.1/1-1.1:1.0/host0/target0:0:0/0:0:0:0/scsi_device/0:0:0:0/power/control
auto
./1-1.1/1-1.1:1.0/host0/power/control
auto
./1-1.1/ep_00/power/control
auto
./1-1.1/power/control
on
./1-1.2/1-1.2:1.0/ep_01/power/control
auto
./1-1.2/1-1.2:1.0/ep_81/power/control
auto
./1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0/power/control
auto
./1-1.2/1-1.2:1.0/ttyUSB0/power/control
auto
./1-1.2/1-1.2:1.2/ep_02/power/control
auto
./1-1.2/1-1.2:1.2/ep_82/power/control
auto
./1-1.2/1-1.2:1.2/ep_83/power/control
auto
./1-1.2/1-1.2:1.2/ttyUSB1/tty/ttyUSB1/power/control
auto
./1-1.2/1-1.2:1.2/ttyUSB1/power/control
auto
./1-1.2/1-1.2:1.3/ep_03/power/control
auto
./1-1.2/1-1.2:1.3/ep_84/power/control
auto
./1-1.2/1-1.2:1.3/ep_85/power/control
auto
./1-1.2/1-1.2:1.3/ttyUSB2/tty/ttyUSB2/power/control
auto
./1-1.2/1-1.2:1.3/ttyUSB2/power/control
auto
./1-1.2/1-1.2:1.8/net/wwan0/power/control
auto
./1-1.2/1-1.2:1.8/ep_04/power/control
auto
./1-1.2/1-1.2:1.8/ep_86/power/control
auto
./1-1.2/1-1.2:1.8/ep_87/power/control
auto
./1-1.2/1-1.2:1.8/GobiQMI/qcqmi0/power/control
auto
./1-1.2/ep_00/power/control
auto
./1-1.2/power/control
on
./ep_00/power/control
auto
./power/control
auto
./1-1:1.0/1-1-port1/power/control
auto
./1-1:1.0/1-1-port2/power/control
auto
./1-1:1.0/1-1-port3/power/control
auto
./1-1:1.0/1-1-port4/power/control
auto
./1-1:1.0/ep_81/power/control
auto
#################################################################
echo auto > ./1-1.1/power/control
echo auto > ./1-1.2/power/control
################################################################
Modem is trying to go in suspend mode, but wake up after 1 second as shown below
Disconnected at 306 seconds and again wakeup at 308 seconds.
################################################################
dmesg | grep -i âsierrâ
[ 9.711239] usbcore: registered new interface driver sierra_net
[ 9.794306] usbcore: registered new interface driver sierra
[ 9.794457] usbserial: USB Serial support registered for Sierra USB modem
[ 9.794474] sierra: v.1.7.46_android_generic_2:USB Driver for Sierra Wireless USB modems
[ 17.600332] sierra 1-1.2:1.0: Sierra USB modem converter detected
[ 17.607054] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB0
[ 17.614012] sierra 1-1.2:1.2: Sierra USB modem converter detected
[ 17.651489] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB1
[ 17.664660] sierra 1-1.2:1.3: Sierra USB modem converter detected
[ 17.729711] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB2
[ 17.955031] init: Parsing file /system/etc/init/rildsierra.rcâŚ
[ 30.054501] init: processing action (boot) from (/system/etc/init/rildsierra.rc:1)
[ 30.055781] init: Command âchmod 0755 /system/bin/dhcpcdâ action=boot (/system/etc/init/rildsierra.rc:9) took 0ms and failed: fchmodat() failed: Read-only file system
[ 30.056147] init: Command âchmod 0755 /system/bin/init.config.ipâ action=boot (/system/etc/init/rildsierra.rc:10) took 0ms and failed: fchmodat() failed: Read-only file system
[ 30.056494] init: Command âchmod 0755 /system/bin/init.dhcpcdâ action=boot (/system/etc/init/rildsierra.rc:11) took 0ms and failed: fchmodat() failed: Read-only file system
[ 30.106303] init: processing action (persist.sys.ril.type=QMI) from (/system/etc/init/rildsierra.rc:61)
[ 35.158141] init: processing action (persist.sys.ril.type=QMI) from (/system/etc/init/rildsierra.rc:61)
[ 49.958338] init: processing action (sys.boot_completed=1) from (/system/etc/init/rildsierra.rc:76)
[ 50.336983] init: processing action (sys.ril.modem.reset=1) from (/system/etc/init/rildsierra.rc:73)
[ 63.306518] init: Received control message âstartâ for âsierra_dhcpcdâ from pid: 893 (/vendor/bin/hw/rild -l /vendor/lib64/libsierra-ril.so â -a -i wwan0)
[ 63.308241] init: starting service âsierra_dhcpcdââŚ
[ 63.781938] init: Service âsierra_dhcpcdâ (pid 2815) exited with status 0
[ 306.826115] kfree at sierra_remove_sysfs_attrs
[ 306.826149] sierra ttyUSB0: Sierra USB modem converter now disconnected from ttyUSB0
[ 306.828737] sierra 1-1.2:1.0: device disconnected
[ 306.838547] kfree at sierra_remove_sysfs_attrs
[ 306.838580] sierra ttyUSB1: Sierra USB modem converter now disconnected from ttyUSB1
[ 306.840314] sierra 1-1.2:1.2: device disconnected
[ 306.850230] kfree at sierra_remove_sysfs_attrs
[ 306.850265] sierra ttyUSB2: Sierra USB modem converter now disconnected from ttyUSB2
[ 306.852372] sierra 1-1.2:1.3: device disconnected
[ 308.779099] sierra 1-1.2:1.0: Sierra USB modem converter detected
[ 308.791422] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB0
[ 308.801016] sierra 1-1.2:1.2: Sierra USB modem converter detected
[ 308.808876] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB1
[ 308.819509] sierra 1-1.2:1.3: Sierra USB modem converter detected
[ 308.827939] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB2
Can you please let me know what is the issue here?
And one more question what is the way to put the modem in low power mode, during sleep we also want to configure modem in LPM?
Thanks,
Kevil