GNOME Bugzilla – Bug 332981
Use udev for auto detection and setup of device
Last modified: 2018-08-17 18:47:56 UTC
Would it be possible for the gnome-phone-manager to automatically find the correct device to use (/dev/ttyUSB...)? This will greatly improve the setup part of using the program. I guess one could use HAL for this.
It would be possible indeed. We would need to add a "phone" style property. Could you attach the output of lshal with the phone plugged in, and let me know how you usually access the device?
Created attachment 62319 [details] Output from lshal with phone connected
Sure, my Sony Ericsson T300 is connected via a usb cable. It uses the driver pl2303. I usally look in dmesg to see what device to use (this time it was /dev/ttyUSB0). See the attachment for lshal output (and grep for pl2303)
There's a problem with that. For DKU-2 and family cables you can recognize if it is feasible byt checking device class and subclass. For the serial port converters (all pl2303 family and similiar) it seems to be not possible. I am afraid the only way is to use (vendorid, productsid) list like it is done in the kernel drivers. It would be good not to duplicate this configuration all over the place and for example extend HAL configuration with the information that such device offers serial port access. Remember also, that for usb2serial cables you will just detect the cable presence, not the phone presence. But that's acceptable I think.
Using HAL, we could detect: - IrDA ports - Serial ports - USB devices such as the DKU2 cables. Most of the changes would be in gnome-phone-manager's prefs, in ui.c
Created attachment 122785 [details] gpm log when sending a long message.
Comment on attachment 122785 [details] gpm log when sending a long message. Not related to the bug in any way...
Updating summary for latest platform changes.
gnome-phone-manager is not under active development anymore since 2013. Its codebase has been archived: https://gitlab.gnome.org/Archive/phonemgr/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.