Re: debian on apple powerbook

2020-06-30 Thread John Paul Adrian Glaubitz
On 6/30/20 11:08 AM, Giuseppe Sacco wrote:
> This does not work either.
> 
> $ pacmd | tail -4
> 0 card(s) available.
> 0 sink input(s) available.
> 0 source output(s) available.
> 0 cache entrie(s) available.

Then you will need to collect as much as information as possible regarding your
audio setup and post it on the list. The more information we have, the more 
likely
it is that we can find out what the problem is.

Try researching the specifics of the audio driver in use. Maybe it needs 
firmware
to work or similar.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: debian on apple powerbook

2020-06-30 Thread Jeroen Diederen

https://forums.macrumors.com/threads/the-powerpc-linux-wiki.2178457/

has an entry on sound under "Fixes", it may help you, I don't know.

Jeroen


Giuseppe Sacco schreef op 2020-06-30 11:08:

Hello Adrian,

Il giorno mar, 30/06/2020 alle 10.30 +0200, John Paul Adrian Glaubitz
ha scritto:
[...]
Try using Pulse-Audio. On my iBook G4, sounds works out of the box 
with

Pulse-Audio without any additional configuration. Your sound card is
probably just muted.


This does not work either.

$ pacmd | tail -4
0 card(s) available.
0 sink input(s) available.
0 source output(s) available.
0 cache entrie(s) available.


Also, software like alsa-mixer is usually run as the user logged in,
not root.


Right. I have the same error with my normal user.

Bye,
Giuseppe




Re: debian on apple powerbook

2020-06-30 Thread Giuseppe Sacco
Hello Adrian,

Il giorno mar, 30/06/2020 alle 10.30 +0200, John Paul Adrian Glaubitz
ha scritto:
[...]
> Try using Pulse-Audio. On my iBook G4, sounds works out of the box with
> Pulse-Audio without any additional configuration. Your sound card is
> probably just muted.

This does not work either.

$ pacmd | tail -4
0 card(s) available.
0 sink input(s) available.
0 source output(s) available.
0 cache entrie(s) available.

> Also, software like alsa-mixer is usually run as the user logged in,
> not root.

Right. I have the same error with my normal user.

Bye,
Giuseppe



Re: debian on apple powerbook

2020-06-30 Thread John Paul Adrian Glaubitz
On 6/30/20 10:25 AM, Giuseppe Sacco wrote:
> I think the PATH is already setup correctly. As root:
> 
> # echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> # alsamixer 
> cannot open mixer: File o directory non esistente
> 
> Alsa modules are not loaded, I think, since:
> 
> # cat /proc/asound/cards 
> --- no soundcards ---
> # cat /proc/asound/devices 
>  33:: timer
> # cat /proc/asound/pcm 
> # 
> 
> What is in these files in a working system?
> 
> Which modules are loaded? These are mine:
> 
> # lsmod | fgrep snd | sort
> snd57428  5 
> snd_aoa_i2sbus,snd_timer,snd_aoa,snd_pcm,snd_aoa_codec_tas
> snd_aoa13256  1 snd_aoa_codec_tas
> snd_aoa_codec_tas   9805  0
> snd_aoa_i2sbus 18268  0
> snd_aoa_soundbus3685  1 snd_aoa_i2sbus
> snd_pcm78991  1 snd_aoa_i2sbus
> snd_timer  19655  1 snd_pcm
> soundcore   5242  1 snd

Try using Pulse-Audio. On my iBook G4, sounds works out of the box with
Pulse-Audio without any additional configuration. Your sound card is
probably just muted.

Also, software like alsa-mixer is usually run as the user logged in,
not root.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: debian on apple powerbook

2020-06-30 Thread Giuseppe Sacco
Hello Adrian,

Il giorno mar, 30/06/2020 alle 10.11 +0200, John Paul Adrian Glaubitz
ha scritto:
> On 6/30/20 9:54 AM, Jeroen Diederen wrote:
> > For some reason, Debian does not install the correct PATH variable, maybe 
> > that is the problem.
> > So you could try as as root:
> > 
> > export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
> You most likely used sudo or su without using a new login shell, no?

I used "su -" for going from normal user to root. I tried in two ways:
remotely via ssh and on an xterm at the console.

Thank you,
Giuseppe



Re: debian on apple powerbook

2020-06-30 Thread Giuseppe Sacco
Hello Jeroen,

Il giorno mar, 30/06/2020 alle 09.54 +0200, Jeroen Diederen ha scritto:
> For some reason, Debian does not install the correct PATH variable, 
> maybe that is the problem.
> So you could try as as root:
> 
> export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin

I think the PATH is already setup correctly. As root:

# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# alsamixer 
cannot open mixer: File o directory non esistente

Alsa modules are not loaded, I think, since:

# cat /proc/asound/cards 
--- no soundcards ---
# cat /proc/asound/devices 
 33:: timer
# cat /proc/asound/pcm 
# 

What is in these files in a working system?

Which modules are loaded? These are mine:

# lsmod | fgrep snd | sort
snd57428  5 
snd_aoa_i2sbus,snd_timer,snd_aoa,snd_pcm,snd_aoa_codec_tas
snd_aoa13256  1 snd_aoa_codec_tas
snd_aoa_codec_tas   9805  0
snd_aoa_i2sbus 18268  0
snd_aoa_soundbus3685  1 snd_aoa_i2sbus
snd_pcm78991  1 snd_aoa_i2sbus
snd_timer  19655  1 snd_pcm
soundcore   5242  1 snd

Bye,
Giuseppe



Re: debian on apple powerbook

2020-06-30 Thread John Paul Adrian Glaubitz
On 6/30/20 9:54 AM, Jeroen Diederen wrote:
> For some reason, Debian does not install the correct PATH variable, maybe 
> that is the problem.
> So you could try as as root:
> 
> export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
You most likely used sudo or su without using a new login shell, no?

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: debian on apple powerbook

2020-06-30 Thread Jeroen Diederen
For some reason, Debian does not install the correct PATH variable, 
maybe that is the problem.

So you could try as as root:

export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin

Giuseppe Sacco schreef op 2020-06-30 09:02:

Hello Jeroen,
thank you for your hints. The first about the battery worked
immediately, while the second about the sound didn't.

Il giorno mar, 30/06/2020 alle 08.17 +0200, Jeroen Diederen ha scritto:
[...]

sound:
To get sound working install alsa-utils and launch alsamixer

sudo apt install alsa-utils
alsamixer


I have alsa-utils 1.2.2-1 from unstable already installed.

# LANG=C alsamixer
cannot open mixer: No such file or directory

do I need any more module loaded?

Thanks,
Giuseppe




Re: debian on apple powerbook

2020-06-30 Thread Giuseppe Sacco
Hello Jeroen,
thank you for your hints. The first about the battery worked
immediately, while the second about the sound didn't.

Il giorno mar, 30/06/2020 alle 08.17 +0200, Jeroen Diederen ha scritto:
[...]
> sound:
> To get sound working install alsa-utils and launch alsamixer
> 
> sudo apt install alsa-utils
> alsamixer

I have alsa-utils 1.2.2-1 from unstable already installed.

# LANG=C alsamixer 
cannot open mixer: No such file or directory

do I need any more module loaded?

Thanks,
Giuseppe



Re: debian on apple powerbook

2020-06-30 Thread Jeroen Diederen

Hi Giuseppe!

Battery:
If the battery status is not displayed correctly then open up the 
terminal and type:

sudo modprobe pmu_battery

To make this permanent type the following:
sudo nano /etc/modules

Add the line

pmu_battery

sound:
To get sound working install alsa-utils and launch alsamixer

sudo apt install alsa-utils
alsamixer

Then hit fn+F6 (SoundByLayout)
go to the right and make sure you have PCM at 80<>80
ESC to exit alsamixer

You should have sound now…

Regards,
Jeroen

Giuseppe Sacco schreef op 2020-06-29 22:22:

Hello,
I just installed (again) debian on an Apple PowerBook G4. It is a quite
old machine, but it fits my requirements. After having installed the
latest supported Debian release, I upgraded to sid using the ports
archive. A few think do not work, so I am asking how to fix them, if
possible.

First, kernels 5.6 and 5.7 do not boot at all. I opened a bug a few
days back (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963689).
Second, the battery is not detected by upower, so it does not show up
in MATE. Third, audio is not working at all.

Do you have hints about how to solve these problems? I am willing to
spend some of my time in order to debug and, eventually, provide
patches.

Thank you,
Giuseppe




Re: Debian on Apple Powerbook 5300c with a 603e

2000-09-11 Thread Andre Berger
Bill Paterson [EMAIL PROTECTED] writes:

 Has anyone got Debian running on the above machine? If yes, elaboration on
 workarounds, glitches, etc. would be appreciated.

No way. Only MkLinux (DR3  Pre-R1) will currently run on the 5300 (=
24 MB RAM), with no ext. SCSI, no PCMCIA, and of that wasn't enough,
buggy serial port support. But the system itself is said to run stable
and much faster than MacOS does. There are threads on the 5300 on
comp.os.linux.powerpc every now and then, all with the same sad
result. Sorry for us.

-- Andre