Hey Osamu, Osamu Aoki [2012-02-10 1:06 +0900]: > === Solution 1: simple fix === > > In laptop_mode, change laptop_mode_ac() function as follows. > > === > laptop_mode_ac() { > # disable laptop mode, set vm parameters back to sane defaults > if state_exists laptop_mode_default; then > write_values $(restorestate laptop_mode_default) > fi > echo "Laptop mode disabled." > }
Indeed I think that's the right way to do it. I verified that the kernel defaults are exactly the hardcoded values (at least with recent ones, 3.13 and 3.15), so that else branch is unnecessary. I'll apply your patch, thanks! Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org