[SOLVED] i3 start up issue

Help on all MX Re-spins
Message
Author
Madcyclist19
Posts: 10
Joined: Fri May 10, 2019 8:34 am

[SOLVED] i3 start up issue

#1 Post by Madcyclist19 »

Hi All,

After recent health issues I've migrated to Mx Linux from Manjaro as looking for a more stable and less time intensive system.

Been using the default Xfce install and very impressed with stability but was missing the flexibility of the tiling features of i3. After installing i3 and paying around with configs I've not managed to resolve an issue with the sound. On booting directly into i3 the volume icon appears but with sound disabled, if I log out and into XFCE the sound is enabled and then able to log back into i3 with sound enabled. This suggests to me that maybe alsa/pulse, pulse is installed, is not loading when booting directly into i3. Currently on a run of night shifts due to sickness at work, was hoping someone may be able to point me in the right direction to resolve this ? time a little short for a week or two.

Kind Regards,

Tony.
Last edited by Madcyclist19 on Mon Sep 28, 2020 10:33 am, edited 2 times in total.

MXtones
Posts: 25
Joined: Fri Sep 25, 2020 6:02 am

Re: i3 start up issue

#2 Post by MXtones »

It's kind of a workaround:

Login to your XFCE session, issue

<alsactl --file ~/.config/asound.state store'>

Logout, login to i3 and add

<exec /usr/sbin/alsactl --file ~/.config/asound.state restore &>

to your i3 config.

Madcyclist19
Posts: 10
Joined: Fri May 10, 2019 8:34 am

Re: i3 start up issue

#3 Post by Madcyclist19 »

Thanks for the quick reply,

Ran <alsactl --file ~/.config/asound.state store'> as user and as sudo in Xfce session

logged into I3 with <exec --no-startup-id /usr/sbin/alsactl --file ~/.config/asound.state restore> and also tried <exec --no-startup-id alsactl --file ~/.config/asound.state restore> in i3 config but no joy.

After a search i have also tried

<sudo alsactl store -f ~/.config/alsa.conf> in Xfce

<exec --no-startup-id alsactl restore ~/.config/alsa.conf> in i3 config

No luck with any of these.

Out of time for now but thanks for the suffestions.

Kind Regards,

Tony

User avatar
dolphin_oracle
Developer
Posts: 22294
Joined: Sun Dec 16, 2007 12:17 pm

Re: i3 start up issue

#4 Post by dolphin_oracle »

does i3 utilize standard ~/.config/autostart entries or does it have a startup file?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
dolphin_oracle
Developer
Posts: 22294
Joined: Sun Dec 16, 2007 12:17 pm

Re: i3 start up issue

#5 Post by dolphin_oracle »

I think going into

Code: Select all

~/.config/autostart/pulse-start.desktop
and removing the

Code: Select all

OnlyShowIn=XFCE
line will solve the issue.

also remove the same from

Code: Select all

~/.config/autostart/volumeicon.desktop.
log out and login.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Madcyclist19
Posts: 10
Joined: Fri May 10, 2019 8:34 am

Re: i3 start up issue

#6 Post by Madcyclist19 »

Will try tomorrow now as just leaving for work.

MXtones
Posts: 25
Joined: Fri Sep 25, 2020 6:02 am

Re: i3 start up issue

#7 Post by MXtones »

dolphin_oracle wrote: Fri Sep 25, 2020 12:43 pm does i3 utilize standard ~/.config/autostart entries or does it have a startup file?
i3 utilizes its config file in ~/.config/i3 'checking' for exec commands.

MXtones
Posts: 25
Joined: Fri Sep 25, 2020 6:02 am

Re: i3 start up issue

#8 Post by MXtones »

On a second thought, there may be a conflict between pulseaudio and alsa. Could you try

<exec sleep 5 && /usr/sbin/alsactl --file ~/.config/asound.state restore &>

in your config file in order to let alsa set up the sound after pulseaudio?

Madcyclist19
Posts: 10
Joined: Fri May 10, 2019 8:34 am

Re: i3 start up issue

#9 Post by Madcyclist19 »

Once again thanks for the help and suggestions.

Managed to sort out a workaround of sorts that requires me to log out and back in again to enable sound without going through Xfce so although not ideal it will do until i have more time.

I3 doesn't auto load from autostart folder so added following lines to i3 config.

<## sound section>

<exec --no-startup-id sleep 5 && volumeicon>
<exec --no-startup-id sleep 5 && pulseaudio>
<bindsym $mod+Ctrl+m exec sleep 5 && i3-sensible-terminal -e pavucontrol>

The 'sleep 5 &&' was an attempt to delay start of apps to see if resolved issue but alas it didn't, i have also tried 'exec-always' for all three and restarting i3 in place and that doesn't work either. Any ideas why logging out and back in resolves it ?

Time to enjoy some Rush tracks !!

Kind Regards,

Tony.

User avatar
dolphin_oracle
Developer
Posts: 22294
Joined: Sun Dec 16, 2007 12:17 pm

Re: i3 start up issue

#10 Post by dolphin_oracle »

you want to start pulseaudio before volumeicon. this is what our pulse-start script does on Xfce.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Post Reply

Return to “MX Respins”