Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Immediate resume from suspend on Thinkstation

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
bremington
Posts: 14
Joined: 2020-03-21 01:47

Immediate resume from suspend on Thinkstation

#1 Post by bremington »

System hibernates and suspends correctly, but always immediately resumes. This behavior has been consistent across several different distros so it is not peculiar to Debian 10. Sleep and suspend worked correctly under windows, so (theoretically) the hardware is capable. I have searched extensively on the internet, in forums and man pages, but gotten nowhere. I have tried disconnecting all peripherals (USB, ethernet)-- didn't help. I have gone through the BIOS setup and turned off anything that it said could be used to wake the computer; no good.

Code: Select all

inxi -Fxxxrza
System:
  Host: brian-deb10 Kernel: 4.19.0-8-amd64 x86_64 bits: 64 compiler: gcc 
  v: 8.3.0 Desktop: Cinnamon 3.8.8 dm: LightDM 1.26.0 
  Distro: Debian GNU/Linux 10 (buster) 
Machine:
  Type: Desktop System: LENOVO product: 6423CTO v: ThinkStation XXXX 
  serial: <filter> Chassis: type: 3 serial: <filter> 
  Mobo: LENOVO model: LENOVO serial: <filter> BIOS: LENOVO v: 2WKT47AUS 
  date: 09/08/2009 
CPU:
  Topology: Dual Core model: Intel Core2 Duo E8400 bits: 64 type: MCP 
  arch: Penryn family: 6 model-id: 17 (23) stepping: 6 microcode: 60B 
  L2 cache: 6144 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 11969 
  Speed: 2469 MHz min/max: 2000/3000 MHz Core speeds (MHz): 1: 1995 2: 1995 
  Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
  Type: l1tf mitigation: PTE Inversion; VMX: EPT disabled 
  Type: mds 
  status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass status: Vulnerable 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 
  mitigation: Full generic retpoline, STIBP: disabled, RSB filling 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA G84GL [Quadro FX 1700] driver: nouveau v: kernel 
  bus ID: 01:00.0 chip ID: 10de:040f 
  Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1680x1050~60Hz 
  OpenGL: renderer: NV84 v: 3.3 Mesa 18.3.6 direct render: Yes 
Audio:
  Device-1: Intel 82801I HD Audio vendor: Lenovo driver: snd_hda_intel 
  v: kernel bus ID: 00:1b.0 chip ID: 8086:293e 
  Sound Server: ALSA v: k4.19.0-8-amd64 
Network:
  Device-1: Broadcom Limited NetXtreme BCM5755 Gigabit Ethernet PCI Express 
  vendor: Lenovo driver: tg3 v: 3.137 port: 2000 bus ID: 0d:00.0 
  chip ID: 14e4:167b 
  IF: enp13s0 state: down mac: <filter> 
  Device-2: Broadcom Limited NetXtreme BCM5754 Gigabit Ethernet PCI Express 
  vendor: Lenovo driver: tg3 v: 3.137 port: 2000 bus ID: 0f:00.0 
  chip ID: 14e4:167a 
  IF: enp15s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
Drives:
  Local Storage: total: 846.76 GiB used: 84.44 GiB (10.0%) 
  ID-1: /dev/sda vendor: Corsair model: Neutron SSD size: 119.24 GiB 
  block size: physical: 512 B logical: 512 B speed: 3.0 Gb/s 
  serial: <filter> rev: M311 scheme: MBR 
  ID-2: /dev/sdb vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
  block size: physical: 512 B logical: 512 B speed: 3.0 Gb/s 
  serial: <filter> rev: 3B6Q scheme: MBR 
  ID-3: /dev/sdc vendor: Hitachi model: HDP725025GLA380 size: 232.89 GiB 
  block size: physical: 512 B logical: 512 B speed: 3.0 Gb/s 
  rotation: 7200 rpm serial: <filter> rev: A59A scheme: MBR 
  ID-4: /dev/sdd type: USB vendor: Kingston model: DataTraveler 2.0 
  size: 28.87 GiB block size: physical: 512 B logical: 512 B 
  serial: <filter> rev: 1.00 scheme: MBR 
Partition:
  ID-1: / raw size: 139.70 GiB size: 136.51 GiB (97.71%) 
  used: 84.01 GiB (61.5%) fs: ext4 dev: /dev/sdb3 
  ID-2: swap-1 size: 11.72 GiB used: 440.5 MiB (3.7%) fs: swap 
  swappiness: 60 (default) cache pressure: 100 (default) dev: /dev/sdb2 
  ID-3: swap-2 size: 11.17 GiB used: 0 KiB (0.0%) fs: swap 
  swappiness: 60 (default) cache pressure: 100 (default) dev: /dev/sdb5 
Sensors:
  System Temperatures: cpu: 31.0 C mobo: N/A gpu: nouveau temp: 55 C 
  Fan Speeds (RPM): N/A gpu: nouveau fan: 0 
Repos:
  Active apt repos in: /etc/apt/sources.list 
  1: deb http://mirror.math.princeton.edu/pub/debian/ buster main
  2: deb-src http://mirror.math.princeton.edu/pub/debian/ buster main
  3: deb http://security.debian.org/debian-security/ buster/updates main
  4: deb-src http://security.debian.org/debian-security/ buster/updates main
  5: deb http://mirror.math.princeton.edu/pub/debian/ buster-updates main
  6: deb-src http://mirror.math.princeton.edu/pub/debian/ buster-updates main
  7: deb http://deb.debian.org/debian/ buster-updates main contrib non-free
  8: deb http://deb.debian.org/debian/ buster main contrib non-free
  9: deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/nordvpn.list 
  1: deb https://repo.nordvpn.com/deb/nordvpn/debian/ stable main
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
  1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:
  Processes: 187 Uptime: 4h 45m Memory: 5.82 GiB used: 4.61 GiB (79.3%) 
  Init: systemd v: 241 runlevel: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: bash 
  v: 5.0.3 running in: lxterminal inxi: 3.0.32 

Code: Select all

3/14/20 8:50 PM	systemd	Started Suspend.
3/14/20 8:50 PM	systemd	Stopped target Sleep.
3/14/20 8:50 PM	systemd	Reached target Suspend.
3/14/20 8:50 PM	systemd	Stopped target Suspend.
3/14/20 8:50 PM	systemd-logind	Operation 'sleep' finished.
3/14/20 8:50 PM	NetworkManager	<info>  [1584233458.4726] manager: sleep: wake requested (sleeping: yes  enabled: yes)
3/14/20 8:50 PM	NetworkManager	<info>  [1584233458.4727] device (enp13s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
3/14/20 8:50 PM	kernel	IPv6: ADDRCONF(NETDEV_UP): enp13s0: link is not ready
3/14/20 8:50 PM	NetworkManager	<info>  [1584233458.5558] device (enp15s0): state change: activated -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
3/14/20 8:50 PM	NetworkManager	<info>  [1584233458.5726] dhcp4 (enp15s0): canceled DHCP transaction, DHCP client pid 11127
3/14/20 8:50 PM	NetworkManager	<info>  [1584233458.5729] dhcp4 (enp15s0): state changed bound -> done

Code: Select all

3/14/20 9:38 PM			Initial commandline parameters: 
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
3/14/20 9:38 PM			Linux brian-deb10 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux
3/14/20 9:38 PM			Module                  Size  Used by
3/14/20 9:38 PM			nft_counter            16384  20
3/14/20 9:38 PM			xt_conntrack           16384  7
3/14/20 9:38 PM			nf_conntrack          172032  1 xt_conntrack
3/14/20 9:38 PM			nf_defrag_ipv6         20480  1 nf_conntrack
3/14/20 9:38 PM			nf_defrag_ipv4         16384  1 nf_conntrack
3/14/20 9:38 PM			libcrc32c              16384  1 nf_conntrack
3/14/20 9:38 PM			xt_tcpudp              16384  4
3/14/20 9:38 PM			nft_compat             20480  11
3/14/20 9:38 PM			nf_tables             143360  118 nft_compat,nft_counter
3/14/20 9:38 PM			nfnetlink              16384  2 nft_compat,nf_tables
3/14/20 9:38 PM			tun                    49152  2
3/14/20 9:38 PM			fuse                  122880  4
3/14/20 9:38 PM			vboxnetadp             28672  0
3/14/20 9:38 PM			vboxnetflt             32768  0
3/14/20 9:38 PM			vboxdrv               495616  2 vboxnetadp,vboxnetflt
3/14/20 9:38 PM			rfkill                 28672  1
3/14/20 9:38 PM			snd_hda_codec_analog    20480  1
3/14/20 9:38 PM			snd_hda_codec_generic    86016  1 snd_hda_codec_analog
3/14/20 9:38 PM			coretemp               16384  0
3/14/20 9:38 PM			kvm_intel             233472  0
3/14/20 9:38 PM			kvm                   749568  1 kvm_intel
3/14/20 9:38 PM			snd_hda_intel          45056  4
3/14/20 9:38 PM			snd_hda_codec         151552  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_analog
3/14/20 9:38 PM			irqbypass              16384  1 kvm
3/14/20 9:38 PM			snd_hda_core           94208  4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_analog,snd_hda_codec
3/14/20 9:38 PM			pcspkr                 16384  0
3/14/20 9:38 PM			snd_hwdep              16384  1 snd_hda_codec
3/14/20 9:38 PM			iTCO_wdt               16384  0
3/14/20 9:38 PM			sg                     36864  0
3/14/20 9:38 PM			iTCO_vendor_support    16384  1 iTCO_wdt
3/14/20 9:38 PM			snd_pcm               114688  3 snd_hda_intel,snd_hda_codec,snd_hda_core
3/14/20 9:38 PM			snd_timer              36864  1 snd_pcm
3/14/20 9:38 PM			snd                    94208  15 snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec_analog,snd_hda_codec,snd_timer,snd_pcm
3/14/20 9:38 PM			soundcore              16384  1 snd
3/14/20 9:38 PM			x38_edac               16384  0
3/14/20 9:38 PM			evdev                  28672  7
3/14/20 9:38 PM			pcc_cpufreq            16384  0
3/14/20 9:38 PM			acpi_cpufreq           24576  1
3/14/20 9:38 PM			binfmt_misc            20480  1
3/14/20 9:38 PM			firewire_sbp2          28672  0
3/14/20 9:38 PM			parport_pc             32768  0
3/14/20 9:38 PM			ppdev                  20480  0
3/14/20 9:38 PM			lp                     20480  0
3/14/20 9:38 PM			parport                57344  3 parport_pc,lp,ppdev
3/14/20 9:38 PM			ip_tables              28672  0
3/14/20 9:38 PM			x_tables               45056  4 xt_conntrack,nft_compat,xt_tcpudp,ip_tables
3/14/20 9:38 PM			autofs4                49152  2
3/14/20 9:38 PM			ext4                  741376  1
3/14/20 9:38 PM			mbcache                16384  1 ext4
3/14/20 9:38 PM			jbd2                  122880  1 ext4
3/14/20 9:38 PM			crc32c_generic         16384  3
3/14/20 9:38 PM			fscrypto               32768  1 ext4
3/14/20 9:38 PM			ecb                    16384  0
3/14/20 9:38 PM			crypto_simd            16384  0
3/14/20 9:38 PM			cryptd                 28672  1 crypto_simd
3/14/20 9:38 PM			glue_helper            16384  0
3/14/20 9:38 PM			aes_x86_64             20480  0
3/14/20 9:38 PM			sr_mod                 28672  0
3/14/20 9:38 PM			cdrom                  65536  1 sr_mod
3/14/20 9:38 PM			sd_mod                 61440  4
3/14/20 9:38 PM			hid_generic            16384  0
3/14/20 9:38 PM			usbhid                 57344  0
3/14/20 9:38 PM			hid                   135168  2 usbhid,hid_generic
3/14/20 9:38 PM			nouveau              2179072  18
3/14/20 9:38 PM			ahci                   40960  3
3/14/20 9:38 PM			libahci                40960  1 ahci
3/14/20 9:38 PM			libata                270336  2 libahci,ahci
3/14/20 9:38 PM			firewire_ohci          45056  0
3/14/20 9:38 PM			scsi_mod              249856  5 sd_mod,firewire_sbp2,libata,sg,sr_mod
3/14/20 9:38 PM			tg3                   188416  0
3/14/20 9:38 PM			lpc_ich                28672  0
3/14/20 9:38 PM			mxm_wmi                16384  1 nouveau
3/14/20 9:38 PM			mfd_core               16384  1 lpc_ich
3/14/20 9:38 PM			firewire_core          81920  2 firewire_ohci,firewire_sbp2
3/14/20 9:38 PM			uhci_hcd               49152  0
3/14/20 9:38 PM			crc_itu_t              16384  1 firewire_core
3/14/20 9:38 PM			i2c_i801               28672  0
3/14/20 9:38 PM			ehci_pci               16384  0
3/14/20 9:38 PM			wmi                    28672  2 mxm_wmi,nouveau
3/14/20 9:38 PM			video                  45056  1 nouveau
3/14/20 9:38 PM			i2c_algo_bit           16384  1 nouveau
3/14/20 9:38 PM			libphy                 77824  1 tg3
3/14/20 9:38 PM			ehci_hcd               94208  1 ehci_pci
3/14/20 9:38 PM			ttm                   131072  1 nouveau
3/14/20 9:38 PM			usbcore               294912  4 ehci_pci,usbhid,ehci_hcd,uhci_hcd
3/14/20 9:38 PM			drm_kms_helper        208896  1 nouveau
3/14/20 9:38 PM			drm                   495616  8 drm_kms_helper,ttm,nouveau
3/14/20 9:38 PM			usb_common             16384  1 usbcore
3/14/20 9:38 PM			floppy                 86016  0
3/14/20 9:38 PM			button                 16384  1 nouveau
3/14/20 9:38 PM			              total        used        free      shared  buff/cache   available
3/14/20 9:38 PM			Mem:        6104384     2128644     2603244      115136     1372496     3620224
3/14/20 9:38 PM			Swap:      24005624        6648    23998976
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:
3/14/20 9:38 PM			/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/50unload_alx suspend suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/50unload_alx suspend suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend:
3/14/20 9:38 PM			Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/75modules suspend suspend: not applicable.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend: not applicable.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
3/14/20 9:38 PM			Kernel modesetting video driver detected, not using quirks.
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/99video suspend suspend: disabled.
3/14/20 9:38 PM			
3/14/20 9:38 PM			KMS graphics driver is in use, skipping quirks.
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/99video resume suspend: disabled.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/95led resume suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend:
3/14/20 9:38 PM			
3/14/20 9:38 PM			/dev/sdc:
3/14/20 9:38 PM			 setting Advanced Power Management level to 0xfe (254)
3/14/20 9:38 PM			 APM_level	= off
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/94cpufreq resume suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/90clock resume suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/75modules resume suspend:
3/14/20 9:38 PM			Reloaded unloaded modules.
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend:
3/14/20 9:38 PM			Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/50unload_alx resume suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/50unload_alx resume suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:
3/14/20 9:38 PM			/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/00logging resume suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
3/14/20 9:38 PM			
3/14/20 9:38 PM			Running hook /usr/lib/pm-utils/sleep.d/000kernel-change resume suspend:
3/14/20 9:38 PM			/usr/lib/pm-utils/sleep.d/000kernel-change resume suspend: success.

Code: Select all

3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/95hdparm-apm false:
3/14/20 9:50 PM			
3/14/20 9:50 PM			/dev/sdc:
3/14/20 9:50 PM			 setting Advanced Power Management level to 0xfe (254)
3/14/20 9:50 PM			 APM_level	= off
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/95hdparm-apm false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/disable_wol false:
3/14/20 9:50 PM			Setting Wake On Lan for enp13s0 to enable...Done.
3/14/20 9:50 PM			Setting Wake On Lan for enp15s0 to enable...Done.
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/disable_wol false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave false:
3/14/20 9:50 PM			Setting power savings for snd_hda_intel to 0...Done.
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/intel-audio-powersave false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/laptop-mode false:
3/14/20 9:50 PM			Laptop mode disabled.
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/laptop-mode false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/pci_devices false:
3/14/20 9:50 PM			Setting Host Bridge 0000:00:00.0 to on
3/14/20 9:50 PM			Setting Audio device 0000:00:1b.0 to on
3/14/20 9:50 PM			Setting Ethernet device 0000:0d:00.0 to on
3/14/20 9:50 PM			Setting Ethernet device 0000:0f:00.0 to on
3/14/20 9:50 PM			Setting FireWire device 0000:11:0d.0 to on
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/pci_devices false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/pcie_aspm false:
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/pcie_aspm: 9: echo: echo: I/O error
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/pcie_aspm false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/sata_alpm false:
3/14/20 9:50 PM			Setting SATA ALPM on host0 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host1 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host2 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host3 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host4 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host5 to max_performance...Done.
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/sata_alpm false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/sched-powersave false:
3/14/20 9:50 PM			**sched policy powersave OFF
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/sched-powersave false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/usb_bluetooth false:
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/usb_bluetooth false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/wireless false:
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/wireless false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/xfs_buffer false:
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/xfs_buffer false: not applicable.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/95hdparm-apm false:
3/14/20 9:50 PM			
3/14/20 9:50 PM			/dev/sdc:
3/14/20 9:50 PM			 setting Advanced Power Management level to 0xfe (254)
3/14/20 9:50 PM			 APM_level	= off
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/95hdparm-apm false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/disable_wol false:
3/14/20 9:50 PM			Setting Wake On Lan for enp13s0 to enable...Done.
3/14/20 9:50 PM			Setting Wake On Lan for enp15s0 to enable...Done.
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/disable_wol false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/intel-audio-powersave false:
3/14/20 9:50 PM			Setting power savings for snd_hda_intel to 0...Done.
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/intel-audio-powersave false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/laptop-mode false:
3/14/20 9:50 PM			Laptop mode disabled.
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/laptop-mode false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/pci_devices false:
3/14/20 9:50 PM			Setting Host Bridge 0000:00:00.0 to on
3/14/20 9:50 PM			Setting Audio device 0000:00:1b.0 to on
3/14/20 9:50 PM			Setting Ethernet device 0000:0d:00.0 to on
3/14/20 9:50 PM			Setting Ethernet device 0000:0f:00.0 to on
3/14/20 9:50 PM			Setting FireWire device 0000:11:0d.0 to on
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/pci_devices false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/pcie_aspm false:
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/pcie_aspm: 9: echo: echo: I/O error
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/pcie_aspm false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/sata_alpm false:
3/14/20 9:50 PM			Setting SATA ALPM on host0 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host1 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host2 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host3 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host4 to max_performance...Done.
3/14/20 9:50 PM			Setting SATA ALPM on host5 to max_performance...Done.
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/sata_alpm false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/sched-powersave false:
3/14/20 9:50 PM			**sched policy powersave OFF
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/sched-powersave false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/usb_bluetooth false:
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/usb_bluetooth false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/wireless false:
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/wireless false: success.
3/14/20 9:50 PM			
3/14/20 9:50 PM			Running hook /usr/lib/pm-utils/power.d/xfs_buffer false:
3/14/20 9:50 PM			/usr/lib/pm-utils/power.d/xfs_buffer false: not applicable.
Last edited by bremington on 2020-03-21 21:08, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Immediate resume from suspend on Thinkstation

#2 Post by Head_on_a_Stick »

Please enclose that wall of output in code tags.

For your suspend problem try this instead of pm-utils:

Code: Select all

systemctl suspend
If that doesn't help see https://delightlylinux.wordpress.com/20 ... g-suspend/ (which is the top result when searching for "immediate resume from suspend linux").
deadbang

bremington
Posts: 14
Joined: 2020-03-21 01:47

Re: Immediate resume from suspend on Thinkstation

#3 Post by bremington »

Please enclose that wall of output in code tags.
Thanks. I didn't know about the "code" tags...
systemctl suspend
Exact same behavior.

Changing all items in
/proc/acpi/wakeup
to "disabled" also doesn't change anything (still resumes immediately). The referenced article describes putting echo's in rc.local to maintain this across reboots, but, of course, rc.local no longer exists so I don't know how I would make it persist across reboots nor whether that is necessary to just test this possible fix.

Thanks for your response.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Immediate resume from suspend on Thinkstation

#4 Post by Head_on_a_Stick »

bremington wrote:but, of course, rc.local no longer exists
If you create /etc/rc.local and make it executable then systemd will run any commands in that file. See systemd-rc-local-generator(8).
deadbang

bremington
Posts: 14
Joined: 2020-03-21 01:47

Re: Immediate resume from suspend on Thinkstation

#5 Post by bremington »

I set up the /etc/rc.local with the echos to change everything to disabled except the power switch; rebooted; checked that everything was disabled other than the power switch (in /proc/acpi/wakeup); and tried suspend. Still resumes immediately.

Thanks for the idea, though.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Immediate resume from suspend on Thinkstation

#6 Post by stevepusser »

If you unplug all USB devices except the keyboard, does that make any difference?

How about a newer kernel from backports?
MX Linux packager and developer

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: Immediate resume from suspend on Thinkstation

#7 Post by Deb-fan »

His bios are from '09, oldish hardware so doubt newer kernel much matters. Dont see the harm either though, why not try it? Usb's maybe preventing it is an interesting thought. Believe this old laptop(also dates 2009) wouldn't hibernate and/or suspend, installed pm-utils, this was a couple years ago but adding my swap partitions UUID to a file located at /etc/initramfs-tools/conf.d/resume worked. Originally in that file it said RESUME=NONE that's where I put the uuid, might also need to create this file if isn't there (worth a try.) It allowed system to hibernate. Also used update-initramfs along with that too.

Can't remember if allowed suspend to function too or not. If doesn't work without, try using sudo. This thread made me check and hibernate has since stopped working, I don't care anyway, never use that. Putting it down to having ceased using a display manager since then. When was working resuming from hibernate pretty much took as long as a cold boot regardless. Suspend works on Stretch, also works on Buster and pm-utils isn't even installed. With both the 4.19 and a custom 5.4.19 kernel, didn't check hibernate.

Other randomness on this perhaps try some of the pkgs for power management from things like Xfce etc or no idea what's native for the purpose in Cinnamon.
Most powerful FREE tech-support tool on the planet * HERE. *

bremington
Posts: 14
Joined: 2020-03-21 01:47

Re: Immediate resume from suspend on Thinkstation

#8 Post by bremington »

If you unplug all USB devices except the keyboard, does that make any difference?
Tried unplugging all USB (including the keyboard) and the ethernet: still goes to sleep well but wakes immediately.
UUID to a file located at /etc/initramfs-tools/conf.d/resume
Checked and swap partition UUID is already in there.
newer kernel
I've tried a lot of distros lately (moving from windows...); I now have two installed with newer kernels: MX19-AHS (kernel version 5.4.0), and Solus 4.1 (kv 5.7.150) they both have exactly the same problem. I have installed and evaluated more than a dozen different distros lately and they ALL do this the same way.

This is rather frustrating because it seems that the sleep and hibernate work flawlessly except that nothing short of a hammer would keep it from merrily popping right back on :-)

Anyway, thanks to both of you.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Immediate resume from suspend on Thinkstation

#9 Post by Head_on_a_Stick »

I suppose you could try some of the acpi kernel parameters: https://github.com/torvalds/linux/blob/ ... ers.txt#L1

Turning it off completely is a bit drastic though.
deadbang

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: Immediate resume from suspend on Thinkstation

#10 Post by Deb-fan »

Ahs you know is advanced hardware support seems clearly intended for newer hardware being used with Debian stable. Considering your bios are showing as from 2009 assuming it's an older model system. That's something that could be checked though, is there anything related to this issue in the bios, any settings ? Also a possibility to consider, is there a bios update for that mobo/system available? Gnu/Linux didn't have near as much traction a decade ago so reasonably enough didn't get nearly as much attention or even access from oem's. It's (flashing firmware) something I hestitate to advise or mess with, I've only updated bios on a couple pc's. Can be involved or risk prone, obviously has to be done correctly.

Suspend I can see someone caring about, though honestly never use it, hibernate I've never used anyway so never spent any time learning about how it's handled. Suspend on this 2009 beastie works with the default kernel w/o pm-utils, still never use it anyway but seems someone who really cares about suspend/hibernate will have to start there, researching how the process works in gnu/nix. Would also be googling butt off with relevant search terms including my model or manufacturer + suspend and gnu/Linux. :)
Most powerful FREE tech-support tool on the planet * HERE. *

bremington
Posts: 14
Joined: 2020-03-21 01:47

Re: Immediate resume from suspend on Thinkstation

#11 Post by bremington »

Deb-fan:

Yes, I know AHS is advanced hardware support. My reasoning for messing with that is that as much as I am (after trying 15 or twenty distros) extremely pleased w/ Deb 10, I looked at AHS because someday I hope to upgrade to a newer box.

I have checked with Lenovo and the BIOS (which I did flash update once) is at the latest revision.

I am not very interested in hibernate, but suspend is another matter. If it would work I would probably use hybrid suspend. After all, who cares how long it takes a desktop to suspend as long as it is fast to resume.

I have tried suspend many times, and it always suspends and resumes perfectly and rapidly. Something causes the system to resume, but I can't figure out what. I have been through the logs several times and the best guess I have is that it seems that Network Manager is the culprit:

Code: Select all

3/14/20 8:50 PM   systemd   Reached target Suspend.
3/14/20 8:50 PM   systemd   Stopped target Suspend.
3/14/20 8:50 PM   systemd-logind   Operation 'sleep' finished.
3/14/20 8:50 PM   NetworkManager   <info>  [1584233458.4726] manager: sleep: wake requested (sleeping: yes  enabled: yes)
3/14/20 8:50 PM   NetworkManager   <info>  [1584233458.4727] device (enp13s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
But I don't know enough to know if the above really means that. But, I have gotten the same result w/ ethernet cable (the only network connection on the box) disconnected.

Thanks for the tips/ideas.

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: Immediate resume from suspend on Thinkstation

#12 Post by Deb-fan »

Using ahs on stuff that's antique isnt going to help still have to say A for effort and persistence. From the sounds of it am writing this off to some ancient bios quirk, already updated bios and latest was 09, that's an old system. Not that there's anything wrong with that. What's suspend anyway, close lid, walk away, come back, open ... Pc's ready to use, lol. That's the version of suspend for that system. At least looking like what you'll have to settle for.

Install a screen locker maybe ? No doubt plenty of possible ways, involving scripting or udev or who knows what else. Swapping out things for NM to handle networking is interesting and good to explore just in general. Something you may enjoy regardless. Would also seem more rewarding than continuing to chase your current project too. However you must follow thy heart. :)

After thought ps, how much Ram does it have anyway? Looked through the inxi output more than once, either didn't see it or it's not there. However does show one of the swap partitions was being used, that can likely cause issues with suspend. Also obviously would with hibernate. Might look over things like zram or zswap? One, other, both(sus/hibernate) surely poss but that's yours to sort out. Might try Bunsenlabs gnu/Linux, dang good distro just in general, can't go wrong with what they inherited from #!(Crunchbang.) Still bloated for an Openbox distro, still a good one though and can be much further slimmed down vs out-of-box too. Cinnamon is not meant for memory constrained systems and also use 32bit on mem poor hardware or explore multi-arch can use 64b kernel and stuff like browsers if wanted, only try to keep it mostly 32b to avoid overhead.
Most powerful FREE tech-support tool on the planet * HERE. *

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Immediate resume from suspend on Thinkstation

#13 Post by Head_on_a_Stick »

bremington wrote:the best guess I have is that it seems that Network Manager is the culprit
So have you tried disabling NM? How about Wake-on-LAN?
deadbang

bremington
Posts: 14
Joined: 2020-03-21 01:47

Re: Immediate resume from suspend on Thinkstation

#14 Post by bremington »

I have tried to disable wol, but I keep getting this in pm-powersave.log:

Code: Select all

3/14/20 9:50 PM         Running hook /usr/lib/pm-utils/power.d/disable_wol false:
3/14/20 9:50 PM         Setting Wake On Lan for enp13s0 to enable...Done.
3/14/20 9:50 PM         Setting Wake On Lan for enp15s0 to enable...Done.
3/14/20 9:50 PM         /usr/lib/pm-utils/power.d/disable_wol false: success.
I edited /usr/lib/pm-utils/power.d/disable_wol to force it to set wol to false, but the above still show up in pm-powersave.log.

I have not tried disabling NM; I'll have to give that a try.

I have 6 GiB of RAM.

What makes it so frustrating is that the whole complicated suspend and resume process work perfectly out-of-the-box. So, what is supposed to be the hard part is already done...

Some odd quirk in the BIOS or possibly with the NIC is where my thinking is going. I think I will heed the advice to search for model specific info in re suspend (possibly Lenovo forum?). Without much in the way of diagnostic info to go on I'm probably at the point of try-this/try-that even if it seems silly. I should probably just forgot sus/hib, but my OCD side won't let go of it:-)

Just tried disabling NM. Didn't work. I also disconnected two extra hard drives I had in the box (farfetched, I know). No good.

And, again, thanks to you guys for your ideas/time!
Last edited by bremington on 2020-03-26 16:11, edited 1 time in total.

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: Immediate resume from suspend on Thinkstation

#15 Post by Deb-fan »

^Welcome and completely understand the ocd (aka WHY IN THE HELL ISNT IT WORKING!!) feeling. :) Just a couple other tips you might consider. Not about the sus/hib issue, reached the end of anything constructive on that I can think of. Only in general, untuned web browsers are now a horror show in terms of resources they use, though 100% know Firefox can be drastically tweaked to use a mere fraction of out-of-box and be made faster in the bargain too. Relatively sure same can be said for Chrome/ium as well.

Something else ... would lower swappiness to at least 20 vs the usual antiquated setting of 60 your swap partitions are showing. Any techie capable of finding their arse with both hands rightly consider frivilous disk i/o as evil incarnate. Os shouldn't be using disk, when there's ample RAM still free. While not going to be as noticeable on ssd's, certainly will on rotational drives and while newer model SSD tech is said to not be so much prone to wear + tear due to writes, as formerly were. Whose to say yours aren't? It's a dang shame how browsers have rendered even something like 6gbs-mem like it's not enough.

I have 4gbs, 32 or 64bit Buster, tuned Os installs, tuned FF, I'd have to open a ridiculous number of tabs and intentionally use this old PC in unrealistic ways just to see swapping to disk kick in. Could very comfortably get by w 2gigs(even in 2020), which is yet another testament to what gnu/Linux can do setup a certain way. Hope you get this suspend thing figured out though. Feel your pain, esp when something which should be simple defies every effort. Good luck .. :)
Most powerful FREE tech-support tool on the planet * HERE. *

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Immediate resume from suspend on Thinkstation

#16 Post by Head_on_a_Stick »

bremington wrote:I have tried to disable wol
Does your motherboard firmware ("BIOS") have an option for that? I think that should be preferred over software solutions.

Otherwise add a file at /etc/pm/power.d/disable_wol to override /usr/lib/pm-utils/power.d/disable_wol. Or just remove pm-utils.
bremington wrote:Some odd quirk in the BIOS or possibly with the NIC is where my thinking is going
Yes, perhaps. See also https://wiki.archlinux.org/index.php/Wa ... nel_quirks

tl;dr: add the xhci_hcd.quirks=270336 kernel parameter.
deadbang

bremington
Posts: 14
Joined: 2020-03-21 01:47

Re: Immediate resume from suspend on Thinkstation

#17 Post by bremington »

Deb-fan:

Thanks for your understanding of my boneheaded, OCD, nitpicking perfectionism:-) In reality, it isn't bad just shutting down and booting up again, but tell my stubborn head that.

I'm running a very recent SSD and, I have to say that I consider the performance of this old boat anchor w/ Deb10 to be practically miraculous. Running "free -h" shows very little swap usage. The responsiveness of the system tells this former SunOS/Solaris admin (OK, only a few boxes at work years ago) that I'm definitely not running into swap hell. I know all too well that draggy feeling of a system with RAM cram:-)

bremington
Posts: 14
Joined: 2020-03-21 01:47

Re: Immediate resume from suspend on Thinkstation

#18 Post by bremington »

Disabled in BIOS:

WOL
PCI Wakeup
Wake 0n Alarm
PCI Modem Ring Detection
Preboot Execution Envitronment (PXE).

Wasn't XHCI introduced in USB 3.0? My USB ports are only 2.0. No references to XHCI in BIOS.

I tried the xhci_hcd.quirks boot param (which I guess makes no sense if XHCI was introduced in USB 3.0) and it made -- tada! -- no difference.

I uninstalled pm_utils and ... no difference.

And, thanks again.

bremington
Posts: 14
Joined: 2020-03-21 01:47

Re: Immediate resume from suspend on Thinkstation

#19 Post by bremington »

I noticed some error messages (first messages in the boot sequence):

Code: Select all

3/29/20 3:51 PM	brian-deb10	kernel	[    0.418184] ACPI BIOS Error (bug): Failure creating [\_SB.PCI0._OSC.CAPB], AE_ALREADY_EXISTS (20180810/dsfield-183)
3/29/20 3:51 PM	brian-deb10	kernel	[    0.418227] ACPI Error: Method parse/execution failed \_SB.PCI0._OSC, AE_ALREADY_EXISTS (20180810/psparse-516)
                                    [    0.423376]psparse-516 platform INT0800:00: failed to claim resource 0:[mem 0xff800000-0xffffffff] 
3/29/20 3:51 PM	brian-deb10	kernel	[    0.423413] acpi INT0800:00: platform device creation failed: -16
They've been there all along on every distro, I guess I got so used to seeing them that I forgot about them, yeesh.

I've tried searching on the "\_SB.PCI0._OSC.CAPB", but haven't been able to find anything relevant. The second message is about some kind of memory conflict (I think).

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Immediate resume from suspend on Thinkstation

#20 Post by Head_on_a_Stick »

So did you try the acpi=off kernel paramater? Or any of the other acpi= options listed in the link I provided in this post?
deadbang

Post Reply