Commit da89797d authored by Nikita Krishnia-INTERN's avatar Nikita Krishnia-INTERN Committed by Aaron Plattner

Auto-reflect runtime changes in nvidia settings when the nvidia-gridd is restarted/stopped.

Issue and root cause:
When 'Manage License' page is created , a timer callback is registered to
query license state from nvidia-gridd with 1 sec time interval to
update the 'Manage License' page. When nvidia-gridd service is stopped,
there is no response against the Dbus request so the callback function exits with error
which destroys the timer. Hence 'Manage License' page is never updated.

Do not destroy the timer which updates the 'Manage license' page even if 'nvidia-gridd' service
is stopped.
Upon failure to communicate with nvidia-gridd to fetch licensing state info
we are disabling all UI controls and notifying user about the issue via a message on the UI.

Testing Done:
Verified that if nvidia-gridd service is restarted then 'Manage License' page gets
refreshed automatically.
parent 8860a207
This diff is collapsed.
......@@ -56,6 +56,8 @@ struct _CtkManageGridLicense
GtkWidget* txt_server_address;
GtkWidget* label_license_state;
GtkWidget* btn_apply;
GtkWidget* radio_btn_vapp;
GtkWidget* radio_btn_qdws;
GtkWidget* btn_cancel;
GtkWidget* box_server_info;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment