I have a 4k display, and the Linux (at least?) client is practically unusable.
Is HiDPI support on the roadmap?
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 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:
$ sudo gedit /var/lib/snapd/desktop/applications/spotify_spotify.desktop
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/spotify_spotify.desktop /snap/bin/spotify --force-device-scale-factor=2.0 %U
But the command line is where the fun is at. It's the most efficient way to interact with your computer.
As long as you got what you needed in the end, it's all good.
I realized, I have never answered this thread, but this is obviously a bug that should just be fixed by Spotify. There is also another related, not as important, but much more complicated problem. It needs to rescale on the fly when you move the window between screens with different resolution. That probably requires the user to run a different display server, like Wayland or Mir, which is also not supported natively. Both problems are bugs and filed internally in the spotify desktop client bug tracker.
This worked for me. Thanks!
For all y'all noobs like me who aren't too fancy with the Terminal, put the commands in one line at a time:cd /usr/share/applications
sudo nano spotify.desktop
Then put in your password and press enter. You'll see your terminal enter text edit mode. Go down to the like that reads:
Exec=spotify %U
And change it to
Exec=spotify %U --force-device-scale-factor=1.5
Or if you want an even more scaled up version like myself:
Exec=spotify %U --force-device-scale-factor=2
Then press ctrl+O and hit Enter.
Then Exit the text editor by pressing ctrl+X
Then restart Spotify and you'll be able to read all the things finally!
How should one apply these command parameters for a HiDpi display on a FlatPak installed version? I can't find the spotify.desktop file in either of the following folders:
~/.local/share/applications/
or
/usr/share/applications/
The flatpak .desktop is in:
/var/lib/flatpak/exports/share/applications
that you can copy to your home and edit.
it works!! thanks a lot ❤️
Note that under Fedora / Gnome you need to set the scaling factor to 2.0 - Gnome Desktop does not allow for decimal scaling;
searli not true. The GNOME DE will auto scale applications on an integer scale but you can force some individual applications to do fractional scaling.
Experiment: force the resolution at 1.3, 1.7, 2.0, 2.5. You will see they all increase in size fractionally. I know this because I've done it on Fedora running GNOME.
Baller, Thanks.
I'm pretty new to linux, and this command worked for me, however, I want to understand why. Is putting that command after the Exec=spotify %U like running an execute command with the option of forcing the ui to scale up? Hopefully my question is clear. Just wanted some background info or knowledge on why this worked I guess. Thanks.
Yes, the command option --force-device-scale-factor=1.8 forces the UI to scale up. I don't know all the details but the Spotify app doesn't respect your desktops scaling settings on HiDPI screens. adding that option forces it to work. Just be aware when you get an update for the Spotify application you will need to do this again. An update means you will get a new desktop file as well.
Debian 9
sudo vim /usr/local/share/applications/spotify.desktop
Anyone know how to set the --force-device-scale-factor permanently in the desktop app? I'm on Ubuntu 17.10, and Spotify is not using /usr/share/applications. It's apparently a "snap" application now, whatever that is.. so there's probably a different way of changing the parameters.
If you've installed Spotify via the Snap you could edit /usr/share/applications/spotify.desktop
Add --force-device-scale-factor=1.5 so that the Exec line becomes:
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/spotify_spotify.desktop /snap/bin/spotify --force-device-scale-factor=1.5 %U
Like I mentioned, /usr/share/applications/spotify.desktop doesn't exist. I can't figure out where the desktop file is actually saved.
Oddly enough, it's in /snap/spotify/5/usr/share/spotify/spotify.desktop. This is read-only, however and I can't edit it, even as root.
What I did was copy that .desktop file to ~/.local/share/applications, where I edited it to add `--force-device-scale-factor=1.5`. This fixes the hidpi problem.
However, my new .desktop file was missing the icon, for some reason still pointing to /usr/share/spotify/icons, which no longer exists. So I had to edit the Icon entry in my new .desktop entry to Icon=/snap/spotify/current/usr/share/spotify/icons/spotify-linux-128.png.
Sadly, this means I have two results in the heads-up display when I search for Spotify -- my version and the snap version. Don't know how to fix that.
To avoid this double items, instead of copying the desktop file, the original snap app desktop file can be edited (with sudo) in /var/lib/snapd/desktop/applications/spotify_spotify.desktop (cf https://askubuntu.com/questions/919091/why-snap-files-cannot-be-modified-in-any-way).
Adding `--force-device-scale-factor=1.5` (or 2.5 in my case with a UHD screen) gets everything in order except the mouse size...
Thanks for that, that solved it for me!
For anyone interested, for Elementary OS (Loki) the corresponding actions are below:
sudo gedit /usr/share/applications/spotify.desktop
Once you have the file open, change the Exec to:
Exec=spotify --force-device-scale-factor=2.0 %U
Change the scale to whatever suits you - 2.0 works for me on a 13" Retina Macbook...
I'm new to linux (I have the Ubuntu 16.04 version) and I tried to change the spotify.desktop file. I could do that by nothing has changed when I open Spotify again. All I get is the reply in the terminal:
ATTENTION: default value of option force_s3tc_enable overridden by environment.
Could someone help me, please?
P.S. I installed it via the command lines Spotify gives on the Download page for Linux, not via snap