summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2020-05-07 08:04:16 +0000
committerAntoine Prieels <anp@odoo.com>2020-05-07 10:50:09 +0000
commitd2b172becd5782fbfc5183932a780a444845bdb4 (patch)
tree353b04d00e8b43c51080f62e6f86f33b44cbb403 /addons/web/static/src/js/views/basic
parentd8bc0e48119d9a12986b949c918b5ff97d89893a (diff)
[FIX] hw_drivers: No devices after monitor disconnect
Steps to reproduce: - Start the IoT Box with a monitor plugged in - Unplug the monitor - Restart the Odoo service (i.e. connect the IoT Box to a DB) - No devices are detected The problem came from the fact that `tvservice -l` and `tvservice -n` have different behaviors when a monitor is disconnected: - `tvservice -l` still says that a device is attached - `tvservice -n` cannot detect the name of the device so it logs an error to stderr but still has a return value of 0 so we read an empty string from stdout. The `get_connected_displays` function raised an exception because the format of the returned string was not the one we excepted. The other loops were then not started and no devices at all were detected. closes odoo/odoo#50839 X-original-commit: ab6ec2ab6d30a86f9741da4b1986831772004d91 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com> Signed-off-by: Antoine Prieƫls <aprieels@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions