Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Ubuntu and SSD issue.


  • Please log in to reply
52 replies to this topic

#1 NickAu

NickAu

    Bleepin' Fish Doctor


  • Moderator
  • 13,685 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:05:46 AM

Posted 16 October 2014 - 10:19 PM

I have a strange issue with my Laptop running Linux on SSD.

 

Problem PC

Ubuntu 14.04 (trusty)
3.8.4 (Ubuntu 2014-03-17)
3.13.0-37-generic (#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014)
AMD A4-3305M APU with Radeon™ HD Graphics

SanDisk Ultra Plus 128 GiB SSD, SDSSDHP-128G

 

After installing Ubuntu 14.04 I have found that battery life on my PC while shut down ( yes you read that right) sux. The battery is fully charged when I shut the pc down, Over night I find it has been drained by about 20%,  If I fully charge the battery, and do not use the laptop for 4 days the battery is down to 17% charge.

 

Sure I hear you all say the battery is no good get a new 1. But no the battery is fine. How do I know? I have been testing this across 3 Hard Drives and 4 operating systems.

 

Same Issues with Kubuntu 14.04

 

Option 1 see above.

 

Option 2

 

No Issue

Ubuntu 14.04 (trusty)
3.8.4 (Ubuntu 2014-03-17)
3.13.0-37-generic (#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014)
AMD A4-3305M APU with Radeon™ HD Graphics

Hitachi HTS 54755

 

With this setup I can charge the battery, Leave my laptop for a week and the battery is down by 1 or 2%

 

Option3.

 

Same as option 1 and 2, Just that Windows 7 is installed, No unexpected battery drain.

 

Option 4

 

I have Puppy Linux on a USB, I can boot my pc up from USB, charge the battery shut down the pc, Again no problem.

 

I have tried sudo poweroff while using Ubuntu and still the same result. This only happens when I boot from SSD, I have checked all the settings and cant find anything amiss.

 

It seems that the PC is not shutting down With SSD in it ( No lights flash and the PC seems to be shut down.)

 

This issue has driven me mad to the point that I removed the SSD from the laptop and run a HDD in its place.

 

If anybody else is having this issue please let me know.

 

 

PS.

Regardless of Operating system, While booted I get normal battery life around 2 to 3 hours use, Only Puppy gives me longer battery life.

 

I even fully charged the battery took it out of the laptop for 2 weeks and only lost 3% charge.


Edited by NickAu1, 16 October 2014 - 10:30 PM.


BC AdBot (Login to Remove)

 


#2 Guest_Kaosu_*

Guest_Kaosu_*

  • Guests
  • OFFLINE
  •  

Posted 16 October 2014 - 11:01 PM

Measure Power

You should use PowerTOP to measure the actual power consumption between your configurations, which could give you a better picture of the underlying problem. I'm curious to see if there is an actual increase in power consumption when using your SSD. PowerTOP needs to be ran while on battery power (not plugged into the wall) if you want it to function correctly.

 

PowerTOP Installation:

sudo apt-get install powertop

PowerTOP Usage:

sudo powertop

Check SSD

It would also be worth the time to check the health information of the SSD. Since you said you have a copy of Windows 7, I would recommend using either CrystalDiskInfo or software from the drive vendor when checking on the health status of the drive. Honestly, it wouldn't hurt to use both.

Check Battery

It honestly wouldn't hurt to test the battery just to be on the safe side. Do the following in your working and failing Ubuntu configuration:

 

Battery Information:

upower -i /org/freedesktop/UPower/devices/battery_BAT0

You can verify that the battery is operating at the correct voltage, view the charge history, etc.

 

Installation Information

Did you happen to clone your Ubuntu installation from your HDD to your SSD? Cloning from a HDD to SSD can potentially cause issues because most modern operating systems will automatically apply SSD-specific post-installation settings if one is detected during the installation.


Edited by Kaosu, 16 October 2014 - 11:36 PM.


#3 NickAu

NickAu

    Bleepin' Fish Doctor

  • Topic Starter

  • Moderator
  • 13,685 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia

Posted 16 October 2014 - 11:10 PM

Hi Kaosu

 

Thank you for your reply.

 

Here is the output for the laptop with HDD,

No Issue

Ubuntu 14.04 (trusty)
3.8.4 (Ubuntu 2014-03-17)
3.13.0-37-generic (#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014)
AMD A4-3305M APU with Radeon™ HD Graphics

Hitachi HTS 54755

 

 

 

The battery reports a discharge rate of 18.0 W
The estimated remaining time is 2 hours, 26 minutes

Summary: 336.8 wakeups/second,  0.0 GPU ops/seconds, 0.0 VFS ops/sec and 14.0% C

                Usage       Events/s    Category       Description
             48.1 ms/s      80.3        Process        compiz
              1.5 ms/s      49.9        Process        [rcu_sched]
            575.2 µs/s      43.1        kWork          od_dbs_timer
              2.0 ms/s      28.4        Interrupt      [44] radeon
             10.9 ms/s      19.6        Process        /usr/lib/unity/unity-pane
              7.5 ms/s      15.7        Process        /usr/lib/x86_64-linux-gnu
             17.6 ms/s       9.8        Process        indicator-multiload
            691.4 µs/s      10.8        Process        syndaemon -i 1.0 -t -K -R
              5.9 ms/s       7.8        Process        gnome-terminal
            174.8 µs/s       8.8        kWork          ieee80211_iface_work
              1.8 ms/s       7.8        Process        [rcuos/1]
             11.1 ms/s       3.9        Process        /usr/bin/X -core :0 -seat
              0.7 ms/s       7.8        Timer          hrtimer_wakeup
             45.7 µs/s       6.9        kWork          radeon_unpin_work_func
 


Edited by NickAu1, 17 October 2014 - 12:30 AM.


#4 NickAu

NickAu

    Bleepin' Fish Doctor

  • Topic Starter

  • Moderator
  • 13,685 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:05:46 AM

Posted 16 October 2014 - 11:32 PM

The SSD output

 

Problem PC

Ubuntu 14.04 (trusty)
3.8.4 (Ubuntu 2014-03-17)
3.13.0-37-generic (#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014)
AMD A4-3305M APU with Radeon™ HD Graphics

SanDisk Ultra Plus 128 GiB SSD, SDSSDHP-128G

 

The battery reports a discharge rate of 17.7 W
The estimated remaining time is 2 hours, 18 minutes

Summary: 372.2 wakeups/second,  0.0 GPU ops/seconds, 0.0 VFS ops/sec and 14.2% C

                Usage       Events/s    Category       Description
             15.7 ms/s      83.2        Process        conky -d -c /home/nick/.c
             31.4 ms/s      66.6        Process        compiz
              1.2 ms/s      44.1        Process        [rcu_sched]
            501.3 µs/s      37.2        kWork          od_dbs_timer
              2.0 ms/s      26.4        Interrupt      [44] radeon
             33.2 ms/s       2.9        Process        /usr/bin/X -core :0 -seat
            695.3 µs/s      13.7        Process        syndaemon -i 1.0 -t -K -R
              5.5 ms/s       9.8        Process        gnome-terminal
            182.6 µs/s       9.8        kWork          ieee80211_iface_work
              4.7 ms/s       7.8        Process        /usr/lib/unity/unity-pane
             10.6 ms/s       4.9        Process        indicator-multiload
            527.0 µs/s       7.8        Interrupt      [6] tasklet(softirq)
              1.3 ms/s       6.9        Timer          tick_sched_timer
             11.3 ms/s       2.0        Process        powertop
 


Edited by NickAu1, 17 October 2014 - 12:31 AM.


#5 Guest_Kaosu_*

Guest_Kaosu_*

  • Guests
  • OFFLINE
  •  

Posted 16 October 2014 - 11:43 PM

The SSD output

 

The battery reports a discharge rate of 17.7 W
The estimated remaining time is 2 hours, 18 minutes

Summary: 372.2 wakeups/second,  0.0 GPU ops/seconds, 0.0 VFS ops/sec and 14.2% C

                Usage       Events/s    Category       Description
             15.7 ms/s      83.2        Process        conky -d -c /home/nick/.c
             31.4 ms/s      66.6        Process        compiz
              1.2 ms/s      44.1        Process        [rcu_sched]
            501.3 µs/s      37.2        kWork          od_dbs_timer
              2.0 ms/s      26.4        Interrupt      [44] radeon
             33.2 ms/s       2.9        Process        /usr/bin/X -core :0 -seat
            695.3 µs/s      13.7        Process        syndaemon -i 1.0 -t -K -R
              5.5 ms/s       9.8        Process        gnome-terminal
            182.6 µs/s       9.8        kWork          ieee80211_iface_work
              4.7 ms/s       7.8        Process        /usr/lib/unity/unity-pane
             10.6 ms/s       4.9        Process        indicator-multiload
            527.0 µs/s       7.8        Interrupt      [6] tasklet(softirq)
              1.3 ms/s       6.9        Timer          tick_sched_timer
             11.3 ms/s       2.0        Process        powertop
 

 

 

Hi Kaosu

 

Thank you for your reply.

 

Here is the output for the laptop with HDD,

 

 

The battery reports a discharge rate of 18.0 W
The estimated remaining time is 2 hours, 26 minutes

Summary: 336.8 wakeups/second,  0.0 GPU ops/seconds, 0.0 VFS ops/sec and 14.0% C

                Usage       Events/s    Category       Description
             48.1 ms/s      80.3        Process        compiz
              1.5 ms/s      49.9        Process        [rcu_sched]
            575.2 µs/s      43.1        kWork          od_dbs_timer
              2.0 ms/s      28.4        Interrupt      [44] radeon
             10.9 ms/s      19.6        Process        /usr/lib/unity/unity-pane
              7.5 ms/s      15.7        Process        /usr/lib/x86_64-linux-gnu
             17.6 ms/s       9.8        Process        indicator-multiload
            691.4 µs/s      10.8        Process        syndaemon -i 1.0 -t -K -R
              5.9 ms/s       7.8        Process        gnome-terminal
            174.8 µs/s       8.8        kWork          ieee80211_iface_work
              1.8 ms/s       7.8        Process        [rcuos/1]
             11.1 ms/s       3.9        Process        /usr/bin/X -core :0 -seat
              0.7 ms/s       7.8        Timer          hrtimer_wakeup
             45.7 µs/s       6.9        kWork          radeon_unpin_work_func

 

Since the difference in the power consumption between both configurations is so minimal, it does not raise any alarms. I have seen similar differences when running PowerTOP on the same machine two different times.

 

P.S. I edited my original post to be much more helpful. Please review the modified post for further assistance.


Edited by Kaosu, 16 October 2014 - 11:53 PM.


#6 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:46 AM

Posted 16 October 2014 - 11:54 PM

Didn't know you used Win-Dozey :nono:

 

Cat's pretty good on SSDs, isn't he?

 

Just passing by, good luck mate, I'll leave you & Kaosu to nut it out.

 

Keep Smilin' :wink:

 

Wizard

BTW - Can you squeeze some more into your profile? - didn't know about the HP Pavlova

BTW2 - I have to update mine when I start Linuxing the wife's laptop. Profiles - "It's a living thing" (Electric Light Orchestra)



#7 NickAu

NickAu

    Bleepin' Fish Doctor

  • Topic Starter

  • Moderator
  • 13,685 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia

Posted 16 October 2014 - 11:56 PM

 

Since you said you have a copy of Windows 7

I would have to reinstall Windows for that.

 

 

It would also be worth the time to check the health information of the SSD

Not that it matters, The SSD is 3 months old.

 

 

 

Check Battery

It honestly wouldn't hurt to test the battery just to be on the safe side. Do the following in your working and failing Ubuntu configuration:

 

Battery Information:

upower -i /org/freedesktop/UPower/devices/battery_BAT0

You can verify that the battery is operating at the correct voltage, view the charge history, etc.

 

This is the output for the SSD.

Problem PC

Ubuntu 14.04 (trusty)
3.8.4 (Ubuntu 2014-03-17)
3.13.0-37-generic (#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014)
AMD A4-3305M APU with Radeon™ HD Graphics

SanDisk Ultra Plus 128 GiB SSD, SDSSDHP-128G

 

 

nick@Unimatrix-2:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               Hewlett-Packard
  model:                Primary
  power supply:         yes
  updated:              Fri 17 Oct 2014 15:44:13 EST (27 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              37.3248 Wh
    energy-empty:        0 Wh
    energy-full:         45.9648 Wh
    energy-full-design:  45.9648 Wh
    energy-rate:         16.74 W
    voltage:             11.585 V
    time to empty:       2.2 hours
    percentage:          81%
    capacity:            100%
    technology:          lithium-ion
  History (charge):
    1413521019    81.000    discharging
    1413521017    0.000    unknown
  History (rate):
    1413521053    16.740    discharging
    1413521023    26.816    discharging
    1413521021    29.732    discharging
    1413521019    25.661    discharging
    1413521017    0.000    unknown

 

 

 

Did you happen to clone your Ubuntu installation from your HDD to your SSD?

No It's a clean install each time using the default installer.

 

Like I said the battery holds charge fine unless I have Ubuntu on SSD and shut down. It's almost as if Ubuntu is not shutting down, There are no lights flashing on the pc not even every hour ( I watched it for 3 hours), It's almost like the laptop only hibernates or sleeps in Windows terms.

 

 

The HDD output.

No Issue

Ubuntu 14.04 (trusty)
3.8.4 (Ubuntu 2014-03-17)
3.13.0-37-generic (#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014)
AMD A4-3305M APU with Radeon™ HD Graphics

Hitachi HTS 54755

 

nick@UniMatrix-1:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               Hewlett-Packard
  model:                Primary
  power supply:         yes
  updated:              Fri 17 Oct 2014 16:24:26 EST (13 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              40.0896 Wh
    energy-empty:        0 Wh
    energy-full:         45.9648 Wh
    energy-full-design:  45.9648 Wh
    energy-rate:         14.0616 W
    voltage:             11.899 V
    time to empty:       2.9 hours
    percentage:          87%
    capacity:            100%
    technology:          lithium-ion
  History (charge):
    1413523406    87.000    charging
  History (rate):
    1413523466    14.062    unknown
    1413523463    14.440    discharging
    1413523461    13.781    charging
    1413523460    13.856    charging
    1413523443    14.396    discharging
    1413523440    14.580    discharging
    1413523439    21.859    discharging
    1413523406    22.763    charging
 

 

Edit

 

Remember this is also happening when I install Kubuntu on this laptop as described above.


Edited by NickAu1, 17 October 2014 - 12:33 AM.


#8 Guest_Kaosu_*

Guest_Kaosu_*

  • Guests
  • OFFLINE
  •  

Posted 17 October 2014 - 12:43 AM

I thought you already had a copy of Windows 7 installed. The only reason I even suggested the vendor software was because it is an easier way to check on the drive. However, you could post the S.M.A.R.T. data of the drive here using Gnome Disk Utility.

 

Installation:

sudo apt-get install gnome-disk-utility

Since the laptop is functioning correctly when using Windows 7 and while actually running Ubuntu, I seriously doubt there is anything wrong with your SSD or battery. In reality, all of our tests so far indicate that the battery and drive are working just fine.

 

Like I said the battery holds charge fine unless I have Ubuntu on SSD and shut down. It's almost as if Ubuntu is not shutting down, There are no lights flashing on the pc not even every hour ( I watched it for 3 hours), It's almost like the laptop only hibernates or sleeps in Windows terms.

 

 

I actually install Ubuntu on a lot of different laptops, almost all with SSD's, and I have never encountered this problem. 

 

I'm sorry I couldn't solve your issue. Please come back and let me know if you do find a solution.


Edited by Kaosu, 17 October 2014 - 12:57 AM.


#9 NickAu

NickAu

    Bleepin' Fish Doctor

  • Topic Starter

  • Moderator
  • 13,685 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:04:46 AM

Posted 17 October 2014 - 12:45 AM

 

Didn't know you used Win-Dozey

I don't, I installed it just to test out a theory. And I was right Windows on SSD no battery drain issue.

 

 

BTW - Can you squeeze some more into your profile?

I could I guess, But wont.

 

 

- didn't know about the HP Pavlova

I do not know why some people don't like them I have had this G6 since new and this is the only complaint I have, And it only started when I went to SSD, on the HDD it's fine.



#10 cat1092

cat1092

    Bleeping Cat


  • BC Advisor
  • 7,018 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:North Carolina, USA
  • Local time:05:46 AM

Posted 17 October 2014 - 12:50 AM

I'm wondering if the problem notebook is performing a full shutdown, given that the battery is draining so fast. Kind of like the way that Windows 8/8.1 computers are setup out of the box. The power is going somewhere, and the first place to start checking is the obvious. 

 

It just may be, that the OS is installing to conform to these specs, and what may appear to be a total shutdown may not be. UEFI options may confirm this, so would ensuring that hibernation is totally disabled. This is as critical to SSD life as the battery. 

 

When running, normally a SSD will provide longer battery life, even in recommended high performance mode, no moving parts involved. 

 

Is this the one with the 16GiB Swap partition? 

 

Cat


Performing full disc images weekly and keeping important data off of the 'C' drive as generated can be the best defence against Malware/Ransomware attacks, as well as a wide range of other issues. 


#11 NickAu

NickAu

    Bleepin' Fish Doctor

  • Topic Starter

  • Moderator
  • 13,685 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia

Posted 17 October 2014 - 01:09 AM

255rn0x.png

15fpx6u.png

nvpr7n.png

 

 

I'm wondering if the problem notebook is performing a full shutdown, given that the battery is draining so fast

That is exactly what is happening, or not happening.

 

 

UEFI options may confirm this

Hasn't got UFEI

 

 

I'm sorry I couldn't be more help. Please come back and let me know if you do find a solution so I can use the knowledge to better help people in the future

 

Thank you for helping. 


Edited by NickAu1, 17 October 2014 - 01:12 AM.


#12 cat1092

cat1092

    Bleeping Cat


  • BC Advisor
  • 7,018 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:North Carolina, USA
  • Local time:05:46 AM

Posted 17 October 2014 - 01:11 AM

 

 

Didn't know you used Win-Dozey 

Nothing wrong with using Windows, so long as no transactions are made on the OS. I've been running the Windows Technical Preview a lot as of late, but have slowed down. Plus I'm in the midst of swapping things around, have only one Linux Mint install at the moment....hopefully that will be fixed today. 

 

Windows 10 is going to be a supercharged Windows 7, there will be no doubt about that. 

 

 

 

Cat's pretty good on SSDs, isn't he?

 

I'm good at setting these up & maintaining, especially on Windows. Have only recently began to run Linux Mint on SSD's. In fact, had a Topic about it not too long before you arrived. Four (4) re-installs in a single day. 

 

It's a bit different on Linux as to setting up a SSD properly, before & after the install. But not overly complicated. The next time I install one to SSD, will install only the main partition to it, /home & Swap will be on a HDD. This way I can run VM's w/out excessive wear. Consumer grade SSD's are different from enterprise, much watered down, not only does wear become an issue, but enterprise models are fast as greased lightening & tough as nails. Some runs up to 2GiB/sec & are 8GiB in size, and there are 16GiB ones scheduled for release in late 2015/early 2016 by SanDisk. 

 

And that's an example of the watering down effect alone, many enthusiasts wouldn't touch a SanDisk SSD, most of these are low rated models, with two exceptions (the Ultra Plus & Extreme are their best consumer models). It's the enterprise where SanDisk makes their cash on SSD's. 

 

Cat


Edited by cat1092, 17 October 2014 - 01:33 AM.

Performing full disc images weekly and keeping important data off of the 'C' drive as generated can be the best defence against Malware/Ransomware attacks, as well as a wide range of other issues. 


#13 cat1092

cat1092

    Bleeping Cat


  • BC Advisor
  • 7,018 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:North Carolina, USA
  • Local time:02:46 PM

Posted 17 October 2014 - 01:20 AM

Nick, sometimes there are no descriptions on certain values on Windows also, in itself, that's no cause for alarm. 

 

I see that the notebook has been powered on for nearly three days, yet I believe you went to work during part of this time (maybe the beginning). It looks like hibernation is kicking in, rather than shutdown. 

 

Check out section 2.4 on this page, it relates to the disabling of hibernation. 

 

https://sites.google.com/site/easylinuxtipsproject/mint-cinnamon-first

 

Cat


Performing full disc images weekly and keeping important data off of the 'C' drive as generated can be the best defence against Malware/Ransomware attacks, as well as a wide range of other issues. 


#14 NickAu

NickAu

    Bleepin' Fish Doctor

  • Topic Starter

  • Moderator
  • 13,685 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:05:46 AM

Posted 17 October 2014 - 01:30 AM

 

I see that the notebook has been powered on for nearly three days,

that is the total usage hours of the SSD since install of Ubuntu only a few days ago.

 

And yes now you mention it it was 2 days ago I installed Ubuntu. So yes if the pc is not shutting down correctly that number would be correct.

 

 

It looks like hibernation is kicking in, rather than shutdown.

I will look at that again.

 

 

I do not sleep or hibernate my pc I shut it down the normal way, or use sudo poweroff.

 

 

Is this the one with the 16GiB Swap partition?

No that's the desktop.

 

The problem is my HP laptop.

 

I will try disabling hibernate and report back.


Edited by NickAu1, 17 October 2014 - 01:35 AM.


#15 Guest_Kaosu_*

Guest_Kaosu_*

  • Guests
  • OFFLINE
  •  

Posted 17 October 2014 - 01:44 AM

Nick, your drive is fine. I don't see anything wrong with the S.M.A.R.T data provided.

 

Nick, sometimes there are no descriptions on certain values on Windows also, in itself, that's no cause for alarm. 

 

I see that the notebook has been powered on for nearly three days, yet I believe you went to work during part of this time (maybe the beginning). It looks like hibernation is kicking in, rather than shutdown. 

 

Check out section 2.4 on this page, it relates to the disabling of hibernation. 

 

https://sites.google.com/site/easylinuxtipsproject/mint-cinnamon-first

 

Cat

 

The power-on hours value only represents the total length of time a device has had power applied to it.

 

 it is hard for me to believe that Ubuntu would be hibernating when using the poweroff command, though.


Edited by Kaosu, 17 October 2014 - 01:49 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users