<sixwheeledbeast>
while true; do cat /sys/devices/platform/gpio-switch/slide/state; done
<sixwheeledbeast>
the above in a terminal will show the live state
_Chris_ has joined #neo900
<rhombus>
this is great!
<rhombus>
ok
<sixwheeledbeast>
usual bash Ctrl+C to kill
<rhombus>
the slider switch seems to be fine
<rhombus>
when it is open, it reads open, when it is closed, it reads closed
<rhombus>
so it must be the lockswitch, right?
<rhombus>
Is there any way to read that out?
<sixwheeledbeast>
possibly I have never tried because the screen would blank
<rhombus>
right, that does make it hard
<rhombus>
ok, I was just trying to use the phone via the display and it went blank :/
<sixwheeledbeast>
also the days of using my lockswitch are long gone
<rhombus>
you don't use your lockswitch? why not?
<sixwheeledbeast>
It's been completely flat for about 4 years so impractical to use. I have a way to use the camera button to lock
<rhombus>
ok, in the gpio-switch directory there is a kb_lock device. Could that be it?
<sixwheeledbeast>
yes. you may see the state on the display if you look at the screen quick enough
<sixwheeledbeast>
my wiki page also has proximity state and back cover if you need those.
<sixwheeledbeast>
maybe the tv out would show the display if locked I can't remember.
<rhombus>
I could dump the cat to a file
<sixwheeledbeast>
yep that too
<sixwheeledbeast>
but you have no timing to compare to
<rhombus>
I was just thinking about how I could timestamp it :)
<sixwheeledbeast>
You could look at dmesg too for these
<rhombus>
ah, yes!
<rhombus>
this is funny, now that I am watching this device, the problem has not reoccured.
<rhombus>
activating the lockswitch gives "closed" then "open"
<rhombus>
I'm guessing it shows "closed" only if the lockswitch is held depressed
<rhombus>
weird, it appears to be behaving again
<rhombus>
maybe all this opening and closing of slide and lockswitch cleaned something out?
<sixwheeledbeast>
well now you have the tools to debug in the future. you could also look in the logs history. i have never had the keyboard slider apart to know if thats possible
<rhombus>
ah ha
<rhombus>
I could reproduce it again
<rhombus>
In dmesg I get this: [9261.323791] kb_lock (GPIO 113) is now closed
<rhombus>
[9262.863067] kb_lock (GPIO 113) is now open
<rhombus>
[9262.894226] kb_lock (GPIO 113) is now closed
<rhombus>
that's 31 ms
<rhombus>
Maybe there is just some crap in the switch
<rhombus>
I do carry the phone in my pocket and there is considerable dust behind the battery plate.
<rhombus>
I might try some compressed air.
<rhombus>
But thanks for all the hardware device file tips, that is immensely helpful!
preview has joined #neo900
<rhombus>
sixwheeledbeast: thanks again for all your help, I appreciate it a lot!
<sixwheeledbeast>
np
rhombus has quit [Quit: KVIrc KVIrc Aria 5.0.0, revision: 2fe1a3bcac42349967e27b3f7098c25f34efca1d, build type: release, sources date: 20160102, built on: 2019-10-15 04:32:10 UTC http://www.kvirc.net/]
preview has quit [Quit: No Ping reply in 180 seconds.]