ArchlinuxARM on Raspberry Pi


146 posts   Page 6 of 6   1, 2, 3, 4, 5, 6
by trn » Thu May 10, 2012 7:31 am
fresh install again, update to 13+ and new firmware, 192/64 RAm, everythink is ok

startx in open box with tint2 , 26M rama usage on conky
Posts: 46
Joined: Wed May 09, 2012 11:30 am
by trn » Thu May 10, 2012 7:33 am
Short install skript

pacman -Syyu
pacman -S alsa-firmware alsa-utils alsa-oss xf86-video-fbdev xorg-server xorg-xinit xorg-utils xorg-server-utils openbox obconf obmenu lxappearance consolekit tint2 conky xterm

useradd -m -G users,audio,video,wheel,storage,optical,power,network,log,lp -s /bin/bash newuser

passwd newuser

# rc.conf @alsa v DEAMONS

#modules MODULES=(snd-bcm2835)

su - newuser

mkdir -p ~/.config/openbox/
cp /etc/xdg/openbox/rc.xml ~/.config/openbox
cp /etc/xdg/openbox/menu.xml ~/.config/openbox

add tint2 & >> ~/.xinitrc
add exec ck-launch-session dbus-launch openbox-session >> ~/.xinitrc
Posts: 46
Joined: Wed May 09, 2012 11:30 am
by kubat » Tue May 15, 2012 9:35 am
I did what wrote trn

But after start X (startx or xinit /usr/bin/openbox-session) I try also lxde.
Keyboard and mouse stop working. I just changing the clock and nothing I can do. What I forget ?

On Debian everything works. Could you help me ?
Posts: 4
Joined: Tue May 15, 2012 7:09 am
by jenshonkan » Sun May 20, 2012 8:14 pm
Hi kubat!

I had the same problem but I created a new file in /etc/X11/xorg.d/10-xxxx.conf and put in the text:

Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection

Then my mouse nad keyboard started to work. The problem with this is that you are disabling udev for X. This results in that now hot-plugging is allowed in X.

So the problem is that udev is not loaded correctly. I will look in to this tomorrow and see if i can find a solution.
Posts: 1
Joined: Sun May 20, 2012 8:07 pm
by Thomas_Do » Mon May 21, 2012 7:23 am
Same problem here,

will try the workaround tonight.
Posts: 3
Joined: Mon May 21, 2012 7:20 am
by kubat » Mon May 21, 2012 11:47 am
@jenshonkan Thank you!

Interestingly the same problem I have on "Raspbmc beta"
Posts: 4
Joined: Tue May 15, 2012 7:09 am
by eduardofv » Thu May 24, 2012 9:23 pm
I also found a problem with usb devices after updating. It seems to be libusb affecting udev. Workaround would be to go back from libusb-1.0.9-1 to libusb-1.0.8-2, but I haven't tested it. I just didn't updated the system and go forward installing other packages.
Posts: 28
Joined: Tue May 22, 2012 2:58 pm
by Thomas_Do » Fri May 25, 2012 12:32 pm
For me it helped to install the original Arch image before updating (pacman -Syu) twice. Only after receiving " there is nothing to do" by pacman I installed X and the LXDE desktop environment.

That worked :) .
Posts: 3
Joined: Mon May 21, 2012 7:20 am
by eduardofv » Fri May 25, 2012 3:37 pm
Thomas_Do wrote:For me it helped to install the original Arch image before updating (pacman -Syu) twice. Only after receiving " there is nothing to do" by pacman I installed X and the LXDE desktop environment.

That worked :) .


Thanks Thomas, did you had USB problems before the update?
Posts: 28
Joined: Tue May 22, 2012 2:58 pm
by Thomas_Do » Fri May 25, 2012 4:38 pm
Yes, I had no mouse and keyboard via USB.
Posts: 3
Joined: Mon May 21, 2012 7:20 am
by naicheben » Sun Jun 03, 2012 3:02 pm
I managed to install Archlinux and was happy that MPD updated the database without crashing (had permanent crashes on Debian6-19-04-12 when updating the database of mpd)

I can also play wav and mp3 on the commandline with alsaplayer.But if I connect to mpd with ncmpc I can not start playing a song. It pauses a second after starting.
User mpd is in /etc/group:
Code: Select all
cat /etc/group | grep mpd
audio:x:92:pi,mpd
mpd:x:45:

Any ideas?

EDIT: Ah, must be my alsa configuration:
Code: Select all
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
Jun 03 16:46 : output: Failed to open "My ALSA Device" [alsa]: Failed to open ALSA device "hw:0,0": No such file or directory
Jun 03 16:46 : player_thread: problems opening audio device while playing "G/Gammaray/To The Metal!/02 All You Need To Know.wav"


My audio_output in mpd.conf is
Code: Select all
audio_output {
   type      "alsa"
   name      "My ALSA Device"
   device      "hw:0,0"   # optional
#   format      "44100:16:2"   # optional
   mixer_type      "software"   # optional
#   mixer_device   "default"   # optional
#   mixer_control   "PCM"      # optional
#   mixer_index   "0"      # optional
}
Posts: 347
Joined: Sat Jan 28, 2012 12:28 pm
by naicheben » Sun Jun 03, 2012 5:27 pm
pfff. could this be a udev thing?
/dev/snd/* are all root:root
Shouldn't it be group audio at least?
Posts: 347
Joined: Sat Jan 28, 2012 12:28 pm
by naicheben » Sun Jun 03, 2012 9:23 pm
Nevermind, update seems to solve the problem. Now my udev-rules work again.
Posts: 347
Joined: Sat Jan 28, 2012 12:28 pm
by pepedog » Sun Jun 03, 2012 10:20 pm
Did you notice
http://www.archlinux.org/news/systemd-t ... aces-udev/
That's the x86 site, not arm
Posts: 966
Joined: Fri Oct 07, 2011 9:55 am
by naicheben » Mon Jun 04, 2012 5:11 am
Thank you. No, I did not notice that, but it seems that updating (complete update: pacman -Syu or forcing udev to upgrade: pacman -Sf udev) solved the Problem. Whatever it was, now /dev/snd/* all are created as root:audio with 0660. So now users in Group audio can again access the soundcard. I have helped myself by changing the group and mode via rc.local before MPD started, but now I can boot without this "trick". So I guess it was an old issue of udev witch now is solved.
Posts: 347
Joined: Sat Jan 28, 2012 12:28 pm
by pepedog » Mon Jun 04, 2012 8:44 am
rc.local starts after daemons started.
Look how it can be done (use as example) in /etc/udev/rules.d/10-vchiq.rules
Posts: 966
Joined: Fri Oct 07, 2011 9:55 am
by naicheben » Mon Jun 04, 2012 5:26 pm
SOLVED:
Thank you, I think the udev rule did not work because of wrong syntax:
Code: Select all
# alsa devices
SUBSYSTEM="sound", GROUP="audio", MODE="0660"
KERNEL="controlC[0-9]*", NAME="snd/%k", GROUP="audio", MODE="0660"
...
But changing single "=" into double "==" didn't help.
So I removed the udev.rules for sound and cleaned up in rc.local

Only entry for Audiodevices is in rc.conf:
MODULES=(snd_bcm2835)

Now to something completely different :lol:
Is it a good idea to update via git rpi-update script?
https://github.com/Hexxeh/rpi-update/blob/master/rpi-update or is it cecommended for developers only?
Posts: 347
Joined: Sat Jan 28, 2012 12:28 pm
by pepedog » Mon Jun 04, 2012 5:50 pm
No devtmpfs in the git prebuilt kernel
http://www.archlinux.org/news/users-of- ... s-support/
Couple of days arch will have new kernel, more drivers inc iscsi
Existing kernel is uptodate with GitHub, just config different
Posts: 966
Joined: Fri Oct 07, 2011 9:55 am
by naicheben » Mon Jun 04, 2012 6:13 pm
Fine, then I stick to pacman to keep my system up to date.
Thank you very much.
Posts: 347
Joined: Sat Jan 28, 2012 12:28 pm
by VA3UV » Sun Nov 18, 2012 3:56 pm
Hi Guys;

I am trying to install alsa-oss on the Pi (running ArchLinux) - pacman can't seem to find it!

[root@alarmpi asterisk]# pacman -Ss alsa
extra/alsa-firmware 1.0.25-2
ALSA firmware package
extra/alsa-lib 1.0.26-1 [installed]
An alternative implementation of Linux sound support
extra/alsa-plugins 1.0.26-1
Extra alsa plugins
extra/alsa-utils 1.0.26-1
An alternative implementation of Linux sound support
extra/alsaplayer 0.99.81-5
A heavily multi-threaded PCM player that tries to excercise the ALSA library and driver quite a bit
extra/gnome-alsamixer 0.9.6-4
Gnome ALSA mixer
extra/pulseaudio-alsa 2-1
ALSA Configuration for PulseAudio
community/balsa 2.4.12-1
An e-mail client for GNOME

Additionally, I need usb audio support.

Appreciate any help with the above.

Thanks,

Ramesh.
Posts: 1
Joined: Sun Nov 18, 2012 3:53 pm
by Cloudcentric » Sun Nov 18, 2012 7:44 pm
I know everything about nothing"
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am