Conectar Motorola Moto G 1a Generacion a un Linux

Categorías:

Recientemente vi la necesidad de conectar por USB el telefono que tenia anteriormente, lo curioso de esto es que el Moto G cuando lo conectaba por USB a un linux, aunque se detectaba bien por el sistema operativo… ejecutando dmesg podria ver la deteccion del telefono por parte del sistema Linux

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[513090.676174] usb 1-6: new high-speed USB device number 22 using xhci_hcd
[513090.841627] usb 1-6: New USB device found, idVendor=22b8, idProduct=2e82
[513090.841630] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[513090.841632] usb 1-6: Product: XT1032
[513090.841633] usb 1-6: Manufacturer: motorola
[513090.841634] usb 1-6: SerialNumber: TA8900G7B2
[513090.676174] usb 1-6: new high-speed USB device number 22 using xhci_hcd [513090.841627] usb 1-6: New USB device found, idVendor=22b8, idProduct=2e82 [513090.841630] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [513090.841632] usb 1-6: Product: XT1032 [513090.841633] usb 1-6: Manufacturer: motorola [513090.841634] usb 1-6: SerialNumber: TA8900G7B2
[513090.676174] usb 1-6: new high-speed USB device number 22 using xhci_hcd
[513090.841627] usb 1-6: New USB device found, idVendor=22b8, idProduct=2e82
[513090.841630] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[513090.841632] usb 1-6: Product: XT1032
[513090.841633] usb 1-6: Manufacturer: motorola
[513090.841634] usb 1-6: SerialNumber: TA8900G7B2

El sistema automaticamente no lo montaba…

Para ello, tuve que buscar en Internet , encontrando que si editaba el archivo /lib/udev/rules.d/69-libmtp.rules, podria tener acceso al telefono.

Basta con agregar el siguiente contenido al final del archivo

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# Motorola Moto G (MTP+?)
ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e82", SYMLINK+="libmtp-{29abae026baad3be178e8b4d9df8b452ab37360abfdefacab414000aba9cdfd4}k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
# Motorola Moto G (MTP+?) ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e82", SYMLINK+="libmtp-{29abae026baad3be178e8b4d9df8b452ab37360abfdefacab414000aba9cdfd4}k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
# Motorola Moto G (MTP+?)
ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e82", SYMLINK+="libmtp-{29abae026baad3be178e8b4d9df8b452ab37360abfdefacab414000aba9cdfd4}k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

Es importante poner el idVendor y el idProduct tal como aparecen en la salida de el comando dmesg

Con esto reiniciamos el servicio udev, este comando lo ejecuto en un Centos 7

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
└─> sudo service systemd-udevd restart
Redirecting to /bin/systemctl restart systemd-udevd.service
└─> sudo service systemd-udevd restart Redirecting to /bin/systemctl restart systemd-udevd.service
└─> sudo service systemd-udevd restart
Redirecting to /bin/systemctl restart  systemd-udevd.service

Y Listo el pollo, ya solo resta conectar el telefono por USB y podemos accederlo al sistema sin problemas.

Tomado de: https://blog.tausys.de/2014/01/31/linux-mint-16-und-moto-g-mtp/

Sin respuestas

Deja un comentario