Sony Ericsson P1i MP3 player for HAL

Bug #305249 reported by Milan Knizek on 2008-12-04
Affects Status Importance Assigned to Milestone
hal-info (Ubuntu)
Martin Pitt

Bug Description

Binary package hint: hal-info

Mobile phone Sony Ericsson P1i (capable of playing MP3, etc.) is not recognised as a portable media player in Ubuntu 8.10.

$ lsusb | grep Sony
Bus 002 Device 003: ID 0fce:e092 Sony Ericsson Mobile Communications AB

$ hal-device
0: udi = '/org/freedesktop/Hal/devices/volume_label_PHONE'
  volume.block_size = 512 (0x200) (int)
  volume.num_blocks = 15755046 (0xf06726) (uint64)
  volume.size = 8066583552 (0x1e0ce4c00) (uint64)
  linux.hotplug_type = 3 (0x3) (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Sony_Ericsson_Mobile_Communications_P1i_35703301389798_0_0' (string)
  info.capabilities = { 'volume', 'block', 'access_control' } (string list)
  info.product = 'PHONE' (string)
  access_control.file = '/dev/sdb' (string)
  block.device = '/dev/sdb' (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_label_PHONE' (string)
  access_control.type = 'removable-block' (string)
  block.major = 8 (0x8) (int)
  info.callouts.add = { 'hal-acl-tool --add-device' } (string list)
  block.minor = 16 (0x10) (int)
  block.is_volume = true (bool)
  info.callouts.remove = { 'hal-acl-tool --remove-device' } (string list)
  volume.ignore = false (bool)
  org.freedesktop.Hal.Device.Volume.method_names = { 'Mount', 'Unmount', 'Eject' } (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = { 'ssas', 'as', 'as' } (string list)
  org.freedesktop.Hal.Device.Volume.method_argnames = { 'mount_point fstype extra_options', 'extra_options', 'extra_options' } (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = { 'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject' } (string list)
  storage.model = '' (string)
  volume.mount.valid_options = { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=', 'flush' } (string list)
  volume.unmount.valid_options = { 'lazy' } (string list)
  info.category = 'volume' (string)
  volume.fstype = 'vfat' (string)
  volume.fsusage = 'filesystem' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1a.1/usb2/2-1/2-1:1.0/host8/target8:0:0/8:0:0:0/block/sdb/fakevolume' (string)
  volume.fsversion = 'FAT32' (string)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_Sony_Ericsson_Mobile_Communications_P1i_35703301389798_0_0' (string)
  volume.uuid = '' (string)
  volume.label = 'PHONE' (string)
  info.interfaces = { 'org.freedesktop.Hal.Device.Volume' } (string list)
  volume.mount_point = '/media/PHONE' (string)
  volume.is_mounted = true (bool)
  volume.is_mounted_read_only = false (bool)
  volume.linux.is_device_mapper = false (bool)
  volume.is_disc = false (bool)
  volume.is_partition = false (bool)

I have created a local version of /usr/local/share/hal/fdi/information/10freedesktop (not sure if it is fully correct)

<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">

    <match key="info.category" string="storage">
        <!-- Sony Ericsson -->
        <match key="@storage.originating_device:usb.vendor_id" int="0xfce">

          <!-- P1i mobile phone -->
          <match key="@storage.originating_device:usb.product_id" int="0xe092">
            <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
            <append key="portable_audio_player.audio_folders" type="strlist">music/</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/3gpp</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/mp4</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/aac</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/vnd.rn-realaudio</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/x-amr</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/x-imy</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/x-midi</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>


After hal restart, the phone is recognised in Rhythmbox (phone is in USB mode).

It may be good for others to add the phone to hal-info.

Related branches

Martin Pitt (pitti) wrote :

Committed upstream.

Changed in hal-info:
assignee: nobody → pitti
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hal-info - 20090210-0ubuntu1

hal-info (20090210-0ubuntu1) jaunty; urgency=low

  * New upstream git snapshot:
    - Add Option Globetrotter HSUPA modem (0af0:7211) found in Acer
      Aspire One (LP: #304818)
    - Add Sony Ericsson P1i MP3 player for HAL (LP: #305249)
    - Add Nokia N78 and 6500c modems (LP: #322443)
    - Add hotkeys for Samsung X30 (LP: #323689)
    - Fix backlight keys on HP 6730b (LP: #325560)
    - Fix bluetooth hotkey on Acer TM6292 (LP: #327614)

 -- Martin Pitt <email address hidden> Tue, 10 Feb 2009 16:45:24 +0100

Changed in hal-info:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers