Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] HDD is shut down after unplug AC cable in notebook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
prolog-in
n00b
n00b


Joined: 21 Dec 2017
Posts: 18

PostPosted: Fri Nov 23, 2018 12:17 am    Post subject: [SOLVED] HDD is shut down after unplug AC cable in notebook Reply with quote

Hello.

The problem is, when I disconnect the A/C power plug, it takes a few seconds but my system freezes completely. Further investigation revealed that the problem is probably that HDD is being shutting down.

Sometimes I can recover the system plugging back the A/C, by this way I've been able to get the following log:

Code:
[ 1829.063118] ata1.00: exception Emask 0x0 SAct 0x3e000003 SErr 0x50000 action 0x6
[ 1829.063122] ata1.00: waking up from sleep, waking up from sleep, waking up from sleep, waking up fro
[ 1829.063127] ata1: SError: { PHYRdyChg CommWake }
[ 1829.063136] ata1: hard resetting link
[ 1829.378021] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1829.379448] ata1.00: configured for UDMA/133
[ 1829.379555] ata1: EH complete
[ 1837.503201] ata1.00: exception Emask 0x0 SAct 0x400000 SErr 0x50000 action 0x6
[ 1837.503204] ata1.00: waking up from sleep
[ 1837.503209] ata1: SError: { PHYRdyChg CommWake }
[ 1837.503218] ata1: hard resetting link
[ 1837.817766] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1837.819224] ata1.00: configured for UDMA/133
[ 1837.819290] ata1: EH complete
[ 1858.843205] ata1.00: exception Emask 0x0 SAct 0x40 SErr 0x50000 action 0x6
[ 1858.843209] ata1.00: waking up from sleep
[ 1858.843213] ata1: SError: { PHYRdyChg CommWake }
[ 1858.843222] ata1: hard resetting link
[ 1859.157396] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1859.158848] ata1.00: configured for UDMA/133
[ 1859.158920] ata1: EH complete
[ 1874.271190] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1874.271451] sd 0:0:0:0: [sda] Stopping disk
[ 1874.313371] EXT4-fs (sda6): re-mounted. Opts: data=ordered,commit=600
[ 1874.332419] EXT4-fs (dm-2): re-mounted. Opts: data=ordered,commit=600
[ 1874.342171] EXT4-fs (dm-3): re-mounted. Opts: data=ordered,commit=600
[ 1874.388340] EXT4-fs (dm-0): re-mounted. Opts: data=ordered,commit=600
[ 1887.818774] EXT4-fs (sda6): re-mounted. Opts: data=ordered,commit=0
[ 1887.849363] EXT4-fs (dm-2): re-mounted. Opts: data=ordered,commit=0
[ 1888.109337] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1888.110530] ata1.00: configured for UDMA/133
[ 1888.433420] ata2: SATA link down (SStatus 4 SControl 300)
[ 1890.435385] EXT4-fs (dm-3): re-mounted. Opts: data=ordered,commit=0
[ 1890.453623] EXT4-fs (dm-0): re-mounted. Opts: data=ordered,commit=0
[ 1890.578049] sd 0:0:0:0: [sda] Starting disk


This contains the beginning to the end, afaik.

This problem started since I've been using Gentoo. I've tried:
1. Changing desktop environment and not using any desktop environment at all
2. Turning off opportunistic sleep in kernel's config
3. Turning off laptop mode

This is my emerge --info:

https://bpaste.net/show/ef824ed63f58

And this is my kernel config:
https://bpaste.net/show/14c9042c0f4f

Now I've ran out of ideas, can I get some help?


Last edited by prolog-in on Fri Nov 23, 2018 8:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 420

PostPosted: Fri Nov 23, 2018 1:02 am    Post subject: Reply with quote

Is it a Dell laptop?
Back to top
View user's profile Send private message
Polynomial-C
Developer
Developer


Joined: 01 Jun 2003
Posts: 1422
Location: germany

PostPosted: Fri Nov 23, 2018 3:05 pm    Post subject: Reply with quote

Do you have app-laptop/laptop-mode-tools installed? If yes, this might be a problem with the tools.

You might be able to fix it by setting this:
Code:
# grep -F CONTROL_INTEL_SATA_POWER /etc/laptop-mode/conf.d/intel-sata-powermgmt.conf
CONTROL_INTEL_SATA_POWER="0"

_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
prolog-in
n00b
n00b


Joined: 21 Dec 2017
Posts: 18

PostPosted: Fri Nov 23, 2018 8:37 pm    Post subject: Reply with quote

Maitreya wrote:
Is it a Dell laptop?

Yes it is
Back to top
View user's profile Send private message
prolog-in
n00b
n00b


Joined: 21 Dec 2017
Posts: 18

PostPosted: Fri Nov 23, 2018 8:40 pm    Post subject: Reply with quote

Polynomial-C wrote:
Do you have app-laptop/laptop-mode-tools installed? If yes, this might be a problem with the tools.

You might be able to fix it by setting this:
Code:
# grep -F CONTROL_INTEL_SATA_POWER /etc/laptop-mode/conf.d/intel-sata-powermgmt.conf
CONTROL_INTEL_SATA_POWER="0"


You are unbelievably, thank a f lot!
I have this notebook for one year and this whole time I was not able to use battery well.

Is there anyway to use this feature properly?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum