GNOME Bugzilla – Bug 633840
[PATCH] Sony Walkman NWZ-S545 not detected
Last modified: 2012-01-18 10:37:01 UTC
That's it, instead with rhythmbox is working fine I don't know why banshee doesn't recognized him. I am using Ubuntu Maverick with Banshee 1.8.0-2ubuntu1~maverick1 Tech-Specs - Sony Walkman NWZS545 - 16 GB Capacity - Color Black - Serial ... 217 - Firmware: 1.01 #output gvfs-mount Drive(2): SONY WALKMAN Type: GProxyDrive (GProxyVolumeMonitorGdu) Volume(0): WALKMAN Type: GProxyVolume (GProxyVolumeMonitorGdu) Mount(0): WALKMAN -> file:///media/WALKMAN Type: GProxyMount (GProxyVolumeMonitorGdu) #udevadminfo P: /devices/pci0000:00/0000:00:04.1/usb2/2-4 N: bus/usb/002/003 S: libmtp-2-4 S: char/189:130 E: UDEV_LOG=3 E: DEVPATH=/devices/pci0000:00/0000:00:04.1/usb2/2-4 E: SUBSYSTEM=usb E: DEVNAME=bus/usb/002/003 E: ID_VENDOR=Sony E: ID_VENDOR_ENC=Sony E: ID_VENDOR_ID=054c E: ID_MODEL=WALKMAN E: ID_MODEL_ENC=WALKMAN E: ID_MODEL_ID=03fe E: ID_REVISION=0001 E: ID_SERIAL=Sony_WALKMAN_0E49A647230217 E: ID_SERIAL_SHORT=0E49A647230217 E: ID_BUS=usb E: ID_USB_INTERFACES=:080650: E: ID_GPHOTO2=1 E: GPHOTO2_DRIVER=proprietary E: ID_MEDIA_PLAYER=1 E: MAJOR=189 E: MINOR=130 E: DEVTYPE=usb_device E: DRIVER=usb E: PRODUCT=54c/3fe/1 E: TYPE=0/0/0 E: BUSNUM=002 E: DEVNUM=003 E: DEVLINKS=/dev/libmtp-2-4 /dev/char/189:130 E: TAGS=:udev-acl: If you need any other information please let me know, Victor
Hi Victor, thanks for reporting this. The information you provided might be enough for Banshee developers to fix this, however it wouldn't hurt to also give a debug log from Banshee. This will let us know if Banshee is trying to access the device and failing, or if it's ignoring it altogether. You can get this log by running 'banshee --debug > ~/Desktop/banshee.log' from Terminal, then attach the log from your desktop to this report. Thanks!
Created attachment 173705 [details] Banshee Debug
Thanks for the quick response! I'm no expert log-reader, but this part looks relevant: [4 Warn 15:50:10.051] Caught an exception - System.ArgumentNullException: Argument cannot be null. Parameter name: s (in `mscorlib') at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0 at Banshee.Hardware.Gio.UsbDevice.GetBusNumber (IUsbDevice device) [0x00007] in /build/buildd/banshee-1.8.0/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/UsbDevice.cs:76 at Banshee.Hardware.Gio.UsbDevice.get_BusNumber () [0x00000] in /build/buildd/banshee-1.8.0/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/UsbDevice.cs:143 at Banshee.Hardware.Gio.Device.ResolveUsbPortInfo () [0x0000d] in /build/buildd/banshee-1.8.0/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/Device.cs:91 at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00007] in /build/buildd/banshee-1.8.0/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs:68 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /build/buildd/banshee-1.8.0/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 Hopefully this will be enough for developers to help you out, so I'm getting rid of the NEEDINFO status.
any other information that you need please let me know and I will response as soon as I can ;)
This appears to be all the information Alan needs so he goes on CC.ala
Created attachment 177935 [details] [review] Workaround I don't know much about Banshee's source. But here is a patch that fixes the same issue with my Palm Pre 2.
Comment on attachment 177935 [details] [review] Workaround Looks good
Please resubmit patch using git format-patch.
In case you don't know how to use git here's a quick howto. Things following a # are just notes for you don't include them in your terminal command. git add <files you've changed> git status # check that all of the files you've changed are listed under staged. git commit # put in a good commit message describing what you've done git format-patch HEAD^ then take the file it generates and attach it to this bug.
There are a lot of people having troubles with his portable devices, maybe this hack fix most of them. byt the way, unfortunately I don't have this device in my hands any more but please keep this report open (maybe other people can try to use this patch and check if works for them). Thanks again Alex ;)
How would I go about applying the patch? I'm not very savvy with patching software. Is the git add what I'm looking for? If so, what woul dthe "files you've changed" be?? Thanks again, hoping this solves the problem so I can start syncing playlists at least somewhat.
0) download patch 1) pull the latest git 2) cd banshee 3) patch -p1 -i /path/to/patch 4) build But I'll poke Alex to add it since Stefan doesn't appear to be around to create the preferred Git formated version which is easier to commit and retains attribution to him.
A similar patch to the proposed one appears to have been merged. http://git.gnome.org/browse/banshee/commit/src/Backends/Banshee.Gio/Banshee.Hardware.Gio?id=41b100fb5b8c2b5023ba5e3887ed9536d60c58ac It would be very helpful if you could retest against Banshee 2.0 or higher to confirm if the issue has been resolved.
I'll need a bit more instructions. Apologize again, just haven't patched in years and have only done it a couple years. I downloaded the source and tried actually downloading the original non git patch but that one didn't have anything in it (just the disclaimer about open source products). What git command do I run and I'll do it as soon as today. Thanks!
All that is needed is for you to run Banshee 2.0, patching is not needed.
I think I successfully applied the patch but when I try to run ./configure I get this: checking for BOO... no configure: error: Package requirements (boo >= 0.8.1) were not met: No package 'boo' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Boo is installed through the Ubuntu repos and it is definitely above version 0.8.1
Ignore that last comment just saw your current comment, will try it out right now (although I think that the checking for BOO is possibly another bug because it's not seeing the dependance met)
No good, still not being detected. Also upgrading to version 2.0 is not a permanent solution for me until the database mitigation issue is solved. Not sure if the bug has been reported but in Ubuntu 10.10 the only way to get Banshee 2.0 to work is to remove or move the banshee-1 file in ~/.config. This is an issue for anyone who has podcasts or other subscriptions. Before I downgrade back to 1.8 I'm more than happy to provide more info about how to get the Sony X-Series to connect to banshee. Thanks
I don't think the database migration issue is filed, can you please do that. Being an mtp device the output of mtp-detect and a new Debug log from 2.0 would be helpful. https://live.gnome.org/Banshee/CommonQuestions/Logs
Database migration issue: https://bugzilla.gnome.org/show_bug.cgi?id=648798 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mtp-detect libmtp version: 1.0.3 Listing raw device(s) Device 0 (VID=054c and PID=0398) is a Sony Walkman NWZ-X1051/NWZ-X1061. Found 1 device(s): Sony: Walkman NWZ-X1051/NWZ-X1061 (054c:0398) @ bus 2, dev 4 Attempting to connect device(s) PTP_ERROR_IO: Trying again after re-initializing USB interface LIBMTP PANIC: Could not open session! (Return code 767) Try to reset the device. Unable to open raw device 0 OK Not sure why the error, I can browse the player no problem in nautilus and it works in both Amarok and Rhythmbox (despite Rhythmbox not being developed for over a year) +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ here is log ** Running Mono with --debug ** [1 Info 11:20:01.752] Running Banshee 2.0.0: [Ubuntu 10.10 (linux-gnu, x86_64) @ 2011-04-13 00:53:12 UTC] [1 Debug 11:20:01.775] Initializing GTK [1 Debug 11:20:03.169] Post-Initializing GTK [1 Debug 11:20:03.193] Configuration client extension loaded (Banshee.GnomeBackend.GConfConfigurationClient) [1 Debug 11:20:03.203] Using default gconf-base-key [1 Debug 11:20:03.243] Bus.Session.RequestName ('org.bansheeproject.Banshee') replied with PrimaryOwner [1 Debug 11:20:03.320] Core service started (DBusServiceManager, 0.001263) [1 Debug 11:20:03.323] Registering remote object /org/bansheeproject/Banshee/DBusCommandService (Banshee.ServiceStack.DBusCommandService) on org.bansheeproject.Banshee [1 Debug 11:20:03.333] Core service started (DBusCommandService, 0.012787) [1 Debug 11:20:03.369] Opened SQLite (version 3.7.2) connection to /home/joel/.config/banshee-1/banshee.db [1 Debug 11:20:03.369] Core service started (DbConnection, 0.035922) [1 Debug 11:20:03.378] Database version 43 is up to date [1 Debug 11:20:03.383] Running ANALYZE against database to improve performance [1 Debug 11:20:03.430] Core service started (PreferenceService, 0.011508) [1 Debug 11:20:03.437] Core service started (Network, 0.007496) [1 Debug 11:20:03.438] Registering remote object /org/bansheeproject/Banshee/SourceManager (Banshee.Sources.SourceManager) on org.bansheeproject.Banshee [1 Debug 11:20:03.438] Core service started (SourceManager, 0.000873) [1 Debug 11:20:03.447] Core service started (MediaProfileManager, 0.000274) [1 Debug 11:20:03.451] Registering remote object /org/bansheeproject/Banshee/PlayerEngine (Banshee.MediaEngine.PlayerEngineService) on org.bansheeproject.Banshee [1 Debug 11:20:03.453] Core service started (PlayerEngine, 0.005172) [1 Debug 11:20:03.467] Registering remote object /org/bansheeproject/Banshee/PlaybackController (Banshee.PlaybackController.PlaybackControllerService) on org.bansheeproject.Banshee [1 Debug 11:20:03.468] Core service started (PlaybackController, 0.00323) [1 Debug 11:20:03.476] Starting - Startup Job [1 Debug 11:20:03.477] Core service started (JobScheduler, 0.008794) [1 Debug 11:20:03.491] IO provider extension loaded (Banshee.IO.Gio.Provider) [1 Debug 11:20:03.530] Loaded HardwareManager backend: Banshee.Hardware.Gio [1 Debug 11:20:03.532] Core service started (HardwareManager, 0.054974) [1 Debug 11:20:03.536] Bus.Session.RequestName ('org.bansheeproject.CollectionIndexer') replied with PrimaryOwner [1 Debug 11:20:03.537] Registering remote object /org/bansheeproject/Banshee/CollectionIndexerService (Banshee.Collection.Indexer.CollectionIndexerService) on org.bansheeproject.CollectionIndexer [1 Debug 11:20:03.538] Core service started (CollectionIndexerService, 0.006335) [1 Debug 11:20:03.540] Core service started (SaveTrackMetadataService, 0.001351) [1 Debug 11:20:03.549] Adding icon theme search path: /usr/share/banshee/icons [1 Debug 11:20:03.550] Core service started (GtkElementsService, 0.010304) [1 Debug 11:20:03.551] Core service started (InterfaceActionService, 0.001351) [1 Debug 11:20:03.650] Extension actions loaded: MetadataFixActions [1 Debug 11:20:03.650] Registering remote object /org/bansheeproject/Banshee/GlobalUIActions (Banshee.Gui.GlobalActions) on org.bansheeproject.Banshee [1 Debug 11:20:03.652] Album artwork path set to /home/joel/.cache/media-art [1 Debug 11:20:03.674] Core service started (ArtworkManager, 0.023919) [1 Debug 11:20:03.675] Core service started (BookmarksService, 0.000127) [1 Debug 11:20:03.866] Adding context page lastfm-recommendations [1 Debug 11:20:03.886] Adding context page wikipedia [1 Debug 11:20:04.156] Constructed Nereid interface: 0.446226 [1 Debug 11:20:04.239] Creating new surface cache for 90px images, capped at 0.93 MiB (30 items) [1 Debug 11:20:04.404] Registering remote object /org/bansheeproject/Banshee/ClientWindow (Nereid.PlayerInterface) on org.bansheeproject.Banshee [1 Debug 11:20:04.404] Core service started (NereidPlayerInterface, 0.714808) [1 Debug 11:20:04.432] Extension service started (GStreamerCoreService, 0.027065) [1 Debug 11:20:04.439] Extension service started (BpmService, 0.007546) [1 Debug 11:20:04.444] Using GNOME 2.22 API for Multimedia Keys [1 Debug 11:20:04.444] Extension service started (MultimediaKeysService, 0.004425) [1 Debug 11:20:04.458] Audioscrobbler state: connected [1 Debug 11:20:04.459] Extension service started (AudioscrobblerService, 0.015049) [1 Debug 11:20:04.463] Extension service started (LastfmStreamingService, 0.003798) [1 Debug 11:20:04.465] Extension service started (LibraryWatcherService, 0.001338) [1 Debug 11:20:04.467] Extension service started (PodcastService, 0.002192) [1 Debug 11:20:04.468] Extension service started (DapService, 0.001187) [1 Debug 11:20:04.469] Extension service started (DaapService, 0.00106) [1 Info 11:20:04.473] Updating web proxy from GConf [1 Debug 11:20:04.477] Direct connection, no proxy in use [1 Debug 11:20:04.491] Extension service started (GnomeService, 0.022071) [1 Debug 11:20:04.500] Extension service started (MprisService, 0.008427) [1 Debug 11:20:04.503] Extension service started (AmazonMp3DownloaderService, 0.002585) [1 Debug 11:20:04.509] Extension service started (CoverArtService, 0.005638) [1 Debug 11:20:04.541] Registering with sound indicator through libindicate [1 Debug 11:20:04.551] Extension service started (SoundMenuService, 0.042601) [1 Debug 11:20:04.568] Extension service started (AudioCdService, 0.016267) [1 Info 11:20:04.569] All services are started 1.324259 [1 Debug 11:20:05.005] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:20:05.577] Registering remote object /org/bansheeproject/Banshee/SourceManager/PlayQueue (Banshee.PlayQueue.PlayQueueSource) on org.bansheeproject.Banshee [1 Debug 11:20:05.577] Extension source loaded: Play Queue [1 Debug 11:20:05.612] Extension source loaded: Last.fm [1 Debug 11:20:05.619] Extension source loaded: Now Playing [1 Debug 11:20:05.632] Extension source loaded: Radio [1 Debug 11:20:05.687] Extension source loaded: File System Queue [1 Debug 11:20:05.696] Extension source loaded: Amazon MP3 Store [1 Debug 11:20:05.705] Extension source loaded: Miro Guide [1 Debug 11:20:05.718] Extension source loaded: Internet Archive [1 Debug 11:20:05.743] Extension source loaded: Audiobooks [1 Debug 11:20:05.747] Starting GTK main loop [1 Debug 11:20:05.850] Growing surface cache for 90px images to 1.24 MiB (40 items) [1 Debug 11:20:06.030] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:20:06.132] Creating Pango.Layout, configuring Cairo.Context [1 Info 11:20:06.477] nereid Client Started [1 Debug 11:20:06.481] Delayed Initializating Banshee.MediaEngine.PlayerEngineService [1 Debug 11:20:06.486] (libbanshee:player) Stream volume supported: YES [1 Debug 11:20:06.489] (libbanshee:player) Audiosink has volume: NO [1 Debug 11:20:06.492] (libbanshee:player) Using system (gst-plugins-good) equalizer element [1 Debug 11:20:06.531] Player state change: NotReady -> Ready [1 Debug 11:20:06.538] Loaded equalizer presets: 0.000219 [1 Debug 11:20:06.543] Selected equalizer: Rock [1 Debug 11:20:06.554] Player state change: Ready -> Idle [1 Debug 11:20:06.559] (libbanshee:player) Disabled ReplayGain [1 Info 11:20:06.560] GStreamer version 0.10.30.0, gapless: True, replaygain: False [1 Debug 11:20:06.565] Delayed Initializating Banshee.LibraryWatcher.LibraryWatcherService [1 Debug 11:20:06.576] Core service started (LibraryImportManager, 0.005495) [1 Debug 11:20:06.656] Started LibraryWatcher for Music (/home/joel/Music/) [1 Debug 11:20:06.657] Started LibraryWatcher for Videos (/home/joel/Videos/) [1 Debug 11:20:06.657] Delayed Initializating Banshee.Podcasting.PodcastService [1 Debug 11:20:06.776] Delayed Initializating Banshee.Dap.DapService [1 Debug 11:20:06.781] Dap support extension loaded: Banshee.Dap.MassStorage [1 Debug 11:20:06.784] Dap support extension loaded: Banshee.Dap.Karma [1 Debug 11:20:06.786] Dap support extension loaded: Banshee.Dap.AppleDevice [1 Debug 11:20:06.789] Dap support extension loaded: Banshee.Dap.Mtp [1 Debug 11:20:06.790] Delayed Initializating Banshee.Daap.DaapService [2 Debug 11:20:06.801] Refreshing any podcasts that haven't been updated in over an hour [3 Debug 11:20:06.924] DAAP Proxy listening for connections on port 8089 [1 Debug 11:20:07.791] Finished - Startup Job [1 Debug 11:20:07.796] Starting - Downloading Cover Art [4 Warn 11:20:17.968] Caught an exception - System.Net.WebException: The request timed out (in `System') at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 at Banshee.Metadata.MetadataServiceJob.GetHttpStream (System.Uri uri, System.String[] ignoreMimeTypes) [0x00046] in /build/buildd/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Metadata/MetadataServiceJob.cs:141 at Banshee.Metadata.MetadataServiceJob.GetHttpStream (System.Uri uri) [0x00000] in /build/buildd/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Metadata/MetadataServiceJob.cs:126 at Banshee.Metadata.Rhapsody.RhapsodyQueryJob.Run () [0x00078] in /build/buildd/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Metadata.Rhapsody/RhapsodyQueryJob.cs:88 at Banshee.Metadata.MetadataServiceJob.Run () [0x00053] in /build/buildd/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Metadata/MetadataServiceJob.cs:88 [4 Warn 11:20:34.179] Caught an exception - System.Net.WebException: The request timed out (in `System') at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 at Banshee.Metadata.MetadataServiceJob.GetHttpStream (System.Uri uri, System.String[] ignoreMimeTypes) [0x00046] in /build/buildd/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Metadata/MetadataServiceJob.cs:141 at Banshee.Metadata.MetadataServiceJob.GetHttpStream (System.Uri uri) [0x00000] in /build/buildd/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Metadata/MetadataServiceJob.cs:126 at Banshee.Metadata.Rhapsody.RhapsodyQueryJob.Run () [0x00078] in /build/buildd/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Metadata.Rhapsody/RhapsodyQueryJob.cs:88 at Banshee.Metadata.MetadataServiceJob.Run () [0x00053] in /build/buildd/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Metadata/MetadataServiceJob.cs:88
*** Bug 657564 has been marked as a duplicate of this bug. ***
Please try following this guide to determine the source of the MTP detection problem with your device. http://mail.gnome.org/archives/banshee-list/2011-November/msg00036.html
https://bugs.launchpad.net/ubuntu/+source/media-player-info/+bug/670066/comments/6 and https://bugs.launchpad.net/ubuntu/+source/media-player-info/+bug/670066/comments/7 mention that the creation of a .is_audio_player file allows the phone to be detected.
Will add this model to media-player-info.