Permalink
Commits on Mar 23, 2018
  1. readlink is broken if the device is a real device

    rickysarraf committed Mar 23, 2018
    So, we instead read the real path of the deivce and extract the
    device name correct, hopefully.
    
    Closes: #127
Commits on Feb 14, 2018
Commits on Feb 9, 2018
  1. Add echo control globally

    rickysarraf committed Feb 9, 2018
    Fine tune it with function retval
  2. Use udevadm as primary

    rickysarraf committed Feb 9, 2018
Commits on Feb 5, 2018
  1. Fix case sensitive name for lmt.py

    rickysarraf committed Feb 5, 2018
    Closes: #124
Commits on Feb 3, 2018
  1. UPdate spec file

    rickysarraf committed Feb 3, 2018
Commits on Feb 1, 2018
  1. Fix spec version

    rickysarraf committed Feb 1, 2018
  2. Prepare release 1.72

    rickysarraf committed Feb 1, 2018
Commits on Jan 16, 2018
  1. Extend blacklist by device types of devtype

    rickysarraf committed Jan 16, 2018
    Closes: #123
    
    Not all devices have a driver type because many are enumerated devices
    
    rrs@priyasi:/sys/bus/scsi/devices$ cat */uevent
    DEVTYPE=scsi_device
    DRIVER=sd
    MODALIAS=scsi:t-0x00
    DEVTYPE=scsi_device
    DRIVER=sd
    MODALIAS=scsi:t-0x00
    DEVTYPE=scsi_host
    DEVTYPE=scsi_host
    DEVTYPE=scsi_host
    DEVTYPE=scsi_host
    DEVTYPE=scsi_target
    DEVTYPE=scsi_target
    23:10 ♒♒♒   ☺
    
    For such devices, this blacklist mechanism works a little better
    
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + listed_by_id /sys/bus/scsi/devices/host3 2717:ff40 0bda:0129 0000:00:1f.2 1:0:0:0 target0:0:0 target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + device=/sys/bus/scsi/devices/host3
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + list=2717:ff40 0bda:0129 0000:00:1f.2 1:0:0:0 target0:0:0 target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + cat /sys/bus/scsi/devices/host3/idVendor
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + idvendor=
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + return 1
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + listed_by_type /sys/bus/scsi/devices/host3 sd scsi_device scsi_host scsi_target hub usbhid usb-storage
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + device=/sys/bus/scsi/devices/host3
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + basename /sys/bus/scsi/devices/host3
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + device_base=host3
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + list=sd scsi_device scsi_host scsi_target hub usbhid usb-storage
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + cat /sys/bus/scsi/devices/host3/uevent
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + uevent_data=DEVTYPE=scsi_host
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + return 0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + log Device /sys/bus/scsi/devices/host3 is blacklisted, skipping auto suspend.
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ x1 = x1 ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ -x /usr/bin/logger -a Device /sys/bus/scsi/devices/host3 is blacklisted, skipping auto suspend. != STATUS ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/host3 is blacklisted, skipping auto suspend. = MSG ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/host3 is blacklisted, skipping auto suspend. = ERR ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/host3 is blacklisted, skipping auto suspend. = VERBOSE ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + logger -p daemon.notice -t laptop-mode
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/host3 is blacklisted, skipping auto suspend. = VERBOSE ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/host3 is blacklisted, skipping auto suspend. = ERR ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + echo
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ x0 = x1 ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + USE_DEVICE=0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ x0 = x1 ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + blacklisted /sys/bus/scsi/devices/target0:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + listed_by_id /sys/bus/scsi/devices/target0:0:0 2717:ff40 0bda:0129 0000:00:1f.2 1:0:0:0 target0:0:0 target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + device=/sys/bus/scsi/devices/target0:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + list=2717:ff40 0bda:0129 0000:00:1f.2 1:0:0:0 target0:0:0 target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + cat /sys/bus/scsi/devices/target0:0:0/idVendor
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + idvendor=
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + return 1
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + listed_by_type /sys/bus/scsi/devices/target0:0:0 sd scsi_device scsi_host scsi_target hub usbhid usb-storage
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + device=/sys/bus/scsi/devices/target0:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + basename /sys/bus/scsi/devices/target0:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + device_base=target0:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + list=sd scsi_device scsi_host scsi_target hub usbhid usb-storage
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + cat /sys/bus/scsi/devices/target0:0:0/uevent
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + uevent_data=DEVTYPE=scsi_target
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + return 0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + log Device /sys/bus/scsi/devices/target0:0:0 is blacklisted, skipping auto suspend.
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ x1 = x1 ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ -x /usr/bin/logger -a Device /sys/bus/scsi/devices/target0:0:0 is blacklisted, skipping auto suspend. != STATUS ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target0:0:0 is blacklisted, skipping auto suspend. = MSG ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target0:0:0 is blacklisted, skipping auto suspend. = ERR ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target0:0:0 is blacklisted, skipping auto suspend. = VERBOSE ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + logger -p daemon.notice -t laptop-mode
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target0:0:0 is blacklisted, skipping auto suspend. = VERBOSE ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target0:0:0 is blacklisted, skipping auto suspend. = ERR ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + echo
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ x0 = x1 ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + USE_DEVICE=0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ x0 = x1 ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + blacklisted /sys/bus/scsi/devices/target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + listed_by_id /sys/bus/scsi/devices/target1:0:0 2717:ff40 0bda:0129 0000:00:1f.2 1:0:0:0 target0:0:0 target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + device=/sys/bus/scsi/devices/target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + list=2717:ff40 0bda:0129 0000:00:1f.2 1:0:0:0 target0:0:0 target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + cat /sys/bus/scsi/devices/target1:0:0/idVendor
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + idvendor=
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + return 1
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + listed_by_type /sys/bus/scsi/devices/target1:0:0 sd scsi_device scsi_host scsi_target hub usbhid usb-storage
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + device=/sys/bus/scsi/devices/target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + basename /sys/bus/scsi/devices/target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + device_base=target1:0:0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + list=sd scsi_device scsi_host scsi_target hub usbhid usb-storage
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + cat /sys/bus/scsi/devices/target1:0:0/uevent
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + uevent_data=DEVTYPE=scsi_target
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + return 0
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + log Device /sys/bus/scsi/devices/target1:0:0 is blacklisted, skipping auto suspend.
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ x1 = x1 ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ -x /usr/bin/logger -a Device /sys/bus/scsi/devices/target1:0:0 is blacklisted, skipping auto suspend. != STATUS ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target1:0:0 is blacklisted, skipping auto suspend. = MSG ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target1:0:0 is blacklisted, skipping auto suspend. = ERR ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target1:0:0 is blacklisted, skipping auto suspend. = VERBOSE ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + logger -p daemon.notice -t laptop-mode
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target1:0:0 is blacklisted, skipping auto suspend. = VERBOSE ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ Device /sys/bus/scsi/devices/target1:0:0 is blacklisted, skipping auto suspend. = ERR ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + echo
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + [ x0 = x1 ]
    Jan 16 22:24:27 priyasi laptop_mode[10852]: + USE_DEVICE=0
Commits on Jan 10, 2018
  1. Merge pull request #118 from yardenac/fix-runtime-pm

    rickysarraf committed Jan 10, 2018
    Fix runtime pm
Commits on Dec 29, 2017
Commits on Dec 26, 2017
  1. Merge branch 'lmt-upstream' of github.com:rickysarraf/laptop-mode-too…

    rickysarraf committed Dec 26, 2017
    …ls into lmt-upstream
    
    * 'lmt-upstream' of github.com:rickysarraf/laptop-mode-tools:
      runtime-pm: Make {black,white}lists work with non-USB devices
  2. Add module invocation example

    rickysarraf committed Dec 26, 2017
    This helps in bug reports like:
    #120
Commits on Dec 24, 2017
  1. Merge pull request #121 from liskin/runtime-pm-pci

    rickysarraf committed Dec 24, 2017
    runtime-pm: Make {black,white}lists work with non-USB devices
Commits on Nov 25, 2017
  1. runtime-pm: Make {black,white}lists work with non-USB devices

    liskin committed Nov 25, 2017
    On some ThinkPads it's necessary to blacklist the nvidia dGPU, which is
    a PCIe device. Without blacklisting it, it becomes unusable until reboot
    once autosuspend is enabled.
Commits on Nov 14, 2017
  1. tiny typo

    yardenac committed Nov 14, 2017
  2. tolerate broken device interfaces quietly

    yardenac committed Nov 14, 2017
    without this my journal is littered with hundreds of lines of 'write error: Input/output error'
    
    for some reason many devices don't like this file to be accessed, even if it exists
  3. fix bash syntax

    yardenac committed Nov 14, 2017
Commits on Oct 21, 2017
  1. Fix typo

    NewbProgrammer101 committed Oct 21, 2017
Commits on Oct 10, 2017
  1. Merge pull request #110 from vwoodzell/lmt-upstream

    rickysarraf committed Oct 10, 2017
    Control all available cards in radeon-dpm