Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[modesetting] Do not leave android usb disabled after unsetting mode.…
… JB#35683

Seems that just writing enable=0 functions=none leaves the android usb in
some sort of limbo where cable detection does not work until enable=1
write is also made.

Do enable=1 write after clearing functions on cable disconnect.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Jul 7, 2016
1 parent 3d6e10e commit 358b23d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/usb_moded-modesetting.c
Expand Up @@ -541,6 +541,12 @@ void unset_dynamic_mode(void)
set_android_vendorid(id);
g_free(id);
}

/* enable after the changes have been made */
if(data->softconnect)
{
write_to_file(data->softconnect_path, data->softconnect);
}
}

/** clean up mode changes or extra actions to perform after a mode change
Expand Down

0 comments on commit 358b23d

Please sign in to comment.