The Troll's factory

Geekeries & pensées
-->

Spotify + Wine + Fedora 16 64 bits (FC16) : Solution !

English readers : see at the bottom of the French version !!

Bon, après avoir passé 1h45 à tenter de faire marcher une bonne fois pour toute Spotify via Wine sur ma Fedora 16 64 bits (alors que ça marchait parfaitement quand j’étais sur FC15 … ), je me sens l’envie de partager la solution, car aucune de celles trouvées sur le web ne marchait dans mon cas présent.

Symptômes :

  • Soit vous n’avez pas du tout de son dans Spotify
  • Soit vous entendez un espèce de grésillement correspondant de manière trèèèèès lointaine à la musique que vous devriez entendre

 

La solution est assez complexe, voici la procédure que j’ai suivie afin de finalement arriver à avoir du son. Il en existe peut-être d’autres, mais celle-ci a fonctionné pour moi !

 

  1. Désinstaller tous les paquets relatifs à Wine
  2. Supprimer le dossier ~/.wine
  3. Installer Wine en version 32 bits : sudo yum install wine-core.i686 wine-wow.i686
  4. Installer le driver alsa (et uniquement lui) en version 32 bits : sudo yum install wine-alsa.i686
  5. Installer Spotify à l’aide de l’installateur pour Windows.
  6. Modifier le raccourci de lancement de Spotify (note : celui ci-dessous est le raccourci du menu « Applications » de Fedora. Si vous voulez éditer celui qui se met sur le bureau, la procédure est la même) :
    vi ~/.local/share/applications/wine/Programs/Spotify.desktop
    Ensuite, modifiez la ligne « EXEC » en rajoutant « padsp  » au début. Cela donne ceci pour moi : 

    [Desktop Entry]Name=SpotifyExec=padsp env WINEPREFIX="/home/troll/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/troll/.wine/dosdevices/c:/users/troll/Start\\ Menu/Programs/Spotify.lnkType=ApplicationStartupNotify=truePath=/home/troll/.wine/dosdevices/c:/users/troll/Application Data/SpotifyIcon=B29C_spotify.0
  7. Lancer winecfg et le configurer avec les périphériques virtuels PulseAudio : padsp winecfg
  8. Aller dans l’onglet « Audio » puis choisissez dans les périphériques audios, ceux qui correspondent au même nom que ce que vous pouvez trouver dans les Paramètres Systèmes de Fedora 16. Pour moi, c’était celui qui n’était ni « default » ni « system default » mais qui avait le nom de ma carte son. Valider.
  9. Installer le paquet alsa-oss en version 64 bits : sudo yum install alsa-oss
  10. Lancer Spotify via le raccourci qu’on a édité à l’étape 6.
  11. Enjoy !

(Note : Ca ne résoudra peut-être pas les problèmes de lecture de la musique « locale », car là c’est un problème de décodeur MP3, il y a des explications ici : Spotify and local storage music[EN].)

—————————- English Version —————————-

After 1h45 of attempts to make Spotify working once for all via Wine on my Fedora 16 64 bits (whereas it worked perfectly on FC15 … ), I feel I want to share the solution, since none of the one I found on the web was actually working in my case !

Symptoms :

  • Either you don’t have any sound in dans Spotify
  • Or you only hear a sort of noise/garbage corresponding, from far and with super-ears, to the music you are actually trying to listen.

 

The solution is pretty complex, here is the steps I finally went through to get my Spotify via Wine on FC16 x84_64 working (it may exist some others, but these steps worked for me) :

 

  1. Uninstall all Wine packages
  2. Remove the ~/.wine directory
  3. Install 32 bits version of Wine : sudo yum install wine-core.i686 wine-wow.i686
  4. Install alsa driver (and only this one) in 32 bits version : sudo yum install wine-alsa.i686
  5. Install Spotify using the Windows installer using Wine.
  6. Edit the launch shortcut of Spotify (note : the one below is the shortcut of the « Applications » Fedora menu. If you want to edit the one located on you Desktop, the procedure is the same) :
    vi ~/.local/share/applications/wine/Programs/Spotify.desktop
    Then, change the « EXEC » line by adding « padsp  » at the beginning. This gave, for me :

    [Desktop Entry]Name=SpotifyExec=padsp env WINEPREFIX="/home/troll/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/troll/.wine/dosdevices/c:/users/troll/Start\\ Menu/Programs/Spotify.lnkType=ApplicationStartupNotify=truePath=/home/troll/.wine/dosdevices/c:/users/troll/Application Data/SpotifyIcon=B29C_spotify.0
  7. Launch winecfg with the PulseAudio virtual devices to configure it with them : padsp winecfg
  8. Go to « Audio » tab and choose, in the audio devices list, the ones corresponding to the name of those you can find in « System Settings » of Fedora. For me, it was neither « default » nor « system default » but the one which had the name of my sound card (HDA Intel blabla…). Validate.
  9. Install the alsa-oss package in its 64 bits version : sudo yum install alsa-oss
  10. Launch Spotify using the shortcut you edited and step 6.
  11. Enjoy !

(Note : It surely won’t solve the problems related to playing « local storage music » because it is a MP3 decoding problem, you can find out more about the « local storage » music problem here : Spotify and local storage music.)

Share and Enjoy:
  • Print
  • PDF
  • Twitter
  • Facebook
  • LinkedIn
  • RSS
  • Wikio FR
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Technorati
  • Sphinn
  • Mixx
  • Add to favorites
  • Live
  • Netvibes
  • Scoopeo
  • viadeo FR
  • Identi.ca
  • MySpace
  • StumbleUpon
  • Yahoo! Buzz
posté par Troll dans Astuces Linux,Linux avec aucun commentaire

Poster un commentaire

Remplissez le formulaire suivant pour poster un message.
Nom
Email
Site internet
Votre commentaire