Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2023, 12:21 PM   #1
yt587
Junior Member
yt587 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2023
Device: Kindle Paperwhite 3
Lightbulb Mag sensor (front cover) closed event

Hi there. I've got a PW3 with USBNetwork Hack installed. I am wondering if I can modify some docs/codes so that the mag sensor will stop triggering the screensaver?

The problem is that there is something wrong with my mg sensor, and the device goes to Screensaver even if there is no cover, i.e. it is naked. I cannot wake it up unless I press hard with my thumb on the bottom-right of the device, and its lights are on and last only for 3-4 seconds and then it goes to screensaver again. Pressing power button is not working. That's why I want to turn the mag sensor off and unlink it with the screensaver triggering event. I think there might be some configiure docs, but I am a newbie with no specific knowledge on coding. Could anyone help? Many thanks!

Here is the message log from /var/log/messages:
Code:
230701:150304 powerd[2004]: I def:magclose-frontcover::Mag sensor (front cover) closed event
230701:150304 powerd[2004]: I def:metrics::prg_name=powerd,prg_source=active_handle_mag_sensor,name=GoingToScreensaverDueToMagSensorClose,value=1
230701:150304 powerd[2004]: I def:statech:prev=ACTIVE, next=SCREEN SAVER:State change: ACTIVE -> SCREEN SAVER
230701:150304 powerd[2004]: I def:metrics::prg_name=powerd,prg_source=state_active_exit,name=DeviceActiveDuration,value=5632
230701:150304 powerd[2004]: I lipc:evts:name=goingToScreenSaver, origin=com.lab126.powerd, fparam=4:Event sent
230701:150304 powerd[2004]: I def:powerd:low_temp_state:g_is_screensaver_drawn = (1)

Last edited by yt587; 07-01-2023 at 12:22 PM. Reason: typo
yt587 is offline   Reply With Quote
Old 07-01-2023, 02:40 PM   #2
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,187
Karma: 3592925
Join Date: Sep 2014
Location: Ukraine
Device: Kindle
KOReader has an option to turn off the cover event.
hius07 is offline   Reply With Quote
Advert
Old 07-01-2023, 03:30 PM   #3
shamanNS
Wizard
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 1,133
Karma: 12345678
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
@yt587 There is also KUAL extension for that:


https://www.mobileread.com/forums/sh...d.php?t=328450

You should probably download the newer (1.3 on Github vs 1.2 as attachment here on Mobileread) version from Github (since it added support for PW5):

https://github.com/yparitcher/kindle-hall-sensor/
shamanNS is offline   Reply With Quote
Old 07-01-2023, 10:40 PM   #4
yt587
Junior Member
yt587 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2023
Device: Kindle Paperwhite 3
Thumbs up

Quote:
Originally Posted by shamanNS View Post
@yt587 There is also KUAL extension for that:


https://www.mobileread.com/forums/sh...d.php?t=328450

You should probably download the newer (1.3 on Github vs 1.2 as attachment here on Mobileread) version from Github (since it added support for PW5):

https://github.com/yparitcher/kindle-hall-sensor/
That's so cool! Thanks very much for your suggestions. It works perfectly on my device! Cool.
yt587 is offline   Reply With Quote
Old 02-20-2025, 11:07 PM   #5
Startling9
Junior Member
Startling9 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2025
Device: Kindle PW2, PW6
This works great on my PW2, any chance someone could update it so it will work on the PW6?
Startling9 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-650 using the touchscreen without the front cover. temuchin Sony Reader 4 12-05-2013 11:24 PM
PDF files get the front cover twice bferrin PDF 1 04-20-2012 03:59 AM
Touch Front cover only? rcrh Barnes & Noble NOOK 5 07-23-2011 02:19 AM
Adding a cover/front page Lynk Recipes 3 10-03-2010 06:14 PM
Protetive cover for the sensor and the screen? physics@war iRex 5 07-11-2009 03:54 PM


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


MobileRead.com is a privately owned, operated and funded community.