Re: [q] turn the screen on programmatically
So, after the marvellous ideas posted above I have a first, crude version. I don't know yet how much will suck your battery but I'm pretty excited and want to share it.
I know there are many things that should be improved like the commands that should not be in the loop because they are needed only once when the user locks the device (I tried hooking up to dbus-scripts lock event without success) but this is a first step. Also the backlight returns to 128 after unlocking and stays there whatever, but I haven't got around to that yet. Script must be run as root. When you lock your device a dim time shows up just like on the N9 (with a huge pixelated font, but anyway) Code:
while true |
Re: [q] turn the screen on programmatically
Nice start. You need to fix the LOCK= line in that code which I guess didn't copy and paste correctly. I tried using the dbus line to query lockstate from the wiki, but that always seems to return "unlocked" for me even when locked for both my N900s (could be something I've done, which I'll look into later). Anyway, I tried the middle part of the code over ssh and that's fine but the size of the time could be bigger.
|
Re: [q] turn the screen on programmatically
Yes, that's an error while copying from nano. Editing now. For the size change -s 10 to a number of your liking in the line starting with text2screen.
By the way after having the phone in my pocket for some time it started showing the time over the lockscreen, which is very nice because it shows the notifications too but I am trying to reproduce it some time now and I can't. |
Re: [q] turn the screen on programmatically
Quote:
|
Re: [q] turn the screen on programmatically
It seems that I overdid it and took care of things I shouldn't. This one works better, as it doesn't mess with default brightness settings
Code:
while true That's all for now. Time to go to bed. |
Re: [q] turn the screen on programmatically
Quote:
|
Re: [q] turn the screen on programmatically
Quote:
|
Re: [q] turn the screen on programmatically
Quote:
|
Re: [q] turn the screen on programmatically
Quote:
Edit: In fact, yes... it does work. I stripped the shell script to: Code:
#!/bin/sh Code:
[queen-beecon-header] |
Re: [q] turn the screen on programmatically
Another idea is to build images with imagemagick and have them displayed on the framebuffer with mplayer, so that icons, better fonts etc are possible. I'll look into it probably in the weekend
|
All times are GMT. The time now is 16:44. |
vBulletin® Version 3.8.8