adafruit / FreqShow

Raspberry Pi & PiTFT-based RTL-SDR frequency scanning and display tool.
MIT License
144 stars 67 forks source link

git clone problem #2

Closed WD4MSM closed 10 years ago

WD4MSM commented 10 years ago

I am getting an error ("fatal: unable to connect to git.osmocom.org:") when using this line from the Freq-Show directions (in the setting up Dependencies section): git clone git://git.osmocom.org/rtl-sdr.git

As a "Newbie" to the Rasberry Pi I'd really appreciate some help! :-(

 Barry
tdicola commented 10 years ago

Looks like there might have been a server issue with the RTL SDR library's git repository. I just tried it and it seemed to work, can you try again now? Also make sure the Pi has internet access first before running the git clone command.

mobier commented 10 years ago

hi. I am getting an error (Traceback (most recent call last): File "freqshow.py", line 77, in pygame.display.init() pygame.error: Unable to open /dev/fb1) help

tdicola commented 10 years ago

Make sure you have the PiTFT setup and working correctly. Check out the PiTFT guide which has an easy install OS image with the PiTFT kernel module & configuration done for you: https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/easy-install Follow that guide and install the OS image from it, then setup the FreqShow software.

mobier commented 10 years ago

Hi. thanks for your reply. But the problem is still not solved. First I want to say a little I use display and your article in PiTFT is not a type of. My monitor is currently working

tdicola commented 10 years ago

Oh if you're not using the PiTFT you'll need to make a few small changes. Near the bottom of the freqshow.py file remove these lines:

    # Initialize pygame and SDL to use the PiTFT display and touchscreen.
    os.putenv('SDL_VIDEODRIVER', 'fbcon')
    os.putenv('SDL_FBDEV'      , '/dev/fb1')
    os.putenv('SDL_MOUSEDRV'   , 'TSLIB')
    os.putenv('SDL_MOUSEDEV'   , '/dev/input/touchscreen')

Those set up environment variables that expect to use the PiTFT, but if you remove them it should fall back to using the HDMI display.

You'll also probably want to display the mouse cursor so you can use it to press buttons, so change this line a line further down:

pygame.mouse.set_visible(False)

To be this:

pygame.mouse.set_visible(True)
colinluthier commented 2 years ago

@tdicola That fix still works. Thank you.