Package: laptop-mode-tools
Version: 1.55-1
Severity: wishlist

Implement Runtime Power Management for laptop-mode-tools. 

void activate_runtime_suspend_path(char *path)
{
        DIR *dir;
        struct dirent *dirent;
        FILE *file;
        char filename[PATH_MAX];

        dir = opendir(path);
        if (!dir)
                return;

        while ((dirent = readdir(dir))) {
                if (dirent->d_name[0]=='.')
                        continue;

                sprintf(filename, "%s/%s/power/control", path, dirent->d_name);
                file = fopen(filename, "w");
                if (!file)
                        continue;
                fprintf(file, "auto\n");
                fclose(file);
        }

        closedir(dir);
}

void activate_runtime_suspend(void)
{
        activate_runtime_suspend_path("/sys/bus/pci/devices");
        activate_runtime_suspend_path("/sys/bus/spi/devices");
        activate_runtime_suspend_path("/sys/bus/i2c/devices");
}


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages laptop-mode-tools depends on:
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip
ii  psmisc                        22.12-1    utilities that use the proc file s
ii  util-linux                    2.17.2-3.1 Miscellaneous system utilities

Versions of packages laptop-mode-tools recommends:
ii  acpid                         1:2.0.6-1  Advanced Configuration and Power I
ii  apmd                          3.2.2-14   Utilities for Advanced Power Manag
ii  ethtool                       1:2.6.34-2 display or change Ethernet device 
ii  hal                           0.5.14-3   Hardware Abstraction Layer
ii  hdparm                        9.27-2     tune hard disk parameters for high
ii  net-tools                     1.60-23    The NET-3 networking toolkit
ii  pm-utils                      1.3.0-2    utilities and scripts for power ma
ii  sdparm                        1.02-1     Output and modify SCSI device para
ii  wireless-tools                30~pre9-5  Tools for manipulating Linux Wirel

laptop-mode-tools suggests no packages.

-- Configuration Files:
/etc/laptop-mode/conf.d/bluetooth.conf changed [not included]
/etc/laptop-mode/conf.d/exec-commands.conf changed [not included]
/etc/laptop-mode/conf.d/intel-hda-powersave.conf changed [not included]
/etc/laptop-mode/conf.d/sched-mc-power-savings.conf changed [not included]
/etc/laptop-mode/conf.d/sched-smt-power-savings.conf changed [not included]
/etc/laptop-mode/conf.d/video-out.conf changed [not included]
/etc/laptop-mode/laptop-mode.conf changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to