You are not logged in.

#26 2018-10-04 11:03:55

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: [SOLVED] After last Pacman update, screen size is reduced

Trilby wrote:

Then find the problem in your configs.  Perhaps this would give a good start:

grep -rl randr ~/.config/awesome/*

Then check any file that is listed for any use of 'xrandr', 'arandr', or similar commands.

No awesome folder in .config

[f@F]: ~>$ grep -rl randr ~/.config/awesome/*
grep: /home/f/.config/awesome/*: No such file or directory
[f@F]: ~>$ 

Offline

#27 2018-10-04 11:19:30

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: [SOLVED] After last Pacman update, screen size is reduced

seth wrote:

Also (since the switch comes fairly early) - did you check your DMs config files?

And to get ahead of your next question: your distro (or some person) installed lightdm for you, it's configuration is in /etc/lightdm/

yes, there is a lightdm folder and inside a lightdm.conf file:
https://ptpb.pw/nL7_
but I can see no reference to a wrong resolution

Offline

#28 2018-10-04 12:39:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: [SOLVED] After last Pacman update, screen size is reduced

How can there be no awesome config dir if you're running awesome???

loginctl session-status

Offline

#29 2018-10-04 13:55:27

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: [SOLVED] After last Pacman update, screen size is reduced

seth wrote:

How can there be no awesome config dir if you're running awesome???

loginctl session-status

https://ptpb.pw/Sagd

Offline

#30 2018-10-04 14:17:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: [SOLVED] After last Pacman update, screen size is reduced

Ok, you're running a completely unconfigured awesome, there's no lightdm related mode change and no modeline/preferred mode in your xorg config, yet something™ alters the mode very early.

1. take lightdm out of the equation, use xinit/startx to start X and awesome, see https://wiki.archlinux.org/index.php/Xinit
2. move away xrandr and arandr (eg. from /usr/bin to /usr) to see whether they're invoked here

Offline

#31 2018-10-04 14:52:36

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: [SOLVED] After last Pacman update, screen size is reduced

seth wrote:

Ok, you're running a completely unconfigured awesome, there's no lightdm related mode change and no modeline/preferred mode in your xorg config, yet something™ alters the mode very early.

1. take lightdm out of the equation, use xinit/startx to start X and awesome, see https://wiki.archlinux.org/index.php/Xinit

All that seems really very complicated, but I will try to do what can.

2. move away xrandr and arandr (eg. from /usr/bin to /usr) to see whether they're invoked here

you mean moving these files to /usr ?

[f@F]: ~>$ ls /usr/bin/*randr
/usr/bin/arandr  /usr/bin/unxrandr  /usr/bin/xrandr
[f@F]: ~>$ 

Offline

#32 2018-10-04 15:05:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: [SOLVED] After last Pacman update, screen size is reduced

Yes. If they're invoked by whatever causes this, the switch won't happen. (You can also just rename them to /usr/bin/not.xrandr or whatever)
xinit is not complicated at all.

Offline

#33 2018-10-04 15:35:09

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: [SOLVED] After last Pacman update, screen size is reduced

seth wrote:

Yes. If they're invoked by whatever causes this, the switch won't happen. (You can also just rename them to /usr/bin/not.xrandr or whatever)
xinit is not complicated at all.

renamed the files, rebooted, but resolution is still the wrong one.

Also something is starting X now, if I install xinit, there will be two agents starting X at the same time. Isn't this a cause of conflict among them or the same sort of mess we wanted to avoid when I proposed the sh file that sets the proper resolution after boot?

Last edited by Francuss (2018-10-04 16:25:03)

Offline

#34 2018-10-04 21:44:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: [SOLVED] After last Pacman update, screen size is reduced

If you merely install xinit (startx), nothing will happen at all.
You've to configure it, disable lightdm (or boot into the muti-user.target, see https://wiki.archlinux.org/index.php/Sy … boot_into), login to the console and xinit/startx there.
And that's not at all related to any mess related to any solution - this step is just to isolate the cause.

Offline

#35 2018-10-05 02:30:27

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: [SOLVED] After last Pacman update, screen size is reduced

seth wrote:

If you merely install xinit (startx), nothing will happen at all.
You've to configure it, disable lightdm (or boot into the muti-user.target, see https://wiki.archlinux.org/index.php/Sy … boot_into), login to the console and xinit/startx there.
And that's not at all related to any mess related to any solution - this step is just to isolate the cause.

So installed xorg-xinit package.

File .xinitrc seems to know it should start awsome infact the only setting is

exec awesome

After a lot of  attempts understood I should not run startx in a terminal, rather reboot and at the login screen use the shortcut Alt+Ctrl+F2, then there try startx on the console. And you wrote it was easy.

Anyway it worked, it started X and awesome with the correct resolution!!! Which seems great news.

So I try to imagine that now I have to create ~/.xserverrc which does not exist with this content:

#!/bin/sh

exec /usr/bin/Xorg -nolisten tcp "$@" vt$XDG_VTNR

to make the change permanent. Is that so?

Last edited by Francuss (2018-10-05 02:55:59)

Offline

#36 2018-10-05 06:18:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: [SOLVED] After last Pacman update, screen size is reduced

* You do not have to create an xserverrc at all
* The xinitrc is *not* sane w/ only "exec something", revisit the link about what to at least add
* You should tr-try this w/o an X server running on any console, boot into or isolate the multi-user.target
* This however already strongly suggests that the issue is in lightdm

If you want to drop lightdm, disable the service and if you want  to automatically start your session on boot, see https://wiki.archlinux.org/index.php/Xi … X_at_login and ensure to also see the link in the "Tip" box.

Offline

#37 2018-10-05 12:44:06

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: [SOLVED] After last Pacman update, screen size is reduced

seth wrote:

* You do not have to create an xserverrc at all
* The xinitrc is *not* sane w/ only "exec something", revisit the link about what to at least add

added
exec cbatticon
but the battery widget does not appear
also added the last if block in /etc/X11/xinit/xinitrc

* This however already strongly suggests that the issue is in lightdm

If you want to drop lightdm, disable the service

this also seems complicated. What about a simple sudo pacman -R lightdm  ?

and if you want  to automatically start your session on boot, see https://wiki.archlinux.org/index.php/Xi … X_at_login

at the bottom of ~/.bash_profile added

if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  exec startx
fi

but nothing seems to change. I imagine the culprit is the login GUI

Last edited by Francuss (2018-10-05 12:49:16)

Offline

#38 2018-10-05 13:05:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: [SOLVED] After last Pacman update, screen size is reduced

Nothing after the first "exec" call is processed.
Therefore also ensure you didn't append the if block, but have it before the exec call.
You shall not remove, but just disable it - and that's not complicated at all. "systemctl disable lightdm.service"…

Offline

#39 2018-10-05 18:13:42

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: [SOLVED] After last Pacman update, screen size is reduced

seth wrote:

Nothing after the first "exec" call is processed.
Therefore also ensure you didn't append the if block, but have it before the exec call.
You shall not remove, but just disable it - and that's not complicated at all. "systemctl disable lightdm.service"…

Ok, the GUI login does not appear anymore and everything works as supposed.

Many thanks for the generous help

Offline

Board footer

Powered by FluxBB