Package: hibernate
Version: 2.0+15+g88d54a8-1
When suspending/resuming, the ehci_hcd module gets unloaded/reloaded, which
causes the loss of my keyboard autorepeat settings (see also #667091).
But my kernel (3.2.0-3-amd64) is new enough for it not to be blacklisted:
gert@gert:~$ cat /etc/hibernate/blacklisted-modules |grep ehci_hcd
ehci_hcd 2.6.0 2.6.14
This is because in the file:
/usr/share/hibernate/scriptlets.d/modules
there is this line which reads the kernel version:
local kver=`awk 'BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}'
/proc/sys/kernel/osrelease`
However, running this awk command at the prompt:
gert@gert:~$ awk 'BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}'
/proc/sys/kernel/osrelease
0
This is because I have mawk automatically installed (because of base-files
dependancy). After I install gawk:
gert@gert:~$ awk 'BEGIN{FS="[^0-9]"}{print($1*0x10000)+($2*0x100)+$3}'
/proc/sys/kernel/osrelease
197120
And indeed, after installing gawk it works fine, no modules are
unloaded/reloaded during suspend/resume.
So, either that line should be rewritten to work with all awks, or hibernate
should depend on and use gawk.
FWIW, I have also done another report (#682718), which is also related to hibernate/gawk dependancy, so maybe there are even more bugs because
of assuming gawk is available.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]