debian/0000755000000000000000000000000012236376517007202 5ustar debian/TODO0000644000000000000000000000022512236376517007671 0ustar - Move video-quirks to /usr/share/pm-utils - Update video-quirks, sync with current hal-info git master - Cleanup /var/{cache,run}/pm-utils on purge debian/changelog0000644000000000000000000007024612236376517011065 0ustar pm-utils (1.4.1-13) unstable; urgency=low [ Martin Pitt ] * debian/sleep.d/50unload_alx: Unload the alx module during suspend. (LP: #1173952) * Drop obsolete debian/pm-utils.preinst. * Drop obsolete Conflicts/Replaces to pm-utils-powersave-policy and laptop-mode-tools. * debian/copyright: Move to copyright format 1.0. * Move to canonical Vcs-* fields (anonscm.debian.org). * Bump to Standards-Version 3.9.5. [ Hao-Ran Liu ] * Add 28-suspend-hybrid.patch: Support in-kernel hybrid suspend (Linux >= 3.6) (LP: #1172692) -- Martin Pitt Wed, 06 Nov 2013 09:26:45 +0100 pm-utils (1.4.1-12) unstable; urgency=low * debian/video-quirks/20-video-quirk-pm-misc.quirkdb: Don't apply quirks for the vmwgfx driver to fix suspend in VMWare. Thanks Jakob Bornecrantz! (fd.o #70056, LP: #1234424) * debian/video-quirks/20-video-quirk-pm-sony.quirkdb: Add quirk for SONY Vaio Z1-RCP, thanks Yan Li! (Closes: #625805) * Add 05-uswsusp-hibernate-mode.patch: Check HIBERNATE_MODE in uswsusp module. Thanks Vadim Solomin! (Closes: #589553) * Add 27-run-hook-logging.patch: In suspend log, put empty line after running the hook, not in between. Thanks Dominique Brazziel! (Closes: #661168) -- Martin Pitt Wed, 09 Oct 2013 07:49:49 +0200 pm-utils (1.4.1-11) unstable; urgency=low * Add 04-ignore-led-failure.patch: Some Lenovo Thinkpad models don't have a suspend LED, don't break suspend over this. Thanks Adam Lee! * Bump Standards-Version to 3.9.4 (No changes necessary). -- Martin Pitt Tue, 02 Jul 2013 06:38:25 +0200 pm-utils (1.4.1-10) unstable; urgency=low * debian/rules: Stop installing sleep.d/55NetworkManager. Current NetworkManager does not even expose this API any more, so the sleep()/wake() calls just always fail. As NM is apparently able to deal with suspends just fine, no need to waste cycles on this. * Drop 90-nm-proper-wakeup.patch: Obsolete with above change. * Add debian/time-hook-execution.patch: Measure time that hooks take and print them in the log. Also, disable actual suspend call to make hook optimization/measure turnarounds more convenient. This is not applied by default as the date calls themselves add overhead; just keep it in the source package for future use. * Add 15-video_quirks_on_x86_only.patch: Only run the video quirk handlers on x86 and x86_64, as they are quite expensive. * Add 16-no-powersave-before-suspend.patch: Calling pm-powersave before pm-suspend is very slow, it. e. g. takes > 1.5 seconds on a Nexus 7. This does not nearly compensate the potentially slightly slower suspend operation in low power mode, so disable it. * Drop the "shopt" bashism from 15-video_quirks_on_x86_only.patch which somehow slipped in there. (LP: #1091824) * Lift ethtool suggests to recommends, to make disable_wol work in a default installation. (LP: #1081785) * 20-video-quirk-pm-sony.quirkdb: Fix '||' typo, leading to suspend failure on Vaios. (Closes: #561877) -- Martin Pitt Mon, 01 Jul 2013 07:46:04 +0200 pm-utils (1.4.1-9) unstable; urgency=low * Add 26-inhibit-on-right-status.patch: Do not use the exit status of log rather the exit status of the hook thereby allowing inhibit to work. Thanks to Ariel Cornejo for the patch! (LP: #665651, Closes: #633147) * Add 01_xfs_buffer_arguments.patch: pm/power.d/xfs_buffer: Fix wrong argument ordering. Thanks to Andre Draszik for the patch! (LP: #645974) * debian/rules: Remove the journal-commit and readahead scripts. Recent measurements have shown that they do not save any power in different workloads on rotary disks, and in fact increase power usage on SSD. (fd.o #44627, LP: #900923) This also avoids bugs caused by the journal-commit script. (Closes: #625606, LP: #891688) * Add debian/power.d/{pci_devices,usb_bluetooth}: Set USB bluetooth to autosuspend and a safe subclass of PCI devices to low-power mode during powersafe mode. (fd.o #44672, LP: #911325) * Add debian/patches/03-fix-alpm-typo.patch: Fix typo in sata_alpm hook. (fd.o #44676, LP: #900930) * debian/rules: Stop install hal-cd-polling. hal has been obsolete for years, so don't waste cycles for checking for hal. (LP: #898564) * debian/rules: Stop installing sleep.d/49bluetooth, it is not necessary any more with current Linux kernels. (Closes: #623750) -- Martin Pitt Mon, 16 Jan 2012 15:55:45 +0100 pm-utils (1.4.1-8) unstable; urgency=low * debian/control: Demote "kbd | console-tools" to Recommends. If KMS is used, chvt is no longer required so we only need it as fallback. -- Michael Biebl Tue, 12 Apr 2011 13:24:47 +0200 pm-utils (1.4.1-7) unstable; urgency=low * debian/control: Version the laptop-mode-tools conflicts to << 1.55, as from that version on the /usr/lib/pm-utils/power.d/laptop-mode was renamed, thus avoiding the file conflict. (Closes: #612710, LP: #638307) -- Martin Pitt Fri, 18 Mar 2011 17:25:56 +0100 pm-utils (1.4.1-6) unstable; urgency=low * Upload to unstable. -- Michael Biebl Sun, 06 Feb 2011 14:20:32 +0100 pm-utils (1.4.1-5) experimental; urgency=low * Add 13-49bluetooth-sync.patch: Wait for btusb module to get unused, so that you can remove it in SUSPEND_MODULES. (LP: #698331) * Add 14-disable-sata-alpm.patch: Disable SATA link power management by default, as it still causes disk errors and corruptions on many hardware. (LP: #539467) -- Martin Pitt Tue, 01 Feb 2011 16:11:40 +0100 pm-utils (1.4.1-4) experimental; urgency=low * debian/patches/12-fix-intel-audio-powersave-hook.patch - Fix path in intel-audio-powersave hook and the log output. (Closes: #598006). Thanks Florian Kriener for the patch! * Switch to source format 3.0 (quilt) - Add debian/source/format. - Drop quilt from Build-Depends. - Remove /usr/share/cdbs/1/rules/patchsys-quilt.mk include. - Remove debian/README.source. - Move video-quirks to debian/ so they are handled properly by dpkg-source. -- Michael Biebl Wed, 17 Nov 2010 05:23:08 +0100 pm-utils (1.4.1-3) experimental; urgency=low * debian/rules: Remove harddrive power hook, this causes excessive hard disk spindown on a lot of machines. The hdparm package already ships a less aggressive hook (with -B 128 instead of -B 1). (LP: #606706) * debian/control: Bump Standards-Version to 3.9.1 (no changes necessary). * debian/rules: Use dpkg-vendor instead of lsb_release, and drop lsb-release build dependency. -- Martin Pitt Fri, 24 Sep 2010 08:44:00 +0200 pm-utils (1.4.1-2) experimental; urgency=low [ Matt Zimmerman ] * debian/control: Conflicts/Replaces: laptop-mode-tools, as both ship /usr/lib/pm-utils/power.d/laptop-mode and the changelog below indicates these two packages should not be used together anyway. (LP: #606160) -- Martin Pitt Sun, 22 Aug 2010 17:21:49 +0200 pm-utils (1.4.1-1) experimental; urgency=low [ Michael Biebl ] * New upstream release. (Closes: #588587) The main improvement is that this ships some generally useful power management hooks by default. Note that this conflicts with similar packages such as laptop-mode-tools or pm-utils-powersave-policy, so you should not enable them and pm-utils at the same time. Current hooks when switching to battery: - [disable_wol] Disable Wake-on-LAN on ethernet cards - [hal-cd-polling] Disable HAL's polling of CD drives for automounting them. Note that this HAL functionality is already obsolete in Debian's current GNOME, but still being used in current KDE and XFCE desktops. - [harddrive] More aggressive harddrive spindown times - [intel-audio-powersave] Put ac97 and hda cards to sleep when inactive. - [journal-commit, xfs_buffer] Delay ext[34]/ext journal/metadata writeback - [laptop-mode] Delay hard disk writeback times of dirty caches, to avoid spin ups - [pcie_aspm] PCI express cards power saving - [readahead] More speculative readahead, at the expense of using more memory - [sata_alpm] Enable SATA link power management - [sched-powersave] Try to use fewer cores on multi-core machines - [wireless] Reduce RX/TX power when idle on some known-working drivers (various Intel chips for now) * video-quirks/* - Update quirks to latest upstream release pm-quirks-20100619. * Drop patches applied upstream - debian/patches/05-inspiron-8600-ati-quirk.patch - debian/patches/08-fix-lock-file-handling.patch - debian/patches/12-man-page-fixes.patch * Refresh and update all patches so they apply cleanly. * debian/control - Demote radeontool to Suggests. The standard Debian/Ubuntu kernels use KMS for radeon which makes this tool obsolete. (Closes: #588768) [ Martin Pitt ] * debian/control: Add hdparm Recommends and ethtool/wireless-tools Suggests, for the newly added power saving hooks. * debian/control: Conflicts/Replaces: pm-utils-powersave-policy, superseded by the now integrated power.d hooks. -- Michael Biebl Tue, 13 Jul 2010 16:24:27 +0200 pm-utils (1.3.0-3) unstable; urgency=low * debian/control - Bump Standards-Version to 3.9.1. No further changes. * Stop using SLEEP_MODULE="auto". In auto mode we use s2ram/s2disk from uswsusp if installed. As s2ram does not handle KMS correctly, which is the default for the main graphics drivers in squeeze, this causes problems, so we no longer suggest the usage of uswsusp and by default use the kernel backend. If you want to keep using uswsusp you need to configure this explicitly. See the pm-suspend(8) man page for details. -- Michael Biebl Wed, 17 Nov 2010 05:04:07 +0100 pm-utils (1.3.0-2) unstable; urgency=low * debian/control - Don't make dependency on vbetool and uswsusp arch-specific since pm-utils is an architecture all package (and we want to keep it so). As vbetool and uswsusp are only Recommends resp. Suggests this poses no problems for architectures where those dependencies can't be satisfied. (Closes: #583062) -- Michael Biebl Fri, 28 May 2010 03:45:40 +0200 pm-utils (1.3.0-1) unstable; urgency=low [ Martin Pitt ] * Final 1.3.0 release (two small bug fixes since 1.3.0~rc3-2). - Re-adds "chvt" quirk for nvidia driver (LP: #488720, Closes: #495347) * Drop patches applied upstream: - 01-fix-DMI-attribute-matching.patch - 03-fix-usage-of-find_native.patch - 04-fix-alternatives-matching-in-native-quirks-DB.patch - 07-fix-typo-pm-action.patch - 11_nvidia_suspend.patch * video-quirks/*: Update from http://pm-utils.freedesktop.org/releases/ pm-quirks-20100316.tar.gz [ Michael Biebl ] * Refresh and update patches. * debian/patches/11-handle-on_ac_power-255-return-code.patch - If on_ac_power can not determine the AC power state, assume it is a desktop machine and behave like "pm-powersave false". (Closes: #572060) * debian/patches/12-man-page-fixes.patch - Various man page updates and fixes. (Closes: #570174) Thanks to Filipus Klutiero for the proofreading. -- Michael Biebl Fri, 19 Mar 2010 03:05:11 +0100 pm-utils (1.3.0~rc3-2) unstable; urgency=low * Bump Standards-Version to 3.8.4. No further changes. * debian/patches/06-quirk-lkw-cache.patch - Store the last_known_working.quirkdb cache file in /var/cache/pm-utils. * debian/pm-utils.dirs - Add /var/cache/pm-utils/ directory. * debian/pm-utils.preinst - Remove last_known_working.quirkdb cache file from /etc/pm on upgrades. * debian/control - Add Recommends on procps. The sysctl binary is required for setting the acpi flags in 99video. * debian/patches/07-fix-typo-pm-action.patch - Fix typo ('lits') in pm-action man page. (Closes: #567084) Thanks to Filipus Klutiero for spotting this. * debian/patches/08-fix-lock-file-handling.patch - Use flock to make the lock file handling more robust. (Closes: #568565) * debian/patches/09-document-add-drop-parameters.patch - Document the {ADD,DROP}_PARAMETERS configuration variables in the pm-action man page. (Closes: #485443) -- Michael Biebl Tue, 16 Feb 2010 15:22:15 +0100 pm-utils (1.3.0~rc3-1) experimental; urgency=low * New upstream release candidate: - Add native suspend-hybrid method. It initially suspends the box, and sets an alarm to wake up in 15 minutes. If the system is not resumed before the alarm goes off, it will wake up and hibernate. - pm-utils can now optionally profile the hooks as they run to see which ones are taking an unusual amount of time. See README.debugging for more information. - pm-utils has its own quirk database that does not rely on HAL. - Add --quirk-test parameter that bypasses the sanity checking imposed by the quirk database handler for debugging: you can see what happens when you post your video card in userspace while running a KMS driver. * Drop 01-have-kms-nouveau.patch, applied upstream. * debian/watch: Update to use /releases/ and catch release candidates, too. * debian/rules: Do not install import-fdi-quirkdb, it's not a general user tool but intended for packagers/distros. * Add video-quirks/*: Current native video quirk database (from pm-quirks-20091205.tar.gz). This might get merged into pm-utils proper, and is easier to maintain here for now, in case the format changes again. * debian/control: Drop hal recommends. * Add 01-fix-DMI-attribute-matching.patch: canonicalize_dmivar() refused the valid property "system.firmware.release_date" because of a missing '_' in the character filter. * Add 03-fix-usage-of-find_native.patch: 98-video-quirk-db-handler expects find_native() to write the quirks to stdout, so actually do write them there. This makes the native quirks work. * Add 04-fix-alternatives-matching-in-native-quirks-DB.patch: The native quirks DB separates alternatives with ';'. For regexp matching, turn those into '|', so that they will actually match. * Add 05-inspiron-8600-ati-quirk.patch: Fix suspend quirks for Dell Inspiron 8600 with an ATI card. Thanks Kees Cook! * Add debian/pm-utils.preinst: Clean up last_known_working.quirkdb on upgrades to this version, since previous 1.3 pre-releases did not interpret the DB correctly. -- Martin Pitt Wed, 03 Feb 2010 13:12:30 -0800 pm-utils (1.2.6.1-3) unstable; urgency=low [ Martin Pitt ] * Drop 01-modprobe-blacklist.patch again, that was a misunderstanding. [ Michael Biebl ] * Drop 03-on_ac_power-devkit-power.patch, we are using on_ac_power from powermgmt-base so this patch has no effect and only seems to cause confusion. * debian/patches/01-have-kms-nouveau.patch - Fix a typo in have_kms(), the free nvidia driver is called "nouveau", not "noveau". Thanks to Julien Cristau for spotting this. -- Michael Biebl Mon, 30 Nov 2009 09:49:30 +0100 pm-utils (1.2.6.1-2) unstable; urgency=low * Add 01-modprobe-blacklist.patch: Respect module blacklists when calling modprobe on resume. (fd.o #25254) * Add 02-logging-append.patch: Do not clear the log file on each operation, but instead append to it. This makes debugging of several suspends much easier. Thanks to James Westby for the patch! (fd.o #25255, LP #410352) * Add debian/pm-utils.logrotate: Rotate above log file. * Prevent hibernation after a kernel update: - Add debian/kernel-postinst-hibernate-stamp: /etc/kernel/postinst.d/ hook to create /var/run/do-not-hibernate stamp. - Add debian/no-hibernate-on-kernel-update: sleep.d hook to make hibernation fail early if above stamp exists. - debian/rules: Install above scripts. - Closes: #457515, LP: #350491 * debian/rules: When building on Ubuntu, revert the effect of 10-debian-defaults.patch; uswsusp is not supported in Ubuntu. Add lsb-release build dependency for this. * debian/control: Add myself to Uploaders: with Michael's consent. * Add 03-on_ac_power-devkit-power.patch: Try to contact DeviceKit-Power in on_ac_power, and if it succeeds, use that. Otherwise fall back to hal. -- Martin Pitt Wed, 25 Nov 2009 15:36:42 +0100 pm-utils (1.2.6.1-1) unstable; urgency=low * New upstream release. - Revert the removal of have_smart_intel in 1.2.6. -- Michael Biebl Fri, 13 Nov 2009 17:38:28 +0100 pm-utils (1.2.6-1) unstable; urgency=low * New upstream release. - Improved KMS detection. - Don't return an error in maybe_deallocvt if no state file is found. (Closes: #554959) - Fix typos in pm-action.8. (Closes: #540122) * debian/control - Demote uswsusp to Suggests. It's currently in a not good enough state to be installed by default. (Closes: #548970) - Bump Standards-Version to 3.8.3. No further changes. * Drop patches that have been merged upstream - debian/patches/30-kms-add-parameters.patch - debian/patches/35-typo-fixes.patch - debian/patches/40-pm-action-syntax-fix.patch -- Michael Biebl Thu, 12 Nov 2009 08:43:42 +0100 pm-utils (1.2.5-4) unstable; urgency=low * debian/patches/45-bashism-fixes.patch - Drop this patch again as it was a false positive of checkbashims. '==' was used inside an arithmetic expression, so the fix was bogus. Thanks to Tormod Volden for spotting this. (Closes: #530164) -- Michael Biebl Mon, 06 Jul 2009 20:35:31 +0200 pm-utils (1.2.5-3) unstable; urgency=low * debian/patches/35-typo-fixes.patch - Fix a few typos in the man pages and the HOWTO.hooks documentation. (Closes: #525253) * debian/patches/40-pm-action-syntax-fix.patch - Fix wrong syntax for configuration variables in the pm-action man page. (Closes: #528726) * debian/patches/45-bashism-fixes.patch - Fix bashism ('==') in pm/functions.in. (Closes: #530164) * debian/patches/90-nm-proper-wakeup.patch - Patch pulled from Ubuntu. Use --print-reply when calling dbus-send to ensure NetworkManager gets signalled on wakeup * Bump Standards-Version to 3.8.2. No further changes. -- Michael Biebl Wed, 01 Jul 2009 17:29:02 +0200 pm-utils (1.2.5-2) unstable; urgency=low * debian/patches/30-kms-add-parameters.patch - Fix typo in have_kms(). (Closes: #524243) Thanks to Yves-Alexis Perez for spotting that. -- Michael Biebl Fri, 17 Apr 2009 00:16:37 +0200 pm-utils (1.2.5-1) unstable; urgency=low * New upstream release. - Fixes sched_smt_power_savings tunable in sched-powersave. (Closes: #518680) * debian/control - Bump Standards-Version to 3.8.1. No further changes. -- Michael Biebl Sat, 11 Apr 2009 21:17:14 +0200 pm-utils (1.2.4-2) unstable; urgency=low * debian/compat - Bump to debhelper v7 compat mode. * debian/control - Update debhelper Build-Depends accordingly. -- Michael Biebl Sun, 15 Feb 2009 19:37:14 +0100 pm-utils (1.2.4-1) experimental; urgency=low * New upstream release. - Do not report an error on systems which have no system.chassis.type hal property. (Closes: #511466) - Do no longer run hwclock on suspend/resume unless NEED_CLOCK_SYNC is set explicitly.(Closes: #501073) * debian/patches/15-no-laptop-mode.patch - Removed, merged upstream. * debian/patches/80-service.patch - Updated. * debian/copyright - Make it clear that pm-utils is released under GPL version 2 and refer to the versioned GPL-2 document in /usr/share/common-licenses/. -- Michael Biebl Tue, 10 Feb 2009 01:08:40 +0100 pm-utils (1.2.3-2) experimental; urgency=low * debian/watch - Only match stable releases. * debian/patches/15-no-laptop-mode.patch - As pm-powersave does not enable laptop-mode, remove this remark from the pm-powersave(8) man page. (Closes: #504045) * debian/rules - Enforce regeneration of all man pages. Apparently lintian is not happy with the ones shipped by upstream. -- Michael Biebl Wed, 28 Jan 2009 23:36:13 +0100 pm-utils (1.2.3-1) experimental; urgency=low * New upstream release. * debian/patches/10-sleep-module-auto-detection.patch - Removed, upstream now ships a more finegrained suspend method autodetection. * debian/patches/10-debian-defaults.patch - Added, set SLEEP_MODULE="auto", as we want to use uswsusp if installed. * debian/patches/25-pmu.patch - Rewrite for new upstream code structure. Thanks to Martin Pitt. * Refresh and document all patches. * debian/control - Update Vcs-* headers. Package is now managed with Git on git.debian.org. -- Michael Biebl Fri, 05 Dec 2008 17:44:22 +0100 pm-utils (1.1.2.4-1) unstable; urgency=low * New upstream release - Fix suspend/resume on 2.6.26 and greater Linux kernels using kernel mode setting for Intel video drivers. (Closes: #488144) * debian/control - Update Recommends on uswsusp and vbetool to only list them on architectures where they are actually available. (Closes: #452368) -- Michael Biebl Sun, 03 Aug 2008 11:47:19 +0200 pm-utils (1.1.2.3-1) unstable; urgency=low * New upstream release. * debian/patches/01-escape-comparison.patch - Removed, merged upstream. -- Michael Biebl Mon, 23 Jun 2008 17:00:50 +0200 pm-utils (1.1.2.2-3) unstable; urgency=low * Brown paper bag release. * debian/patches/series - Actually apply 01-escape-comparison.patch. (Closes: #485125) * Bump Standards-Version to 3.8.0. - Add debian/README.source as recommended by the new policy. -- Michael Biebl Sat, 14 Jun 2008 16:01:50 +0200 pm-utils (1.1.2.2-2) unstable; urgency=low * debian/patches/01-escape-comparison.patch - Escape comparison of the kernel version. (Closes: #485125) -- Michael Biebl Sun, 08 Jun 2008 14:40:15 +0200 pm-utils (1.1.2.2-1) unstable; urgency=low * New upstream release. * debian/control - Remove docbook-utils from Build-Depends. All man pages are now generated from DocBook XML. * debian/rules - The man pages are now included upstream, so remove all man page related build rules. * debian/pm-utils.manpages - Removed, no longer required. * debian/pm-powersave.xml, debian/pm-action.xml, debian/pm-is-supported.xml - Removed, all merged upstream. -- Michael Biebl Thu, 29 May 2008 15:42:54 +0200 pm-utils (1.1.1-1) unstable; urgency=low * New upstream release. * Removed patches - debian/patches/15-hibernate_mode_check.patch (merged upstream) - debian/patches/20-uswsusp-fixes.patch (merged upstream) * Refreshed patches - debian/patches/10-sleep-module-auto-detection.patch - debian/patches/25-pmu.patch - debian/patches/80-service.patch * debian/copyright - Update download location. * debian/control - Add Suggests on cpufrequtils. cpufrequtils allows to automatically load the correct kernel module to enable cpufreq scaling and set the default cpufreq governor. -- Michael Biebl Tue, 20 May 2008 22:12:23 +0200 pm-utils (1.1.0-1) unstable; urgency=low * New upstream release. - Fixes the uswsusp module to pass the correct parameters to s2ram when using the --quirk-s3-* parameters. (Closes: #448137) - Correctly includes multiple config files from /etc/pm/config.d. (Closes: #451493, #475565) - Correctly restores the cpufreq governors on multi-core machines. (Closes: #452620) - Fixes filename expansion in current directory. (Closes: #454092) - Updated and improved README. (Closes: #425282, #453866) - The uswsusp module uses s2ram --force in do_suspend. (Closes: #457019) This also means, that the internal whitelist of s2ram is no longer used. The preferred way is to get the quirks from hal. * debian/control - Update the upstream URL and use the new Homepage field. (Closes: #473799) - The Vcs-* fields are now officially supported, so remove the XS- prefix. - Bump Standards-Version to 3.7.3. No further changes required. - Fix a small typo in the long package description. (Closes: #466631) - Add Build-Depends on quilt. - Add Depends on kbd | console-tools. The kernel and tuxonice module require the chvt utility. (Closes: #474637) * debian/watch - Updated. Parse the homepage at http://pm-utils.freedesktop.org/wiki/ for the latest release. * Removed patches - debian/patches/10-uswsusp-support.patch (obsolete) - debian/patches/15-laptop-tools.patch (obsolete) - debian/patches/20-do-not-unload-button.patch (merged upstream) - debian/patches/30-comment-defaults-file.patch (obsolete) - debian/patches/40-performance-gov-on-hibernate.patch (fixed upstream) - debian/patches/50-no-usleep.patch (merged upstream) - debian/patches/60-suspend-hybrid.patch (obsolete) - debian/patches/70-remove-pm-pmu.patch (obsolete) - debian/patches/75-suspend-support.patch (obsolete) - debian/patches/85-remove-empty-NEW.patch (obsolete) - debian/patches/90-support-modules-with-dash.patch (obsolete) - debian/patches/95-fix-config-file-parsing.patch (merged upstream) * Updated patches - debian/patches/80-service.patch * debian/patches/10-sleep-module-auto-detection.patch - Try to autodetect which sleep module to use. Check tuxonice first, then uswsusp and fall back to kernel. * debian/patches/15-hibernate_mode_check.patch - Add a safety check before writing the hibernate method to /sys/power/disk. (Closes: #450515) * debian/patches/20-uswsusp-fixes.patch - Disable the 99video hook for the uswsusp module. s2ram has it's own vt switching functionality. - Check if s2ram is available. * debian/patches/25-pmu.patch - As we don't ship the pm-pmu binary, implement the pmu suspend functionality with a bit of perl magic. Thanks to Martin Pitt for the idea and the code. (Closes: #450601, #452367, #452909) - Prefer the /sys/power/state interface over poking /dev/pmu. This requires a Linux kernel >= 2.6.25. * debian/pm-action.xml - Fix some typos in the pm-action manpage. (Closes: #450414) - Document new configuration variables. - Improve explanation of the quirk options. (Closes: #475755) * debian/copyright - Update list of authors. * debian/rules - The 60sysfont hook is no longer shipped upstream, so we don't have to remove it anymore. - Switch patch system to quilt. -- Michael Biebl Thu, 24 Apr 2008 06:31:51 +0200 pm-utils (0.99.2-3) unstable; urgency=low * Support modules/services with dashes (closes: #433179) * Fix config file parser (closes: #427254) -- Tim Dijkstra Mon, 16 Jul 2007 22:31:53 +0200 pm-utils (0.99.2-2) unstable; urgency=low * Make --hibernate test in pm-is-supported less strict so we can support suspend2 too (closes: #422745) * pm-action: Fix pm-suspend-hybrid support (closes: 427253) * Add some more words to the pm-action manpage (closes: #425282) * Don't install useless NEWS file (closes: #431551) * Add support for NO_QUIRKS from HAL. Now we can distinguish between `no quirks' and 'unknown' (closes: #427052) -- Tim Dijkstra Sat, 14 Jul 2007 22:41:06 +0200 pm-utils (0.99.2-1) unstable; urgency=low [ Michael Biebl ] * Initial release (Closes: #389817). * Do not install on_ac_power binary. Instead depend on powermgmt-base package. [ Tim Dijkstra ] * Support for `s2ram' for hal >= 0.5.9 * First stab at suspend-hybrid support * Do not install pm-pmu, it is hack for old kernels (older than the one in etch) which is also present in the s2ram binary if needed. * Do not install pm-reset-swap, it has bugs and is superflous since swapon in debian has similar functionality. * Recommend vbetool and radeontool (not depend on it) else pm-utils won't be installable on anything but x86_* * Add manpages. -- Tim Dijkstra Wed, 25 Apr 2007 22:48:19 +0200 debian/compat0000644000000000000000000000000212236376517010400 0ustar 7 debian/control0000644000000000000000000000140112236376517010601 0ustar Source: pm-utils Section: admin Priority: optional Maintainer: Tim Dijkstra Uploaders: Michael Biebl , Martin Pitt Build-Depends: cdbs, debhelper (>= 7), xmlto Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/collab-maint/pm-utils.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/pm-utils.git Homepage: http://pm-utils.freedesktop.org/ Package: pm-utils Architecture: all Depends: ${misc:Depends}, powermgmt-base Recommends: vbetool, procps, hdparm, ethtool, kbd | console-tools Suggests: cpufrequtils, wireless-tools, radeontool Description: utilities and scripts for power management This package provides simple shell command line tools to suspend and hibernate your computer. debian/copyright0000644000000000000000000000127012236376517011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://pm-utils.freedesktop.org/releases/ Files: * Copyright: Copyright 2006 Red Hat, Inc. Copyright 2007 Peter Jones Copyright 2006-2007 Richard Hughes License: GPL-2 Files: debian/* Copyright: (C) 2007, Michael Biebl License: GPL-2 License: GPL-2 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. . The complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/gbp.conf0000644000000000000000000000006512236376517010622 0ustar [DEFAULT] pristine-tar = True debian-branch = master debian/kernel-postinst-hibernate-stamp0000644000000000000000000000030412236376517015344 0ustar #!/bin/sh # Let programs know not to hibernate if the kernel that would be used for # resume-from-hibernate is likely to differ from the currently running kernel. touch /var/run/do-not-hibernate debian/no-hibernate-on-kernel-update0000644000000000000000000000044412236376517014652 0ustar #!/bin/sh # Check for and abort a hibernate if the kernel indicates it has been # updated, as we will be completly unable to resume. if [ "$1" = "hibernate" ] && [ -f "/var/run/do-not-hibernate" ]; then echo "kernel update inhibits hibernate (/var/run/do-not-hibernate present)" exit 1 fi debian/patches/0000755000000000000000000000000012236376517010631 5ustar debian/patches/01_xfs_buffer_arguments.patch0000644000000000000000000000167412236376517016400 0ustar From fdc626dadfd985e823f4e828f2a542c945aea219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Draszik?= Date: Tue, 10 Jan 2012 11:21:02 +0100 Subject: [PATCH 2/2] pm/power.d/xfs_buffer: Fix wrong argument ordering Write the values in the correct order. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44620 Bug-Ubuntu: https://launchpad.net/bugs/645974 Signed-off-by: Martin Pitt --- pm/power.d/xfs_buffer | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pm/power.d/xfs_buffer b/pm/power.d/xfs_buffer index d21e845..9f06f6e 100644 --- a/pm/power.d/xfs_buffer +++ b/pm/power.d/xfs_buffer @@ -59,7 +59,7 @@ xfs_ac() { xfs_battery() { state_exists xfs_buffer_default || \ read_values |savestate xfs_buffer_default - write_values "$XFS_AGE_BUFFER" "$XFS_BUFD" "$XFS_SYNCD" + write_values "$XFS_AGE_BUFFER" "$XFS_SYNCD" "$XFS_BUFD" } case $1 in -- 1.7.7.3 debian/patches/02-logging-append.patch0000644000000000000000000000125312236376517014765 0ustar Author: James Westby Description: Do not clear the log file on each operation, but instead append to it. This makes debugging of several suspends much easier. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=25255 Bug-Ubuntu: https://launchpad.net/bugs/410352 Index: pm-utils/pm/pm-functions.in =================================================================== --- pm-utils.orig/pm/pm-functions.in 2010-07-05 18:41:21.118322244 +0200 +++ pm-utils/pm/pm-functions.in 2010-07-05 18:41:24.126325221 +0200 @@ -271,7 +271,7 @@ return 1 fi export LOGGING=true - exec > "$1" 2>&1 + exec >> "$1" 2>&1 } check_suspend() { [ -n "$SUSPEND_MODULE" ]; } debian/patches/03-fix-alpm-typo.patch0000644000000000000000000000203412236376517014577 0ustar From 93d46b88f415c1931b017856e3162c192bfba07c Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 11 Jan 2012 15:39:53 +0100 Subject: [PATCH 3/3] Fix typo in sata_alpm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ALPM → APLM Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44676 Bug-Ubuntu: https://launchpad.net/bugs/900930 --- pm/power.d/sata_alpm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pm/power.d/sata_alpm b/pm/power.d/sata_alpm index 5ede307..400e1e7 100644 --- a/pm/power.d/sata_alpm +++ b/pm/power.d/sata_alpm @@ -28,7 +28,7 @@ set_sata_alpm() { [ "${kv%-*}" \< "2.6.33" ] && exit $NA # avoid fs corruption for f in /sys/class/scsi_host/host*; do [ -w "$f/link_power_management_policy" ] || continue - printf "Setting SATA APLM on %s to %s..." "${f##*/}" "$1" + printf "Setting SATA ALPM on %s to %s..." "${f##*/}" "$1" echo "$1" > "$f/link_power_management_policy" && echo Done. || \ echo Failed. done debian/patches/04-ignore-led-failure.patch0000644000000000000000000000072112236376517015545 0ustar Description: LED operation should not block S3/S4 Author: Adam Lee Some Lenovo Thinkpad models don't have a suspend LED, this should not block S3/S4. Index: pm-utils/pm/sleep.d/95led =================================================================== --- pm-utils.orig/pm/sleep.d/95led 2010-08-22 17:18:18.000000000 +0200 +++ pm-utils/pm/sleep.d/95led 2013-07-02 06:32:22.714101257 +0200 @@ -14,3 +14,5 @@ *) exit $NA ;; esac + +exit 0 debian/patches/05-uswsusp-hibernate-mode.patch0000644000000000000000000000111012236376517016477 0ustar Description: Check HIBERNATE_MODE in uswsusp module Author: Vadim Solomin Bug-Debian: http://bugs.debian.org/589553 Index: pm-utils/pm/module.d/uswsusp =================================================================== --- pm-utils.orig/pm/module.d/uswsusp 2013-07-02 06:33:16.000000000 +0200 +++ pm-utils/pm/module.d/uswsusp 2013-10-09 07:36:53.558725201 +0200 @@ -87,7 +87,11 @@ HIBERNATE_MODULE="uswsusp" do_hibernate() { - s2disk + if [ -n "$HIBERNATE_MODE" ]; then + s2disk -P "shutdown method=$HIBERNATE_MODE" + else + s2disk + fi } fi debian/patches/06-quirk-lkw-cache.patch0000644000000000000000000000371112236376517015066 0ustar Description: Store last_known_working.quirkdb in /var/cache last_known_working.quirkdb is more of a cache file then a configuration file and e.g. changes on kernel upgrades, so we don't want it in /etc/pm. Move it to /var/cache/pm-utils instead Author: Michael Biebl Index: pm-utils/pm/pm-functions.in =================================================================== --- pm-utils.orig/pm/pm-functions.in 2010-03-18 01:44:33.000000000 +0100 +++ pm-utils/pm/pm-functions.in 2010-03-18 01:45:41.206963690 +0100 @@ -28,7 +28,7 @@ DX=252 PM_FUNCTIONS="$PM_UTILS_LIBDIR/functions" PM_QUIRKDB="$PM_UTILS_LIBDIR/video-quirks" -PM_LKW_QUIRKS="$PM_UTILS_ETCDIR/last_known_working.quirkdb" +PM_LKW_QUIRKS="/var/cache/pm-utils/last_known_working.quirkdb" # Use c sort order LC_COLLATE=C Index: pm-utils/man/pm-action.xml =================================================================== --- pm-utils.orig/man/pm-action.xml 2010-03-18 01:44:28.000000000 +0100 +++ pm-utils/man/pm-action.xml 2010-03-18 01:45:41.206963690 +0100 @@ -285,12 +285,13 @@ pm-suspend or pm-suspend-hybrid as an .quirkdb file that is specific to this system. The file will be saved in - /etc/pm/last_known_working.quirkdb. - This parameter will only save the actual quirks that were - used to successfully suspend/resume a system, and will be + /var/cache/pm-utils/last_known_working.quirkdb. + This parameter will only save the actual quirks that were + used to successfully suspend/resume a system, and will be specific to the exact configuration of that system, including the video hardware, video driver, and whether or not kernel - modesetting was used. + modesetting was used. If the system configuration changes, like after + a kernel upgrade, this file will be overwritten. debian/patches/09-document-add-drop-parameters.patch0000644000000000000000000000252612236376517017554 0ustar Description: Document {ADD,DROP}_PARAMETERS config variables Debian-Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485443 Author: Michael Biebl Index: pm-utils/man/pm-action.xml =================================================================== --- pm-utils.orig/man/pm-action.xml 2010-03-18 01:45:41.206963690 +0100 +++ pm-utils/man/pm-action.xml 2010-03-18 01:45:47.246961734 +0100 @@ -462,6 +462,25 @@ + ADD_PARAMETERS + + + Space separated list of command line parameters that should be added. + If special quirks are needed for your system, you can add them here. + + + + + DROP_PARAMETERS + + + Space separated list of command line parameters that should be ignored. + If particular quirks are causing problems for your system, you can add them + here. If you want to remove all parameters use all. + + + + HIBERNATE_MODE debian/patches/11-handle-on_ac_power-255-return-code.patch0000644000000000000000000000243312236376517020355 0ustar Description: Handle on_ac_power 255 return code As we are using the on_ac_power utility from powermgmt-base, which returns 255 when it can't determine the AC power state, assume we have a desktop system in such a case. This behaviour is compatible with the pm-utils upstream implementation of on_ac_power. Debian-Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572060 Author: Michael Biebl Index: pm-utils/src/pm-powersave.in =================================================================== --- pm-utils.orig/src/pm-powersave.in 2010-06-18 08:14:29.000000000 +0200 +++ pm-utils/src/pm-powersave.in 2010-06-18 16:10:05.608067653 +0200 @@ -65,10 +65,19 @@ init_logfile "${PM_LOGFILE}" } +_on_ac_power() { + on_ac_power + case $? in + # If on_ac_power can't determine AC power state (255), assume it's a desktop. + 0|255) return 0 ;; + 1) return 1 ;; + esac +} + case $1 in true|battery) lock_and_load && run_hooks power true;; false|ac) lock_and_load && run_hooks power false;; --help) help && run_hooks power help;; - '') lock_and_load; on_ac_power && run_hooks power false || run_hooks power true;; + '') lock_and_load; _on_ac_power && run_hooks power false || run_hooks power true;; *) help && exit 1;; esac debian/patches/12-fix-intel-audio-powersave-hook.patch0000644000000000000000000000260412236376517020041 0ustar From: Florian Kriener To: submit@bugs.debian.org Subject: [pm-utils] wrong path in intel-audio-powersave (and a small bug) Date: Sat, 25 Sep 2010 11:27:30 +0200 In the script intel-audio-powersave is this loop for dev in /sys/module/snd_*/parameters/power_save; do [ -w "$dev/parameters/power_save" ] || continue printf "Setting power savings for $s to %d..." "$dev##*/" "$1" echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed. done I think it should be for dev in /sys/module/snd_*; do [ -w "$dev/parameters/power_save" ] || continue printf "Setting power savings for %s to %d..." "${dev##*/}" "$1" echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed. done This fixes the two bugs. diff --git a/pm/power.d/intel-audio-powersave b/pm/power.d/intel-audio-powersave index 36675a8..da63e40 100644 --- a/pm/power.d/intel-audio-powersave +++ b/pm/power.d/intel-audio-powersave @@ -20,9 +20,9 @@ EOF audio_powersave() { [ "$INTEL_AUDIO_POWERSAVE" = "true" ] || exit $NA - for dev in /sys/module/snd_*/parameters/power_save; do + for dev in /sys/module/snd_*; do [ -w "$dev/parameters/power_save" ] || continue - printf "Setting power savings for $s to %d..." "$dev##*/" "$1" + printf "Setting power savings for %s to %d..." "${dev##*/}" "$1" echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed. done } debian/patches/13-49bluetooth-sync.patch0000644000000000000000000000274012236376517015232 0ustar From 640b53438c20818b3e344343b58b1f1765606a85 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 31 Jan 2011 15:30:01 +0100 Subject: [PATCH] 49bluetooth: Wait for btusb module to get unused The 49bluetooth hook disables /proc/acpi/ibm/bluetooth but this isn't synchronous, i. e. it doesn't wait until the module usage count actually drops to 0. Due to that, it's impossible to add btusb to SUSPEND_MODULES (on some models/older kernels you need to do that to fix suspend problems), as at that point the module is still in use. On my system (ThinkPad X201) the module takes between 0.3 and 0.5 seconds to unload, so use 100 ms wait steps with a timeout of 2 seconds. Bug: https://bugs.freedesktop.org//show_bug.cgi?id=33759 Bug-Ubuntu: https://launchpad.net/bugs/698331 --- pm/sleep.d/49bluetooth | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/pm/sleep.d/49bluetooth b/pm/sleep.d/49bluetooth index d46ba49..0dc1909 100755 --- a/pm/sleep.d/49bluetooth +++ b/pm/sleep.d/49bluetooth @@ -12,6 +12,15 @@ suspend_bluetooth() if grep -q enabled /proc/acpi/ibm/bluetooth; then savestate ibm_bluetooth enable echo disable > /proc/acpi/ibm/bluetooth + + # wait for up to 2 seconds for the module to actually get + # unused + TIMEOUT=20 + while [ $TIMEOUT -ge 0 ]; do + [ `cat /sys/module/btusb/refcnt` = 0 ] && break + TIMEOUT=$((TIMEOUT-1)) + sleep 0.1 + done else savestate ibm_bluetooth disable fi -- 1.7.2.3 debian/patches/14-disable-sata-alpm.patch0000644000000000000000000000141212236376517015352 0ustar Description: Disable SATA link power management by default, as it still causes disk errors and corruptions on many hardware. Author: Martin Pitt Bug-Ubuntu: https://launchpad.net/bugs/539467 Index: pm-utils/pm/power.d/sata_alpm =================================================================== --- pm-utils.orig/pm/power.d/sata_alpm 2011-02-01 15:53:09.164867778 +0100 +++ pm-utils/pm/power.d/sata_alpm 2011-02-01 15:53:28.954867786 +0100 @@ -2,7 +2,7 @@ . "${PM_FUNCTIONS}" -SATA_ALPM_ENABLE=${SATA_ALPM_ENABLE:-true} +SATA_ALPM_ENABLE=${SATA_ALPM_ENABLE:-false} help() { cat < Index: pm-utils/pm/sleep.d/98video-quirk-db-handler =================================================================== --- pm-utils.orig/pm/sleep.d/98video-quirk-db-handler 2013-07-01 07:23:57.242961692 +0200 +++ pm-utils/pm/sleep.d/98video-quirk-db-handler 2013-07-01 07:23:57.238961692 +0200 @@ -1,6 +1,12 @@ #!/bin/bash # Prototype video quirk database handler that does not rely on HAL. +# only needed on x86, quickly exit on other architectures as this is rather +# expensive +ARCH=`uname -m` +if [ "$ARCH" = "${ARCH%86}" -a "$ARCH" = "${ARCH#x86}" ]; then + exit 0; +fi shopt -s extglob . "${PM_FUNCTIONS}" Index: pm-utils/pm/sleep.d/99video =================================================================== --- pm-utils.orig/pm/sleep.d/99video 2013-07-01 07:23:57.242961692 +0200 +++ pm-utils/pm/sleep.d/99video 2013-07-01 07:24:04.590962048 +0200 @@ -12,6 +12,13 @@ # If it weren't for video card quirks, suspend/resume on Linux would be # a whole lot more stable. +# only needed on x86, quickly exit on other architectures as this is rather +# expensive +ARCH=`uname -m` +if [ "$ARCH" = "${ARCH%86}" -a "$ARCH" = "${ARCH#x86}" ]; then + exit 0; +fi + . "${PM_FUNCTIONS}" for opt in $PM_CMDLINE; do debian/patches/16-no-powersave-before-suspend.patch0000644000000000000000000000205712236376517017446 0ustar Description: Calling pm-powersave before pm-suspend is very slow, it. e. g. takes > 1.5 seconds on a Nexus 7. This does not nearly compensate the potentially slightly slower suspend operation in low power mode, so disable it. Author: Martin Pitt Index: pm-utils/pm/sleep.d/00powersave =================================================================== --- pm-utils.orig/pm/sleep.d/00powersave 2012-11-14 15:32:45.000000000 +0100 +++ pm-utils/pm/sleep.d/00powersave 2012-11-14 15:33:30.226178154 +0100 @@ -2,12 +2,18 @@ . "${PM_FUNCTIONS}" +# do not run pm-powersave on ARM during suspend; the 1.5 seconds that it takes +# to run it don't nearly compensate the potentially slightly slower suspend +# operation in low power mode +ARCH=`uname -m` + command_exists pm-powersave || exit $NA case $1 in suspend|hibernate) pm-powersave false ;; + suspend|hibernate) [ "$ARCH" != "${ARCH#arm}" ] || pm-powersave false ;; resume|thaw) pm-powersave ;; *) exit $NA ;; esac exit 0 - \ No newline at end of file + debian/patches/25-pmu.patch0000644000000000000000000000405112236376517012677 0ustar # Description: Replace the usage of the compiled pm-pmu program with a call # to perl, so that pm-utils can stay Architecture: all Index: pm-utils/pm/pm-functions.in =================================================================== --- pm-utils.orig/pm/pm-functions.in 2010-07-05 18:41:41.000000000 +0200 +++ pm-utils/pm/pm-functions.in 2010-07-05 18:51:36.958324785 +0200 @@ -278,6 +278,28 @@ check_hibernate() { [ -n "$HIBERNATE_MODULE" ]; } check_suspend_hybrid() { [ -n "$SUSPEND_HYBRID_MODULE" ]; } + +check_suspend_pmu() +{ + perl << EOF +sub PMU_IOC_CAN_SLEEP { 0x40044205; } +open PMU, '/dev/pmu' or die "open /dev/pmu: \$!"; +\$p = pack 'l', 0; +ioctl PMU, &PMU_IOC_CAN_SLEEP, \$p or die "ioctl: \$!"; +(\$v) = unpack 'l', \$p; +exit (\$v ? 0 : 1); +EOF +} + +do_suspend_pmu() +{ + perl << EOF +sub PMU_IOC_SLEEP { 0x20004200; } +open PMU, "/dev/pmu" or die "open /dev/pmu: \$!"; +ioctl PMU, &PMU_IOC_SLEEP, 0; +EOF +} + # allow autodetection of sleep methods if [ "$SLEEP_MODULE" = "auto" ]; then SLEEP_MODULE="tuxonice uswsusp" @@ -295,9 +317,9 @@ if grep -q mem /sys/power/state; then SUSPEND_MODULE="kernel" do_suspend() { echo -n "mem" >/sys/power/state; } - elif [ -c /dev/pmu ] && pm-pmu --check; then + elif [ -c /dev/pmu ] && check_suspend_pmu; then SUSPEND_MODULE="kernel" - do_suspend() { pm-pmu --suspend; } + do_suspend() { do_suspend_pmu; } elif grep -q standby /sys/power/state; then SUSPEND_MODULE="kernel" do_suspend() { echo -n "standby" >/sys/power/state; } Index: pm-utils/pm/module.d/uswsusp =================================================================== --- pm-utils.orig/pm/module.d/uswsusp 2010-07-04 16:42:51.000000000 +0200 +++ pm-utils/pm/module.d/uswsusp 2010-07-05 18:51:36.958324785 +0200 @@ -66,7 +66,7 @@ # ended up claiming ownership of a given sleep method. if [ -z "$SUSPEND_MODULE" ] && command_exists s2ram && \ ( grep -q mem /sys/power/state || \ - ( [ -c /dev/pmu ] && pm-pmu --check; ); ); then + ( [ -c /dev/pmu ] && check_suspend_pmu; ); ); then SUSPEND_MODULE="uswsusp" do_suspend() { debian/patches/26-inhibit-on-right-status.patch0000644000000000000000000000152012236376517016571 0ustar Description: Do not use the exit status of log rather the exit status of the hook. Author: Ariel Cornejo Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32210 Bug-Ubuntu: https://launchpad.net/bugs/665651 Index: pm-utils-1.4.1/pm/pm-functions.in =================================================================== --- pm-utils-1.4.1.orig/pm/pm-functions.in 2011-07-08 14:55:15.000000000 -0700 +++ pm-utils-1.4.1/pm/pm-functions.in 2011-07-08 14:55:57.000000000 -0700 @@ -197,9 +197,11 @@ # rest of args passed to hook unchanged. log "Running hook $*:" hook_ok "$1" && "$@" + # log() changes the return value, so save it for later + local status=$? log "" log -n "$*: " - hook_exit_status $? && LAST_HOOK="${1##*/}" || inhibit + hook_exit_status $status && LAST_HOOK="${1##*/}" || inhibit } if profiling; then debian/patches/27-run-hook-logging.patch0000644000000000000000000000122312236376517015264 0ustar Description: In suspend log, put empty line after running the hook, not in between. Author: Dominique Brazziel Bug-Debian: http://bugs.debian.org/661168 Index: pm-utils/pm/pm-functions.in =================================================================== --- pm-utils.orig/pm/pm-functions.in 2013-10-09 07:45:17.395995047 +0200 +++ pm-utils/pm/pm-functions.in 2013-10-09 07:45:38.483994430 +0200 @@ -199,9 +199,9 @@ hook_ok "$1" && "$@" # log() changes the return value, so save it for later local status=$? - log "" log -n "$*: " hook_exit_status $status && LAST_HOOK="${1##*/}" || inhibit + log "" } if profiling; then debian/patches/28-suspend-hybrid.patch0000644000000000000000000000241612236376517015044 0ustar Description: Add support for in-kernel suspend to both Author: Bojan Smojver Author: Jaroslav Škarvada Bug: https://bugs.freedesktop.org/show_bug.cgi?id=52572 Bug-Ubuntu: https://launchpad.net/bugs/1172692 Index: pm-utils/pm/pm-functions.in =================================================================== --- pm-utils.orig/pm/pm-functions.in 2013-11-01 17:03:17.371325000 +0800 +++ pm-utils/pm/pm-functions.in 2013-11-01 17:59:36.803067865 +0800 @@ -336,8 +336,28 @@ { [ -n "${HIBERNATE_MODE}" ] && \ grep -qw "${HIBERNATE_MODE}" /sys/power/disk && \ + HIBERNATE_MODE_SAVE=$(cat /sys/power/disk) && \ + HIBERNATE_MODE_SAVE="${HIBERNATE_MODE_SAVE##*[}" && \ + HIBERNATE_MODE_SAVE="${HIBERNATE_MODE_SAVE%%]*}" && \ echo -n "${HIBERNATE_MODE}" > /sys/power/disk echo -n "disk" > /sys/power/state + RET=$? + echo -n "$HIBERNATE_MODE_SAVE" > /sys/power/disk + return "$RET" + } +fi + +# for kernels that support suspend to both (i.e. hybrid suspend) +# since kernel 3.6 +if [ -z "$SUSPEND_HYBRID_MODULE" ] && \ + [ -f /sys/power/disk ] && \ + grep -q disk /sys/power/state && \ + grep -q suspend /sys/power/disk; then + SUSPEND_HYBRID_MODULE="kernel" + do_suspend_hybrid() + { + HIBERNATE_MODE="suspend" + do_hibernate } fi debian/patches/80-service.patch0000644000000000000000000000143012236376517013535 0ustar # Debian does not support the "status" action for all init scripts (yet), # so we simply assume that the service is running. # Make use of invoke-rc.d. Index: pm-utils/pm/functions.in =================================================================== --- pm-utils.orig/pm/functions.in 2010-07-05 18:25:36.842318966 +0200 +++ pm-utils/pm/functions.in 2010-07-05 18:51:49.246322633 +0200 @@ -143,16 +143,16 @@ stopservice() { - if service "$1" status 2>/dev/null | grep -q -e running -e started + if [ -x "/etc/init.d/$1" ] then touch "${STORAGEDIR}/service:$1" - service "$1" stop + invoke-rc.d "$1" stop fi } restartservice() { - [ -O "${STORAGEDIR}/service:$1" ] && service "$1" start + [ -O "${STORAGEDIR}/service:$1" ] && invoke-rc.d "$1" start } # Disable a hook. debian/patches/series0000644000000000000000000000101112236376517012037 0ustar 05-uswsusp-hibernate-mode.patch 01_xfs_buffer_arguments.patch 02-logging-append.patch 03-fix-alpm-typo.patch 04-ignore-led-failure.patch 06-quirk-lkw-cache.patch 09-document-add-drop-parameters.patch 11-handle-on_ac_power-255-return-code.patch 12-fix-intel-audio-powersave-hook.patch 13-49bluetooth-sync.patch 14-disable-sata-alpm.patch 15-video_quirks_on_x86_only.patch 16-no-powersave-before-suspend.patch 25-pmu.patch 26-inhibit-on-right-status.patch 27-run-hook-logging.patch 28-suspend-hybrid.patch 80-service.patch debian/pm-utils.dirs0000644000000000000000000000002412236376517011633 0ustar var/cache/pm-utils/ debian/pm-utils.logrotate0000644000000000000000000000023512236376517012676 0ustar /var/log/pm-suspend.log /var/log/pm-powersave.log { monthly rotate 4 delaycompress compress notifempty missingok } debian/power.d/0000755000000000000000000000000012236376517010560 5ustar debian/power.d/pci_devices0000644000000000000000000000255712236376517012771 0ustar #!/bin/sh # # This script adjusts the power control of a set of PCI devices that # prove beneficial to enable power savings # PCI_DEVICES_PM_ENABLE="${PCI_DEVICES_PM_ENABLE:-true}" set_pci_device() { for dev in /sys/bus/pci/devices/* ; do if [ -e $dev/class -a -e $dev/power/control ]; then id=`basename $dev` case `cat $dev/class` in 0x020000) # ethernet echo "Setting Ethernet device $id to $1" echo $1 > $dev/power/control ;; 0x028000) # wireless echo "Setting Wireless device $id to $1" echo $1 > $dev/power/control ;; 0x040300) # audio echo "Setting Audio device $id to $1" echo $1 > $dev/power/control ;; 0x060000) # host bridge echo "Setting Host Bridge $id to $1" echo $1 > $dev/power/control ;; 0x080500) # SD card reader echo "Setting SD card reader device $id to $1" echo $1 > $dev/power/control ;; 0x088000|0x088001) # card reader echo "Setting card reader device $id to $1" echo $1 > $dev/power/control ;; 0x0c0000|0x0c0010) # firewire echo "Setting FireWire device $id to $1" echo $1 > $dev/power/control ;; esac fi done } case "$1" in true) # powersaving on [ "$PCI_DEVICES_PM_ENABLE" = true ] && set_pci_device "auto" ;; false) # powersaving off [ "$PCI_DEVICES_PM_ENABLE" = true ] && set_pci_device "on" ;; *) exit 254 ;; esac exit 0 debian/power.d/usb_bluetooth0000644000000000000000000000214112236376517013357 0ustar #!/bin/sh # # This script adjusts the USB bluetooth device settings via the USB # power control. This simply sets this to "auto" for power saving and to "on" # for non-power saving. This has been shown to save about 1W on some # systems. # # According to http://www.usb.org/developers/defined_class # USB wireless bluetooth devices have baseclass 0xe0, subclass 0x01, # protocol 0x01 # USB_BLUETOOTH_PM_ENABLE="${USB_BLUETOOTH_PM_ENABLE:-true}" set_usb_bluetooth() { for dev in /sys/bus/usb/devices/* ; do if [ -e $dev/bDeviceClass -a \ -e $dev/bDeviceSubClass -a \ -e $dev/bDeviceProtocol -a \ -e $dev/power/control ]; then if [ x`cat $dev/bDeviceClass` = xe0 -a \ x`cat $dev/bDeviceSubClass` = x01 -a \ x`cat $dev/bDeviceProtocol` = x01 ]; then echo Setting $dev to $1 echo $1 > $dev/power/control fi fi done } case "$1" in true) # powersaving on [ "$USB_BLUETOOTH_PM_ENABLE" = true ] && set_usb_bluetooth "auto" ;; false) # powersaving off [ "$USB_BLUETOOTH_PM_ENABLE" = true ] && set_usb_bluetooth "on" ;; *) exit 254 ;; esac exit 0 debian/rules0000755000000000000000000000402212236376517010260 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk configure/pm-utils:: # Hack to not build some stuff touch src/pm-pmu.o src/pm-reset-swap.o touch src/pm-pmu src/pm-reset-swap pre-build:: # Enforce that man pages are regenerated rm -f man/pm-powersave.8 rm -f man/pm-action.8 rm -f man/pm-is-supported.1 binary-install/pm-utils:: # We depend on powermgmt-base to provide on_ac_power. # This way we don't have to conflict with this package. rm -f debian/pm-utils/usr/bin/on_ac_power rm -f debian/pm-utils/usr/bin/import-fdi-quirkdb rm -f debian/pm-utils/usr/share/man/man1/on_ac_power.1 # Remove tools/hooks that are not suitable for Debian. rm -f debian/pm-utils/usr/lib/pm-utils/sleep.d/01grub rm -f debian/pm-utils/usr/lib/pm-utils/sleep.d/49bluetooth rm -f debian/pm-utils/usr/lib/pm-utils/sleep.d/55NetworkManager rm -f debian/pm-utils/usr/lib/pm-utils/bin/pm-reset-swap rm -f debian/pm-utils/usr/lib/pm-utils/power.d/hal-cd-polling rm -f debian/pm-utils/usr/lib/pm-utils/bin/pm-pmu rm -f debian/pm-utils/usr/share/man/man8/pm-pmu.8 # Remove hooks which are not stable enough yet rm -f debian/pm-utils//usr/lib/pm-utils/power.d/harddrive # Remove hooks which have shown to not reduce, or even increase power # usage rm -f debian/pm-utils/usr/lib/pm-utils/power.d/journal-commit rm -f debian/pm-utils/usr/lib/pm-utils/power.d/readahead chmod -x debian/pm-utils/usr/lib/pm-utils/defaults install -D -m 755 debian/kernel-postinst-hibernate-stamp debian/pm-utils/etc/kernel/postinst.d/pm-utils install -D -m 755 debian/no-hibernate-on-kernel-update debian/pm-utils/usr/lib/pm-utils/sleep.d/000kernel-change # install quirks db cp -r debian/video-quirks debian/pm-utils/usr/lib/pm-utils/ # install hooks which haven't been accepted upstream yet cp -r debian/power.d debian/pm-utils/usr/lib/pm-utils/ chmod 755 debian/pm-utils/usr/lib/pm-utils/power.d/* cp -r debian/sleep.d debian/pm-utils/usr/lib/pm-utils/ chmod 755 debian/pm-utils/usr/lib/pm-utils/sleep.d/* debian/sleep.d/0000755000000000000000000000000012236376517010534 5ustar debian/sleep.d/50unload_alx0000644000000000000000000000047412236376517012757 0ustar #!/bin/sh # 50unload_alx: unload the alx module during suspend (LP #1173952) [ -d /sys/module/alx ] || exit 0 . "${PM_FUNCTIONS}" case "$1" in suspend) echo "Unloading alx kernel module ..." modunload alx && echo Done. || echo Failed. ;; resume) echo "Reloading alx kernel module ..." ;; esac exit 0 debian/source/0000755000000000000000000000000012236376517010502 5ustar debian/source/format0000644000000000000000000000001412236376517011710 0ustar 3.0 (quilt) debian/time-hook-execution.patch0000644000000000000000000000215312236376517014121 0ustar Description: Measure time that hooks take and print them in the log. Also, disable actual suspend call to make hook optimization/measure turnarounds more convenient. This is not applied by default as the date calls themselves add overhead. Author: Martin Pitt --- old/pm/pm-functions.in +++ new/pm/pm-functions.in @@ -196,10 +196,13 @@ # $1 = hook to run # rest of args passed to hook unchanged. log "Running hook $*:" + t_start=`date +%s.%N` hook_ok "$1" && "$@" # log() changes the return value, so save it for later local status=$? - log "" + t_end=`date +%s.%N` + time=`echo $t_end - $t_start | bc -l` + log "($time s)" log -n "$*: " hook_exit_status $status && LAST_HOOK="${1##*/}" || inhibit } @@ -318,7 +321,8 @@ if [ -z "$SUSPEND_MODULE" ]; then if grep -q mem /sys/power/state; then SUSPEND_MODULE="kernel" - do_suspend() { echo -n "mem" >/sys/power/state; } + #do_suspend() { echo -n "mem" >/sys/power/state; } + do_suspend() { log "Would suspend now"; } elif [ -c /dev/pmu ] && check_suspend_pmu; then SUSPEND_MODULE="kernel" do_suspend() { do_suspend_pmu; } debian/video-quirks/0000755000000000000000000000000012236376517011624 5ustar debian/video-quirks/20-video-quirk-pm-acer.quirkdb0000644000000000000000000001233212236376517017210 0ustar # match system.hardware.vendor regex_ncase ^Acer match system.hardware.product regex ^TravelMate match system.hardware.product regex C300 addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex 2350|2410|2420|2490|3220|4000|4650|5320 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex 3000|4100 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex 2300|2310|3010|3020|6291 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex 3260 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore addquirk --quirk-pci-save endmatch match system.hardware.product regex 7520|8000 addquirk --quirk-s3-bios endmatch match system.hardware.product regex C100|6460 addquirk --quirk-vbe-post endmatch match system.hardware.product regex C200|2450|4400|6492 addquirk --quirk-none endmatch # match system.hardware.product regex 4000 match system.hardware.primary_video.product numeric_compare_eq 20048 match system.hardware.primary_video.vendor numeric_compare_eq 4098 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore addquirk --quirk-dpms-on endmatch endmatch endmatch # match system.hardware.product regex ^(TravelMate 240|TravelMate 250|TravelMate 650)$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex ^TravelMate 380$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-s3-mode endmatch # match system.hardware.product regex ^(TravelMate 630|TravelMate 230)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^TravelMate 660$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^TravelMate 800$ addquirk --quirk-vbe-post endmatch endmatch match system.hardware.product regex ^Aspire match system.hardware.product regex 5050 addquirk --quirk-s3-bios endmatch match system.hardware.product regex 1670|3610|3620|3690|5630 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex 5610 # match system.hardware.product regex 5610Z addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex_inverse 5610Z addquirk --quirk-vbe-post endmatch endmatch match system.hardware.product regex 5000|5020|5500 addquirk --quirk-vbe-post endmatch match system.hardware.product regex 1640 addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex 1500|3000 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex 1520|1650|5100|5110|5570|5920 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex 1690|1694 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-no-fb endmatch match system.hardware.product regex 1350$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore addquirk --quirk-no-fb endmatch match system.hardware.product regex 2010|2920|3100|4520|5500Z|5580|5920G addquirk --quirk-none endmatch endmatch match system.hardware.product regex ^Extensa match system.hardware.product regex 6220 addquirk --quirk-s3-bios endmatch match system.hardware.product regex 2900|3000|4150|5620 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex 5220 addquirk --quirk-s3-bios addquirk --quirk-vbe-post endmatch endmatch match system.hardware.product regex ^Ferrari match system.hardware.product regex 4000 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-no-fb endmatch match system.hardware.product regex 1000 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch # match system.hardware.product regex 5000 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex ^Xspire match system.hardware.product regex 1650 addquirk --quirk-none endmatch endmatch match system.hardware.product regex ^AcerPower match system.hardware.product regex 2000 addquirk --quirk-none endmatch endmatch # match system.hardware.product regex ^(AOA110|AOA150) addquirk --quirk-none endmatch endmatch debian/video-quirks/20-video-quirk-pm-apple.quirkdb0000644000000000000000000000160312236376517017376 0ustar # match system.hardware.vendor regex ^Apple match system.hardware.product regex ^MacBook2,1$ match system.hardware.vendor regex ^Apple Inc\. match system.hardware.version regex ^1\.0$ # addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex Computer, Inc\. addquirk --quirk-vbe-post endmatch endmatch match system.hardware.product regex ^(MacBook1,1|MacBook3,1)$ # addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex ^MacBookPro1,1$ addquirk --quirk-vbe-post endmatch match system.hardware.product regex ^MacBookPro2,2$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch debian/video-quirks/20-video-quirk-pm-asus.quirkdb0000644000000000000000000001024312236376517017250 0ustar # match system.hardware.vendor regex ^ASUS match system.hardware.product regex ^(U5F |M2000E|F2J ) addquirk --quirk-s3-bios endmatch match system.hardware.product regex ^(K8N-E-Deluxe|L2000D|M6Ne|M51Sr |U6S|A8N) addquirk --quirk-s3-mode endmatch # match system.hardware.product regex ^(M6VA|M6N |M5N|M7A|S6F|S5N |W3A|W5A |M2N |A2D |F3F |V6V|A8He|A6Kt |F3JC |F3Sc) addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^Z35FM addquirk --quirk-s3-bios addquirk --quirk-pci-save endmatch match system.hardware.product regex ^(A6M|Z84F) addquirk --quirk-vbe-post endmatch match system.hardware.product regex ^W7J addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^(L3000D|M3N |U3S |X51RL ) addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex ^F3Ka addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-no-fb endmatch match system.hardware.product regex ^V1J addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore addquirk --quirk-no-fb endmatch # match system.hardware.product regex ^(A6J |A6U|A3E|F3JP) addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch # match system.hardware.product regex ^(701|900)$ addquirk --quirk-s3-bios addquirk --quirk-dpms-on endmatch match system.hardware.product regex ^901$ addquirk --quirk-vbe-post endmatch # match system.hardware.product regex ^(A2H/L|A6Km|A6JC |A6K |A6T|A6G|A6VA|A8JS |F3Sg|F3T|F9E |G1S|K8V-MX|1000H|F2JE) addquirk --quirk-none endmatch endmatch # match system.hardware.vendor regex ^ERGOUK match system.hardware.product regex ^M2N addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch # match system.hardware.vendor regex ^System manufacturer$ match system.hardware.product regex ^P5Q DELUXE$ match system.firmware.version regex ^System Version addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.version regex ^P5KR match system.hardware.product regex ^System Version addquirk --quirk-none endmatch endmatch endmatch # match system.board.product regex ^P5LD2 addquirk --quirk-s3-bios endmatch # match system.firmware.version regex ^ASUS A7V600 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch # match system.firmware.version regex ^(ASUS M2N32-SLI DELUXE ACPI BIOS Revision 1201|ASUS M2N32-SLI DELUXE ACPI BIOS Revision 1101|ASUS M2A-VM HDMI ACPI BIOS Revision 1603|ASUS A7V8X-X ACPI BIOS Revision) addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.firmware.version regex ^ASUS M2A-VM ACPI BIOS Revision match system.firmware.version regex 1101 addquirk --quirk-s3-bios addquirk --quirk-vbemode-restore endmatch match system.firmware.version regex_inverse 1101 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.firmware.version regex ^ASUS P4B266 ACPI BIOS Revision match system.firmware.version regex 1010 match system.hardware.primary_video.vendor numeric_compare_eq 0x1002 match system.hardware.primary_video.product numeric_compare_eq 0x4966 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch endmatch endmatch # match system.firmware.version regex ^(ASUS M2N-E ACPI BIOS Revision|ASUS Striker ACPI BIOS Revision|ASUS A7V ACPI BIOS Revision) addquirk --quirk-none endmatch debian/video-quirks/20-video-quirk-pm-dell.quirkdb0000644000000000000000000001346612236376517017227 0ustar # match system.hardware.vendor regex ^Dell # match system.hardware.product regex ^Latitude match system.hardware.product regex C500 addquirk --quirk-dpms-suspend addquirk --quirk-vbe-post endmatch match system.hardware.product regex C600 addquirk --quirk-radeon-off endmatch match system.hardware.product regex C800 addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex X300|D820 # addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex CPx J800GT|D400|D410|D420|D430|D520|D530|C610|D620|D830 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex C400|C840|D500|D505|D800|X200 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex D600|D610 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-no-fb endmatch match system.hardware.product regex D630 match system.firmware.version compare_lt A12 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-no-fb endmatch match system.firmware.version compare_ge A12 addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex X1$ addquirk --quirk-vbe-post endmatch # match system.hardware.product regex CPx J650GT|LS |D810 addquirk --quirk-none endmatch endmatch # match system.hardware.product regex ^Inspiron match system.hardware.product regex 1501|8600 addquirk --quirk-s3-bios addquirk --quirk-s3-mode match system.hardware.primary_video.vendor numeric_compare_eq 0x1002 addquirk --quirk-radeon-off endmatch endmatch match system.hardware.product regex 9300 addquirk --quirk-s3-bios endmatch match system.hardware.product regex 510m addquirk --quirk-vbe-post endmatch match system.hardware.product regex 5100 match system.firmware.version regex ^Revision A0$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-pci-save endmatch match system.firmware.version regex_inverse Revision A0 addquirk --quirk-no-fb endmatch endmatch match system.hardware.product regex 5150|8000|8500 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex 500m|600m|1100|1420|1525|2200|5160 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex 700m # addquirk --quirk-none endmatch # match system.hardware.product regex 1011| 1150| 1520| 1720 addquirk --quirk-none endmatch endmatch # match system.hardware.product regex ^Precision match system.hardware.product regex M20 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex M6300 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex M60 addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex M65 addquirk --quirk-dpms-on addquirk --quirk-vbe-post endmatch # match system.hardware.product regex M90 |WorkStation 360| M4300 addquirk --quirk-none endmatch endmatch # match system.hardware.product regex ^Dimension match system.hardware.product regex 2400|3000|9100 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch # match system.hardware.product regex ^Vostro match system.hardware.product regex 1000 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex 1500 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex 1710 addquirk --quirk-none endmatch endmatch # match system.hardware.product regex_ncase ^OptiPlex match system.hardware.product regex GX520|GX260 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex 755 addquirk --quirk-vbe-post addquirk --quirk-no-fb endmatch match system.hardware.product regex_ncase fx160 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex 170L|GX620 addquirk --quirk-none endmatch endmatch # match system.hardware.product regex MXC061|MXC062 addquirk --quirk-vbe-post endmatch # match system.hardware.product regex XPS M1330|MM061 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch # match system.hardware.product regex DM061 |DXP051|ME051|MP061|MXC051|MXG061|XPS M1530 addquirk --quirk-none endmatch endmatch debian/video-quirks/20-video-quirk-pm-fujitsu.quirkdb0000644000000000000000000000712712236376517017775 0ustar # match system.hardware.vendor regex ^FUJITSU match system.hardware.product regex_ncase amilo match system.hardware.product regex A1667G Serie|Pa 1510|Li 1718|M1425 addquirk --quirk-s3-bios endmatch match system.hardware.product regex Pro V3205|Pro Edition V3405|Pro Edition V3505|Xi 1546|Si 1520|A7640|Pi 1505|A1645 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex A1650G addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^M Series$ addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex Amilo D Series|PRO V2030|PRO V2035|PRO V8010|Pi 1536|Pi 2515| L Series addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex AMILO M|A Series match system.hardware.version regex -1 |0\.01 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore match system.firmware.version regex ^R01-S0N addquirk --quirk-pci-save endmatch endmatch endmatch match system.hardware.product regex A7645 addquirk --quirk-s3-bios addquirk --quirk-s3-mode addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex Pro V2040|Pro Series V3525 addquirk --quirk-none endmatch endmatch match system.hardware.product regex_ncase lifebook match system.hardware.product regex P7010D|S2110 addquirk --quirk-s3-bios endmatch match system.hardware.product regex E8410|T4010|S2210|P8010 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch # match system.hardware.product regex S7020 addquirk --quirk-vbe-post addquirk --quirk-reset-brightness endmatch match system.hardware.product regex E4010|P7120 addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex E8020|S6410 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex T2010 match system.hardware.product regex ^FUJITSU SIEMENS$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-pci-save endmatch match system.hardware.product regex ^FUJITSU$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.product regex T4210|P7230 addquirk --quirk-pci-save addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex B Series|T Series|S7010|S7110|E8110|T301|T3010 addquirk --quirk-none endmatch endmatch match system.hardware.product regex ^SCENIC match system.hardware.product regex N300/N600|W300/W600|P / SCENICO P addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex W$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex ^(ESPRIMO P|ESPRIMO Mobile M9400|ESPRIMO Mobile D9500) addquirk --quirk-none endmatch match system.hardware.product regex ^Stylistic ST5000$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^P6VAP-AP$ addquirk --quirk-none endmatch endmatch # match system.hardware.vendor regex ^FUJITSO match system.hardware.product regex ^FMVLT70R$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode addquirk --quirk-pci-save endmatch endmatch debian/video-quirks/20-video-quirk-pm-hp.quirkdb0000644000000000000000000002505612236376517016714 0ustar # # match system.hardware.vendor regex ^Compaq # match system.hardware.product regex ^Armada match system.hardware.product regex E500 | M70 | M700 addquirk --quirk-none endmatch # match system.hardware.product regex match system.firmware.version regex ^1\.35$ addquirk --quirk-none endmatch endmatch endmatch match system.hardware.product regex ^Evo match system.hardware.product regex N600c addquirk --quirk-vbe-post endmatch match system.hardware.product regex N800w addquirk --quirk-vbe-post # match system.hardware.version regex ^F\.05$ addquirk --quirk-vbestate-restore endmatch # match system.hardware.version regex_inverse F\.05 addquirk --quirk-s3-bios addquirk --quirk-s3-mode addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex D510 USDT| N400c addquirk --quirk-none endmatch endmatch match system.hardware.product regex ^Presario match system.hardware.product regex 2701EA addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-no-fb endmatch match system.hardware.product regex V3000 \(EZ674UA#|V3700 Notebook PC addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex X1000 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex V2000 addquirk --quirk-dpms-on endmatch match system.hardware.product regex V3000 \(EZ755UA#|V5000 \(ET826UA#|2100 \(DP835E\)|F500 \(GF596UA#|2200 \(PR309UA#|C700 \(GV681LA# addquirk --quirk-none endmatch endmatch match system.hardware.product regex ^N620c  addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.vendor regex ^Hewlett Packard$ match system.hardware.version regex ^HP OmniBook XE3 GF addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch endmatch match system.hardware.vendor regex ^Hewlett-Packard match system.hardware.product regex ^COMPAQ MINI 500$ addquirk --quirk-s3-mode endmatch match system.hardware.product regex V2000 \(EP381UA#|X1000 \(DK454AV\)| 6715s|6820s addquirk --quirk-s3-bios endmatch match system.hardware.product regex 8510w match system.hardware.primary_video.vendor numeric_compare_eq 0x1002 addquirk --quirk-s3-bios endmatch endmatch match system.hardware.product regex HP OmniBook XT1000 addquirk --quirk-s3-mode endmatch match system.hardware.product regex V3000 \(RL377PA#|EW434AVABA|R3000|R4100|nc6000 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex nx6125|nc6230|nx8220 addquirk --quirk-vbestate-restore addquirk --quirk-no-fb endmatch match system.hardware.product regex OmniBook XE3 G|R3200|nx5000|nx7000|nc6120|nx6325|2510p addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch # match system.hardware.version regex ^HP OmniBook 6100 EB$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch # match system.hardware.product regex nc2400|nx6110|nc6120|nc6320|nx7300|6720s|2710p|8510p|PY507ET#|6715b addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex 4410s # match system.hardware.primary_video.vendor numeric_compare_eq 0x1002 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex M2000 \(EQ547PA addquirk --quirk-s3-bios addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex tc4400|nc4400|tc4200|nx6120|nc4200|HP 530 Notebook PC addquirk --quirk-vbe-post endmatch match system.hardware.product regex HP Compaq nc6400 match system.hardware.version regex ^68YCU match system.hardware.product regex \(EH522AV\)|\(EY582ES|\(RH560EA addquirk --quirk-vbemode-restore addquirk --quirk-vbe-post endmatch endmatch endmatch match system.hardware.product regex nx 7010 addquirk --quirk-s3-bios match system.hardware.product regex DU394T# addquirk --quirk-s3-mode endmatch endmatch match system.hardware.product regex nx7400 addquirk --quirk-vbe-post match system.firmware.version regex_inverse 68YGU addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex HP Compaq dc5800 Small Form Factor|HP d330 uT| nw9440|nw8440 addquirk --quirk-none endmatch match system.hardware.product regex HP Compaq 2133|HP 2133 match system.firmware.version regex 68VGU addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch # match system.hardware.product regex 6510b match system.hardware.product regex KE134EA addquirk --quirk-none endmatch match system.hardware.product regex_inverse KE134EA addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch endmatch match system.hardware.product regex 6710b match system.hardware.product regex KE123EA addquirk --quirk-none endmatch match system.hardware.product regex KE124EA addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex 6710s match system.firmware.version regex 68DDU match system.hardware.product regex GC014ET addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex_inverse GC014ET addquirk --quirk-vbe-post addquirk --quirk-dpms-on endmatch endmatch endmatch match system.hardware.product regex 6715b match system.hardware.product regex GB835EA|RK156AV addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex GB834EA addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex RM174UT addquirk --quirk-s3-bios addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex 6910p match system.firmware.version regex 68MCD match system.hardware.product regex GB951EA addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^HP Compaq 6910p$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.firmware.version regex_inverse 68MCD addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex nc4400 match system.firmware.version regex ^68YHV addquirk --quirk-vbe-post match system.firmware.version regex F\.08 addquirk --quirk-vbestate-restore endmatch match system.firmware.version regex_inverse F\.08 addquirk --quirk-vbemode-restore endmatch endmatch endmatch match system.hardware.product regex nx6310 match system.firmware.version regex ^68YDU addquirk --quirk-none endmatch match system.firmware.version regex_inverse 68YDU addquirk --quirk-vbe-post endmatch endmatch match system.hardware.product regex_ncase Pavilion match system.hardware.product regex dv4000 \(ES973EA# addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-no-fb endmatch match system.hardware.product regex dv4000 \(EB911EA#| dv2600| dv6500 addquirk --quirk-s3-bios endmatch match system.hardware.product regex dv4000 \(PX306UA#| dv6700 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex zd8000 \(EL030EA# addquirk --quirk-vbe-post endmatch match system.hardware.product regex ze2000 match system.hardware.product regex \(EK791EA# addquirk --quirk-none endmatch match system.hardware.product regex_inverse \(EK791EA# addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.product regex zt3300 match system.firmware.version regex 68BAL addquirk --quirk-s3-bios endmatch match system.hardware.product regex PF083UA# addquirk --quirk-none endmatch endmatch match system.hardware.product regex dv6000 match system.hardware.version regex \(GA378UA#|\(GH907EA# addquirk --quirk-s3-mode endmatch # match system.hardware.version regex \(EW434AV#|\(RP153UA# addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.version regex \(EY798AV#|\(GF688EA|\(RM469EA|\(RP980EA# addquirk --quirk-none endmatch endmatch match system.hardware.product regex ^HP Pavilion Notebook PC$ match system.hardware.version regex ^HP Pavilion Notebook$ match system.firmware.vendor regex ^Insyde Software$ # match system.firmware.version regex ^ IC\.M1\.04$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode addquirk --quirk-vbemode-restore endmatch # match system.firmware.version regex ^ IC\.M1\.02$ addquirk --quirk-none endmatch endmatch endmatch endmatch match system.hardware.product regex 8710p|dv2000|dv2500|tx1000|dv5000 \(EZ535UA#|HP d530 SFF|ze4900| dv9700 addquirk --quirk-none endmatch endmatch endmatch # match system.hardware.vendor regex ^HP Pavilion match system.hardware.product regex M7330N addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex ^(D7223K-ABA A650E|EJ192AA-ABS t3250\.se|EP198AA-UUZ t3335\.ch|ES061AA-ABD t3320|PC098A-ABA M1070N)$ addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^HP-Pavilion match system.hardware.product regex RZ418AA-ABH s3020 addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^RP829AV-ABA d4790y$ addquirk --quirk-none endmatch endmatch debian/video-quirks/20-video-quirk-pm-ibm.quirkdb0000644000000000000000000000750712236376517017055 0ustar # match system.hardware.vendor regex ^IBM$ match system.hardware.version regex ^ThinkPad R50e$ addquirk --quirk-save-pci addquirk --quirk-dpms-on endmatch match system.hardware.version regex ^ThinkPad R51$ addquirk --quirk-none endmatch match system.hardware.version regex ^ThinkPad R51e$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch # match system.hardware.product regex ^2645 match system.firmware.version regex ^INET17WW$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.firmware.version regex_inverse INET17WW addquirk --quirk-vbestate-restore endmatch endmatch # match system.hardware.product regex ^2652 addquirk --quirk-s3-bios addquirk --quirk-s3-mode # addquirk --quirk-dpms-suspend endmatch # match system.hardware.product regex ^(2366|2367|2653) addquirk --quirk-radeon-off endmatch # match system.hardware.product regex ^(2662|2672|2673) addquirk --quirk-radeon-off match system.hardware.version regex_inverse X31 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch # match system.hardware.product regex ^(2672|2673|2884|2885|2890|2891) match system.hardware.version regex X31 addquirk --quirk-dpms-suspend addquirk --quirk-radeon-off endmatch match system.hardware.version regex X32 addquirk --quirk-dpms-suspend endmatch endmatch # match system.hardware.product regex ^2647 addquirk --quirk-vbe-post endmatch # match system.hardware.product regex ^(1832|1860|1869|2371|2373|2374|2376|2382|2386|2511|2513|2525|2526|2529|2530) addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch # match system.hardware.product regex ^(1846|1847|2886) addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch # match system.hardware.version regex ^ThinkPad T41$ addquirk --quirk-s3-bios endmatch # match system.hardware.product regex ^(2378|2379) match system.hardware.version regex ^ThinkPad T42 addquirk --quirk-s3-bios endmatch endmatch # match system.hardware.version regex ^ThinkPad T43$ # match system.hardware.primary_video.vendor numeric_compare_eq 0x1002 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch # match system.hardware.primary_video.vendor numeric_compare_eq 0x8086 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch # match system.hardware.product regex ^2388 addquirk --quirk-vbestate-restore endmatch # match system.hardware.product regex ^(2628|2629|2658|2681|2722) addquirk --quirk-none endmatch # match system.hardware.version regex ^ThinkPad X40$ match system.firmware.version regex ^1UETD2WW # addquirk --quirk-none endmatch endmatch endmatch match system.hardware.version regex ^ThinkPad T40 $ match system.firmware.version regex ^1RETDRWW addquirk --quirk-none endmatch endmatch endmatch match system.hardware.vendor regex ^IBM CORPORATION$ match system.hardware.product regex ^(4800723|4800743|4800783|4800C43)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch debian/video-quirks/20-video-quirk-pm-lenovo.quirkdb0000644000000000000000000000714012236376517017601 0ustar # match system.hardware.vendor regex ^LENOVO$ # # # match system.hardware.product regex ^(1702|1704|1706|1709|2007|2478|2479|4108|4141|4143|6088|6363|6364|6365|6378|6379|6480|6458|6463|6464|6465|6466|6467|6468|6471|6476|6477|6478|7642|7643|7644|7645|7646|7647|7648|7649|7650|7657|7658|7659|7660|7661|7666|7667|7668|7673|7732|7733|7734|7735|7736|7737|7738|7762|7763|7764|7767|7768|7669|7670|7671|7673|7674|7675|7676|7678|7679|8808|8895|8896|8897|8898|8899|8900|8919|8930|8932|8933|8934|8935|8936|8937|8938|8939|8942|8943|8944|8945|8946|8947|8948|9452) addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^(63664DU|1705CTO) addquirk --quirk-vbe-post endmatch match system.hardware.product regex ^6457 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch # match system.hardware.version regex_ncase ^ThinkPad R60 addquirk --quirk-s3-bios # match system.hardware.product regex ^0657 addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex_inverse 0657 addquirk --quirk-s3-mode endmatch endmatch match system.hardware.version regex ^ThinkPad # match system.hardware.version regex T60$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch # match system.hardware.version regex T60p|Z61m|Z61t|Z60m|Z61p|R61e addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch # match system.hardware.version regex W500$ addquirk --quirk-vbe-post endmatch endmatch # match system.hardware.product regex ^7663 addquirk --quirk-s3-mode endmatch # match system.hardware.product regex ^(6460|6465) addquirk --quirk-s3-bios addquirk --quirk-vbemode-restore endmatch # match system.hardware.product regex ^2242CTO$ match system.hardware.version regex ^ThinkPad T500$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch endmatch # match system.hardware.product regex ^(6459|7664|8918) addquirk --quirk-none endmatch # match system.hardware.version regex_ncase ^3000 C100 match system.hardware.product regex ^0761 addquirk --quirk-none endmatch endmatch match system.hardware.version regex_ncase ^3000 N100 match system.hardware.product regex ^(068928U|07686VG|076831G|076835U|0768BYG) addquirk --quirk-none endmatch match system.hardware.product regex ^07687MM addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^076804U$ addquirk --quirk-s3-bios addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.version regex_ncase ^3000 N200 match system.hardware.product regex ^(0769BBG|0769AC6)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^(0769B9G|0769BEG|0769AH9)$ addquirk --quirk-none endmatch endmatch match system.hardware.version regex ^LENOVO3000 V100$ match system.hardware.product regex ^0763 addquirk --quirk-none endmatch endmatch match system.hardware.product regex ^Soleil E660P addquirk --quirk-none endmatch endmatch debian/video-quirks/20-video-quirk-pm-misc.quirkdb0000644000000000000000000002706312236376517017240 0ustar # match system.hardware.vendor regex ^AIRIS$ match system.hardware.version regex ^VT6413A$ addquirk --quirk-s3-bios endmatch endmatch match system.hardware.vendor regex ^AnabelleB$ # match system.hardware.version regex ^Claro TW7M$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.vendor regex ^COMPAL match system.hardware.product regex HEL80C|HEL80I|HEL81I addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex DIXONSXP match system.hardware.product regex To be filled by O\.E\.M\. match system.firmware.version regex ^Ver\.001$ addquirk --quirk-none endmatch endmatch endmatch match system.hardware.vendor regex ERGOUK match system.hardware.product regex M2N addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.vendor regex ^JVC$ match system.hardware.product regex ^J2N $ addquirk --quirk-vbestate-restore endmatch endmatch match system.hardware.vendor regex ^LG match system.hardware.product regex ^(M1-3DGBG|W1-JDGBG|LM50-DGHE|LW75-SGGV1)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^R500-U\.CPCBG$ addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex MAXDATA match system.hardware.product regex ^PRO600IW$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex Pro 6100X addquirk --quirk-vbe-post endmatch match system.hardware.product regex IMPERIO4045A addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^Matsushita match system.hardware.product regex ^CF-Y addquirk --quirk-vbe-post endmatch match system.hardware.product regex CF-51E|CF-R3E|CF-R2C|CF-R6A|CF-R6M addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^CF-W4G addquirk --quirk-none endmatch endmatch # match system.hardware.vendor regex ^VIA match system.hardware.product regex ^VT8623-8235$ addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^K8N800$ match system.firmware.version regex ^VT8204B $ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch endmatch match system.hardware.product regex ^K8T400$ match system.hardware.version regex ^VT8204B $ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.product regex ^(KT400-8235|KT400A-8235)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.vendor regex ^AVERATEC$ match system.hardware.product regex ^(3700 Series|1000 Series)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^3200$ addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex ^5500 Series$ addquirk --quirk-s3-mode endmatch endmatch match system.hardware.vendor regex ^BenQ match system.hardware.product regex ^Joybook R42$ addquirk --quirk-vbe-post endmatch match system.hardware.product regex ^(Joybook R22|Joybook R23|JoyBook 7000)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^(Joybook S52|Joybook S32)$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.vendor regex ^Elonex PLC match system.hardware.product regex M5A addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.vendor regex ^GERICOM match system.hardware.product regex HUMMER match system.firmware.version regex ^1\.03 $ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.product regex 259IA1 addquirk --quirk-none endmatch # match system.hardware.product regex ^Montara-GML $ match system.hardware.version regex ^FAB-2$ addquirk --quirk-none endmatch endmatch endmatch match system.hardware.vendor regex ^MTC match system.hardware.product regex ^Montara-GML$ addquirk --quirk-s3-bios endmatch endmatch match system.hardware.vendor regex_ncase ^micro-star match system.hardware.product regex ^(MS-1012|MS-1013)$ addquirk --quirk-s3-bios endmatch match system.hardware.product regex ^(MS-1057|U-100)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^PR210$ match system.hardware.version regex ^MS-1222X$ addquirk --quirk-vbe-post endmatch endmatch match system.hardware.product regex ^EX610$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^MS-1412$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore addquirk --quirk-no-fb endmatch match system.hardware.product regex ^MS-1003$ addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^MSI match system.hardware.product regex ^(MS-7350|MS-7207PV|MS-6417|MS-6702)$ addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^MiTAC$ # addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.vendor regex ^MEDION match system.hardware.product regex WID2010 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex MS-6714 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^(MS-7012|M295M|WIM 2000 |WIM 2140)$ addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^NEC match system.hardware.product regex B7 addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex ^VC2$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^NEC Versa Premium$ addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex_ncase ^packard bell # match system.hardware.vendor regex NEC match system.hardware.product regex ^00000000000000000000000$ match system.hardware.version regex ^P820008416$ addquirk --quirk-none endmatch match system.firmware.version regex ^A03 $ addquirk --quirk-none endmatch endmatch endmatch match system.hardware.product regex ^EasyNote_SJ51$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.vendor regex ^4MBOL match system.hardware.product regex ^7521 match system.hardware.version regex ^REV\. A0$ addquirk --quirk-none endmatch endmatch endmatch match system.hardware.vendor regex ^CLEVO$ match system.hardware.product regex ^D500P$ addquirk --quirk-vbe-post addquirk --quirk-no-fb endmatch match system.hardware.product regex ^M5X0JE$ addquirk --quirk-s3-bios endmatch match system.hardware.product regex ^M720SR$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex ^TN120R$ addquirk --quirk-none endmatch endmatch # match system.hardware.vendor regex ^VIA$ match system.hardware.product regex ^K8N800$ match system.hardware.version regex ^VT8204B$ match system.firmware.version regex ^4\.06CJ15$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch endmatch endmatch endmatch match system.hardware.vendor regex ^ECS$ match system.hardware.product regex ^536$ addquirk --quirk-vbe-post addquirk --quirk-no-fb endmatch endmatch match system.hardware.vendor regex ^Elitegroup$ match system.hardware.product regex ^ECS G320$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.vendor regex ^Gigabyte Technology match system.hardware.product regex ^(945GCMX-S2|P35-DS4)$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^(945GZM-S2|945GCM-S2L)$ addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^Infomash$ match system.hardware.product regex ^RoverBook$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch match system.hardware.vendor regex ^Gateway match system.hardware.product regex MT6707 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^MT6920 addquirk --quirk-vbe-post endmatch match system.hardware.product regex MX6922B addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^MaxSelect$ match system.hardware.product regex ^Mission_A330$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch endmatch # match system.hardware.vendor regex ^NOTEBOOK$ match system.hardware.product regex ^SAM2000$ match system.hardware.version regex ^0131$ addquirk --quirk-none endmatch endmatch # match system.hardware.product regex ^MIM2080$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.vendor regex ^NCA_GROUP_LTD$ match system.hardware.product regex ^iRU_Notebook$ match system.hardware.version regex ^0106$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch endmatch endmatch match system.hardware.vendor regex ^transtec AG match system.hardware.product regex ^(MS-1057|MS-1034)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch match system.hardware.vendor regex ^To Be Filled By O\.E\.M\.$ match system.hardware.product regex ^259IA1$ match system.hardware.version regex ^To Be Filled By O\.E\.M\.$ match system.firmware.version regex ^080010 $ addquirk --quirk-s3-mode endmatch endmatch endmatch match system.hardware.product regex ^MS-7210$ match system.hardware.version regex ^100$ addquirk --quirk-none endmatch endmatch endmatch match system.hardware.vendor regex ^OEM$ # match system.hardware.product regex ^P53IN4$ addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^OQO$ match system.hardware.product regex ^ZEPTO$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch endmatch match system.hardware.vendor regex ^SHARP$ match system.hardware.product regex ^PC-AR10 addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^Shuttle Inc$ match system.hardware.product regex ^SD11V10$ addquirk --quirk-s3-bios endmatch match system.hardware.product regex ^SD30V10$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^SN41UV10$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^SN85V10$ addquirk --quirk-none endmatch endmatch match system.hardware.vendor regex ^ZEPTO$ match system.hardware.product regex ^ZNOTE match system.hardware.version regex ^3215W addquirk --quirk-none endmatch endmatch endmatch match system.hardware.primary_video.vendor compare_eq 0x15ad match system.hardware.primary_video.product compare_eq 0x0405 match system.hardware.primary_video.driver compare_eq vmwgfx addquirk --quirk-none endmatch endmatch endmatch debian/video-quirks/20-video-quirk-pm-samsung.quirkdb0000644000000000000000000000165712236376517017763 0ustar # match system.hardware.vendor regex_ncase ^Samsung match system.hardware.product regex ^(Q35/Q36|SM40S|SQ45S70S)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^(SQ30|SQ35S|SX50S)$ addquirk --quirk-vbe-post endmatch # match system.hardware.product regex ^(R40/R41|CoronaR|SX22S)$ addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex ^(SX20S|SENS V25|NX05S)$ addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex ^SQ10$ addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch # match system.hardware.product regex R50/R51|R55S|SR700 addquirk --quirk-none endmatch endmatch debian/video-quirks/20-video-quirk-pm-sony.quirkdb0000644000000000000000000000437212236376517017273 0ustar # match system.hardware.vendor regex ^Sony Corporation$ match system.hardware.product regex ^VGN-FS115Z$ addquirk --quirk-s3-mode endmatch match system.hardware.product regex VGN-FS730|PCG-FX405|VGN-C2S_G|VGN-B1XP|VGN-FE21B|VGN-B100B|VGN-B1VP addquirk --quirk-s3-bios endmatch match system.hardware.product regex ^(VGN-FS115B|VGN-C140G|VGN-TX3XP_L|VGN-T250P|VGN-AR31S|PCV-RX612|VGN-FS485B|VGN-SZ61XN_C|VGN-TZ37|VGN-TZ170N|VGN-FS920|VGN-C240E|PCG-FX601|VGN-SR11M)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^VGN-NR120E$ addquirk --quirk-vbe-post endmatch match system.hardware.product regex ^(VGN-TX5MN_W|PCG-TR2A\(UC\)|VGN-UX50)$ addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex PCG-FX340 addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex PCG-FX802 addquirk --quirk-vbestate-restore addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex PCG-Z1MP addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex PCG-Z1RMP|VGN-TX770P|VGN-FW11|VGN-TX670P|PCG-V505ECP|PCG-Z1RCP addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex PCG-FX805 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex PCG-FX905 addquirk --quirk-s3-bios addquirk --quirk-s3-mode addquirk --quirk-dpms-on endmatch # # match system.hardware.product regex ^(VGN-TX3HP|VGN-B55G\(I\)|VGN-FE31M|VGN-FS215B|VGN-FS660_W|VGN-SZ5XN_C|VGN-TZ21XN_B|PCG-FR215E|VGN-SZ340P|VGN-FE11M|VGN-TZ91HS|PCG-Z505HSK\(UC\)|VGN-FZ39VN|VGN-A115B|VGN-FE890E|VGN-N320E|VGN-C2S_H|VGN-FS215M|VGN-Z90S)$ addquirk --quirk-none endmatch match system.hardware.product regex VGN-TZ11|PCG-F430\(UC\)|PCG-GRT916Z|PCG-GRT995MP|PCG-GR7_K\(J\) addquirk --quirk-none endmatch endmatch debian/video-quirks/20-video-quirk-pm-toshiba.quirkdb0000644000000000000000000001004512236376517017726 0ustar # match system.hardware.vendor regex ^TOSHIBA$ # match system.hardware.product regex ^Satellite match system.hardware.product regex M30X addquirk --quirk-s3-bios endmatch match system.hardware.product regex Pro A120|M35X|P100|P200| P205D| A100| A105| A135| A200| A205| A210| L30| M105|M70|P30 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex A215 addquirk --quirk-pci-save addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch # match system.hardware.product regex ^Satellite Pro M30$ addquirk --quirk-dpms-on endmatch # match system.hardware.product regex ^(Satellite P10|Satellite A10)$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex P105 addquirk --quirk-vbe-post endmatch match system.hardware.product regex L10|U305|M55 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex A300D addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex A30| 1130 addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex Pro 6100 addquirk --quirk-dpms-on endmatch # match system.hardware.product regex A80|Pro4600| U200|Pro U300| U300 addquirk --quirk-none endmatch endmatch # match system.hardware.product regex ^TECRA match system.hardware.product regex 8100|8200| M9 addquirk --quirk-s3-mode endmatch match system.hardware.product regex ^T9000$ addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex M4 addquirk --quirk-vbe-post addquirk --quirk-vbemode-restore endmatch match system.hardware.product regex S2 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch # match system.hardware.product regex A8| A9| S3| S1 addquirk --quirk-none endmatch endmatch # match system.hardware.product regex ^PORTEGE match system.hardware.product regex R200|R205|R500 addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch match system.hardware.product regex M300 addquirk --quirk-s3-mode endmatch match system.hardware.product regex A100 addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch match system.hardware.product regex R100 addquirk --quirk-vbestate-restore endmatch # match system.hardware.product regex M400|4000 addquirk --quirk-none endmatch endmatch # match system.hardware.product regex ^EQUIUM match system.hardware.product regex A100$ addquirk --quirk-s3-bios addquirk --quirk-s3-mode endmatch endmatch # match system.hardware.product regex ^P3490$ addquirk --quirk-vbestate-restore endmatch # match system.hardware.product regex ^S1110$ addquirk --quirk-s3-bios endmatch match system.hardware.product regex ^Portable PC$ match system.hardware.version regex ^Version 1\.0$ # match system.firmware.version regex ^(Version 1\.60|Version 7\.80)$ addquirk --quirk-s3-mode endmatch # match system.firmware.version regex ^Version 1\.20$ addquirk --quirk-none endmatch endmatch endmatch match system.hardware.product regex ^(P2000|P4000) addquirk --quirk-vbe-post addquirk --quirk-vbestate-restore endmatch # match system.hardware.product regex Libretto L5/TNK addquirk --quirk-none endmatch match system.hardware.product regex ^SP4600$ match system.hardware.version regex ^Version 1\.0$ addquirk --quirk-none endmatch endmatch endmatch debian/watch0000644000000000000000000000012312236376517010227 0ustar version=3 http://pm-utils.freedesktop.org/releases/pm-utils-([\d\.a-z-]+)\.tar\.gz