HDMI Handshake issue fixed

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Snippo Offline
Senior Member
Posts: 115
Joined: Dec 2011
Reputation: 4
Post: #11
I managed to find a solution for my problem in xbmcbuntu. The command
Code:
sudo service lightdm restart
restarts the X server and reinitializes the screen. After that it works fine again.

I mapped the command to a button on my remote so I don't have to SSH in to the box everytime I get a black screen:
Find the name of the button you wish to use by typing
Code:
irw
and pressing the button. I used the "media" button on the HP (MCE) Pavillion remote.
Then
Code:
sudo nano /home/<username>/.lircrc
Add the following and save:
Code:
# Start XBMC
begin
prog = irexec
button = <name of the button you wish to use>
config = sudo /home/<username>/scripts/startXBMC.sh
end
Edit rc.local:
Code:
sudo nano /etc/rc.local
Add the following line and save:
Code:
#start IRexec
su -c '/usr/bin/irexec -d /home/<username>/.lircrc' -l xbmc

Create a file startXBMC.sh in /home/<username>/scripts/:
Code:
sudo nano /home/<username>/scripts/startXBMC.sh
And add the following lines:
Code:
#restart lightdm
sudo service lightdm restart
#restart xbmc
#killall -9 xbmc.bin
Make the script executable with:
Code:
sudo chmod +x /home/<username>/scripts/startXBMC.sh
If you want to also use this button to restart xbmc in case it crashes you'll have to remove the # on the last line.
Because the service lightdm restart command needs root access you need to start the script as sudo without having to type a password:
Code:
sudo visudo
Add:
Code:
%admin ALL=(ALL) NOPASSWD:/home/<username>/scripts/startXBMC.sh
and save.
Edit:
If your username isn't part of the admin group it won't work. You can change '%admin' to '<username>' or:
Code:
adduser <username> admin

Credits go to this post Smile
(This post was last modified: 2012-06-08 17:35 by Snippo.)
find quote
Post Reply