Cell phone/modem name is too wide in nm-applet menu

Bug #387329 reported by Jonas Björk
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Fix Released
Undecided
Unassigned
network-manager-applet (Ubuntu)
Fix Released
Low
Alexander Sack

Bug Description

When I plug in my cell phone (Sony Ericsson C905i) with USB-cable nm-applet shows my cell phone name and makes the context menu too wide. I attach a screenshot that explains what i mean. I would prefer that the phone name was shown as "SEMC C905i" instead for easier reading in menu.

Tags: usability
Revision history for this message
Jonas Björk (jonasbjork) wrote :
Revision history for this message
Jonas Björk (jonasbjork) wrote :

Forgot: Ubuntu 9.04, network-manager-gnome 0.7.1~rc4.1-0ubuntu2

Revision history for this message
Alexander Sack (asac) wrote :

is it fixed in ~network-manager PPA for you?

Revision history for this message
Alexander Sack (asac) wrote :

in karmic this is somewhat fixed by bug

anyway, that patch isnt upstream as they want something like:

diff --git a/src/utils/utils.c b/src/utils/utils.c
index eee14e8..a69afe6 100644
--- a/src/utils/utils.c
+++ b/src/utils/utils.c
@@ -82,6 +82,7 @@ static char *ignored_phrases[] = {
        "Business Mobile Networks BV",
        "Mobile Broadband Minicard Composite Device",
        "Mobile Communications AB",
+ "Sony Ericsson Mobile AB",
        NULL
 };

Can you try this? Also please attach your outpof of nm-tool when having those menu entries.

Changed in network-manager-applet (Ubuntu):
assignee: nobody → Alexander Sack (asac)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Alexander Sack (asac) wrote :

> Can you try this? Also please attach your outpof of nm-tool when having those menu entries.

i am posting this, because the real problem here is that your device shows up _twice_ without that network-manager wouldnt use the long description in the first place.

On top of the nm-tool output, also attach your lshal when your mobile card is plugged in.

Revision history for this message
Alexander Sack (asac) wrote :
Revision history for this message
Jonas Björk (jonasbjork) wrote :

Alexander: I get two entries because Ubuntu identifies my cell phone as ttyACM0 and ttyACM1 . That's what I think.. :/ Output from dmesg when connecting USB-cable to cell phone:

[ 2081.870101] ehci_hcd 0000:00:1a.7: dma_pool_free buffer-2048, ffff880037890000/37890000 (bad dma)
[ 2701.704126] usb 1-3: new high speed USB device using ehci_hcd and address 5
[ 2701.850490] usb 1-3: configuration #1 chosen from 1 choice
[ 2701.869640] cdc_acm 1-3:1.1: ttyACM0: USB ACM device
[ 2701.887256] cdc_acm 1-3:1.3: ttyACM1: USB ACM device
[ 2701.910787] cdc_wdm 1-3:1.7: cdc-wdm0: USB WDM device
[ 2701.926882] usb 1-3: unsupported MDLM descriptors

Attaching my nm-tool output before 1) trying PPA and 2) trying your patch. Will try PPA and patch later today.

Revision history for this message
Jonas Björk (jonasbjork) wrote :

Ok, I downloaded https://launchpad.net/~network-manager/+archive/ppa/+files/network-manager-gnome_0.7.1-0ubuntu1~nm1~jaunty1_amd64.deb ( I have a Core2Duo 64bit ) and now it looks better :). Well, I am satisfied. When does it get into mainstream repos?

Revision history for this message
Alexander Sack (asac) wrote :

it wont. please check the patch, because that is something we could add.

Revision history for this message
Alexander Sack (asac) wrote :

i will see if i can find which patch is it that is missing to make only one of your devices being shown. can you please attach a complete syslog after pluggin in your device?

Revision history for this message
Jonas Björk (jonasbjork) wrote :

You mean the patch in https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/387329/comments/6 ? Shall I download the source code for NM from Ubuntu repo and apply patch or some other source package? I will help you on this one, but need to know what source package I should patch :)

I attach syslog regarding connecting my cell phone until it is available in nm-applet. Hope that helps.

Revision history for this message
Przemek K. (azrael) wrote :

I have the same bug with my USB HSDPA modem ZTE MF 626 which is shown in nm-applet as "ZTE Incorporated ZTE CDMA Technologies MSM".

Revision history for this message
Przemek K. (azrael) wrote :

BTW: my modem also appears twice in nm-applet.

summary: - Cell phone name is too wide
+ Cell phone/modem name is too wide
Przemek K. (azrael)
tags: added: usability
summary: - Cell phone/modem name is too wide
+ Cell phone/modem name is too wide in nm-applet menu
Revision history for this message
Alexander Sack (asac) wrote :

this is fixed in karmic:

* Upstream release 0.7.1
  * drop patches applied upstream
    - delete patches/fix_upstream_buildfailure.patch
    - update patches/series
  * adjust patches to new upstream code base
    - update patches/lp341940_use_ellipsized_menu_entries.patch
  * fix LP: #341940 - menu entries like device names can be overly long;
    we fix this by using ellipsized labels with proper tooltip to allow
    interested users to read the full text label
    - add patches/lp341940_use_ellipsized_menu_entries.patch
    - update patches/series

Changed in network-manager-applet (Ubuntu):
status: In Progress → Fix Released
Przemek K. (azrael)
Changed in hundredpapercuts:
status: New → Fix Released
Changed in hundredpapercuts:
milestone: none → round-8
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.