--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- laptop-mode-tools-1.65.ebuild +++ laptop-mode-tools-1.65.ebuild @@ -30,6 +30,11 @@ S=${WORKDIR}/${MY_P} src_prepare() { + # fix USB autosuspend issues #520124 + rm etc/laptop-mode/conf.d/usb-autosuspend.conf + rm usr/share/laptop-mode-tools/modules/usb-autosuspend + epatch "${FILESDIR}"/${P}-usb-autosuspend.patch + # This should avoid conflict with pm-powersave wrt #327443 and #396703 cat <<-EOF > "${T}"/${PN} HOOK_BLACKLIST="00powersave" @@ -90,4 +95,12 @@ ewarn "information." ewarn fi + + if [ -e "/etc/laptop-mode/conf.d/usb-autosuspend.conf" ]; then + ewarn "/etc/laptop-mode/conf.d/usb-autosuspend.conf exists from an" + ewarn "older installation. It is recommended you delete this file" + ewarn "as per the author's suggestion:" + ewarn "https://github.com/rickysarraf/laptop-mode-tools/commit/ad323f37b22ef0088dd687e0af040afe309e2dcb" + ewarn + fi }