Postitatud: 06.07.2017, 19:27
Arvan, et homme oled siin teemas tagasi 
Kood: Vali kõik
# Huawei E353 E3131
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="usb_modeswitch '%b/%k'"Mitte Restart vaid ikka Shutdown ja siis uuesti tööle kuna Restardi ajal, tihti, ei katkestata USB-s olevaid toiminguid.karlsson kirjutas:Lisa see rida faili (vaata eelmist postitust).
Võta netipulk arvuti tagant ära ja tee arvutile restart.
Vaata kas midagi muutub.

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubkarlsson kirjutas:Lugesin väheke. Ikaldus on seepärast, et huawei pulkadel on storage ja modem reziimid olemas. Sul tõenäoliselt valitakse koheselt storage mode. Vaja oleks, et valitaks modem mode.
Pane pulk sisse ja kirjuta siia mida väljastab käsk:
sudo lsusb
Mul on etc-s vaid kaust "/etc/modules-load.d", milles failid "cups-filters.conf" ja "modules.conf". Kas pean selle rea viimasesse faili lisama?643 kirjutas:Kas nii ei saa:
rida sinna /etc/modules
ubserial vendor=0x12d1 product=0x1506
Peale rebooti töötab, vana meetod.
Töölaud: Gnome 42.4 (Wayland)643 kirjutas:Põhimõte on see, et arvuti alglaadimisel laeb mooduli kernelisse ja siis saab draiverit kasutada.
sa võid luua juure õigusega
/etc/modules faili
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
siis saad sinna panna vajaliku rea.
KÕIGE PAREM on et MIS TÖÖLAUDA KASUTAD ja mis LINUXI DISTRO VERSIOON SUL ON?
näiteks peab olema graafiliste rakenduste mugavaks kasutamiseks olema pakett:
mobile-broadband-provider-info
network-manager-gnome (kui kasutad gnome toetavaid töölaudu)
ja ka usb modeswitch
Peale taaskäivitust süttib netipulgal sinakas tuli, mis näitas Windows 10-s, et ühendus internetiga olemas ja nett toimis aga Ubuntus ei suuda internetti ühenduda. Ubuntu näitab teadet, et "Mobile Broadband" kaust/ketas tuvastatud ja avanedes näeb netipulga sisu (.exe failid jne). Ubuntu sätetes ei ilmu mobiilse andmeside kategooria, vaid Võrk ja Wi-Fi.643 kirjutas:Kas nii ei saa:
rida sinna /etc/modules
ubserial vendor=0x12d1 product=0x1506
Peale rebooti töötab, vana meetod.

Tegin õpetuse järgi aga ikka sama seis.overflow kirjutas:Kui faile näed siis on pulk storage mode. Sul vaja cellular mode interneti jaoks.
Näiteks..
https://techship.com/faq/how-to-change- ... x-systems/
Kood: Vali kõik
USB_ModeSwitch log from Tue Nov 15 16:51:22 EET 2022
Raw parameters: --switch-mode 8-1:1.0
Use global config file: /etc/usb_modeswitch.conf
Use global config file: /etc/usb_modeswitch.conf
Use top device dir /sys/bus/usb/devices/8-1
Check class of first interface ...
Interface 0 class is 08.
----------------
USB values from sysfs:
manufacturer Huawei Technologies
product HUAWEI Mobile
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
ConfigList: /etc/usb_modeswitch.d/12d1:1505 /usr/share/usb_modeswitch/12d1:1505 pack/12d1:1505 pack/
SCSI attributes not needed, move on
Check config: /etc/usb_modeswitch.d/12d1:1505
! matched. Read config data
Use config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
Command line:
usb_modeswitch -W -D -u -1 -b 8 -g 8 -v 12d1 -p 1505 -f $flags(config)
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
Read long config from command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.6.0 (C) Josua Dietze 2017
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1505
TargetVendor= 0x12d1
TargetProduct= 0x1505
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
System integration mode enabled
Use given bus/device number: 008/008 ...
Look for default devices ...
bus/device number matched
found USB ID 12d1:1505
vendor ID matched
product ID matched
Found devices in default mode (1)
Get the current device configuration ...
Use interface number 0
with class 8
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active drivers ...
OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Read the response to message 1 (CSW) ...
Response reading failed (error -9)
Device is gone, skip any further commands
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Check success of mode switch for max. 20 seconds ...
Wait for device file system (1 sec.) ...
Wait for device file system (2 sec.) ...
Wait for device file system (3 sec.) ...
Wait for device file system (4 sec.) ...
Wait for device file system (5 sec.) ...
Wait for device file system (6 sec.) ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Wait for device file system (15 sec.) ...
Wait for device file system (16 sec.) ...
Wait for device file system (17 sec.) ...
Wait for device file system (18 sec.) ...
Read attributes ...
Read attributes ...
Target config not matching - current values are
8-1:1.0/bInterfaceClass: ff
bConfigurationValue: 1
bNumConfigurations: 1
busnum: 8
devnum: 17
idProduct: 1506
idVendor: 12d1
manufacturer: Huawei Technologies
product: HUAWEI Mobile
serial:
Mode switching may have failed. ExitKood: Vali kõik
USB_ModeSwitch log from Tue Nov 15 23:25:33 EET 2022
Raw parameters: --symlink-name /devices/pci0000:00/0000:00:10.1/usb8/8-2/8-2:1.2/ttyUSB2/tty/ttyUSB2
Use global config file: /etc/usb_modeswitch.conf
Use global config file: /etc/usb_modeswitch.conf
My name is ttyUSB2
Check my endpoints ...
in /sys/devices/pci0000:00/0000:00:10.1/usb8/8-2/8-2:1.2
check ep_03 ...
check ep_84 ...
--> I am not an interrupt port
Return empty name and exit