View Single Post
polossatik's Avatar
Posts: 126 | Thanked: 23 times | Joined on Jan 2008
#7
Originally Posted by fanoush View Post
just to be sure you can see the status of the cover via
Code:
cat /sys/devices/platform/mmci-omap.1/mmc_host\:mmc0/cover_switch
cat /sys/devices/platform/mmci-omap.1/mmc_host\:mmc1/cover_switch
both should be 'closed', also what 'dmesg' says when you insert the card, nothing?
both give closed indeed,
dmesg gives nothing, I get a event for removing my headphone, then i'll add a SD card to the internal bay - no new entry. If I add the same card to the external i'll see new entry's

Code:
[14717.570312] EAC mode: play disabled, rec disabled
[14835.132812] cx3110x: PSM dynamic with 100 ms CAM timeout.
[15002.742187] headphone (GPIO 107) is now disconnected
[15002.812500] cx3110x: PSM dynamic with 200 ms CAM timeout.
[15122.835937] cx3110x: PSM dynamic with 100 ms CAM timeout.
[15186.187500] menelaus 1-0072: Setting voltage 'VDCDC3' to 3300 mV (reg 0x07, val 0x39)
[15186.210937] menelaus 1-0072: Shutting off 'VDCDC3'
[15186.367187] cx3110x: PSM dynamic with 200 ms CAM timeout.
[15192.437500] menelaus 1-0072: Setting voltage 'VDCDC3' to 3300 mV (reg 0x07, val 0x39)
[15192.460937] menelaus 1-0072: Setting voltage 'VDCDC3' to 2800 mV (reg 0x07, val 0x29)
[15192.789062] mmcblk0: mmc1:b368 SD    15694336KiB
[15192.789062]  mmcblk0: p1
[15198.523437] menelaus 1-0072: Setting voltage 'VDCDC3' to 2800 mV (reg 0x07, val 0x29)
edit: just for fun I restored the magnet in the cover, N800 refusese to start with cover open, started up and then opend / closed the cover (Sd card is inserted), dmesg:

Code:
[  185.523437] bat_cover (GPIO 110) is now open
[  185.531250] menelaus 1-0072: Setting voltage 'VMMC' to 3100 mV (reg 0x0a, val 0xf8)
[  185.554687] menelaus 1-0072: Shutting off 'VMMC'
[  188.468750] bat_cover (GPIO 110) is now closed
[  188.476562] menelaus 1-0072: Setting voltage 'VMMC' to 3100 mV (reg 0x0a, val 0xf8)
[  188.500000] mmci-omap mmci-omap.1: command timeout (CMD8)
[  188.507812] menelaus 1-0072: Shutting off 'VMMC'

Last edited by polossatik; 2008-02-04 at 14:40.