3

I am new to linux and new to raspi. I need some help getting tvservice running. I am using the image from the raspberry thin client project which is based on raspbian. tvservice is installed.

If I log in via SSH I am able to run the command tvservice -s.

If I open a terminal window on the raspi itself and type tvservice -s I get bash: tvservice: command not found

I also tried to su first the same result.

I dont know where to look. Can anybody help me.

  • Hello and welcome! Note that I somewhat copy edited your post. If you feel that unneccessary you can always revert that edit. Also find my answer which addresses the issue. – Ghanima Dec 12 '15 at 15:54
  • @Mike Can you post the output of apt-cache policy libraspberrypi-bin ? – Diederik de Haas Dec 12 '15 at 19:01
  • @Mike, could you please check echo $PATH both logged in via ssh and local terminal? – Ghanima Dec 13 '15 at 19:44
1

tvservice is not in $PATH, which is why you get the "command not found" message. Your shell simply does not find it. On my Pi it sits in /opt/vc/bin.

To run it type: /opt/vc/bin/tvservice -s using its full path.

  • Thanks the path /opt/vc/bin/ does not exists. How can i search for the correct pass – Mike Dec 12 '15 at 15:59
  • 2
    find / -name tvservice. If not run as root mind a lots "Permission denied" messages. If you find it, let me know to update the answer. – Ghanima Dec 12 '15 at 16:02
  • Log in via SSH and type which tvservice or type tvservice to find the path. – bryn Dec 13 '15 at 22:59
  • @bryn, unfortunately which does this by searching for an executable or script in the directories listed in the environment variable PATH (man which). So this will not work out, as we already know that it is not in PATH. – Ghanima Dec 13 '15 at 23:06
  • @Ghanima He states the command works fine via SSH, so then it's in PATH. – bryn Dec 13 '15 at 23:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.