Reply
Thread Tools
Posts: 7 | Thanked: 2 times | Joined on Aug 2010 @ Glasgow, Scotland
#11
Thanks JonWW, looks like something else is wrong!

On opening the back cover I see:

Code:
21:14:15.893: bme property battery.voltage.current = 3877 (0xf25)
21:14:15.949: bme property battery.reporting.current = 821 (0x335)
21:14:45.582: platform_kb_lock property button.state.value = false
21:14:45.697: platform_kb_lock condition ButtonPressed = cover
21:14:45.699: platform_kb_lock property button.state.value = false
21:14:45.795: platform_kb_lock condition ButtonPressed = cover
No corresponding "true" values when I replace the cover, though. Should that be the case?

The card still doesn't appear in the file manager after using gconftool-2.

@JonWW: Thanks, but getting similar output:

Code:
mkfs.vfat 2.11 (12 Mar 2005)
/dev/mmcblk1p1: No such file or directory
I suspect my SD card is faulty after all...

Last edited by owenglasgow; 04-14-2011 at 04:19 PM.
 

The Following User Says Thank You to owenglasgow For This Useful Post:
JonWW's Avatar
Posts: 623 | Thanked: 283 times | Joined on Jan 2010 @ UK
#12
lshal -m outputs
Open backcover with MMC
Code:
platform_mmci_omap_hs_0_mmc_host property button.state.value = false
platform_mmci_omap_hs_0_mmc_host condition ButtonPressed = cover
platform_mmci_omap_hs_0_mmc_host_mmc_card_rca54613 removed
volume_uuid_B019_9D68 removed
platform_mmci_omap_hs_0_mmc_host_mmc_card_rca54613_storage_mmc_sd_mmc removed
Close backcover with MMC
Code:
platform_mmci_omap_hs_0_mmc_host property button.state.value = true
platform_mmci_omap_hs_0_mmc_host condition ButtonPressed = cover
platform_mmci_omap_hs_0_mmc_host_mmc_card_rca54613 added
platform_mmci_omap_hs_0_mmc_host_mmc_card_rca54613_storage_mmc_sd_mmc added
volume_uuid_B019_9D68 added
volume_uuid_B019_9D68 property volume.mount_point = '/media/mmc1'
volume_uuid_B019_9D68 property volume.is_mounted = true
Open backcover without MMC
Code:
platform_mmci_omap_hs_0_mmc_host property button.state.value = false
platform_mmci_omap_hs_0_mmc_host condition ButtonPressed = cover
Close backcover without MMC
Code:
platform_mmci_omap_hs_0_mmc_host property button.state.value = true
platform_mmci_omap_hs_0_mmc_host condition ButtonPressed = cover
From your output I would say you have lost the tiny magnet from the back cover as hal isn't reporting the removal/replacement of the back cover.

Having just re-checked the gconftool commands, they work fine with the backcover on but don't work when the cover is off. I found these long ago and thought they worked, maybe they did in PR1.2
Sorry about that.

If I were you I'd get on ebay and buy a new backcover.
 

The Following 2 Users Say Thank You to JonWW For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Mar 2012
#13
Originally Posted by JonWW View Post
Check that the tiny magnet hasn't come off the inside of the back cover, this is what normaly happens.

If you don't know where to look, does the camera work? or in XTerm type
Code:
lshal -m
and open the back cover without pressing to many buttons, you should see some mmc stuff appear on the screen.

or

Try entering these commands in XTerm, you might have to be root

Make the card appear in the file manager:
Code:
gconftool-2 -s -t bool /system/osso/af/internal-mmc-device-present true
gconftool-2 -s -t bool /system/osso/af/mmc-cover-open false
gconftool-2 -s -t bool /system/osso/af/internal-mmc-cover-open false
gconftool-2 -s -t bool /system/osso/af/mmc-device-present true
and disappear:

i wrote this code on xterminal.. nd i can nw easily view my memory card in the file manager.. but i want to know why my n900 was nt able to detect the card earlier?? why wrting this code was necessary?
Code:
gconftool-2 -s -t bool /system/osso/af/internal-mmc-device-present false
gconftool-2 -s -t bool /system/osso/af/mmc-cover-open true
gconftool-2 -s -t bool /system/osso/af/internal-mmc-cover-open true
gconftool-2 -s -t bool /system/osso/af/mmc-device-present false
If that doesn't work something else is wrong!
when i wrote the appear code in the xterminal i was able to c the memory card in the filemanager.. but i want to know y my n900 didnt detect the mmc earlier...?

Last edited by david007; 03-22-2012 at 07:32 AM. Reason: editing
 
Posts: 12 | Thanked: 1 time | Joined on Jan 2010
#14
It seems that the kernel code checking the back cover and disabling the mmc is here:

http://lxr.free-electrons.com/source...t/omap_hsmmc.c

Does someone more knowledgable than me can give a hint if there is a kernel boot parameter or some other way to fake the kernel into assuming the cover is closed?

On one of my n900s the sensor is broken (magnet still there, gconf hack does not work).
 
pichlo's Avatar
Posts: 1,563 | Thanked: 2,968 times | Joined on Sep 2012 @ UK
#15
I fixed mine with a tiny (about 2x3 mm) cut from a flexible sheet magnet like one of those used on fridge magnets. You may need to experiment a little with the position and orientation (polarity). Turning the magnet one way triggered a flood of messages from lshal while turning it the other way did not.
 

The Following User Says Thank You to pichlo For This Useful Post:
Posts: 70 | Thanked: 17 times | Joined on Apr 2012 @ Mumai,India
#16
I tried the gconf script on my N900 and it still isnt detecting the card.Actually ,even the magnet is in its place and yet I count mount my sd card or use it.
Also,another weird problem is that my phone WON'T BOOT with the sdcard in it,and if I do insert the sdcard after booting,then it wont get detected.I have tried this with multiple memory cards....
 
Posts: 77 | Thanked: 50 times | Joined on Dec 2007 @ Chester, CA
#17
Man this issue was driving me crazy, sd card worked find through several card readers on my pc, checkdisk turned up no errors, re-partitioned and formatted, etc.

Finally i found this thread, and realized i had the old cover from my backup n900 on my main unit, and the magnet was missing. Swapped out back covers, and problem solved.

Thanks
 
Posts: 4 | Thanked: 20 times | Joined on May 2013 @ the Netherlands
#18
I have exactly the same problems. A few months ago I accidentally dropped my N900 in a hurry and since that moment the Camera app opens up on random moments. At first I wasn't aware that it had started just after I dropped it, but the next weekend when I was trying to boot Nemo on my N900, after hours of trying and thinking about why it wouldn't boot (I kept getting kernel panics due to a missing rootfs, which is on the SD card) I finally realized that the drop must have caused the problems. I checked my back cover and phone and all magnets are perfectly in place, I tried various strong magnets but nothing helped: it kept reporting that the back cover was open while it was mounted. I also think my 'magnet sensor' is broken.

I just tried the gconf commands, but it didn't have any effect, the SD card didn't show up in the file manager. I also ran the some commands another time as root, but that didn't work either.
 
Reply

Tags
backcover, missing magnet

Thread Tools

 
Forum Jump


All times are GMT -4. The time now is 06:11 PM.