libera/#maemo/ Sunday, 2020-10-25

siceloouch, my N900 stopped detecting camera door open state13:06
bencohisn't it just being slow?13:06
bencohI mean, it can "ignore" it sometimes13:06
Wizzupmight be able to do some cleaning13:06
siceloi'll look at it further a little later, but even reboot hasn't resulted in working camera detection13:11
bencoh:(13:12
sixwheeledbeastwhile true; do cat /sys/devices/platform/gpio-switch/cam_shutter/state; done13:14
KotCzarnycam door is a magnet13:15
KotCzarnymaybe it got weaker?13:15
KotCzarnydo you have spare backpanel?13:15
siceloKotCzarny: cam door is light sensor. magnet is the SD card present/cover sensor16:24
sicelodifferent back panel doesnt' change the situation16:24
KotCzarnyi have always though cam door was also magnet based16:25
KotCzarny*thought16:25
siceloit can't :) there would be too many magnetic fields to deal with, considering that all the magic is in the same area16:25
sicelothe other magnetic thing is the keyboard slide, since that's far from the camera mechanism16:26
sixwheeledbeasti always believed the cam_shutter was some light sensor part of the reason the back of the shutter had blue film too on I recall16:31
siceloyes16:31
sixwheeledbeastdid you try test above?16:31
sixwheeledbeastis it hardware?16:32
siceloyes, always "closed"16:32
sixwheeledbeasthmm16:32
siceloi believe it's h/w. guess my sensor has failed16:32
sixwheeledbeastisn't the cam on a little daughterboard? does that have some flex or connections? I honestly can't remember16:35
sicelothe daughterboard thing is sd card reader, iirc16:49
Maxdamantussicelo: in case you need a workaround to use the camera, you can do something like `echo open >/tmp/open && mount -o bind /tmp/open /sys/devices/platform/gpio-switch/cam_shutter/state`22:18
Maxdamantusthen `killall camera-ui omap3camd`22:19
sicelonice! will try that soonish22:20
siceloi recall you have kernel patches for something in fremantle, or was it for the back cover removal?22:21
sixwheeledbeastor maybe manually set file to "open" and make it 44422:21
MaxdamantusThat's for the mmc driver, so it doesn't cut access to the SD card when the back cover is open.22:21
Maxdamantus(doesn't affect what the rest of the system thinks about the gpio state, just disables that disabling behaviour in hsmmc)22:22
MaxdamantusI don't think writing "open" to the existing "state" file will work, since it's in input mode, not output.22:24
MaxdamantusSeems to just ignore it for me.22:24
Maxdamantusand it doesn't seem to let me set it to be an output.22:25
siceloyes. only the bind mount way seems to be working. thanks!22:26
sixwheeledbeastI have done 444 trick for things like cam button. the back cover wouldn't be open tho, only the shutter.22:30
* Maxdamantus doesn't see how that would work.22:34
MaxdamantusNormally, the kernel will just figure out the gpio state when you read from that file.22:34
MaxdamantusYou'd surely have to mount a regular file on top of it if you want it to behave like a regular file.22:35
Maxdamantusand if you do the mount thing, you're probably not going to have other userspace processes writing into it, so 444 shouldn't be necessary.22:37
bencohnice trick (mount -o bind)22:51
sixwheeledbeastmay need /disable to be ro too. as I say I have done this 444 trick to enable the cam_focus action while device is locked, which isn't normally possible. you can also do it to the proxy sensor but something in call-ui overrides/removes the 44423:02

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!