You are not logged in.

#1 2022-07-15 18:55:47

inter22
Member
Registered: 2022-07-02
Posts: 25

BSPWM not starting up automatically

Hello!
Recently I have installed BSPWM, and set it up for automatic boot - but it won't boot directly. The only way I can get into BSPWM was if I used the tty.

Thank you, and have a great day!

Offline

#2 2022-07-15 20:06:32

JaydenDev
Member
Registered: 2022-07-11
Posts: 172

Re: BSPWM not starting up automatically

Did you install a display manager? This is one of the last steps to setting up a fresh arch installation. For bspwm I recommend sddm or lightdm.


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#3 2022-07-15 20:10:03

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 134
Website

Re: BSPWM not starting up automatically

How did you enable autologin?

If you using xinit or startx, post xinitrc file and login shell initialization file.


I'm just someone. Please use [code] [/code] tags.

Offline

#4 2022-07-15 20:18:45

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

I did install a display manager, and here's my xinitrc & bash profile files:
xinitrc: http://ix.io/44sC
bash profile: http://ix.io/3T9P

Offline

#5 2022-07-15 20:23:21

JaydenDev
Member
Registered: 2022-07-11
Posts: 172

Re: BSPWM not starting up automatically

inter22 wrote:

I did install a display manager, and here's my xinitrc & bash profile files:
xinitrc: http://ix.io/44sC
bash profile: http://ix.io/3T9P

When a display manager is in use, the .xinitrc is completely ignored. If you used that alongside bspwm to autorun apps, you can just copy that over to ~/.config/bspwm/bspwmrc. What display manager exactly? You can probably configure autologin!

Last edited by JaydenDev (2022-07-15 20:23:43)


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#6 2022-07-15 20:25:01

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

JaydenDev wrote:
inter22 wrote:

I did install a display manager, and here's my xinitrc & bash profile files:
xinitrc: http://ix.io/44sC
bash profile: http://ix.io/3T9P

When a display manager is in use, the .xinitrc is completely ignored. If you used that alongside bspwm to autorun apps, you can just copy that over to ~/.config/bspwm/bspwmrc. What display manager exactly? You can probably configure autologin!

I am using LightDM for my display manager

Offline

#7 2022-07-15 20:27:23

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 134
Website

Re: BSPWM not starting up automatically

In your xinitrc file add exec in bspwm line. Something like exec bspwm

And if you install a display manager, I think you need to enable the service of that display. But use xinit or a display manager.

For lightdm enable lightdm.service with systemctl, and install a lightdm-greeter: https://wiki.archlinux.org/title/LightDM#Greeter

Last edited by Adriik (2022-07-15 20:27:40)


I'm just someone. Please use [code] [/code] tags.

Offline

#8 2022-07-15 20:27:47

JaydenDev
Member
Registered: 2022-07-11
Posts: 172

Re: BSPWM not starting up automatically

inter22 wrote:
JaydenDev wrote:
inter22 wrote:

I did install a display manager, and here's my xinitrc & bash profile files:
xinitrc: http://ix.io/44sC
bash profile: http://ix.io/3T9P

When a display manager is in use, the .xinitrc is completely ignored. If you used that alongside bspwm to autorun apps, you can just copy that over to ~/.config/bspwm/bspwmrc. What display manager exactly? You can probably configure autologin!

I am using LightDM for my display manager

edit '/etc/lightdm/lightdm.conf' with your preferred editor

find the following commented lines

#autologin-guest=false
#autologin-user=user
#autologin-user-timeout=0

uncomment said lines, and set autologin-user to your username.

source: here

Last edited by JaydenDev (2022-07-15 20:28:00)


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#9 2022-07-15 20:39:02

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

JaydenDev wrote:
inter22 wrote:
JaydenDev wrote:

When a display manager is in use, the .xinitrc is completely ignored. If you used that alongside bspwm to autorun apps, you can just copy that over to ~/.config/bspwm/bspwmrc. What display manager exactly? You can probably configure autologin!

I am using LightDM for my display manager

edit '/etc/lightdm/lightdm.conf' with your preferred editor

find the following commented lines

#autologin-guest=false
#autologin-user=user
#autologin-user-timeout=0

uncomment said lines, and set autologin-user to your username.

source: here

Hey! I'm trying to edit the file, but my password isn't working when trying to sudo. It works when I tried to change the password. What should I do?

Offline

#10 2022-07-15 20:43:07

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: BSPWM not starting up automatically

JaydenDev wrote:

source: here

Have you tested those instructions?  They do not match LightDM#Enabling_autologin.
Edit:

inter22 wrote:

Hey! I'm trying to edit the file, but my password isn't working when trying to sudo. It works when I tried to change the password. What should I do?

Have you been able to use sudo successfully with that user previously?  If not have you configured sudo so it should be useable by your user?

Last edited by loqs (2022-07-15 20:51:37)

Offline

#11 2022-07-15 21:04:45

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

loqs wrote:
JaydenDev wrote:

source: here

Have you tested those instructions?  They do not match LightDM#Enabling_autologin.
Edit:

inter22 wrote:

Hey! I'm trying to edit the file, but my password isn't working when trying to sudo. It works when I tried to change the password. What should I do?

Have you been able to use sudo successfully with that user previously?  If not have you configured sudo so it should be useable by your user?

Yes, I have been able to use sudo before.

Offline

#12 2022-07-15 21:09:22

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: BSPWM not starting up automatically

Check the output of `faillock` see if lists three entries marked as valid.  If so reset faillock with `faillock --reset` Security#Lock_out_user_after_three_failed_login_attempts
If that is not the cause,  check the system journal.  If you user is not in the wheel,  adm or systemd-journal group use su or login as root as sudo is refusing access.

Offline

#13 2022-07-15 21:11:27

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

loqs wrote:

Check the output of `faillock` see if lists three entries marked as valid.  If so reset faillock with `faillock --reset` Security#Lock_out_user_after_three_failed_login_attempts
If that is not the cause,  check the system journal.  If you user is not in the wheel,  adm or systemd-journal group use su or login as root as sudo is refusing access.

Thank you! I had to reset faillock to get sudo to work

Offline

#14 2022-07-15 21:23:19

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

I enabled autologin, and yet I still can't automatically get into BSPWM.

Offline

#15 2022-07-15 21:51:55

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: BSPWM not starting up automatically

Please post the config files you modified to enable autologin / autostart of bspwm.
Edit:
Is autologin now functioning but now starting bspwm?  If so what is starting?

Last edited by loqs (2022-07-15 22:04:04)

Offline

#16 2022-07-15 22:42:33

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

loqs wrote:

Please post the config files you modified to enable autologin / autostart of bspwm.
Edit:
Is autologin now functioning but now starting bspwm?  If so what is starting?

Hey, sorry for the wait. I had to login, and here is the autologin from lightdm.conf: http://ix.io/44t2

Offline

#17 2022-07-15 22:52:28

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: BSPWM not starting up automatically

What if you change

autologin-session=Xfce Session

to

autologin-session=bspwm

Or comment that entry out and use ~/.dmrc
I assume you added your user to the autologin group as documented in LightDM#Enabling_autologin

Offline

#18 2022-07-15 23:56:13

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

loqs wrote:

What if you change

autologin-session=Xfce Session

to

autologin-session=bspwm

Or comment that entry out and use ~/.dmrc
I assume you added your user to the autologin group as documented in LightDM#Enabling_autologin

Sorry for the long wait again, but both of those options did not work. When I changed Xfce Session to bspwm, it showed a black screen. When I used dmrc, it went to Xfce.

Offline

#19 2022-07-16 00:23:01

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: BSPWM not starting up automatically

You had Xinit#Autostart_X_at_login configured if you changed 'bspwm' to 'exec bspwm' on the last line of .xinitrc and stopped lightdm does that work?

Offline

#20 2022-07-16 00:38:44

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

loqs wrote:

You had Xinit#Autostart_X_at_login configured if you changed 'bspwm' to 'exec bspwm' on the last line of .xinitrc and stopped lightdm does that work?

I changed that before, yes

Offline

#21 2022-07-16 00:43:53

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: BSPWM not starting up automatically

inter22 wrote:
loqs wrote:

You had Xinit#Autostart_X_at_login configured if you changed 'bspwm' to 'exec bspwm' on the last line of .xinitrc and stopped lightdm does that work?

I changed that before, yes

Then after rebooting with lightdm disabled,  on tty1 is your user autologged in and X started running bspwm?
Edit:
lightdm has to be disabled as it conflicts with getty@tty1.service preventing the getty from starting.

Last edited by loqs (2022-07-16 00:45:28)

Offline

#22 2022-07-16 01:26:59

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

loqs wrote:
inter22 wrote:
loqs wrote:

You had Xinit#Autostart_X_at_login configured if you changed 'bspwm' to 'exec bspwm' on the last line of .xinitrc and stopped lightdm does that work?

I changed that before, yes

Then after rebooting with lightdm disabled,  on tty1 is your user autologged in and X started running bspwm?
Edit:
lightdm has to be disabled as it conflicts with getty@tty1.service preventing the getty from starting.

I disabled lightdm using

sudo systemctl stop lightdm.service

, and it's still not booting into BSPWM.

Offline

#23 2022-07-16 01:36:53

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: BSPWM not starting up automatically

After lightdm stopped on tty1 did a tty start on it?  If not you may need to disable lightdm then reboot.  If a tty did start,  did it autologin?  If not after you logged in did it start X?  If X started what was started under X or did X just exit?

Offline

#24 2022-07-16 01:45:24

inter22
Member
Registered: 2022-07-02
Posts: 25

Re: BSPWM not starting up automatically

loqs wrote:

After lightdm stopped on tty1 did a tty start on it?  If not you may need to disable lightdm then reboot.  If a tty did start,  did it autologin?  If not after you logged in did it start X?  If X started what was started under X or did X just exit?

Hey, no it didn't start the tty and no it didn't auto login. When I logged in it went to my (I'm guessing) Xfce desktop.

Offline

#25 2022-07-16 06:14:21

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

Re: BSPWM not starting up automatically

I disabled lightdm using

sudo systemctl stop lightdm.service

, and it's still not booting into BSPWM.

That doesn't *disable* but *stop* lightdm and "boot" implies "reboot" what makes the previous "systemctl stop lightdm.service" irrelevant.

1. Do you want to use lightdm or are you actually fine w/ xinit?
2. To avoid booting into lightdm run

sudo systemctl disable lightdm

3. reboot, describe what happens.
4. if it doesn't work post the output of

grep $(id -un) /etc/passwd

and what your shell profile, shell rc and xinitrc presently look like.

Offline

Board footer

Powered by FluxBB