You are not logged in.
Hello,
I am running Arch Linux with bspwm and ly. I have recently removed lightdm and replaced it with ly (see the base config file here). As I understand it, ly pulls from .xinitrc to render. At the moment, my .xinitrc file looks like this:
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
xrandr --output HDMI-0 --primary --mode 1920x1080 --rotate normal --output DP-1 --mode 1920x1080 --rotate normal --above HDMI-0 --output DP-3 --mode 1920x1080 --rotate normal --right-of DP-1 --output DP-5 --mode 1920x1080 --rotate normal --right-of HDMI-0
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
#xrdb ~/.Xresources
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
playerctld daemon &
wal -R
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
exec bspwm &I have ensured that this file is executable, as suggested by the README on the ly github page. However, the line involving xrandr:
xrandr --output HDMI-0 --primary --mode 1920x1080 --rotate normal --output DP-1 --mode 1920x1080 --rotate normal --above HDMI-0 --output DP-3 --mode 1920x1080 --rotate normal --right-of DP-1 --output DP-5 --mode 1920x1080 --rotate normal --right-of HDMI-0does not appear to do anything. I have tested this by placing the same line in my bspwmrc file and commenting it out; my display only renders correctly when this is uncommented, irrespective of whether the line in .xinitrc is commented or not.
Interestingly enough, I believe that the line above did work in .xinitrc when I was using lightdm. I am not sure if this is because ly runs within tty2 or if it is something else entirely. I found also that my mouse is using the default X cursor icon instead of the now common black arrow from Adwaita. Any help you could provide would be much appreciated, thank you.
Last edited by 山猿 (2023-07-29 23:35:54)
Offline
Issue partially solved by doing the following:
Edit /etc/default/grub as follows:
/etc/default/grub
...
GRUB_GFXMODE=1920x1080
GRUB_GFXPAYLOAD_LINUX=keep
...Update the grub file by running this command:
sudo grub-mkconfig -o /boot/grub/grub.cfgThe boot loader now displays the correct resolution, as does the display manager. My other screens, however, remain off until I launch into my windows manager, bspwm.
When I run xrandr -q, I am given the following output:
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+1080 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00*+ 59.94 50.00
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 59.94
640x480 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00*+ 59.94 50.00
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 59.94
640x480 59.94 59.93
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00*+ 59.94 50.00
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 59.94
640x480 59.94 59.93
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 connected 1920x1080+1920+1080 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00*+ 59.94 50.00
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 59.94
640x480 59.94 59.93 So as I understand it, a 'screen' does exist, treating my square of 4 1920x1080 monitors as a single 3840x2160 panel (if I understand right), allowing me to, for instance, tile a feh image as a background across all 4 screens, as if the image was stretched across them. Is there a way to do this for GRUB and (or least, if not both) the ly display manager? I do know that I managed to display all 4 screens via lightdm. Thank you.
Last edited by 山猿 (2023-07-30 11:28:23)
Offline