[SOLVED] i3 start up issue
-
- Posts: 10
- Joined: Fri May 10, 2019 8:34 am
[SOLVED] i3 start up issue
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.
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.
Re: i3 start up issue
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.
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.
-
- Posts: 10
- Joined: Fri May 10, 2019 8:34 am
Re: i3 start up issue
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
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
- dolphin_oracle
- Developer
- Posts: 22294
- Joined: Sun Dec 16, 2007 12:17 pm
Re: i3 start up issue
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.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
- dolphin_oracle
- Developer
- Posts: 22294
- Joined: Sun Dec 16, 2007 12:17 pm
Re: i3 start up issue
I think going into
and removing the line will solve the issue.
also remove the same from
log out and login.
Code: Select all
~/.config/autostart/pulse-start.desktop
Code: Select all
OnlyShowIn=XFCE
also remove the same from
Code: Select all
~/.config/autostart/volumeicon.desktop.
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.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
-
- Posts: 10
- Joined: Fri May 10, 2019 8:34 am
Re: i3 start up issue
Will try tomorrow now as just leaving for work.
Re: i3 start up issue
i3 utilizes its config file in ~/.config/i3 'checking' for exec commands.dolphin_oracle wrote: Fri Sep 25, 2020 12:43 pm does i3 utilize standard ~/.config/autostart entries or does it have a startup file?
Re: i3 start up issue
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?
<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?
-
- Posts: 10
- Joined: Fri May 10, 2019 8:34 am
Re: i3 start up issue
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.
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.
- dolphin_oracle
- Developer
- Posts: 22294
- Joined: Sun Dec 16, 2007 12:17 pm
Re: i3 start up issue
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.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.