PINE64
Proximity sensor dims screen - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: Proximity sensor dims screen (/showthread.php?tid=14505)



Proximity sensor dims screen - doidolinux - 07-24-2021

Hello Forum,

I had to change my screen and apparently lost the approximity sensor. Simultaneously I fired up Mobian on the internal storage.
When booting into it, the screen dims down after a couple seconds.

I would like to keep Mobian and found out that I have to disable the proximity sensor in the config files. Problem: I don't know how I can gain root access to the mounted phones storage (under Ubuntu).

Alternatively, I could also reinstall mobian having the proximity sensor disabled before. Unfortunately I also don't know how to do that.

If this is not mobian-specific enough, please let me know and I will delete the thread. Anyway, I would be very glad for any hint to solve this problem.
Thank you in advance


RE: Proximity sensor dims screen - henrythemouse - 07-24-2021

(07-24-2021, 10:51 AM)doidolinux Wrote: Hello Forum,

I had to change my screen and apparently lost the approximity sensor. Simultaneously I fired up Mobian on the internal storage.
When booting into it, the screen dims down after a couple seconds.

I would like to keep Mobian and found out that I have to disable the proximity sensor in the config files. Problem: I don't know how I can gain root access to the mounted phones storage (under Ubuntu).

Alternatively, I could also reinstall mobian having the proximity sensor disabled before. Unfortunately I also don't know how to do that.

If this is not mobian-specific enough, please let me know and I will delete the thread. Anyway, I would be very glad for any hint to solve this problem.
Thank you in advance

The best way to gain root access to the filesystem is to use ssh. This would allow you to use your desktop to access the phone's filesystem. You can also access the filesystem from a terminal app on your phone, using sudo to get root privileges.

If your not familiar with running ssh the Pine Wiki can help:

https://wiki.pine64.org/wiki/Guide:Connecting_to_your_device_with_SSH


RE: Proximity sensor dims screen - 8bit - 07-24-2021

Replacement screens don't come with the rubber shroud that covers the sensor. If it is automatically dimming all the time, it is because the sensor is seeing it's reflection from the glass. Look for the little black rubber boot on your old screen and transfer it to your new screen.


RE: Proximity sensor dims screen - doidolinux - 07-24-2021

Henry, Unfortunately, I cannot connect via ssh - it has been a fresh install and wireless could not be set up yet.

8bit, I must have lost it when I disassembled it (some time ago).


RE: Proximity sensor dims screen - 8bit - 07-24-2021

You can take it apart and cover the sensor with a tiny piece of black electrical tape. It is an infrared emitter/receiver pair. Just need to block the reflection from the glass bouncing back.


RE: Proximity sensor dims screen - tllim - 08-08-2021

(07-24-2021, 12:37 PM)doidolinux Wrote: Henry, Unfortunately, I cannot connect via ssh - it has been a fresh install and wireless could not be set up yet.

8bit, I must have lost it when I disassembled it (some time ago).

PM me your shipping address, I will send one rubber gasket to you using normal mail.


RE: Proximity sensor dims screen - doidolinux - 08-08-2021

@tllim 

Thanks! I just sent a pm.

This is then solved, although changing the config settings (disabling the prox. sensor) without any access (no wifi nor eth = no ssh, basically just usb mount) would have interested me as a beginner.
However, I am impressed by the pragmatic effort taken by Pine.

Thanks


RE: Proximity sensor dims screen - kqlnut - 08-08-2021

(08-08-2021, 03:14 AM)doidolinux Wrote: @tllim 

Thanks! I just sent a pm.

This is then solved, although changing the config settings (disabling the prox. sensor) without any access (no wifi nor eth = no ssh, basically just usb mount) would have interested me as a beginner.
However, I am impressed by the pragmatic effort taken by Pine.

Thanks

If you installed the OS in the internal storage, you could use Jumpdrive to mount your phone's storage on your computer. If the OS is on an SD card, it's as easy as sticking your SD card in your card reader. Then you will have access to your phone's root partition (and everything else) and you can edit whatever you want. Files owned by root on your phone can be edited just like files owned by root on your computer (i. e. use sudo).


RE: Proximity sensor dims screen - tllim - 08-09-2021

(08-08-2021, 03:14 AM)doidolinux Wrote: @tllim 

Thanks! I just sent a pm.

This is then solved, although changing the config settings (disabling the prox. sensor) without any access (no wifi nor eth = no ssh, basically just usb mount) would have interested me as a beginner.
However, I am impressed by the pragmatic effort taken by Pine.

Thanks

Just send out today using regular mail from California.