Skip to content

Fix the slow reboot issue on A733 - #74

Closed
wangyongsen11 wants to merge 1 commit into
radxa-pkg:mainfrom
wangyongsen11:main
Closed

wangyongsen11 wants to merge 1 commit into
radxa-pkg:mainfrom
wangyongsen11:main

Conversation

@wangyongsen11

Copy link
Copy Markdown
Contributor

Signal plasmashell before SDDM tears down X11, then stop the user service through systemd to prevent a restart
and wait for a clean exit.

Signal plasmashell before SDDM tears down X11, then stop the user service through systemd to prevent a restart
      and wait for a clean exit.

Signed-off-by: Wang Yongsen <wangyongsen@radxa.com>
@github-actions

Copy link
Copy Markdown
Contributor

No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged

@RadxaYuntian RadxaYuntian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

问题是为什么plasmashell没有正常退出

# Start Plasma's graceful shutdown immediately, before session teardown can
# terminate the X server. The user manager stop below prevents a restart and
# waits for the service to finish.
for proc_comm in /proc/[0-9]*/comm; do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接pkill不就好了……

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接pkill不就好了……

直接杀掉可能会有其他会话再次启动进程

@wangyongsen11

Copy link
Copy Markdown
Contributor Author

问题是为什么plasmashell没有正常退出

原有关机流程没有保证 plasmashell 在 X Server 之前收到停止请求

@RadxaYuntian

Copy link
Copy Markdown
Member

systemd关机应该是并行关闭服务的,为什么plasmashell需要在x server之前关闭?并且就算在之后关闭也应该关得掉才对

@wangyongsen11

Copy link
Copy Markdown
Contributor Author

systemd关机应该是并行关闭服务的,为什么plasmashell需要在x server之前关闭?并且就算在之后关闭也应该关得掉才对

是的,理论上本身可以,但是实际现象是X Server 先退出,plasmashell的X11连接突然断开,Qt 随即调用 exit(1) 进入异常退出路径,绕过了plasmashell正常的app.quit()

@RadxaYuntian RadxaYuntian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个要移动到allwinner-profiles的task-a733-xorg里面

@RadxaYuntian

Copy link
Copy Markdown
Member

Replaced by radxa-pkg/allwinner-profiles#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants