LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-16-2019, 05:57 PM   #1
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
HiDPI in Slackware-current


Are there any solutions in Slackware-current that a give a nice desktop on a HiDPI laptop monitor screen? I'm wondering what others' experiences are on a HiDPI screen with -current.
 
Old 06-17-2019, 12:41 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I use ktown, so I just edit /etc/sddm.conf:

Code:
# Arguments passed to the X server invocation
ServerArguments=-nolisten tcp -dpi 160
EDIT: And I have the following in ~/.Xresources:

Code:
Xft.dpi: 160

Last edited by dugan; 06-17-2019 at 09:05 AM.
 
1 members found this post helpful.
Old 06-17-2019, 04:03 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Like dugan said, Slackware -current with Plasma5 bolted on top will work perfectly with a HiDPI monitor.
I do not know about HiDPI capabilities on Slackware 14.2 and the Desktop Environments available there, unfortunately.
 
1 members found this post helpful.
Old 06-17-2019, 09:03 AM   #4
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Because so many programs draw on the screen, success with HiDPI is varied.

Font scaling works well. Set "Xft.dpi: 150" or higher in .Xresources

Firefox has its own way of scaling fonts. Under Preferences -> General-> Fonts & Colors -> Advanced, set a minimum font size of 22. I turn off the fuzzy bitmap scaling in prefs.js by setting user_pref("layout.css.devPixelsPerPx", "1");

The GTK2 theme is adjustable. Look at .gtkrc-2.0 and gtkrc

The biggest problem is that every application program needs to understand HiDPI. GTK2 has the ability to choose the most appropriate icon size, but most programs provide only 16x16. These icons look tiny on a HiDPI screen.

X Windows cursors also tend to be tiny, 16x16 again.

I have been using a 4K desktop monitor for years. It looks very nice except for the tiny icons.
Ed
 
1 members found this post helpful.
Old 06-17-2019, 09:04 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
If you're on HiDPI, then just don't use GTK2 at all.

Last edited by dugan; 06-17-2019 at 09:06 AM.
 
Old 06-17-2019, 09:08 AM   #6
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Well, I write a lot of my own programs and won't move them to GTK3. GTK2 works fine with HiDPI as long as programs understand it.
Ed
 
Old 06-18-2019, 06:50 PM   #7
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Original Poster
Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Right, I'm currently running awesomewm with some custom scaling stuff (Xdefaults, Firefox, GTK, Qt etc), but overall I'm not very happy with it. I get weird small mouse cursors and inconsistent scaling across applications. XFCE didn't seem to be that much better, so it sounds like KDE 5 is the way to go. I will try it out once (if?) it lands in -current.
 
Old 06-18-2019, 09:34 PM   #8
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
You are going to have to live with inconsistent scaling across applications. For example, gvim and the mplayer -gui will have tiny icons in any desktop environment. These programs need to be updated.

I notice that more applications are providing 24x24 icons in addition to 16x16. 24x24 is a usable icon size on my 4K desktop monitor. It is probably still too small on a 4K laptop screen.
Ed
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Current or planned support for Resolution Independence/Retina or HiDPI displays, esp. for partial multipliers in Linux Desktop Environments? permissive Linux - Desktop 2 10-26-2016 04:13 PM
LXer: Unity 7 Is Now My Desktop, Wins Over Xfce On HiDPI LXer Syndicated Linux News 0 03-17-2014 05:51 AM
LXer: LibreOffice HiDPI patches LXer Syndicated Linux News 0 01-27-2014 07:30 AM
LXer: Arch Linux on a HiDPI Lenovo Yoga 2 Pro LXer Syndicated Linux News 0 11-12-2013 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration