7

I'm looking for a solution to wake up my LCD TV.

With the xset command I'm able to put the TV in different power saving modes:

xset dpms force standby

xset dpms 0 30 60

0 = standby

30 sec = suspend

60 sec = off

I need a solution to wake the TV up from these mode. So far with the:

xset dpms force on

I'm not able to do wake it up.

I want the TV to switch on 07.00 every morning and off 17.00 as a cron job.

These are my default values. Values so that the PI keeps the X window up 24/7:

/etc/X11/xorg.conf

Section "Monitor"
    Identifier "Monitor"
    Option "DPMS" "false"
EndSection

Section "ServerLayout"
    Identifier "ServerLayout0"
    Option "BlankTime"  "0"
    Option "StandbyTime" "0"
    Option "SuspendTime" "0"
    Option "OffTime" "0"
EndSection
nicoX
  • 303
  • 1
  • 4
  • 10

2 Answers2

3

You need to compile libcec

apt-get install build-essential autoconf liblockdev1-dev libudev-dev git libtool pkg-config
git clone git://github.com/Pulse-Eight/libcec.git

cd libcec
./bootstrap
LDFLAGS="-s -L/usr/lib -L/usr/lib -L/opt/vc/lib" ./configure --prefix=/usr --enable-rpi --with-rpi-include-path=/opt/vc/include --with-rpi-lib-path=/opt/vc/include
make
make install

Link the libraries

ldconfig

Now check if it has found some cec devices.

 cec-client -l

To turn the TV on you will use the command

echo 'on 0' | cec-client -s

You can download the CEC specification here.

Piotr Kula
  • 17,336
  • 6
  • 66
  • 105
0

Adding the xset s reset after xset dpms force on will make the screen go on. It's not a solution since the xset command will only blank the TV. The LED lights will still be powered. So it will not literately be in standby mode.

nicoX
  • 303
  • 1
  • 4
  • 10