LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-25-2017, 11:00 PM   #1
bertradio
LQ Newbie
 
Registered: Nov 2016
Posts: 11

Rep: Reputation: Disabled
Asus UX305UA shuts down after suspend on battery


I am running Linux Mint 18.1 on an Asus UX305UA. When I suspend on AC power, the laptop resumes properly. But on battery when I suspend either from the CLI or menus it suspends and then shuts down in several seconds requiring a reboot. This was the case for awhile and then for some reason it stopped and suspended normally. Then several days ago the condition came back. Here's my setup. Any help would be much appreciated.

System: Host: bert-UX305UA Kernel: 4.4.0-75-generic x86_64 (64 bit)
Desktop: Cinnamon 3.2.7 Distro: Linux Mint 18.1 Serena
Machine: System: ASUSTeK (portable) product: UX305UA v: 1.0
Mobo: ASUSTeK model: UX305UA v: 1.0
Bios: American Megatrends v: UX305UA.201 date: 10/12/2015
CPU: Dual core Intel Core i5-6200U (-HT-MCP-) cache: 3072 KB
clock speeds: max: 2800 MHz 1: 599 MHz 2: 588 MHz 3: 587 MHz
4: 607 MHz
Graphics: Card: Intel Sky Lake Integrated Graphics
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: 1368x768@60.00hz
GLX Renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
GLX Version: 3.0 Mesa 11.2.0
Audio: Card Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
Sound: Advanced Linux Sound Architecture v: k4.4.0-75-generic
Network: Card: Intel Wireless 7265 driver: iwlwifi
IF: wlp2s0 state: up mac: 00:21:5c:b6:38:a7
Drives: HDD Total Size: 256.1GB (26.0% used)
ID-1: /dev/sda model: Micron_M600_MTFD size: 256.1GB
Partition: ID-1: / size: 72G used: 55G (80%) fs: ext4 dev: /dev/sda5
ID-2: swap-1 size: 8.49GB used: 0.00GB (0%) fs: swap dev: /dev/sda6
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 42.0C mobo: N/A
Fan Speeds (in rpm): cpu: 2700
Info: Processes: 223 Uptime: 1:02 Memory: 2500.0/7882.9MB
Client: Shell (bash) inxi: 2.2.35
 
Old 04-26-2017, 08:41 PM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hey bertradio ... There are several ways to troubleshoot this type of issue. Some involve some rather low level validations of acpi event handling by various system components.

Sometimes, however, a satisfactory resolution can be arrived at more simply with the help of certain packages specialized in laptop power management. May I ask if you have any of the following packages installed, and if so which ones and how they are configured ?

- powertop
- laptop-mode-tools
- your Desktop Environment's (Cinnamon) power management utility

Let's start with that.

Cheers :-)
 
Old 04-26-2017, 11:38 PM   #3
bertradio
LQ Newbie
 
Registered: Nov 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks for the response.

No I don't have any of those packages installed, though I did at one time.

As a test today, I booted with a "clean" Linux Mint from a USB to see if I ran into the same problem and I did. So this clearly has to do with hardware and not particularly with something in my Linux install.

The weird thing is that when I first installed Linux the suspend and return was working with no problem. Then at some point the problem developed. I never could trace it to any software install. It continued for a month or two and then one day it disappeared and everything worked well. Then a week ago the problem returned. It seems it's an issue with Linux/Umbutu and the Asus hardware.

The problem only exists on battery. On AC, the laptop suspends and returns normally. If I suspend on AC, then remove the AC adapter, the laptop reboots when I open the lid. The same thing happens if I suspend while on battery.

Any guidance would be much appreciated.
 
Old 04-26-2017, 11:40 PM   #4
bertradio
LQ Newbie
 
Registered: Nov 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Correction, I do have the Cinnamon Power Management package installed. It installed along with Linux Mint. I do not have the others, though I tried them in the past.
 
Old 04-27-2017, 07:34 AM   #5
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi bert,

OK ... This may be a bit of an iterative, trial and error, type of troubleshooting method, but here are my comments and recommendations:

- This type of issue is extremely common on laptops. The suspend-resume functionality depends on a slew of factors, and may vary in reliability with kernel updates. I run into issues regularly with Arch Linux (my distro of choice), given that it is a rolling-release model and kernel updates are frequent.

- I would do the following, in order, rebooting and using the laptop between each step and seeing how things are before progressing to the next step :

1) If not already done, make sure the Cinnamon power management utility is configured as appropriately as possible, using any options it has for suspend-resume, lid opening and closing, etc. ..

2) Install powertop, create its systemd service file, configure it to auto-tune, enable and start the service.

3) Install laptop-mode-tools, enable and start its systemd service.

Cheers - let us know how it goes ! ... Also, maybe others here will chime in with their own experiences and ideas, especially if they primarily use Mint. Personally, I only occasionally experiment with Mint inside of a VM.

Last edited by Rickkkk; 04-27-2017 at 07:37 AM.
 
Old 04-27-2017, 08:19 AM   #6
bertradio
LQ Newbie
 
Registered: Nov 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Rick,

I installed powertop. How do I create its systemd service file, configure it to auto-tune, enable and start the service? I'm relatively new to Linux.

I did just run powertop with auto-tune and the problem was not solved.

Thanks
 
1 members found this post helpful.
Old 04-27-2017, 11:24 AM   #7
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi again bert,

I was hoping that your distro's (Mint) documentation would have the pertinent details as to how to set up powertop. In Arch, it simply involves creating the appropriate systemd unit (config file) and enabling the service. To your knowledge, does Mint use systemd to manage services/daemons ?

In a nutshell (assuming systemd):

- Create the powertop systemd unit file. This is simply a text file called powertop.service, that must be located (in Arch, anyway) in /etc/systemd/system/. Its contents would be:

Code:
[Unit]
Description=Powertop tunings

[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
#ExecStart=/usr/bin/powertop
[Install]
WantedBy=multi-user.target
- enabling the service will start it every time you start Mint. The command to enable the service is:

Code:
sudo systemctl enable powertop.service
... you can actually omit the .service extension, this is understood and optional. I include it for clarity.

Again, these instructions are based on the way powertop is set up in Arch. I would think that it would be the same or similar in Mint.

The following is a link to the powertop entry in the Arch Linux wiki.

https://wiki.archlinux.org/index.php/Powertop

You will often find the Arch Linux wiki useful for information that is applicable across multiple distros.

Hope this helps for a start.

Cheers,

Last edited by Rickkkk; 04-27-2017 at 11:27 AM.
 
Old 04-27-2017, 11:46 AM   #8
bertradio
LQ Newbie
 
Registered: Nov 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
I was able to get the powertop service enabled on boot. FYI on my system powertop was in /usr/sbin not /usr/bin so I changed the powertop.service file accordingly.

Unfortunately this did not fix the issue. Are the any other tweaks to powertop you might suggest before I move on to the other solution?
 
Old 04-27-2017, 12:27 PM   #9
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi bert,

There are many tweaks possible with powertop :-) ... That said, it still may be easier to try the next solution (laptop-mode-tools), in combination with powertop in simple "auto-tune" mode (the way you have it now). If you run powertop (needs root or sudo) from the command line and go to the last panel, you'll find all the "tunables". Auto-tune sets them all to "good" (optimal power-saving mode) by default, but tweaking the appropriate ones is possible here and could lead to a solution. This however takes some time and the addition of laptop-mode-tools, enabled in its default mode, may improve the situation. It's easy to do and can also easily be undone.

I recommend you move on to that as a next step.
 
Old 04-27-2017, 07:16 PM   #10
bertradio
LQ Newbie
 
Registered: Nov 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi Rick,

I installed laptop-mode-tools with the defaults. This did not fix the problem. I looked at all the things that were checked and unchecked and did not off hand see anything relevant. I did, however, experience an ethernet issue and so I unchecked that.

Not sure where to go from here.

Bert
 
Old 04-27-2017, 07:27 PM   #11
bertradio
LQ Newbie
 
Registered: Nov 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
One more clue. When I suspend on battery the "sleep" light on the laptop blinks which means it is sleeping. So the shutdown appears to come not from the suspend, but from the resume.
 
Old 04-27-2017, 07:44 PM   #12
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hey bert,

I did some quick online research and apparently this line of laptops from Asus has some known issues along the lines of the problems you've been experiencing. I would suggest you take a look at (at least) the following links. Even though one of them is a Windows-based discussion, the comments concerning the display driver may be of interest. The other link is from a Ubuntu-based discussion and contains some specific suggestions you may try.

https://help.ubuntu.com/community/AsusZenbook

http://forum.notebookreview.com/thre...x305ua.792652/

Let us know how it goes - and don't give up on your research, you don't seem to be alone.

Cheers,

Last edited by Rickkkk; 04-27-2017 at 07:45 PM.
 
1 members found this post helpful.
Old 04-27-2017, 07:52 PM   #13
bertradio
LQ Newbie
 
Registered: Nov 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
I've seem some of that stuff and it seems quite extreme for a relative newbie to Linux. As I understand it, the drivers are part of the kernel and are updated with the kernel. I've tried different kernels with the same result. The weird thing is that it used to suspend and resume on battery with no problem and as I said even booting with a clean USB Linux I have the problem. So it seems it may be hardware related. Other than that, the Asus is working very well with Linux. From what I can see, Asus only supports Windows on the laptop, so I'm not sure they can be of help.

Thanks for the links. I'll do more research. But for the moment, I just need to shutdown and reboot when on battery. It's a bother, but not impossible to deal with.

Bert
 
Old 04-27-2017, 09:09 PM   #14
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Man I wish I'd seen that Ubuntu info when we had a Zenbook in the house ...

FWIW we had an older model, worked fine, including suspend/hibernation, until one day it just died. No power anywhere. Data on the SSD was still ok, but I had to get a special adaptor in from China. The thinness of the case meant a "normal" SSD wasn't able to be used.
Of course the backup I had was missing the file(s) needed. Always seems to happen.
 
Old 04-28-2017, 07:07 AM   #15
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Bert - although it definitely sounds like our member syg00 had a hardware issue (see his post immediately above), I would not assume that your problem is hardware related.

As you have surmised, kernel updates sometimes cause compatibility problems on some systems. These are often corrected/resolved in future kernel updates. Since in your case, your Asus functioned as expected initially, but no longer does, I'm guessing it's a question of an update having occurred in the interim that has caused the issue. The distro you are using is not "rolling release", so updates to the kernel are not as frequent (in order, paradoxically, to maintain stability). Your options, if this is indeed the cause of your problem, would therefore be :

- live with the problem and wait for an upcoming kernel update in Mint and hope that this resolves the issue

- try to identify the last version of the kernel under which everything worked normally (perhaps starting with the version installed with whatever media you used at the time ...), and downgrade to that version (assuming no dependency issues)

- upgrade to a more recent version of the kernel. You are on 4.4 and the current stable release is quite far ahead, 4.10.11-1 (... and 4.11 is due out this weekend, apparently). The issue may have been corrected somewhere along the way.

- identify the specific module or component that has changed that is causing the issue (more difficult) and try correcting that. This may involve recompiling the kernel, which is a task you may not feel comfortable with. ... Or it may involve certain workarounds that are simpler to implement (for example the suggestions given in the Ubuntu post I linked earlier).

In the end, it's up to you. The world of linux is a bit different than that of Windows. Neither are necessarily better or worse (... opinions vary), but linux does require a bit more of a "figure-it-out-and-do-it-yourself" mindset on the part of the user. Even this depends a lot on the distro you choose. You are using Mint, which is definitely one of the more "Windows-like" experiences, in my opinion, but it is still linux and that means you get all the advantages and challenges that come with it.

Personally, I've been using Arch for the last 7 years and I love it - your mileage may vary.

All this said, I hope you find this community (LinuxQuestions) helpful - please feel free to continue troubleshooting this issue or any other with us.

Cheers :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Automatically Resume from Suspend to Ram and Suspend to Disk to Save Battery in Linux LXer Syndicated Linux News 0 05-10-2013 02:40 AM
Waking up after suspend shuts down pc dive Linux - Kernel 1 05-27-2008 07:33 PM
laptop shuts down after suspend to ram dosnlinux Linux - Laptop and Netbook 4 11-03-2006 09:44 PM
ACPI shuts down after resume from suspend on SuSE 9.1 pmehta1613 Linux - Laptop and Netbook 0 01-18-2005 11:08 AM
Tablet shuts down on wake, only in battery mode. krisealv SUSE / openSUSE 0 12-26-2004 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration