[Bug 973754] New: Laptop won't suspend since since tumbleweed update (w/gnome 3.20)
http://bugzilla.opensuse.org/show_bug.cgi?id=973754 Bug ID: 973754 Summary: Laptop won't suspend since since tumbleweed update (w/gnome 3.20) Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: 64bit OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME Assignee: bnc-team-gnome@forge.provo.novell.com Reporter: brainstormtrooper@free.fr QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- gnome 3.18 Tumbleweed suspended when I closed the lid, but since the snapshot I installed April 2, 2016 The laptop won't suspend. No pm-suspend, No pm-hibernate, tweak-tool settings make no difference, -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c1
Rick Opper
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c2
Bjørn Lie
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c3
--- Comment #3 from Rick Opper
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c4
Bjørn Lie
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c5
--- Comment #5 from Rick Opper
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c6
--- Comment #6 from Rick Opper
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
Antoine Belvire
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c7
Takashi Iwai
ok Bjorn, sorry I didn't understand your instructions at first...
kernel-desktop flavor was obsoleted and replaced by kernel-default in the recent versions. So, installing kernel-default is the correct update.
yes, if I boot into the previous kernel (4.1.x) systemctl suspend works fine... but closing the lid has no effect...
You're using Tumbleweed, not Leap 42.1, right? Please clarify your distribution. There was a similar report, but it was about Leap 4.1.5 kernel on Thinkpad T430 (boo#973727), which is supposed to be fixed in the latest 4.1.20 kernel. In anyway, the problem is very likely dependent on the hardware. Please give "hwinfo --all" output. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c8
--- Comment #8 from Rick Opper
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c9
--- Comment #9 from Rick Opper
You're using Tumbleweed, not Leap 42.1, right? Please clarify your distribution.
Yes, I'm using Tumbleweed (last update brought 4.5 kernel...)
In anyway, the problem is very likely dependent on the hardware. Please give "hwinfo --all" output.
I attached the output. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c10
--- Comment #10 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c11
--- Comment #11 from Rick Opper
Try to boot with the previous 4.4.x kernel. Does the suspend work with it? Or if you don't have an old 4.4.x kernel (i.e. TW was freshly installed and containing already 4.5), install a kernel in OBS home:tiwai:kernel:4.4 repo.
This was just an update - but I hadn't updated in while... I've been on TW since the Factory merger. As for the other kernel, YAST wants me to uninstall most of my modules when I select the 4.4 kernel... Is that fairly safe? Am I supposed to replace the 4.5 kernel (and all modules and the rest) with the 4.4 kernel? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c12
--- Comment #12 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c13
--- Comment #13 from Rick Opper
Is this a laptop with hybrid GPUs?
Yes... ATI/Intel If so, there was a known regression in
4.5 kernel. It's been already addressed in 4.6-rc and backported. So, try OBS Kernel:stable repo at first.
Done. systemctl suspend works fine with the backported kernel. But still noting when I close the lid.
If this still doesn't work, try 4.4 kernel in my repo. In that case, just grab the rpm from the download directory, and install it locally via zypper in --oldpackage kernel-4.4*.rpm and just break the dependency.
I ended up breaking the dependency anyway... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c14
--- Comment #14 from Takashi Iwai
(In reply to Takashi Iwai from comment #12)
Is this a laptop with hybrid GPUs?
Yes... ATI/Intel
If so, there was a known regression in
4.5 kernel. It's been already addressed in 4.6-rc and backported. So, try OBS Kernel:stable repo at first.
Done. systemctl suspend works fine with the backported kernel. But still noting when I close the lid.
Is it just nothing, or is the suspend failing? i.e. do you see any suspend-related messages at lid close? In doubt, you can create a file /usr/lib/systemd/system-sleep/log.sleep containing: #!/bin/sh echo $* >> /tmp/suspend.log date >> /tmp/suspend.log ... and run "chmod +x /usr/lib/systemd/system-sleep/log.sleep" Then this will log /tmp/suspend.log at each sleep action via systemd. Check whether it's logged at lid close.
If this still doesn't work, try 4.4 kernel in my repo. In that case, just grab the rpm from the download directory, and install it locally via zypper in --oldpackage kernel-4.4*.rpm and just break the dependency.
I ended up breaking the dependency anyway...
So, 4.4 kernel works as is? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c15
--- Comment #15 from Rick Opper
Is it just nothing, or is the suspend failing? i.e. do you see any suspend-related messages at lid close?
In doubt, you can create a file /usr/lib/systemd/system-sleep/log.sleep containing:
#!/bin/sh echo $* >> /tmp/suspend.log date >> /tmp/suspend.log
... and run "chmod +x /usr/lib/systemd/system-sleep/log.sleep" Then this will log /tmp/suspend.log at each sleep action via systemd. Check whether it's logged at lid close.
I created the script. When I use systemctl suspend I get: pre suspend Thu Apr 7 10:20:22 CEST 2016 post suspend Thu Apr 7 10:21:03 CEST 2016 but nothing when I close the laptop lid.
So, 4.4 kernel works as is? No, I didn't try the 4.4 kernel. I had to break the same dependency for the new 4.5 kernel. Something about DJlib of some sort related to IPtables. But there was a replacement for it in the official repo, so I don't know where I picked up the old module... anyway, the new kernel seems to work fine otherwise...
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c16
--- Comment #16 from Takashi Iwai
Is it just nothing, or is the suspend failing? i.e. do you see any suspend-related messages at lid close?
In doubt, you can create a file /usr/lib/systemd/system-sleep/log.sleep containing:
#!/bin/sh echo $* >> /tmp/suspend.log date >> /tmp/suspend.log
... and run "chmod +x /usr/lib/systemd/system-sleep/log.sleep" Then this will log /tmp/suspend.log at each sleep action via systemd. Check whether it's logged at lid close.
I created the script. When I use systemctl suspend I get: pre suspend Thu Apr 7 10:20:22 CEST 2016 post suspend Thu Apr 7 10:21:03 CEST 2016
but nothing when I close the laptop lid.
OK, that answers my suspect. The suspend isn't triggered in this case. But I don't know whether it's a regression in kernel or any other place. So...
So, 4.4 kernel works as is? No, I didn't try the 4.4 kernel. I had to break the same dependency for the new 4.5 kernel. Something about DJlib of some sort related to IPtables. But there was a replacement for it in the official repo, so I don't know where I picked up the old module... anyway, the new kernel seems to work fine otherwise...
... could you try 4.4 kernel? We don't need the full functionality. We just need to check whether the lid close triggers the suspend with this kernel. If 4.4 kernel doesn't work, too, it's more likely a breakage in the user-space side. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c17
--- Comment #17 from Rick Opper
... could you try 4.4 kernel? We don't need the full functionality. We just need to check whether the lid close triggers the suspend with this kernel.
Nope... nothing when I close the lid with the 4.4 kernel either...
If 4.4 kernel doesn't work, too, it's more likely a breakage in the user-space side.
So, what could be broken in the user-space side? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c18
--- Comment #18 from Takashi Iwai
(In reply to Takashi Iwai from comment #16)
... could you try 4.4 kernel? We don't need the full functionality. We just need to check whether the lid close triggers the suspend with this kernel.
Nope... nothing when I close the lid with the 4.4 kernel either...
If 4.4 kernel doesn't work, too, it's more likely a breakage in the user-space side.
So, what could be broken in the user-space side?
Supposing it's a regression, yes. The suspend at lid close ever worked before with Tumbleweed, right? Or has it never worked? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c19
--- Comment #19 from Rick Opper
Supposing it's a regression, yes. The suspend at lid close ever worked before with Tumbleweed, right? Or has it never worked?
Yes, it worked fine up until the last update I installed... The laptop would suspend when I closed the lid. Before the update I was running the 4.1 kernel and Gnome 3.18 (if that helps) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c20
--- Comment #20 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c21
--- Comment #21 from Rick Opper
Aha, so the "update" was rather a big "upgrade" from Leap (or equivalent).
In that case, you should check at least 4.1 kernel again before jumping to the conclusion. Try to install 4.1 kernel from OBS Kernel:openSUSE-42.1 repo, and confirm whether the lid close triggers the suspend or not.
Unless there's a big difference between the 42.1 version and the Tumbleweed version of the 4.1 kernel, the lid close won't do it. I already booted back into my old 4.1 kernel and suspend (sytemctl suspend) worked but not lid close. I think it's more something related to the new Gnome stack than just the kernel... Is there a big difference between the two kenels? (big enough that I need to install another kernel and reboot again)? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c22
--- Comment #22 from Takashi Iwai
(In reply to Takashi Iwai from comment #20)
Aha, so the "update" was rather a big "upgrade" from Leap (or equivalent).
In that case, you should check at least 4.1 kernel again before jumping to the conclusion. Try to install 4.1 kernel from OBS Kernel:openSUSE-42.1 repo, and confirm whether the lid close triggers the suspend or not.
Unless there's a big difference between the 42.1 version and the Tumbleweed version of the 4.1 kernel, the lid close won't do it. I already booted back into my old 4.1 kernel and suspend (sytemctl suspend) worked but not lid close. I think it's more something related to the new Gnome stack than just the kernel... Is there a big difference between the two kenels? (big enough that I need to install another kernel and reboot again)?
Yes, there are tons of changes between 4.1 and later kernels, as always :) Could you give the output of dmesg after a fresh boot of 4.4 and 4.5 kernels? We need to check whether the lid switch is detected as the input driver. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c23
--- Comment #23 from Rick Opper
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c24
--- Comment #24 from Rick Opper
Yes, there are tons of changes between 4.1 and later kernels, as always :)
I meant between two 4.1 kernels... would the 4.1 kernel installed with Leap be different from the 4.1 kernel installed with Tumbleweed...
Could you give the output of dmesg after a fresh boot of 4.4 and 4.5 kernels? We need to check whether the lid switch is detected as the input driver.
ok... I attached the dmesg output for the 4.5 kernel and checked it... the lid switch IS in it: [ 4.865871] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/PNP0C0D:00/input/input3 [ 4.866974] ACPI: Lid Switch [LID] -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c25
--- Comment #25 from Rick Opper
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c26
--- Comment #26 from Rick Opper
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c27
--- Comment #27 from Rick Opper
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c28
--- Comment #28 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c29
--- Comment #29 from Rick Opper
Then, while running evtest with the input event device for the lid switch, close the lid. If you get the EV_SW SW_LID events, then it works in the kernel level.
evtest /dev/input/event2 Input driver version is 1.0.1 Input device ID: bus 0x19 vendor 0x0 product 0x5 version 0x0 Input device name: "Lid Switch" Supported events: Event type 0 (EV_SYN) Event type 5 (EV_SW) Event code 0 (SW_LID) state 0 Properties: Testing ... (interrupt to exit) Event: time 1460026715.745438, type 5 (EV_SW), code 0 (SW_LID), value 1 Event: time 1460026715.745438, -------------- SYN_REPORT ------------ Event: time 1460026720.424060, type 5 (EV_SW), code 0 (SW_LID), value 0 Event: time 1460026720.424060, -------------- SYN_REPORT ------------ I guess the kernel finds it... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c30
--- Comment #30 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c31
--- Comment #31 from Rick Opper
Just to be sure: you don't connect to an external monitor, right? When an external monitor or dock is connected, systemd and others won't handle the lid close.
no... no external monitor or docking station. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c32
--- Comment #32 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c33
--- Comment #33 from Rick Opper
OK. And, the suspend isn't triggered even at lid close on VT1 without GUI?
yes, I get the same thing with or without the GUI... but I can cut and paste w/ the GUI ;-) VT1 shows the lid event too.
The suspend at lid-close on VT is basically managed by systemd itself, and its configuration is found in /etc/systemd/logind.conf (and other files mentioned in logind.conf(5) man page). Check the configuration whether you have any special setup.
yeah, there were several forum posts about that file. It's all commented out on my system: #HandleLidSwitch=suspend #HandleLidSwitchDocked=ignore I did un-comment the lines to handle lid switch, but that didn't change anything. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=973754
http://bugzilla.opensuse.org/show_bug.cgi?id=973754#c34
Takashi Iwai
participants (1)
-
bugzilla_noreply@novell.com