Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: richie on 19 December 2024, 06:29:48

Title: Issues with xfce OpenRC
Post by: richie on 19 December 2024, 06:29:48
Yesterday i installed artix-base-openrc and xfce DE. I am having 3 issues.
1. When i am presented with lightdm gtk to login. I enter my password and then it blinks and ask for password again. after entering password for 2nd time. it shows me desktop screen.
2. often librewolf stops launching and after logging in again, it starts to launch without changing anything.

3. the screen brightness is always set to maximum after every restart.
Please help.
Title: Re: Issues with xfce OpenRC
Post by: MaxLPM on 19 December 2024, 07:40:12
Quote
1. When i am presented with lightdm gtk to login. I enter my password and then it blinks and ask for password again. after entering password for 2nd time. it shows me desktop screen.
Do you have a hostname? Check /etc/hostname and /etc/hosts, they should be configured like so: https://wiki.artixlinux.org/Main/Installation#Network_configuration
Quote
2. often librewolf stops launching and after logging in again, it starts to launch without changing anything.
This is very vague, maybe see if this happens again after solving the lightdm thing?
Quote
3. the screen brightness is always set to maximum after every restart.
This is actually intended, if you want to save brightness then install backlight-openrc and enable it:
Code: [Select]
sudo rc-update add backlight default
Title: Re: Issues with xfce OpenRC
Post by: richie on 19 December 2024, 08:12:15
Quote
1. When i am presented with lightdm gtk to login. I enter my password and then it blinks and ask for password again. after entering password for 2nd time. it shows me desktop screen.
Do you have a hostname? Check /etc/hostname and /etc/hosts, they should be configured like so: https://wiki.artixlinux.org/Main/Installation#Network_configuration
Quote
2. often librewolf stops launching and after logging in again, it starts to launch without changing anything.
This is very vague, maybe see if this happens again after solving the lightdm thing?
Quote
3. the screen brightness is always set to maximum after every restart.
This is actually intended, if you want to save brightness then install backlight-openrc and enable it:
Code: [Select]
sudo rc-update add backlight default
okay i added backlight-openrc and brightness issue is solved. but i have hostname and hosts set correctly and issue still remains
Title: Re: Issues with xfce OpenRC
Post by: richie on 19 December 2024, 08:28:36
here is my xsession errors file text . i think issue might be presented here. please check and tell me.
https://paste.artixlinux.org/view/497951c7 (https://paste.artixlinux.org/view/497951c7)
Title: Re: Issues with xfce OpenRC
Post by: MaxLPM on 19 December 2024, 09:23:20
Quote
but i have hostname and hosts set correctly and issue still remains
Hm, this is weird. Seems like a common cause of this issue is the hostname, I can't really find anything else. What does running hostname from a terminal output?

And it doesn't look like there's anything critical in the xsessionerrors, though the pulseaudio warning is a bit concerning. Do you have sound? Are you using pipewire or pulseaudio?
Title: Re: Issues with xfce OpenRC
Post by: richie on 19 December 2024, 09:36:03
Quote
but i have hostname and hosts set correctly and issue still remains
Hm, this is weird. Seems like a common cause of this issue is the hostname, I can't really find anything else. What does running hostname from a terminal output?

And it doesn't look like there's anything critical in the xsessionerrors, though the pulseaudio warning is a bit concerning. Do you have sound? Are you using pipewire or pulseaudio?
hostname command outputs systemhostname. no i downloaded pipewire and struggling to get it work. i have no sound. followed artix wiki and created .xinitrc file and pasted the commands but i still have no sound
Title: Re: Issues with xfce OpenRC
Post by: MaxLPM on 19 December 2024, 09:40:07
Quote
followed artix wiki and created .xinitrc file and pasted the commands but i still have no sound
What commands exactly? Post your .xinitrc
Title: Re: Issues with xfce OpenRC
Post by: richie on 19 December 2024, 09:48:01
Quote
followed artix wiki and created .xinitrc file and pasted the commands but i still have no sound
What commands exactly? Post your .xinitrc
Code: [Select]
/usr/bin/pipewire &
 /usr/bin/pipewire-pulse &
 /usr/bin/wireplumber &
 exec openbox-session
Title: Re: Issues with xfce OpenRC
Post by: MaxLPM on 19 December 2024, 09:59:06
Quote
exec openbox-session
You're using XFCE, not openbox, this line is basically trying to start a window manager that doesn't exist on your system. This is only an example from the wiki, you have to change it according to your use case, which means your .xinitrc should look like so:
Code: [Select]
/usr/bin/pipewire &
 /usr/bin/pipewire-pulse &
 /usr/bin/wireplumber &
exec startxfce4
Reboot and see if lightdm works normally now

EDIT: Hm, well actually it looks like lightdm doesn't even use .xinitrc, so this file shouldn't even matter. Sorry, I've never really worked with login managers, mostly use startx
Title: Re: Issues with xfce OpenRC
Post by: richie on 19 December 2024, 11:00:25
Quote
exec openbox-session
You're using XFCE, not openbox, this line is basically trying to start a window manager that doesn't exist on your system. This is only an example from the wiki, you have to change it according to your use case, which means your .xinitrc should look like so:
Code: [Select]
/usr/bin/pipewire &
 /usr/bin/pipewire-pulse &
 /usr/bin/wireplumber &
exec startxfce4
Reboot and see if lightdm works normally now

EDIT: Hm, well actually it looks like lightdm doesn't even use .xinitrc, so this file shouldn't even matter. Sorry, I've never really worked with login managers, mostly use startx
it worked. after folowing it . now gets to desktop on just 1 login. however i gave up on pipewire and installed pulseaudio and removed xinitrc file and now sounds also works and lightdm problem solved too.