26

Re: [Hyperbola 0.4] Testing the initial installation

That has for now nothing to do with alsa-sndio - depending on your test-scenario itself. If you have more about that, please share information. As for now I'm through with testing the problems coming from the additional lines mentioned within the issue. And yes sndio is not stable, after a restart crashing. I'm trying now that with version 1.8.1, without any Debian-patches.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

27

Re: [Hyperbola 0.4] Testing the initial installation

sorry for the wait, here is my environment summary

device: old asus u36sd laptop

lspci:
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)

upgraded from stable to whitehole

doas gpasswd -a (user) audio
doas rc-update add sndiod default
doas rc-service sndiod start
alsamixer (verify sound is not muted)

rc-status:
sndiod             [  crashed  ]

summary - sound initially not working, after running command sndiod manually from the terminal the sound works, it still say crashed in rc-status but the sound continuously work fine until reboot

evironment:
lumina + spacemanfm-git (external)
iceweasel-uxp browser
used mpv/smplayer

testing:
lumina default logout sound theme works
playing some video/music works
playing some online videos works (sometime crashed)

some might related packages:

extra/alsa-lib 1.2.3.2-1 [installed]
    An alternative implementation of Linux kernel sound support
extra/alsa-sndio 0.2-5 [installed]
    ALSA PCM to play audio on sndio servers
extra/alsa-topology-conf 1.2.3-1 [installed]
    ALSA topology configuration files
extra/alsa-ucm-conf 1.2.3-1 [installed]
    ALSA Use Case Manager configuration (and topologies)
extra/alsa-utils 1.2.4-1 [installed]
    Utilities for configuring and using ALSA
extra/zita-alsa-pcmi 0.3.2-1 [installed]
    The successor of clalsadrv, provides easy access to ALSA PCM devices.
extra/libsndio 1.8.0-1 [installed]
    A small audio and MIDI framework part of the OpenBSD project (client
    library)
extra/sndio 1.8.0-1 [installed]
    A small audio and MIDI framework part of the OpenBSD project
extra/xvidcore 1.3.7-1 [installed]
    XviD is a free MPEG-4 video codec
extra/libmpeg2 0.5.1-6 [installed]
    Library for decoding MPEG-1 and MPEG-2 video streams.
extra/ffmpeg 2:4.3.2-1 [installed]
    Complete solution to record, convert and stream audio and video
extra/gst-plugins-base 1.18.3-1 [installed]
    Multimedia graph framework - base plugins
extra/gst-plugins-base-libs 1.18.3-1 [installed]
extra/mpg123 1.26.4-1 [installed]
    Console based real time MPEG Audio Player for Layer 1, 2 and 3

28

Re: [Hyperbola 0.4] Testing the initial installation

Thanks.
So I will push a change for sndio later. But I think this should be not called onto the build-server for now and needs more testing. Especially with browser-compatibility. Have so far basic tests working now - no alsa-sndio is not the problem.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

29

Re: [Hyperbola 0.4] Testing the initial installation

throgh wrote:

Thanks.
So I will push a change for sndio later. But I think this should be not called onto the build-server for now and needs more testing. Especially with browser-compatibility. Have so far basic tests working now - no alsa-sndio is not the problem.

Well, its not the only problem, I will clarify... I cannot make alsa work with alsa-sndio installed.

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

30

Re: [Hyperbola 0.4] Testing the initial installation

The explanation therefore is the concurrent service for sndio itself. No connection towards that and the whole queue for audio is not working as alsa-sndio is a PCM-wrapper. But as I've said: I have it here working and will push my changes. Of course they are not final tested by everyone and therefore I'm going to link the git-commit later so everybody can download and recompile the package for a test. I have tested the following:

- video-playback with smplayer and mpv
- gaming (widelands, chocolate-doom, openblok etc.)
- music-playback
- some videos (slowly but okay as this is an old system for tests)

To summarize: Alsa is working and the rest also, even after a restart. Besides I have to define the global env-variable SDL_AUDIODRIVER in my .bashrc. It is the generic point about soundserver-implementations like sndio or others comparable. But as said: Nothing todo about alsa-sndio as this should be only used with sndio in combination.

And everyone can test sndio even now: Just modify the file sndiod under

/etc/conf.d/

and tryout. smile

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

31

Re: [Hyperbola 0.4] Testing the initial installation

Here is the git-commit for sndio: https://git.hyperbola.info:50100/~team/ … c4d4047624

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

32 (edited by zapper 2021-07-12 03:29:37)

Re: [Hyperbola 0.4] Testing the initial installation

throgh wrote:

Here is the git-commit for sndio: https://git.hyperbola.info:50100/~team/ … c4d4047624

Yep, sndio actually works now.  smile

I found a package online called gmixerctl, supposedly its a gui mixer for sndio,  but it fails due to some module issue...

I installed it, but when I use it,  this is the output:

raceback (most recent call last):
  File "/usr/bin/gmixerctl", line 11, in <module>
    load_entry_point('gmixerctl==0.1.2', 'console_scripts', 'gmixerctl')()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "<frozen zipimport>", line 259, in load_module
  File "/usr/lib/python3.8/site-packages/gmixerctl-0.1.2-py3.8.egg/gmixerctl/gui.py", line 6, in <module>
  File "/usr/lib/python3.8/tkinter/__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'



But hey, thumbs up on sndio finally getting fixed... smile

at least in that git patch you mentioned just now, aka the 1.8.1 version.

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

33

Re: [Hyperbola 0.4] Testing the initial installation

Okay, thanks for the feedback. For all game-enthusiasts using Hyperbola 0.4 right now: Please add the following to your .xsession and .bashrc:

export SDL_AUDIODRIVER="sndio"

The problem about gmixerctl: This is exclusively done for OpenBSD and the rcinit. For now this is not compatible with HyperRC / OpenRC or Runit itself. You could install that for sure, but this module is making also modifications towards the initialization of sndio, which is done at Hyperbola within sndio.confd (OpenRC) or conf (Runit). The error is coming from the naming of the tk-modules so this also needs more modifications within the python-code itself as also our version of Python. Here is the approval tk-modules are not compiled within:

Python 3.8.5 (default, Mar 13 2021, 21:43:20)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/tkinter/__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

34

Re: [Hyperbola 0.4] Testing the initial installation

Package sndio is now also within repositories in the new version: Please approve functionality.
Afterwards I'll close the corresponding issue!

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

35

Re: [Hyperbola 0.4] Testing the initial installation

throgh wrote:

Package sndio is now also within repositories in the new version: Please approve functionality.
Afterwards I'll close the corresponding issue!

Sndio still works, one side note, I didn't really realize gmixerctl was so... well... difficult to implement.

Perhaps a cli mode like alsa has would be good to implement somewhere down the road?

like alsamixer command, only obviously it would have per application support, 127 max volume, etc...

Again though, somewhere down the road, not now... smile


Thanks for adding focuswriter and fixing sndio  + help with wpa_supplicant. smile

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

36

Re: [Hyperbola 0.4] Testing the initial installation

A bit difficult, yes. Here some examples about the implementation:

https://git.sr.ht/~charles/gmixerctl/tr … /sndiod.py

It is about being full transparent. BSD-init has some flavors included OpenRC and Runit have the other side not that far or in some other way. Here we have to do some work as community. Besides I have fixed Inkscape right now and will later push that into the repositories. smile

If people have some ideas to experiment? I'll later share mine for now.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

37 (edited by dikasp2 2021-07-13 09:55:42)

Re: [Hyperbola 0.4] Testing the initial installation

sndio works fine now, thanks Throgh.

38

Re: [Hyperbola 0.4] Testing the initial installation

Issues updated.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

39

Re: [Hyperbola 0.4] Testing the initial installation

wifi connect - thx a lot

everything in place now! 0.4 is *GOLDEN*

You may or may not believe the hype - PE#1

40

Re: [Hyperbola 0.4] Testing the initial installation

Refresh for issues-listing!

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

41

Re: [Hyperbola 0.4] Testing the initial installation

Question for 1561: https://issues.hyperbola.info/index.php … sk_id=1561
Can somebody approve this is working now? I have not the corresponding hardware here available.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!