Fix to lock_screen

4 views
Skip to first unread message

Manoj Gudi

unread,
Feb 7, 2013, 1:31:38 PM2/7/13
to linux_o...@googlegroups.com
the lock screen code dint handle other inputs when it turned off screen, which meant, all the desktop widgets and items etc.. are clickable even when the screen is locked.. below is a tried and tested fix, its updated on git repo as well. hardly two liner


diff --git a/lock_screen.h b/lock_screen.h
index e676826..83a2dc5 100644
--- a/lock_screen.h
+++ b/lock_screen.h
@@ -11,12 +11,14 @@ int TOGGLE_SWITCH = 1;
 
 
 int turn_screen_off(){
+       system("rmmod ft5x_ts"); // Change the touch screen module "ft5x_ts" with proper module if this doesnt work
        int status = system("fbset -xres 0");
        return status;
 }
 
 
 int turn_screen_on(){
+       system("modprobe ft5x_ts")
        int status = system("fbset -xres 800");
        return status;
 }

isachin

unread,
Feb 7, 2013, 11:40:53 PM2/7/13
to Manoj Gudi, linux_o...@googlegroups.com
I think you r having a tablet with white covering, bcoz
those tablets has ft5x based touch. Later have 'goodix' and all the recent tablets have 'elan' touch.
 



--
You received this message because you are subscribed to the Google Groups "Linux-on-Aakash" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux_on_aaka...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Sachin

Manoj Gudi

unread,
Feb 7, 2013, 11:48:15 PM2/7/13
to isachin, linux_o...@googlegroups.com
correct, there's a small comment besides the fix that mentions this.
If you can tell me which modules those devices use i can replace ft5x_ts with that.
Reply all
Reply to author
Forward
0 new messages