LM 19.1 64bit Xfce suspend/shutdown issues

Forum rules
Before you post please read how to get help
Post Reply
kfilip
Level 1
Level 1
Posts: 5
Joined: Tue Feb 12, 2019 6:54 pm

LM 19.1 64bit Xfce suspend/shutdown issues

Post by kfilip »

Hi all,
I am new to Mint and just finished a clean install. I set up all the programs I need and have solved most of the issues except for a major one.
1. Whenever I try to shut down, the system never switches off completely. The fans remain on and spinning and I need to press pwr button to turn it off
2. Suspend function takes >30 sec to complete mimicking a system freeze and after waking the system up I can only move the mouse pointer around. Clicks are not working.

I have also Win10 and Elementary 5.0 (Juno) on the same PC and suspend works as it should, although Juno has the same problem with shutdown. Given that Juno and W10 have normal suspend behaviour I can't suspect a BIOS issue. BTW the BIOS is as up to date as it can get given the age of my mobo.

Here are my rig details
System: Host: kfilip-desktop Kernel: 4.18.0-14-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Xfce 4.12.3
Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic
Machine: Type: Desktop Mobo: ASRock model: P67 Professional serial: <filter> UEFI: American Megatrends v: L3.19
date: 01/22/2013
CPU: Topology: Quad Core model: Intel Core i7-2600K bits: 64 type: MT MCP arch: Sandy Bridge rev: 7 L2 cache: 8192 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 54277
Speed: 1597 MHz min/max: 1600/3800 MHz Core speeds (MHz): 1: 1597 2: 1598 3: 1597 4: 1599 5: 1596 6: 1599 7: 1598
8: 1596
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Vega [Radeon RX Vega] vendor: ASUSTeK driver: amdgpu v: kernel
bus ID: 03:00.0
Display: x11 server: X.Org 1.19.6 driver: amdgpu,ati unloaded: fbdev,modesetting,radeon,vesa
resolution: 1920x1200~60Hz
OpenGL: renderer: Radeon RX Vega (VEGA10 DRM 3.26.0 4.18.0-14-generic LLVM 7.0.0) v: 4.5 Mesa 18.2.2
direct render: Yes
Audio: Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: ASRock driver: snd_hda_intel v: kernel
bus ID: 00:1b.0
Device-2: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel v: kernel bus ID: 03:00.1
Device-3: Logitech type: USB driver: snd-usb-audio,uvcvideo bus ID: 2-1.3.3:7
Sound Server: ALSA v: k4.18.0-14-generic
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASRock driver: r8168 v: 8.045.08-NAPI
port: c000 bus ID: 0d:00.0
IF: enp13s0 state: down mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASRock driver: r8168 v: 8.045.08-NAPI
port: a000 bus ID: 0f:00.0
IF: enp15s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: Local Storage: total: 1.05 TiB used: 546.68 GiB (50.7%)
ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 120GB size: 111.79 GiB
ID-2: /dev/sdb vendor: Western Digital model: WD10EALX-009BA0 size: 931.51 GiB
ID-3: /dev/sdc vendor: Western Digital model: WD360GD-00FNA0 size: 34.48 GiB
Partition: ID-1: / size: 33.66 GiB used: 20.90 GiB (62.1%) fs: btrfs dev: /dev/sda5
ID-2: /home size: 33.66 GiB used: 20.90 GiB (62.1%) fs: btrfs dev: /dev/sda5
Sensors: System Temperatures: cpu: 25.0 C mobo: 29.0 C gpu: amdgpu temp: 32 C
Fan Speeds (RPM): fan-1: 664 fan-2: 774 fan-3: 1131 fan-4: 690 fan-5: 741 gpu: amdgpu fan: 1365
Voltages: 12v: N/A 5v: N/A 3.3v: 3.36 vbat: 3.26
Info: Processes: 281 Uptime: 32m Memory: 23.50 GiB used: 2.68 GiB (11.4%) Init: systemd runlevel: 5 Compilers: gcc: 7.3.0
Shell: fish v: 2.7.1 inxi: 3.0.27
It's an old but quite powerful system with a brand new graphics card.

During my testing I think I have spotted two possible causes:
1. the kernel; changing to a different kernel affects the suspend function (system quickly goes to sleep) but wakeup problems still remain
2. xfce itself; I used a 19.1 Mint with MATE live USB and managed to suspend/wake w/o problem

As I saw that this may solve my problem, I strongly consider switching DE (Xfce -> MATE) but I understand how this may ruin my system and I have spent several hours to set it up. I do not intend to keep 2 DE's, just MATE. Xfce will be uninstalled as soon as I fire up MATE. Should I try it? Any other ideas? Is there a better power manager maybe?

Thanks for your time
Hoser Rob
Level 17
Level 17
Posts: 7052
Joined: Sat Dec 15, 2012 8:57 am

Re: LM 19.1 64bit Xfce suspend/shutdown issues

Post by Hoser Rob »

I don't think this has anything to do with the DE, the desktop environment in Linux is just another application program as far as the OS is concerned.

However, the live CD of 19.1 uses a 4.15 series kernel and you've installed a 4.18 series one. Try reverting to a 4.15 series kernel and see if it works better. Installing the newest kernel isn';t always such a good idea unless you have very new bleeding edge hardware.
kfilip
Level 1
Level 1
Posts: 5
Joined: Tue Feb 12, 2019 6:54 pm

Re: LM 19.1 64bit Xfce suspend/shutdown issues

Post by kfilip »

Thanks for your reply.

I mentioned that I did roll the kernel back. I used two different 4.15-xx kernels and situation changed a little bit in the right direction but not completely. Just enough to make me suspect a kernel contribution.

As far as DE is concerned, I mostly suspect the power manager app. Mine, ie Xfce's, doesn't look similar to screenshots I have seen posted; it shows less options/tabs and don't know if I have a better/newer version but I'd guess I have the most up to date and correct me if I'm wrong. So switching a DE would in reality be a hope for a better power management app.

Last but not least, I do have a bleeding edge VGA but an older rig. The kernel update was decided because of some other inconvenience which was dealt with and no longer remember.
kfilip
Level 1
Level 1
Posts: 5
Joined: Tue Feb 12, 2019 6:54 pm

Re: LM 19.1 64bit Xfce suspend/shutdown issues

Post by kfilip »

Ok, sorted it out so I post the rest of the story for any other troubled souls out there.

Broken suspend is quite common and reports say it probably started with 4.15 (I had 4.18). First report that it was dealt with was in 4.19.13's changelog (not sure about .13). I decided to try latest 4.20 and if it failed I'd go back slowly to some 4.19.xx and if all of these failed I'd go to latest 4.14.
4.20.10 -> failed confused????
4.19.23 -> Success but after resume, LAN card was dead; solution was to reinstall driver r8169 (had r8168-dkms installed for the wrong reason) and LAN was back in business

Also noticed that during shutdown my USB UPS service (Winpower) was resisting termination. I switched it from USB3 to USB2 and shutdown delay disappeared. I don't know if this contributed to the suspend issue but a lot of people solved their suspend problem by removing USB devices, so keep it in mind.

Only unresolved issues so far are:
1. Using suspend button on keyboard or pwr button (after setting it to "ask") resulted but not consistently in suspend and instant wakeup and subsequent freezing but I may have presses them awkwardly. BTW using the mouse to find suspend works fine. This problem looks similar to other people's issues with suspend while using different ways to do it eg closing the lid. It doesn't make sense to me but you know how shit happens in unexpected ways.

2. When shutting down, the system stops and goes black as it normally should do BUT for the case fans that remain spinning. I need to press pwr to completely shut it off. This issue remains exactly the same as before.

Any ideas about these last two?
kfilip
Level 1
Level 1
Posts: 5
Joined: Tue Feb 12, 2019 6:54 pm

Re: LM 19.1 64bit Xfce suspend/shutdown issues

Post by kfilip »

Sorted the fan issue by disabling "turn system on via USB mouse" in BIOS ACPI settings. Now system shuts down properly.
Nona
Level 1
Level 1
Posts: 30
Joined: Sun Nov 12, 2017 8:28 pm

Re: LM 19.1 64bit Xfce suspend/shutdown issues

Post by Nona »

The suspend does not work: Mint XFCE 19.1, 4.15.0-46-generic
Tried this fix, posting.php?mode=reply&f=57&t=259912 makes no difference.
Post Reply

Return to “Xfce”