LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-19-2015, 03:22 AM   #1
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 42

Rep: Reputation: 8
SD Card not detected after hibernate.


I'm on Slackware 14.1 (default kernel 3.10.17-smp). My SD Host controller is:
Code:
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
Whenever I resume from the hibernate state (suspend to disk) I'm experiencing an issue related to my sdcard reader:
the insertion of the SD Card is not detected after the hibernation/resume cycle.
Instead, no issue with (suspend to ram)/resume cycle.

After resume, whenever I insert the sdcard into the slot, I can't get any message in /var/log/messages, too.

I've also tried to reload the following kernel modules, but unfortunately no success!
Code:
mmc_core, mmc_block, sdhci, sdhci_pci, b44, ssb.
Please, is there any workaround I could try? It'd be fine, if I could avoid to reboot!
 
Old 05-19-2015, 03:35 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,098

Rep: Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143
Just one question: was there a card in the reader (at the time of suspend/hibernation)?
 
Old 05-19-2015, 04:43 AM   #3
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 42

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by pan64 View Post
Just one question: was there a card in the reader (at the time of suspend/hibernation)?
No, it wasn't.

According to you suggestion, I've made a try by taking the following steps:
1. Reboot.
2. Insert the sd card into the card reader.
  1. the devices "/dev/mmcblk0" and "/dev/mmcblk0p1" have been correctly created.
  2. /var/log/messages correctly returns:
    Code:
    May 19 09:53:14 darkstar kernel: [  202.087779] mmc0: new high speed SDHC card at address 1234
    May 19 09:53:14 darkstar kernel: [  202.110985] mmcblk0: mmc0:1234 SA08G 7.41 GiB (ro)
    May 19 09:53:14 darkstar kernel: [  202.113193]  mmcblk0: p1
3. Hibernate the system with the card still into the slot and with the two existing nodes (mmcblk0 and mmcblk0p1) in /dev.
4. At the next resume, the same issue unfortunately occurs again: the card isn't detected, no more mmcblk0 and mmcblk0p1 in /dev and no output in /var/log/message.
 
Old 10-09-2016, 12:02 PM   #4
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 42

Original Poster
Rep: Reputation: 8
Smile Solved!

I want to resume this old thread just to mark it as solved because I finally could mount sd-cards again after hibernate!
Still on slackware 14.1, kernel 3.10.103-smp, removing and reloading the sdhci_pci kernel module solves the issue!
Code:
rmmod sdhci-pci
modprobe sdhci-pci
I hope it can be useful to someone else!
 
2 members found this post helpful.
Old 01-06-2017, 04:50 PM   #5
julien1001
LQ Newbie
 
Registered: Jan 2017
Posts: 1

Rep: Reputation: Disabled
Quote:
I hope it can be useful to someone else!
I had the same issue (same SD Host controller, same Slackware version, same result) and your solution worked. So yes, it was useful to someone!
Thank you very much!
 
1 members found this post helpful.
Old 01-08-2017, 03:31 PM   #6
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 42

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by julien1001 View Post
I had the same issue (same SD Host controller, same Slackware version, same result) and your solution worked. So yes, it was useful to someone!
Thank you very much!
Happy to read that!
 
  


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
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 10:21 AM
Cisco Aironet 350 card on Mandrake 10 Official: card detected but doesn't get IP amitram2001 Linux - Wireless Networking 4 09-19-2004 06:10 PM
RTL-8139 card left in bad state after Windows Hibernate andrewb758 Linux - Networking 3 06-25-2004 12:52 PM
Ethernet Card detected in one kernel is not detected in the other?? ashishuttarwar Linux - Hardware 14 06-15-2004 10:06 PM
agp graphics card detected as pci card Matthewrowland Linux - Hardware 1 08-22-2003 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration