01-24-2016, 11:26 PM
Hi tllim,
I'm very interested in it!
Best regards
Julian
I'm very interested in it!
Best regards
Julian
How to turn off and wake up display?
|
01-24-2016, 11:26 PM
Hi tllim,
I'm very interested in it! Best regards Julian
01-25-2016, 01:56 AM
01-28-2016, 09:49 AM
(01-24-2016, 01:39 PM)JulianM Wrote: Hi Zoidiano0, Most capacitive touch panels have an I2C interface and don't require any CPU resources other than an active IRQ to monitor touch events. It's possible to put the CPU to sleep and leave the touch panel active with the touch panel's IRQ set to wake up the CPU on touch activity by calling enable_irq_wake(). The Solomon Systech driver here: https://github.com/patrickhwood/linux/bl.../ssd2543.c sets up the touch panel to wake up the android system on a touch interrupt.
01-28-2016, 04:13 PM
(01-28-2016, 09:49 AM)patrickhwood Wrote:(01-24-2016, 01:39 PM)JulianM Wrote: Hi Zoidiano0, Bingo, the TP (Touch Panel) port is a dedicated I2C with interrupt circuit.
01-28-2016, 11:52 PM
That sounds great!
Will this feature be implemented into Android?
01-29-2016, 09:10 AM
(01-28-2016, 11:52 PM)JulianM Wrote: That sounds great! Which feature? Wake on touch? Depends on the touch panel that's used, whether the driver source is available, whether the panel's datasheet is available, and whether anyone wants to implement it. Also, even though the cpu is sleeping, the touch panel's controller continues to run. The Solomon Systech controller drew about 10ma when set to a slow scan rate of 100ms.
i found this code in the /liche/linux3.10/drivers/input/touchscreen/tsc2007.c file in the file liche_A64_5.1_V1
static int tsc2007_open(struct input_dev *input_dev) { struct tsc2007 *ts = input_get_drvdata(input_dev); int err; ts->stopped = false; mb(); enable_irq(ts->irq); /* Prepare for touch readings - power down ADC and enable PENIRQ */ err = tsc2007_xfer(ts, PWRDOWN); if (err < 0) { tsc2007_stop(ts); return err; } return 0; } and this code in the file provided by @patrickhwood static void ssd2543_ts_early_suspend(struct early_suspend *early_s) { unsigned char buf[4]={0}; int i; struct ssl_ts_priv *ts = container_of(early_s, struct ssl_ts_priv, early_suspend); dev_info(&ts->client->dev, "%s\n", __func__); ts->suspended = true; // write Suspend commands to touch IIC for (i = 0; i < sizeof(Suspend)/sizeof(Suspend[0]); i++) { buf[0] = Suspend[i].Data1; buf[1] = Suspend[i].Data2; ssd_i2c_write(ts->client, Suspend[i].Reg, buf, Suspend[i].No); } // enable system wakeup on the touch panel's IRQ enable_irq_wake(ts->irq); } i think that its a way to implement this on our board the good think is that, the hole android source is available | link: http://www.cnx-software.com/2015/12/10/a...urce-code/
By. Zoidiano0!
Installed: LAMP: Linux , Apache2.4 , Mariadb, phpMyadmin, PHP5 Java 8 arm by oracle Netbeans 8.1 chromium (uses way toooo much Ram) Pine64 Head Unit Project.! (01-24-2016, 05:23 PM)tllim Wrote:(01-24-2016, 02:43 PM)T_ech Wrote: Hey tllim, when is this power and reset button circuit on the store here, or do I just buy it online somewhere, if I do buy it online somewhere, do you have a specific brand or exact product you would recommend? Hi tllim, how about adding them as an add-on on Backerkit so that we can get it free for those who want it from the stretch goals?
02-02-2016, 10:36 PM
(02-02-2016, 09:32 PM)SkimMilk Wrote:(01-24-2016, 05:23 PM)tllim Wrote:(01-24-2016, 02:43 PM)T_ech Wrote: Hey tllim, when is this power and reset button circuit on the store here, or do I just buy it online somewhere, if I do buy it online somewhere, do you have a specific brand or exact product you would recommend? We already order one batch of push button and will include into all KS pledge as stretch goal :-) Hopefully the push button will arrive on time when we start deploy out the KS shipment.
02-02-2016, 10:44 PM
(02-02-2016, 10:36 PM)tllim Wrote:(02-02-2016, 09:32 PM)SkimMilk Wrote:(01-24-2016, 05:23 PM)tllim Wrote:(01-24-2016, 02:43 PM)T_ech Wrote: Hey tllim, when is this power and reset button circuit on the store here, or do I just buy it online somewhere, if I do buy it online somewhere, do you have a specific brand or exact product you would recommend? That's great! I was still hunting the button u posted in the other thread. Hope we'll be able to get the buttons! (I think I will, since mine's the March batch) And I think it'll be good if this information is posted somewhere (maybe in the next ks update?) |
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Android 6.0 How to turn the screen back on | modsbyus | 4 | 6,021 |
11-28-2017, 01:03 PM Last Post: modsbyus |
|
display problem | florianl | 6 | 7,864 |
06-11-2016, 10:12 AM Last Post: kiko |
|
turn off display after inactivity | Blindstealer | 3 | 5,394 |
06-05-2016, 05:18 AM Last Post: dkryder |
|
Wake on LAN (WOL) | Tarjei85 | 2 | 4,185 |
05-20-2016, 04:36 PM Last Post: Tarjei85 |
|
Anyone seeing occasional display stuttering? | rakib-hasan | 2 | 3,663 |
04-29-2016, 05:43 AM Last Post: tkaiser |
|
Display too large for TV | slamminsalmon | 1 | 3,091 |
04-04-2016, 10:54 PM Last Post: arpanj2 |