Suspend not working as intended on Razer Blade Stealth running Xubuntu 16.04 - Ask Ubuntu


i've scoured web answers , while of one's i've found on google, here or on reddit seemed help, none did.

[the issue]

when open power manager application, have option of when lid closed. chose "suspend". problem occurs when close lid. upon closing laptop goes suspend, when open lid, black screen. if close lid again , open right away, laptop wakes suspend.

[some relevant info]

cpu i7-7500u (kaby) intel hd 620 graphics xubuntu 16.04

proprietary driver intel enabled

i downloaded , installed drivers via intel's "graphics update tool"

uname -a (i have updated kernel in hopes might solve issue)

linux pcname 4.7.0-040700-generic #201608021801 smp tue aug 2 22:03:09 utc 2016 x86_64 x86_64 x86_64 gnu/linux

[i tried]

uncommenting #handlelidswitch=suspend inside of /etc/systemd/logind.conf , restarting logind service although unclear me whether should open power manager app , switch lid actions other suspend?

i tried doing via acpi: lid.sh.post script inside /etc/acpi/local (chmod 755 on script too) with:

#!/bin/bash if grep -q closed /proc/acpi/button/lid/*/state     /usr/sbin/pm-suspend fi 

it didn't work.

interestingly enough if log first virtual console , issue pm-suspend, resume , switch 7th console (where gui was), woke normally. not sure if helps pin down problem more?

i @ wit's end.. want bastard suspend , resume normally... don't know whole lot suspend process, if needs me post more info, please let me know. tried post in advance can.

syslog entries on suspend

nov 16 00:48:36 dev-pc systemd[1]: starting network manager script dispatcher service... nov 16 00:48:36 dev-pc systemd[1]: reached target sleep. nov 16 00:48:36 dev-pc systemd[1]: starting suspend... nov 16 00:48:36 dev-pc dbus[921]: [system] activated service 'org.freedesktop.nm_dispatcher' nov 16 00:48:36 dev-pc systemd[1]: started network manager script dispatcher service. nov 16 00:48:36 dev-pc nm-dispatcher: req:1 'down' [wlp1s0]: new request (1 scripts) nov 16 00:48:36 dev-pc nm-dispatcher: req:1 'down' [wlp1s0]: start running ordered scripts... nov 16 00:48:36 dev-pc wpa_supplicant[1290]: nl80211: deinit ifname=wlp1s0 disabled_11b_rates=0 nov 16 00:48:46 dev-pc systemd-sleep[6120]: selected interface 'p2p-dev-wlp1s0' nov 16 00:48:46 dev-pc systemd-sleep[6120]: 'suspend' command timed out. nov 16 00:48:46 dev-pc systemd-sleep[6122]: /lib/systemd/system-sleep/wpasupplicant failed error code 254. nov 16 00:48:46 dev-pc systemd-sleep[6120]: suspending system... 

kernel takes over...and time later

nov 16 00:48:54 dev-pc systemd[1]: snapd.refresh.timer: adding 1h 59min 13.126529s random time. nov 16 00:48:54 dev-pc systemd[1378]: time has been changed nov 16 00:48:54 dev-pc systemd[1]: starting load/save rf kill switch status... nov 16 00:48:54 dev-pc systemd[1]: bluetooth.target: unit not needed anymore. stopping. nov 16 00:48:54 dev-pc systemd[1]: stopped target bluetooth. nov 16 00:48:54 dev-pc systemd[1]: reached target bluetooth. nov 16 00:48:54 dev-pc systemd[1]: started load/save rf kill switch status. nov 16 00:48:54 dev-pc kernel: [ 1180.631857] bluetooth: hci0: using nvm file: qca/nvm_usb_00000302.bin nov 16 00:48:54 dev-pc systemd-sleep[6120]: system resumed. nov 16 00:48:54 dev-pc systemd-sleep[6120]: failed connect non-global ctrl_ifname: (nil)  error: no such file or directory nov 16 00:48:54 dev-pc systemd-sleep[6221]: /lib/systemd/system-sleep/wpasupplicant failed error code 255. nov 16 00:48:54 dev-pc systemd[1]: started suspend. nov 16 00:48:54 dev-pc systemd[1]: sleep.target: unit not needed anymore. stopping. nov 16 00:48:54 dev-pc systemd[1]: stopped target sleep. nov 16 00:48:54 dev-pc systemd[1]: reached target suspend. nov 16 00:48:54 dev-pc systemd[1]: suspend.target: unit bound inactive unit systemd-suspend.service. stopping, too. nov 16 00:48:54 dev-pc systemd[1]: stopped target suspend. nov 16 00:48:54 dev-pc kernel: [ 1180.767368] ipv6: addrconf(netdev_up): wlp1s0: link not ready nov 16 00:48:54 dev-pc networkmanager[937]: <info>  [1479257334.3510] manager: wake requested (sleeping: yes  enabled: yes) nov 16 00:48:54 dev-pc networkmanager[937]: <info>  [1479257334.3510] manager: waking up... nov 16 00:48:54 dev-pc networkmanager[937]: <info>  [1479257334.3511] device (wlp1s0): state change: unmanaged -> unavailable (reason 'managed') 

full pastebin http://pastebin.com/dcjbzmjx

based on comments hdmi. in /etc/systemd/logind.conf set following 2 lines (the first line set according question):

handlelidswitch=suspend handlelidswitchdocked=suspend 

to answer question, both systemd , power options need set same (on system @ least).

the other thing can @ /var/log/syslog, navigate time suspended , resumed, , unusual events.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User