Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789567 - gui-wm/sway-1.6 cannot start at all with a custom configuration file
Summary: gui-wm/sway-1.6 cannot start at all with a custom configuration file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Aaron Bauman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-12 06:19 UTC by Jiahao_XU
Modified: 2021-08-29 02:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiahao_XU 2021-05-12 06:19:04 UTC
The only way to start sway on my computer is to remove ~/.config/sway/config and uses the system default /etc/sway/config.

Otherwise, it would either print 'failed to create display', or display some garbage on my screen.

Have to downgrade to 1.5 for now.
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2021-05-15 01:12:03 UTC
I run a custom config...

A `diff -u` between the broken and working config would be helpful to see.
Comment 2 Jiahao_XU 2021-05-15 09:48:54 UTC
Here's the diff:

6a7,8
> xwayland enable
> 
10c12
< set $mod Mod4
---
> set $mod Mod1
17c19
< set $term alacritty
---
> set $term foot
21c23,24
< set $menu dmenu_path | dmenu | xargs swaymsg exec --
---
> #set $menu bemenu-run
> set $menu bemenu-run --no-exec | xargs swaymsg exec systemd-cat --
26c29
< output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
---
> output * bg ~/Pictures/LabMemWordline_HD_WallpaperBG.png fill
45a49,52
> exec swayidle -w \
>           timeout 300 'swaylock -f -c 000000' \
>           timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
>           before-sleep 'swaylock -f -c 000000'
83a91,92
>     bindsym $mod+ctrl+Shift+l exec swaylock -f -c 000000
> 
198a208,226
> bindsym XF86MonBrightnessDown exec sudo light -U 2
> bindsym XF86MonBrightnessUp exec sudo light -A 4
> 
> bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
> bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
> 
> #
> # Screen capture
> #
> set $ps1 Print
> set $ps2 Control+Print
> set $ps3 Alt+Print
> set $ps4 Alt+Control+Print
>  
> bindsym $ps1 exec grim - | wl-copy
> bindsym $ps2 exec grim -g "$(slurp)" - | wl-copy
> bindsym $ps3 exec grim Pictures/Screenshot/ps_$(date +"%Y%m%d%H%M%S").png
> bindsym $ps4 exec grim -g "$(slurp)" Pictures/Screenshot/ps_$(date +"%Y%m%d%H%M%S").png
> 
208c236,238
<     status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
---
>     #status_command exec while echo; do sleep 1; done
>     #status_command exec tee /tmp/swaystatus-input | swaystatus ~/.config/sway/swaystatus_config.json 2>/tmp/swaystatus_stderr
>     status_command exec swaystatus ~/.config/sway/swaystatus_config.json 2>/tmp/swaystatus_stderr
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2021-05-15 18:45:25 UTC
Hmm, I'm not seeing anything obvious.

I'd start, one line at a time, to make the files identical.  Then once the config works, make the last change that seemed to 'fix' it to your original config file and test to make sure the change was the fix.
Comment 4 Jiahao_XU 2021-05-16 01:40:30 UTC
I tried, but it doesn't help much.

Even with all these different comment out and status_command set to `while echo; do sleep 1; done`, sway still couldn't start.
Comment 5 Aaron Bauman (RETIRED) gentoo-dev 2021-08-26 17:45:20 UTC
(In reply to Jiahao_XU from comment #4)
> I tried, but it doesn't help much.
> 
> Even with all these different comment out and status_command set to `while
> echo; do sleep 1; done`, sway still couldn't start.

Have you resolved this? I am inclined to close the bug as the default config shipped with it works.
Comment 6 Jiahao_XU 2021-08-29 01:13:16 UTC
I have asked this problem on [here](https://github.com/swaywm/sway/issues/6408) and getted my reply:

> The nouveau issues should be fixed with wlroots 0.14.1.
Comment 7 Jiahao_XU 2021-08-29 02:36:59 UTC
Sorry the comment was cut off, the replybwas:

> The nouveau issues should be fixed with wlroots 0.14.1