Pi has arrived - 2 newbie questions


18 posts
by texy » Sat May 26, 2012 7:36 am
Well it arrived and its booted ok first time with the Debian image. Its picked up the correct time and date so it has access to the net, however when I go into
Midori and I try and access a webpage a 'cannot resolve hostname' message occurs.
Also how can i prove that sound is working through the HDMI cable? I,ve tried the Music Player app and pressed play on the 'cellule' track but i cant hear anything, even after
I un-mute the sound level, as it appears to be muted by default.
Note that the HDMI cable and network cable have been removed from my Xbox 360 so I know they work for both network and sound.

Cheers,
Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2480
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by texy » Sat May 26, 2012 7:53 am
Maybe the sound problem is that the track isn't actually playing? I attached headphones to the jack and can't hear anything there either. There is no indication that the track is playing on the app - isn't the timeline at the top supposed to move??????
Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2480
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by grumpyoldgit » Sat May 26, 2012 8:04 am
It's useful to work out where the problem is.

Go into terminal and see if you can ping the google dns servers.
ping 8.8.8.8

Then ping the Raspberry Pi site.
ping www.raspberrypi.org

If you get a response from the first but not the second then dns is likely to be your issue.

On the sound issue try this.

http://elinux.org/R-Pi_Troubleshooting# ... plications

By the way, you are unlikely to hear anything plugging headphones into the jack socket as the signal is not strong enough. you need proper powered speakers.
User avatar
Posts: 1454
Joined: Thu Jan 05, 2012 12:20 pm
by rasbeer » Sat May 26, 2012 9:36 am
grumpyoldgit wrote:It's useful to work out where the problem is.
By the way, you are unlikely to hear anything plugging headphones into the jack socket as the signal is not strong enough. you need proper powered speakers.


Several people have reported headphones working ok (perhaps the in-ear type need less power?)
Posts: 242
Joined: Wed Mar 07, 2012 8:35 am
by grumpyoldgit » Sat May 26, 2012 9:50 am
rasbeer wrote:
grumpyoldgit wrote:It's useful to work out where the problem is.
By the way, you are unlikely to hear anything plugging headphones into the jack socket as the signal is not strong enough. you need proper powered speakers.


Several people have reported headphones working ok (perhaps the in-ear type need less power?)


Thanks. I haven't linked my Pi up for sound yet, so that is interesting. I was just going on the reports of others.
User avatar
Posts: 1454
Joined: Thu Jan 05, 2012 12:20 pm
by texy » Sat May 26, 2012 10:36 am
OK, some more info.
I rebooted the Pi and saw the ip was DHCP'ed to address 192.168.0.8, so I pinged my router and got a good response. I could also ping my windoz laptop on the same network.
So after I type startx, thats when the network is lost - when I ping from LXTerminal, I get an 'unreachable' message.
Like I said, its a linux newbie situation I,m sure - something needs to be set to enable the network in X Windows.
Thanks for the help so far ;-)

Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2480
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by grumpyoldgit » Sat May 26, 2012 10:56 am
Pinging your router only proves you can access your internal network, not that you can access the outside world.
You need to satisfy yourself that you can ping external addresses.

Also, when you go into startx, what ip address does your pi have? Run ifconfig.
User avatar
Posts: 1454
Joined: Thu Jan 05, 2012 12:20 pm
by texy » Sat May 26, 2012 11:06 am
True. But it is getting the time from somewhere.
After a long pause,
inet addr:127.0.0.1

Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2480
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by grumpyoldgit » Sat May 26, 2012 11:12 am
You still haven't pinged an external address.
User avatar
Posts: 1454
Joined: Thu Jan 05, 2012 12:20 pm
by texy » Sat May 26, 2012 11:17 am
Ok. Logged off lxde tried to ping the router and no go. Switch off and back on again and I can ping the router, 8.8.8.8 and the pi site.

Seems like lxde is breaking summat.
Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2480
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by bredman » Sat May 26, 2012 2:01 pm
In answer to your questions about sound...

To test if sound is working properly, see the instructions at http://elinux.org/R-Pi_Troubleshooting#Sound
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by texy » Sat May 26, 2012 3:26 pm
Part of the problem is not knowing if the track is playing. When I hit the play button nothing happens - surely the timeline should be moving? I guess I could hook up a powered amp to the analogue o/p.
Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2480
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by texy » Sat May 26, 2012 5:29 pm
Some progress with the sound at least. I changed the config.txt file to have hdmi_driver = 2. That made no apparent difference to sound or display.
However on the troubleshooting wiki page as outlined above, I tried
Code: Select all
 cd /opt/vc/src/hello_pi/hello_audio
 make
 ./hello_audio.bin


and then

Code: Select all
 ./hello_audio.bin 1


..which does produce sound from the TV!
However I also thought'd I,d give this a go

Code: Select all
 sudo modprobe snd_bcm2835
 sudo amixer cset numid=3 2

...but the amixer command is not recognised by Debian.

Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2480
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by grumpyoldgit » Sat May 26, 2012 5:54 pm
I've just this minute been playing about with the sound advice as I wanted to get sound on Doom. I had also noticed, like you, that pressing play on that music file in LXMusic did nothing.

The first set of instructions does nothing and the make command exits with an error message.

However, sudo modprobe snd_bcm2835 before I go into startx gives me sound in Doom and also allows me to play that music file, which is a but Techno!

I don't have speakers set up yet so am using ear buds. The volume is O.K. Just a few pips and crackles now and again.

What I would like to do is set that command up so it activates on boot. It's not clear to me whether that is required.
User avatar
Posts: 1454
Joined: Thu Jan 05, 2012 12:20 pm
by texy » Sat May 26, 2012 6:55 pm
I have now also sorted out the network issue - well kind of. What I didn't mention was that to get from my router to the Pi
(and hard wired laptop if i want), I need to go through a pair of homeplugs. These have been working fine for the xbox, also under the tv, surprise surprise, and also when I connect to my laptop as previously stated (I think). So why the Pi doesn't like it once in lxde, who knows. Anyway
to rule things out I moved the pi and hard connected it to the router, set up tightvnc and ran it from my laptop. The Pi now browses website fine (well as fast as the little thing can manage!). So I need another plan :roll:

Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2480
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by Snowpuddles » Sun May 27, 2012 3:16 am
I also am having the problem of losing internet when starting lxde. Any ideas?
Posts: 5
Joined: Tue May 22, 2012 6:22 pm
by dom » Sun May 27, 2012 9:43 am
@texy
sudo apt-get install alsa-utils
shoud get you amixer. (I've added this info to troubleshooting wiki).

@Snowpuddles
Sounds like a power supply issue.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4104
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by texy » Sun May 27, 2012 2:00 pm
Thanks Dom. Actually I now think maybe my problem is also hardware related. I have 2 1 Amp Apple PSU's of different types and also a cheap powered hub. The problem is probably due to my usb keyboard which is rated at 110mA. I think a combination of the cheap hub and the current sapping keyboard is too blame. If I go headless, and vnc in to the pi, all is well with browsing etc.

Cheers,
Texy
"2.8inch TFT LCD + Touch screen" add-on boards for sale here :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=93&t=65566
50p goes to the Foundation ;-)
Forum Moderator
Forum Moderator
Posts: 2480
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England