Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steam gobbling shut down request ? #3301

Closed
Sarkie opened this issue May 13, 2014 · 166 comments
Closed

Steam gobbling shut down request ? #3301

Sarkie opened this issue May 13, 2014 · 166 comments

Comments

@Sarkie
Copy link

Sarkie commented May 13, 2014

I am running elementary os 0.2 64 bit, when I press shut down either via the power button on the box or in the os, then Steam will shut down correctly as shown via running Steam via terminal.

What I have noticed is a timing difference, if Steam isn't running, this will be performed in under 4 seconds, if Steam is running it is greater than 25 seconds, even though according to the terminal output Steam has already taken the request and shut down Steam.

Is there any lingering processes that are running that are timing out after 20 seconds, are there any commands I can run to watch what is happening to Steam or elementary os to help see where the issue lies?

Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x17
CPU Stepping: 0x6
CPU Type: 0x0
Speed: 3000 Mhz
2 logical processors
2 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Unsupported

Network Information:
Network Speed:

Operating System Version:
elementary OS Luna (64 bit)
Kernel Name: Linux
Kernel Version: 3.8.0-39-generic
X Server Vendor: The X.Org Foundation
X Server Release: 11203000
X Window Manager: Mutter(Gala)
Steam Runtime Version: steam-runtime-release_2014-04-15

Video Card:
Driver: X.Org Gallium 0.4 on AMD RV770

Driver Version:  3.0 Mesa 9.2.0
OpenGL Version: 3.0
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 74 Hz
VendorID:  0x1002
DeviceID:  0x9442
Number of Monitors:  2
Number of Logical Video Cards:  1
Primary Display Resolution:  1280 x 1024
Desktop Resolution: 2560 x 1024
Primary Display Size: 13.31" x 10.67"  (17.05" diag)
                                        33.8cm x 27.1cm  (43.3cm diag)
Primary VRAM Not Detected

Sound card:
Audio device: Realtek ALC889A

Memory:
RAM: 3952 Mb

Miscellaneous:
UI Language: English
LANG: en_GB.UTF-8
Microphone: Not set
Total Hard Disk Space Available: 70935 Mb
Largest Free Hard Disk Block: 19209 Mb

Installed software:

Recent Failure Reports:

@gdrewb-valve
Copy link
Contributor

See also #3241 for unusual shutdown behavior.

@jjkinas
Copy link

jjkinas commented Mar 4, 2015

This bug is also on Ubuntu Mate 14.10 & 15.04 beta

I must close steam before shutting down , or it is very slow , same behavior. If I just try to shutdown , steam hangs the shutdown by 30 seconds.

System Information:
http://pastebin.com/WZWfndnS

@Zerophase
Copy link

Exists in Cinnamon too, on both Arch and Mint.

@calexil
Copy link

calexil commented Dec 24, 2015

Issue is ongoing

@BenJetson
Copy link

I'm experiencing this issue as well on my new Ubuntu MATE 16.04 install. If the development team needs some log files or someone to test something, @ mention me and I'll be happy to help.

@calexil
Copy link

calexil commented Aug 2, 2016

STILL ONGOING, Mint 18 mate

@ghost
Copy link

ghost commented Aug 5, 2016

The exact same thing happens to me in Fedora 24 with Mate or Cinnamon, as well as Ubuntu Mate 16.04.1.

@stevethepocket
Copy link

Did the most recent client update fix this for all of you? They said they fixed something about shutting down with Steam open.

@ghost
Copy link

ghost commented Jan 24, 2017

It didn't. It still delays the shutdown of MATE and Cinnamon by whatever amount SystemD is set to delay it for.

@SEAPUNK
Copy link

SEAPUNK commented Jan 24, 2017

Yeah, which is strange. There must be some additional process that still doesn't listen to SIGTERM, although Steam definitely appears to shut down on it. Maybe Steam takes too long to quit?

@calexil
Copy link

calexil commented Jan 24, 2017

this issue was NOT resolved, mint 18.1 mate, still hangs for 30 seconds on shutdown if steam is open

@stevethepocket
Copy link

Maybe Steam takes too long to quit?

This wouldn't surprise me at all. I've had issues in the past with Steam holding up the shutdown process in Windows.

@MartinX3
Copy link

+1

@Pandiora
Copy link

Same here, Issue still exists with Linux Mint 18.1 64-bit Cinnamon.

@MartinX3
Copy link

Same here, Issue still exists with Linux Mint 18.1 64-bit Mate.

@alextpedro
Copy link

Same issue. Linux Mint 18.2 Cinnamon 64-bit.

@Plagman
Copy link
Member

Plagman commented Jul 12, 2017

Steam should obey SIGTERM now, any details on what exactly is happening? Is the Mint session relying on some other mechanism to instruct the client to exit?

@SEAPUNK
Copy link

SEAPUNK commented Jul 12, 2017

My best guess is that Steam, on SIGTERM, takes too long to shut down, causing the system to wait (and eventually time out) on shutdown request. I don't 100% understand why the system doesn't catch Steam's process shutting down, unless there is another Steam process that keeps running in the background...

@Plagman
Copy link
Member

Plagman commented Jul 12, 2017

Even with downloads running, the client always exits gracefully under a few seconds here if I manually send it SIGTERM.

@stevethepocket
Copy link

stevethepocket commented Jul 15, 2017

Something I am noticing now is that when I go to shut down while Steam is running, it forces Steam to quit, but then doesn't actually shut down; it just stays on a fully-functional desktop with everything except Steam still running. I have to pull up the shutdown option a second time. When I manually exit Steam first, and then hit the shutdown button, it shuts down properly the first time. This is on Kubuntu 17.04.

@kisak-valve
Copy link
Member

kisak-valve commented Jul 15, 2017

I might as well add a note to that, with KDE on Arch, I see a notification from Plasma Workspace that says Logout canceled by '' when the steam window visibly closes, but steam itself finishes closing a second or two later which is seen by the steam tray icon leaving the tray.

@ghost
Copy link

ghost commented Jul 15, 2017

I have seen this very behaviour on KDE as well. On MATE it still does the same old thing, where shutdown becomes delayed by 90 seconds (which is the SystemD default timeout).

Even with downloads running, the client always exits gracefully under a few seconds here if I manually send it SIGTERM.

I'm guessing that's the issue. A few seconds is longer than the rest of the system takes to shutdown, at least on my end.

@frikisama
Copy link

Same behaviour here with Arch + XFCE. I think it only started recently, but can't pin it down to an exact date.

@gokudomatic
Copy link

Same behaviour with xubuntu and manjaro. It started to gobble the shutdown signal about 2 weeks ago.

@Zerophase
Copy link

Shutdown still takes about 30 seconds on Cinnamon. Cinnamon notices an "unknown" program is trying to shutdown, steam closes in the tray, and then the desktop icons disappear. About 30 seconds later the desktop exits.

@ghost
Copy link

ghost commented Jan 26, 2018

Fix works on Xubuntu.

@Leeo97one
Copy link

OK this looks good. But what's the point of auto-closing Steam when the shutdown menu appears under GNOME?
See: #3301 (comment)

@stevethepocket
Copy link

Fixed for me on Kubuntu 17.10. Before this gets closed and forgotten forever, would you mind disclosing what the fix was? I'm sure other developers could benefit from the insight.

@bjwest
Copy link

bjwest commented Jan 26, 2018

@Zerophase That's a normal function of any modern desktop environment, there's a lot going on that needs to be cleanly shutdown. We haven't been able to just turn off the computer since the Win 3.x days.

@Zerophase
Copy link

@bjwest I definitely get that. It still takes a ton longer to shut the desktop down then if I had manually exited steam before shutting down. I could understand syncing slowing the process down, but that isn't running since I don't have any games installed.

On windows steam shuts down fairly fast.

I just think it's worth looking in on Cinnamon to see if there are any other issues delaying shutdown.

@paulovilli
Copy link

paulovilli commented Jan 27, 2018 via email

@kisak-valve
Copy link
Member

Hello @paulovilli, until the next stable client bump happens, you'll need to opt into the Steam beta client if you want the fix for this issue.

Steam -> Settings -> Change... button in Beta participation -> Steam Beta Update in the dropdown

@paulovilli
Copy link

paulovilli commented Jan 27, 2018 via email

@Zerophase
Copy link

Zerophase commented Jan 27, 2018

@paulovilli Hmm, I'm going to have to time my actual shutdown time, but it takes me significantly longer. (when not closing steam manually) 2 seconds to close the Steam icon, and at the 30 second mark the desktop exits.

I have a i7-5960X (using the latest microcode) running kernel linux-ck 4.14.15-2, and a 660ti with the NVidia proprietary drivers.
I'm using steam-native-runtime, and have the latest beta installed.

@Dinoraptor101
Copy link

Same issue here
Manjaro Linux
KDE Plasma 5.11.5
KDE Frameworks 5.42.0
QA Vesion: 5.10.0
Kerlen: 4.14.14-1-MANJARO
64 bit archetecture
CPU: Intel I5-2500k.

Shutdown is completely cancelled. (logout canceled by plasma)

@Photon89
Copy link

Photon89 commented Feb 4, 2018

@Dinoraptor101: Problem is fixed in Steam beta (at least for me), either wait till the fix reaches stable or switch to beta in the Steam settings.

@outfrost
Copy link

outfrost commented Feb 4, 2018

Steam beta update seems to have resolved or worked around the issue for me. Shutdown takes about 3-5 seconds longer to leave the desktop session, but it doesn't get cancelled.
Mint 18.2 / KDE Plasma 5.8.8 / Linux 4.8.0-53-generic amd64

@paulovilli
Copy link

paulovilli commented Feb 5, 2018 via email

@kisak-valve
Copy link
Member

@paulovilli, yes, please open a new issue report for your follow up issue.

@Dinoraptor101
Copy link

@Photon89 Thank you for prompt reply, I'll let you know if I face any further issues.

@athordan
Copy link

athordan commented Feb 6, 2018

Thank you Valve!

Signing in for Beta worked fine for me.

Manjaro - KDE Plasma 5

@paulovilli
Copy link

paulovilli commented Feb 8, 2018 via email

@mikerm19
Copy link

Can confirm, beta now lets Cinnamon (Linux Mint) shut down, thanks!

It does however make Cinnamon pop up a box saying that it's waiting on an unknown program to shut down, so there is other issues, maybe for #5379.

@mlewis-everley
Copy link

I can also confirm that the beta version allows shutdown for me (Linux Mint + Cinnamon), but I also seem to suffering from issue #5379 (same as @paulovilli and @mikerm19)

@Fr6jDJF
Copy link

Fr6jDJF commented Feb 28, 2018

Like mikerm19 said:
Can confirm, beta now lets Cinnamon (Linux Mint 18.3 Cinnamon) shut down, thanks!

It does however make Cinnamon pop up a box saying that it's waiting on an unknown program to shut down

~$ steam
....
Refresh rate: 1
Refresh rate: 1
Refresh rate: 1
[2018-02-28 17:09:25] Shutdown

...silence from the terminal/unknown program box/system "idle" time...
OS shuts down

@EarthDevour
Copy link

It is finally fixed ! Kubuntu 17.10 latest steam client !

@kisak-valve
Copy link
Member

Closing per "Fixed an issue where the Steam client could prevent some desktop sessions from shutting down" in the 2018-03-21 steam client update.

@MartinX3
Copy link

18.04.2018
Ubuntu Mate 17.10 x64

Steam prevents my Laptop to go into standby.

@paulovilli
Copy link

paulovilli commented Apr 18, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests