You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building version 2.4.7 with upower-0.99.15, the build fails with a deprecated function error:
src/thd_engine_adaptive.cpp: In member function ‘int cthd_engine_adaptive::evaluate_lid_condition(condition)’: src/thd_engine_adaptive.cpp:1002:61: error: ‘gboolean up_client_get_lid_is_closed(UpClient*)’ is deprecated [-Werror=deprecated-declarations] 1002 | bool lid_closed = up_client_get_lid_is_closed(upower_client);
I could try to make a pull request, but I am not a C++ expert, and also don't know my way around the thermald code, so I don't think it would be helpful. When I look at the pull request to update gnome settings daemon to overcome this issue, I wouldn't know how to make this change gnome-agnostic (which I assume it should be).
This issue is referenced in Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005478
(and also on other distributions)
The UPower interface for the lid state is deprecated. As such, we should
be reading it directly from the input device. Making the switch is
straight forward, so just do it.
Closes: intel#340
When building version 2.4.7 with upower-0.99.15, the build fails with a deprecated function error:
src/thd_engine_adaptive.cpp: In member function ‘int cthd_engine_adaptive::evaluate_lid_condition(condition)’: src/thd_engine_adaptive.cpp:1002:61: error: ‘gboolean up_client_get_lid_is_closed(UpClient*)’ is deprecated [-Werror=deprecated-declarations] 1002 | bool lid_closed = up_client_get_lid_is_closed(upower_client);
This has been deprecated with the update of upower to 0.15. According to their merge, logind functionality should be used instead:
https://gitlab.freedesktop.org/upower/upower/-/merge_requests/5
I could try to make a pull request, but I am not a C++ expert, and also don't know my way around the thermald code, so I don't think it would be helpful. When I look at the pull request to update gnome settings daemon to overcome this issue, I wouldn't know how to make this change gnome-agnostic (which I assume it should be).
This issue is referenced in Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005478
(and also on other distributions)
EDIT: Looks like this is already in hand: https://github.com/intel/thermal_daemon/pull/338/commits/93c7d2783b28a4b5ec5ca5071881547b5ee65da3
The text was updated successfully, but these errors were encountered: