Skip to content

Conversation

@r2rien
Copy link

@r2rien r2rien commented Sep 24, 2024

When "--idle-time" is specified in weston.service cmdline,
It will supersede any value set in /etc/xdg/weston/weston.ini, becoming useless.

This MR is proposing to handle rather this "--idle-time" value in a new provided weston.ini file in target dir,
achieving strictly same result (setting it to 0 == de-activating it),
but letting any downstream test job testing/debugging resuming from suspend,
adding much less divergence from master branch,
thus easier to maintain.

thanks in advance

…g/weston/weston.ini to ease debugging resume from suspend
Copy link
Member

@cshilwant cshilwant left a comment

Choose a reason for hiding this comment

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

Same comment as #60 (review)

@jsuhaas22 Can you review the changes as well.

@jsuhaas22
Copy link
Collaborator

Hi @r2rien

Thanks for the PR.

Since ExecStart would pick "--idle-time" from weston.ini, idle-time is still 0, unless you edit the ExecStart line in weston.service file. But if you have to manually edit the weston.service file to override value of --idle-time, then you could have done that even earlier. So could you please explain your specific use-case which would benefit from this PR? AFAIK you can't pass arguments in systemctl (re)start <service> commands either.

@r2rien
Copy link
Author

r2rien commented Sep 25, 2024

Hi, thanks for your review

Since ExecStart would pick "--idle-time" from weston.ini, idle-time is still 0

As I was telling, whatever is specified in weston.ini is superseded by --idle-time value in weston.service.
Thus my intent is to have to only modify weston.ini in /etc precisely without having to restart weston.service
Since the original --idle-time value in weston.service was 0,
I kept this value in weston.ini to submit a PR :

  • guaranteed without any change/impact against current ti version:
  • to maximize its chance of being accepted
  • while this value will be the only thing to branch in our downstream repo

Hope I clarified my intent enough - cheers

@r2rien r2rien requested a review from cshilwant October 10, 2024 12:16
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.

3 participants