How to turn off and wake up display?
#17
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 Big Grin

the good think is that, the hole android source is available Big Grin |
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.!


Messages In This Thread
How to turn off and wake up display? - by JulianM - 01-24-2016, 12:09 PM
RE: How to turn off and wake up display? - by Zoidiano0 - 01-29-2016, 01:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 How to turn the screen back on modsbyus 4 6,006 11-28-2017, 01:03 PM
Last Post: modsbyus
  display problem florianl 6 7,854 06-11-2016, 10:12 AM
Last Post: kiko
  turn off display after inactivity Blindstealer 3 5,386 06-05-2016, 05:18 AM
Last Post: dkryder
Question Wake on LAN (WOL) Tarjei85 2 4,174 05-20-2016, 04:36 PM
Last Post: Tarjei85
  Anyone seeing occasional display stuttering? rakib-hasan 2 3,654 04-29-2016, 05:43 AM
Last Post: tkaiser
  Display too large for TV slamminsalmon 1 3,088 04-04-2016, 10:54 PM
Last Post: arpanj2

Forum Jump:


Users browsing this thread: 2 Guest(s)