home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   RBERRYPI      Support for the Raspberry Pi device      21,939 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 20,306 of 21,939   
   Joerg Walther to R.Wieser   
   Re: Releasing the TV before shutting dow   
   02 Aug 24 12:34:41   
   
   INTL 3:770/1 3:770/3   
   REPLYADDR joerg.walther@magenta.de   
   REPLYTO 3:770/3.0 UUCP   
   MSGID:  9285700e   
   REPLY:  0f79b908   
   PID: SoupGate-Win32 v1.05   
   R.Wieser wrote:   
      
   >Although you did not mention it, I take it you picked up on that just   
   >disabeling HDMI output doesn't cause my TV to switch back to its previous   
   >input.  Which means that that vcgencmd doesn't seem to be the sought-for   
   >solution (and nullifies the need to test it).   
      
   I just asked ChatGPT if it knew an answer, and it did (not that I am   
   certain if it works):   
      
   Yes, it is possible for a Raspberry Pi to send a signal to a TV to   
   switch the HDMI input before shutting down. This can be done using CEC   
   (Consumer Electronics Control), a feature available through HDMI that   
   allows devices to communicate with each other and exchange basic control   
   commands.   
      
   Here’s how you can do it:   
      
   Check if the TV supports CEC: Not all TVs support CEC, and it may be   
   branded under different names like "Anynet+" (Samsung), "BRAVIA Sync"   
   (Sony), "Simplink" (LG), etc.   
      
   Install CEC tools: On the Raspberry Pi, you can install the cec-utils   
   package, which includes a tool called cec-client. This tool allows you   
   to send CEC commands.   
      
   bash   
   Code kopieren   
   sudo apt-get update   
   sudo apt-get install cec-utils   
   Send CEC commands: You can use cec-client to send various commands to   
   the TV. For example, to instruct the TV to switch to a different HDMI   
   input, you can use specific CEC commands.   
      
   Create a script: You can create a simple script that sends the CEC   
   command when the Raspberry Pi is about to shut down. For example:   
      
   bash   
   Code kopieren   
   #!/bin/bash   
   echo "as" | cec-client -s   
   The command echo "as" | cec-client -s tells the CEC client to switch the   
   active HDMI source.   
      
   Execute the script on shutdown: To automatically run the script when the   
   Raspberry Pi shuts down, you can add it to the /etc/rc.local file or   
   create a Systemd service.   
      
   Keep in mind that the exact commands and setup may vary depending on   
   your TV model and the supported CEC functions. It's a good idea to refer   
   to your TV's manual for specific information about its CEC support.   
      
   -jw-   
   --   
   And now for something completely different...   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 90/1 105/81 106/201 129/305 153/757 7715 218/700 840 220/70   
   SEEN-BY: 221/1 6 242 360 226/17 30 100 227/114 229/110 111 114 200   
   SEEN-BY: 229/206 300 317 400 426 428 470 550 616 664 700 230/0 266/512   
   SEEN-BY: 267/800 280/5003 282/1038 291/111 292/854 2226 8125 301/1   
   SEEN-BY: 310/31 320/219 322/757 335/364 341/66 342/200 396/45 410/9   
   SEEN-BY: 423/81 460/58 633/280 712/848 770/1 3 100 330 340 772/210   
   SEEN-BY: 772/220 230 5020/400 5058/104 5075/35   
   PATH: 770/3 1 218/840 221/6 1 292/854 229/426   
      

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca