You are not logged in.

#1 2017-05-29 05:14:52

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

4k and Openbox

Does anyone have any experience with 4k screens and openbox?

If so can you please send me a PM I have numerous questions.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#2 2017-05-29 08:01:22

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: 4k and Openbox

Only in virtualbox, but how about posting the actual questions?

Offline

#3 2017-05-29 11:40:48

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: 4k and Openbox

brontosaurusrex wrote:

how about posting the actual questions?

+1

@Dobbie, please post your questions here so that the rest of the community can benefit from any answers.

I don't have any HiDPI displays but have you seen the relevant ArchWiki sections?

https://wiki.archlinux.org/index.php/HiDPI#X_Resources

More ideas here:

https://askubuntu.com/questions/197828/ … screen-dpi

Offline

#4 2017-05-29 20:36:40

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: 4k and Openbox

Hi Guys

I have followed the instructions from the Arch Wiki a number of times and I am not getting the result I really would like.

I have two side by side 28" 4k monitors.  One connected via DisplayPort, the other HDMI.

For one I can't get the font dpi to stick to 120dpi (it's stuck at 96dpi), I have entered the suggested configs in .Xresources, .Xdefaults and in the XFCE4 Appearance Manager.  Is there something I am missing here?

I have in autostart the following:

xrandr --output DisplayPort-0 --mode 3840x2160 --pos 0x0 --rotate normal --output DVI-D-0 --off --output HDMI-A-0 --mode 3840x2160 --pos 3840x0 --rotate normal

But for some reason the HDMI connection is always at 2560x1440 and not in the correct placement.  I have to adjust with arandr after every boot.  Not sure what I am doing wrong here either?

Lastly, I can't get my mouse cursor any larger than 16px.  I'd like it at 24px, I have changed this in .Xresources and in the XFCE4 Mouse settings to no avail.

Appreciate the help chaps.

Cheers
Dobbie


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#5 2017-05-29 20:40:58

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: 4k and Openbox

Can we see the Xorg log file.

For Arch that should be at ~/.local/share/xorg/Xorg.0.log, unless you use GDM.

BunsenLabs declares the DPI in ~/.Xresources (which is sourced by LightDM) but I would specify it as part of the `startx` command to ensure that it is set for everything.

EDIT: the full content of ~/.Xresources and a brief description of the method used to start the graphical desktop would also be useful.

Last edited by Head_on_a_Stick (2017-05-29 20:42:08)

Offline

#6 2017-05-29 20:46:26

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: 4k and Openbox

I have to adjust with arandr after every boot.  Not sure what I am doing wrong here either?

In BL you would save the setup with arandr - by default it saves it as a script in ~/.screenlayout. Then run this from autostart, or whichever setup method you are using for the graphical session.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#7 2017-05-29 21:24:29

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: 4k and Openbox

@H_o_a_S:  Hmmm, weird for me the Xorg log file was in /var/log/.  I have no xorg folder in ~/.local/share/...  Anyway where is what I have:

Xorg log: https://pastebin.com/3Sb0KMDs
.Xresources: https://pastebin.com/pmBSGVgA

What would I need to add to my autostart to include the DPI?

To start X, I just have lightdm set to autologin, just in case this is my autostart, https://pastebin.com/zug3H3Wn

---------

@damo, I suppose it would be worth adding the script to my autostart to test.

EDIT: tried adding the script to my autostart, same issue as before.  HDMI monitor starts as 2560x1440 and is in the wrong position.

Last edited by Döbbie03 (2017-05-29 21:29:33)


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#8 2017-05-29 21:37:34

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: 4k and Openbox

Dobbie03 wrote:

...
@damo, I suppose it would be worth adding the script to my autostart to test.

EDIT: tried adding the script to my autostart, same issue as before.  HDMI monitor starts as 2560x1440 and is in the wrong position.

The script should have the xrandr commands to set the layout and resolution you have set and saved with arandr. Try removing it from autostart, then running it manually - if the layout is then sorted out properly then the issue must be how (or when) it is being started.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#9 2017-05-29 21:43:02

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: 4k and Openbox

damo wrote:
Dobbie03 wrote:

...
@damo, I suppose it would be worth adding the script to my autostart to test.

EDIT: tried adding the script to my autostart, same issue as before.  HDMI monitor starts as 2560x1440 and is in the wrong position.

The script should have the xrandr commands to set the layout and resolution you have set and saved with arandr. Try removing it from autostart, then running it manually - if the layout is then sorted out properly then the issue must be how (or when) it is being started.


Okay, I have removed it from autostart.  I ran it manually and it corrected the resolution and position of the HDMI monitor.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#10 2017-05-29 21:47:12

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: 4k and Openbox

Have you tried commenting out the xfsettingsd line in the autostart file?

To eliminate as many variables as possible, try killing LightDM:

# systemctl isolate multi-user.target

Then switch to a TTY, login and run:

startx -- -dpi 120

You may need to create a simple ~/.xinitrc for this to work:

echo "exec openbox-session" > ~/.xinitrc

Then check the DPI with:

xdpyinfo | grep dots

Offline

#11 2017-05-29 21:57:53

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: 4k and Openbox

Okay, some success.  I commented out the xfsettingsd line from autostart.  The resolution on the screens is now correct upon boot.

No luck with the dpi:

 resolution:    96x96 dots per inch

"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#12 2017-05-30 07:14:25

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: 4k and Openbox

Dobbie03 wrote:

No luck with the dpi

Did you try my `startx` method to set the DPI that way?

That works with my Arch box.

Offline

#13 2017-05-30 07:22:03

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: 4k and Openbox

Head_on_a_Stick wrote:
Dobbie03 wrote:

No luck with the dpi

Did you try my `startx` method to set the DPI that way?

That works with my Arch box.

It didn't work for me last time but it did this time.

Is the next step to add this to my autostart?


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#14 2017-05-30 07:31:41

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: 4k and Openbox

Possibly irrelevant, but with nvidia blob I have old fashioned xorg.conf, where also dpi lives, what drivers are you using?

Offline

#15 2017-05-30 07:33:20

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: 4k and Openbox

brontosaurusrex wrote:

Possibly irrelevant, but with nvidia blob I have old fashioned xorg.conf, where also dpi lives, what drivers are you using?

Just the open source drivers for my AMD Radeon RX460.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#16 2017-05-30 07:35:06

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: 4k and Openbox

Dobbie03 wrote:

Is the next step to add this to my autostart?

Good question smile

I'm not sure exactly how you would pass that `startx` option to LightDM, unfortunately hmm

Personally, I would disable LightDM and use a console-based autologin instead then add this line to ~/.profile (or ~/.bash_profile if you use bash or ~/.zprofile if you use zsh):

[ -z "$DISPLAY" ] && exec startx -- -dpi 120

This will launch the desktop automatically on login with the required option.

EDIT: yet another unquoted variable...  8.(

Last edited by Head_on_a_Stick (2017-05-30 18:10:38)

Offline

#17 2017-05-30 07:36:16

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: 4k and Openbox

brontosaurusrex wrote:

old fashioned xorg.conf, where also dpi lives

Yes, good point.

@Dobbie, use that method instead.

Offline

#18 2017-05-30 07:40:35

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: 4k and Openbox

Head_on_a_Stick wrote:
Dobbie03 wrote:

Is the next step to add this to my autostart?

Good question smile

I'm not sure exactly how you would pass that `startx` option to LightDM, unfortunately hmm

Personally, I would disable LightDM and use a console-based autologin instead then add this line to ~/.profile (or ~/.bash_profile if you use bash or ~/.zprofile if you use zsh):

[ -z $DISPLAY ] && exec startx -- -dpi 120

This will launch the desktop automatically on login with the required option.


Okay thanks HoaS, I'll have a ponder on how I want to achieve this.  Thanks again for all your help guys.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#19 2017-05-30 08:11:37

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: 4k and Openbox

Head_on_a_Stick wrote:
brontosaurusrex wrote:

old fashioned xorg.conf, where also dpi lives

Yes, good point.

@Dobbie, use that method instead.


Sorry guys, I am totally lost here.  I cannot find a xorg.conf whatsoever.  I feel like such a dunce.

I have got, /etc/X11/xorg.conf.d/ but there is nothing in there relating to display etc.

Last edited by Döbbie03 (2017-05-30 08:16:14)


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#20 2017-05-30 08:57:32

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: 4k and Openbox

^Thats fine, xorg.conf is only generated by some nvidia drivers (legacy ones?) nowadays I think.

Last edited by brontosaurusrex (2017-05-30 09:28:16)

Offline

Board footer

Powered by FluxBB