Linux client barely usable on HiDPI displays

I have a 4k display, and the Linux (at least?) client is practically unusable.

Is HiDPI support on the roadmap?

Child Item
Child Item
Child Item

Accepted answers

Add --force-device-scale-factor=1.5 (or whatever fits your UI scale) as a command line option.

 

You could edit /usr/share/applications/spotify.desktop or wherever the .desktop file is located and change the line with Exec= to:

 

Exec=spotify --force-device-scale-factor=1.5 %U

 

Problem solved.

I can confirm that this option does not have any effect on Spotify 0.9.17.1, the official version you get here: https://www.spotify.com/fr/download/linux/

I made a Alias in my .bashrc

 

alias spotify="/usr/bin/spotify --force-device-scale-factor=1.5"

 

This works on Ubuntu 16.04

 

 

Great tip! Here's what I did on 17.10 in case it helps anyone:

  1. Open up Spotify snap desktop shortcut:
    $ sudo gedit /var/lib/snapd/desktop/applications/spotify_spotify.desktop
  2. Add --force-device-scale-factor=2.0 (or 1.5 or whatever scale factor you want) to the Exec line:
    Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/spotify_spotify.desktop /snap/bin/spotify --force-device-scale-factor=2.0 %U 

     

All comments

Hi,

 

could you explain what "practically unusable" means?

There is a linux beta version around since 2 weeks or so (only 64bit) did you try that yet?

 

Erkan

https://twitter.com/felipernb/status/575669571044114432

 

There are zoom in/out options, but right now they don't save so you would have to adjust every time you launch 

On HIDPI display its barely usable, because everything is so small.

Linux isn't very good yet in this regard, as it could just upscale by default, but doesn't.

Where is this zoom in / out option located? I have a hard time reading the menus.

There is no zoom in / zoom out.  I hope they improve high DPI support soon.  At this rate we'll be able to zoom individual windows on Wayland first. 

Add --force-device-scale-factor=1.5 (or whatever fits your UI scale) as a command line option.

 

You could edit /usr/share/applications/spotify.desktop or wherever the .desktop file is located and change the line with Exec= to:

 

Exec=spotify --force-device-scale-factor=1.5 %U

 

Problem solved.

That doesn't work for me.

It works with the beta 🙂

Thank you!

It should be automatically. Or at least have a GUI option to set the scaling factor.

Unfortunately, It does not follow the scaling factor set in the OS.

Thank you Tangram

The workaround doesn't work anymore with the latest betas 😞

I confirm this does not seem to work with the latest beta.

Nevermind, it does work, I just forgot to restart gnome-shell to reload the .desktop file.

This works well for me. As I had to tweet, https://twitter.com/solarce/status/650056804987088897

 

I found that `--force-device-scale-factor=2.2` was best for me. I have Arch Linux and the Cinnamon Desktop on a 2015 Dell XPS 13" (ships with Ubuntu) with the qHD screen. I edited `/usr/share/applications/spotify.desktop` to make it *stick*

 

Thanks for figuring this out.

also doesn't work for me on Linuxmint rafaela, Spotify client 0.9.17.1.g9b85d436

I can confirm that this option does not have any effect on Spotify 0.9.17.1, the official version you get here: https://www.spotify.com/fr/download/linux/

What about non Ubuntu/Debian distros? Should give a direct download.

I tried doing this but it wouldn't give me write access to actually save the change to the file. How can I override that?

You need root access. Try running your editor with sudo, for example:

sudo gedit /usr/share/applications/spotify.desktop

I made a Alias in my .bashrc

 

alias spotify="/usr/bin/spotify --force-device-scale-factor=1.5"

 

This works on Ubuntu 16.04

 

 

Thanks man! worked for me

Works for me on GNU/Linux. Spotify client version 1.0.33.106 on Fedora 24, using a 4k monitor. although I had to bump up the scale to 1.8.

 

Here is my desktop file also attached.

 

[Desktop Entry]
Name=Spotify
GenericName=Music Player
Comment=Spotify streaming music client
Icon=spotify-client
Exec=/usr/bin/spotify --force-device-scale-factor=1.8 %U
TryExec=spotify
Terminal=false
Type=Application
Categories=Audio;Music;Player;AudioVideo;
MimeType=x-scheme-handler/spotify;

 

 

In a 15.4" 4k i use a 2 has a factor.

Very happy with my archlinux (artengos), very easy to install with yaourt -S spotify.
easy like android instalation, or more easy than windows.

Problem still exist today, but this fix works like a charm. Using Mint 18, just added scale-factor command to spotifys startup command in launcher and that's it.

I'm a newbie in Linux... can you explain in detail the sequence for editing the file. I found the file but I have no idea how to edit it ! Thanks

Where ever you found the file it will be easier for you to use nano to edit
the file from the terminal.

Actually. Jump on Reddit and create a post in /r/linux4noobs. I (or someone
else) will answer your questions to edit the file.

Finally, I succeed doing it  by myself... learning a little bit of Linux in the process. Thank you !

This only works for running it from command line.

Updating /usr/share/applications/spotify.desktop didn't work

Updating /usr/share/spotify/spotify.desktop didn't work.

Not even after reboot.

What fixed it for me globally (command line and unity apps) was to replace /usr/bin/spotify with a script to force the scale:

sudo rm /usr/bin/spotify && sudo echo "/usr/share/spotify/spotify --force-device-scale-factor=2" > /usr/bin/spotify && sudo chmod 755 /usr/bin/spotify 

but seriously why is spotify the only ubuntu app that does not read this value from ubuntu's config?

That's the beauty of Linux Mint... I installed it directly from th Software
Manager of Linux Mint. 15 seconds later, it's running perfectly on my HiPDI
screen. No command line, no research to do... just playing music!
Child Item
Child Item